again a transport stream problem.
Handbrake identifies the following file as file with two audio tracks.
https://www.dropbox.com/s/vh4gkt75dcklh ... 10000bk.ts
Its the first 10000 blocks of an original file extracted with dd if=.. of=.. count=10000
Track 0: MPEG (2.0ch)
Track 1: AC3 (5.1ch)
I selected preset AppleTV2 and choose in Audio:
1. Track 1 AC3 (5.1ch) to AAC Dolby Pro Logic II
2. Track 1 AC3 (5.1ch) to AC3 pass through
The produced file has two audio tracks, first AAC (2ch) which is ok, but the second ends as AC3 (2ch).
Quicktime 7 sais, that data rate of AC3 (2ch) is 368.79kBit/s which is close to the original 384kbit/s of the original AC3 (5.1).
The file was initially cut at the Kathrein, and it looked to me, that it starts with the first key frame with 5.1 after BBC One switched from 2.0 to 5.1. So the key frame earlier was still 2.0.
I am sure, that if i would take the next key frame, that everything would be ok, but it will take approx. 4 seconds until the next key frame shows up.
Code: Select all
[00:03:03] macgui: Handbrake Version: 6360svn x86_64 (2014082501)
[00:03:03] hb_init: starting libhb thread
[00:03:03] hb_init: starting libhb thread
[00:03:04] macgui: built in presets updated to build number: 2014082501
[00:03:04] macgui: hbInstances path to this instance: /Users/******/Desktop/HandBrake.app
[00:03:04] macgui: hbInstance found instance pidnum: 2105 at path: /Users/******/Desktop/HandBrake.app
[00:03:04] macgui: hbInstance MATCH FOUND, our pidnum is: 2105
[00:03:04] macgui: Pid for this instance: 2105
[00:03:04] macgui: HBQueueController : My Pidnum is 2105
[00:03:11] macgui: trying to open video_ts folder (parent directory chosen)
[00:03:11] macgui: scanning titles with a duration of 10 seconds or more
[00:03:12] CPU: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
[00:03:12] - logical processor count: 2
[00:03:12] OpenCL device #1: NVIDIA GeForce 320M
[00:03:12] - OpenCL version: 1.0
[00:03:12] - driver version: 8.24.15 310.90.9.05f01
[00:03:12] - device type: GPU
[00:03:12] - supported: no
[00:03:12] hb_scan: path=/Users/******/Dropbox/Videos/8.02-10000bk.ts, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/******/Dropbox/Videos/8.02-10000bk.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/******/Dropbox/Videos/8.02-10000bk.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Users/******/Dropbox/Videos/8.02-10000bk.ts) failed
[00:03:12] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.0
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[00:03:12] dvd: not a dvd - trying as a stream/file instead
[00:03:12] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[00:03:12] Found the following PIDS
[00:03:12] Video PIDS :
[00:03:12] 0x1518 type H.264 (0x1b) (PCR)
[00:03:12] Audio PIDS :
[00:03:12] 0x151a type MPEG1 (0x3)
[00:03:12] 0x1519 type AC3 (0x81)
[00:03:12] Subtitle PIDS :
[00:03:12] Other PIDS :
[00:03:12] 0x151b type DVB Teletext (0x0)
[00:03:12] 0xf06 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:03:12] 0xf07 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:03:12] 0xf09 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:03:12] 0x151c type DVB Subtitling (0x0)
[00:03:12] 0xf00 type ISO 13818-1 private section (0x5)
[00:03:12] 0xf01 type ISO 13818-1 private section (0x5)
[00:03:12] 0xf02 type ISO 13818-1 private section (0x5)
[00:03:12] 0xf03 type ISO 13818-1 private section (0x5)
[00:03:12] 0xf04 type ISO 13818-1 private section (0x5)
[00:03:12] 0x911 type ISO 13818-1 private section (0x5)
[00:03:12] 0x912 type ISO 13818-1 private section (0x5)
[00:03:12] 0x913 type ISO 13818-1 private section (0x5)
[00:03:12] 0x919 type ISO 13818-1 private section (0x5)
[00:03:12] 0x91a type ISO 13818-1 private section (0x5)
[00:03:12] stream id 0x151a (type 0x3 substream 0x0) audio 0x151a
[00:03:12] stream id 0x1519 (type 0x81 substream 0x0) audio 0x1519
[00:03:12] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:12] hb_ts_stream_getPEStype: EOF while searching for PID 0x1518
[00:03:12] hb_sample_pts: couldn't find video packet near 5100000
[00:03:12] scan: decoding previews for title 1
[00:03:12] scan: audio 0x1519: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[00:03:12] scan: audio 0x151a: mp2, rate=48000Hz, bitrate=200000 Unknown (MPEG) (2.0 ch)
[00:03:12] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:12] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:12] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:12] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:12] stream: error near frame 5: next_packet: sync lost @ 1542164, regained after 188 bytes
[00:03:12] stream: error near frame 5: next_packet: sync lost @ 1542164, regained after 188 bytes
[00:03:12] stream: error near frame 5: next_packet: sync lost @ 1542164, regained after 188 bytes
[00:03:13] stream: error near frame 3: next_packet: sync lost @ 1542164, regained after 188 bytes
[00:03:13] stream: error near frame 0: next_packet: sync lost @ 1542164, regained after 188 bytes
[00:03:14] hb_ts_stream_decode - eof
[00:03:14] Warning: Could not read data for preview 29, skipped
[00:03:14] hb_ts_stream_decode - eof
[00:03:14] Warning: Could not read data for preview 30, skipped
[00:03:14] scan: 28 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[00:03:14] stream: 7 good frames, 0 errors (0%)
[00:03:14] libhb: scan thread found 1 valid title(s)
[00:03:15] macgui: ScanDone state received from fHandle
[00:03:15] macgui: showNewScan: This is a new source item scan
[00:03:57] macgui: Rip: Pending queue count is 0
[00:03:57] macgui: getNextPendingQueueIndex next pending encode index is:0
[00:03:57] macgui: scanning specifically for title: 1
[00:03:57] CPU: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
[00:03:57] - logical processor count: 2
[00:03:57] OpenCL device #1: NVIDIA GeForce 320M
[00:03:57] - OpenCL version: 1.0
[00:03:57] - driver version: 8.24.15 310.90.9.05f01
[00:03:57] - device type: GPU
[00:03:57] - supported: no
[00:03:57] hb_scan: path=/Users/******/Dropbox/Videos/8.02-10000bk.ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/******/Dropbox/Videos/8.02-10000bk.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/******/Dropbox/Videos/8.02-10000bk.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(/Users/******/Dropbox/Videos/8.02-10000bk.ts) failed
[00:03:57] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.0
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[00:03:57] dvd: not a dvd - trying as a stream/file instead
[00:03:57] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[00:03:57] Found the following PIDS
[00:03:57] Video PIDS :
[00:03:57] 0x1518 type H.264 (0x1b) (PCR)
[00:03:57] Audio PIDS :
[00:03:57] 0x151a type MPEG1 (0x3)
[00:03:57] 0x1519 type AC3 (0x81)
[00:03:57] Subtitle PIDS :
[00:03:57] Other PIDS :
[00:03:57] 0x151b type DVB Teletext (0x0)
[00:03:57] 0xf06 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:03:57] 0xf07 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:03:57] 0xf09 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:03:57] 0x151c type DVB Subtitling (0x0)
[00:03:57] 0xf00 type ISO 13818-1 private section (0x5)
[00:03:57] 0xf01 type ISO 13818-1 private section (0x5)
[00:03:57] 0xf02 type ISO 13818-1 private section (0x5)
[00:03:57] 0xf03 type ISO 13818-1 private section (0x5)
[00:03:57] 0xf04 type ISO 13818-1 private section (0x5)
[00:03:57] 0x911 type ISO 13818-1 private section (0x5)
[00:03:57] 0x912 type ISO 13818-1 private section (0x5)
[00:03:57] 0x913 type ISO 13818-1 private section (0x5)
[00:03:57] 0x919 type ISO 13818-1 private section (0x5)
[00:03:57] 0x91a type ISO 13818-1 private section (0x5)
[00:03:57] stream id 0x151a (type 0x3 substream 0x0) audio 0x151a
[00:03:57] stream id 0x1519 (type 0x81 substream 0x0) audio 0x1519
[00:03:57] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:57] hb_ts_stream_getPEStype: EOF while searching for PID 0x1518
[00:03:57] hb_sample_pts: couldn't find video packet near 5100000
[00:03:57] scan: decoding previews for title 1
[00:03:57] scan: audio 0x1519: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[00:03:57] scan: audio 0x151a: mp2, rate=48000Hz, bitrate=200000 Unknown (MPEG) (2.0 ch)
[00:03:57] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:57] stream: error near frame 5: next_packet: sync lost @ 1542164, regained after 188 bytes
[00:03:58] stream: error near frame 2: next_packet: sync lost @ 1542164, regained after 188 bytes
[00:03:58] macgui: Queue reloaded
[00:03:58] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[00:03:58] stream: 14 good frames, 0 errors (0%)
[00:03:58] libhb: scan thread found 1 valid title(s)
[00:03:58] macgui: ScanDone state received from fQueueEncodeLibhb
[00:03:58] macgui: Preset: Custom
[00:03:58] macgui: processNewQueueEncode number of passes expected is: 1
[00:03:58] macgui: Start / Stop set to chapters
[00:03:58] macgui: prepareJob exiting
[00:03:58] 1 job(s) to process
[00:03:58] starting job
[00:03:58] sync: expecting 177 video frames
[00:03:58] job configuration:
[00:03:58] * source
[00:03:58] + /Users/******/Dropbox/Videos/8.02-10000bk.ts
[00:03:58] + title 1, chapter(s) 1 to 1
[00:03:58] * destination
[00:03:58] + /Users/******/Desktop/8.02-10000bk.m4v
[00:03:58] + container: MPEG-4 (libavformat)
[00:03:58] * video track
[00:03:58] + decoder: h264
[00:03:58] + bitrate 200 kbps
[00:03:58] + filters
[00:03:58] + Framerate Shaper (0:27000000:1080000)
[00:03:58] + frame rate: same as source (around 25.000 fps)
[00:03:58] + Crop and Scale (1280:720:0:0:0:0)
[00:03:58] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[00:03:58] + loose anamorphic
[00:03:58] + storage dimensions: 1280 * 720, mod 2
[00:03:58] + pixel aspect ratio: 1 / 1
[00:03:58] + display dimensions: 1280 * 720
[00:03:58] + encoder: H.264 (libx264)
[00:03:58] + preset: medium
[00:03:58] + profile: high
[00:03:58] + level: 3.1
[00:03:58] + quality: 20.00 (RF)
[00:03:58] * audio track 1
[00:03:58] + decoder: English (AC3) (5.1 ch) (track 2, id 0x1519)
[00:03:58] + bitrate: 384 kbps, samplerate: 48000 Hz
[00:03:58] + mixdown: Dolby Pro Logic II
[00:03:58] + encoder: AAC (Apple AudioToolbox)
[00:03:58] + bitrate: 160 kbps, samplerate: 48000 Hz
[00:03:58] * audio track 2
[00:03:58] + decoder: English (AC3) (5.1 ch) (track 2, id 0x1519)
[00:03:58] + bitrate: 384 kbps, samplerate: 48000 Hz
[00:03:58] + AC3 Passthru
[00:03:58] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[00:03:58] stream: error near frame 0: next_packet: sync lost @ 771176, regained after 188 bytes
[00:03:58] reader: first SCR 5247927611 id 0x1518 DTS 5247927611
[00:03:58] encx264: encoding at constant RF 20.000000
[00:03:58] encx264: unparsed options: level=3.1:vbv-bufsize=17500:vbv-maxrate=17500
[00:03:58] h264: "Chapter 1" (1) at frame 0 time 36000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x264 [info]: profile High, level 3.1
[00:03:58] macgui: Queue reloaded
[00:03:59] sync: first pts is 36000
[00:04:00] hb_ts_stream_decode - eof
[00:04:00] reader: done. 2 scr changes
[00:04:13] work: average encoding speed for job is 16.278273 fps
[00:04:13] sync: got 100 frames, 177 expected
[00:04:13] render: lost time: 0 (0 frames)
[00:04:13] render: gained time: 0 (0 frames) (0 not accounted for)
[00:04:13] h264-decoder done: 100 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:3 Avg QP:15.10 size: 78586
x264 [info]: frame P:69 Avg QP:19.80 size: 20325
x264 [info]: frame B:28 Avg QP:21.13 size: 7017
x264 [info]: consecutive B-frames: 50.0% 38.0% 0.0% 12.0%
x264 [info]: mb I I16..4: 10.7% 74.3% 15.0%
x264 [info]: mb P I16..4: 3.4% 13.3% 1.8% P16..4: 46.3% 15.2% 8.6% 0.0% 0.0% skip:11.4%
x264 [info]: mb B I16..4: 0.0% 0.3% 0.1% B16..8: 47.3% 6.1% 1.1% direct: 2.8% skip:42.3% L0:32.9% L1:57.1% BI:10.0%
x264 [info]: 8x8 transform intra:72.2% inter:72.9%
x264 [info]: coded y,uvDC,uvAC intra: 55.7% 82.4% 45.8% inter: 24.8% 39.0% 3.9%
x264 [info]: i16 v,h,dc,p: 19% 23% 13% 44%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 28% 23% 4% 6% 5% 11% 4% 6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 34% 18% 4% 7% 4% 11% 3% 4%
x264 [info]: i8c dc,h,v,p: 48% 25% 15% 12%
x264 [info]: Weighted P-Frames: Y:4.3% UV:4.3%
x264 [info]: ref P L0: 75.4% 8.0% 12.0% 4.6% 0.0%
x264 [info]: ref B L0: 93.6% 6.0% 0.4%
x264 [info]: ref B L1: 99.3% 0.7%
x264 [info]: kb/s:3111.65
[00:04:13] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[00:04:13] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[00:04:13] mux: track 0, 100 frames, 1834558 bytes, 3136.00 kbps, fifo 128
[00:04:13] mux: track 1, 193 frames, 75945 bytes, 129.82 kbps, fifo 256
[00:04:13] mux: track 2, 128 frames, 187392 bytes, 320.33 kbps, fifo 256
[00:04:13] stream: 108 good frames, 3 errors (3%)
[00:04:13] libhb: work result = 0
[00:04:14] macgui: incrementQueueItemDone there are no more pending encodes
[00:04:17] macgui: Queue reloaded