Transport Stream + Audio

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Vietwoojagig
Posts: 49
Joined: Thu Dec 17, 2009 8:38 am

Transport Stream + Audio

Post by Vietwoojagig »

Hi,

I tried to encode a recording from BBC One (HD), which has a 5.1 audio track. The source is a transport stream from my Kathrein USF 922 Sat receiver.

Before the main program starts, there are two minutes of commercials, only with stereo audio track, which then switches to 5.1, when the main program starts.
In handbrake I'm not able to select 5.1 AC3. I can only see 2.0 AC3.
Is it difficult to provide me the 5.1 option?
Deleted User 11865

Re: Transport Stream + Audio

Post by Deleted User 11865 »

Scan log please.
Vietwoojagig
Posts: 49
Joined: Thu Dec 17, 2009 8:38 am

Re: Transport Stream + Audio

Post by Vietwoojagig »

Code: Select all

[00:18:12] hb_init: starting libhb thread
[00:18:13] macgui: Handbrake Version: 4948svn x86_64 (2012091001)
[00:18:13] hb_init: starting libhb thread
[00:18:13] hb_init: starting libhb thread
[00:18:14] macgui: hbInstances path to this instance: /Applications/HandBrake.app
[00:18:14] macgui: hbInstance found instance pidnum:19245 at path: /Users/mediacenter/Desktop/HandBrake.app
[00:18:14] macgui: hbInstance found instance pidnum:19633 at path: /Applications/HandBrake.app
[00:18:14] macgui: hbInstance MATCH FOUND, our pidnum is:19633
[00:18:14] macgui: Pid for this instance:19633
[00:18:14] macgui: HBQueueController : My Pidnum is 19633
[00:18:19] macgui: didDimissReloadQueue number of hb instances:2
[00:18:19] macgui: didDimissReloadQueue First Button Chosen
[00:18:42] macgui: trying to open video_ts folder (parent directory chosen)
[00:18:42] macgui: Preview: Disabling HUD Controls
[00:18:42] macgui: scanning titles with a duration of 10 seconds or more
[00:18:42] hb_scan: path=/Users/mediacenter/Downloads/BBC One HD_BBC One HD (Ch_33)_Sep 01 20;18_82m_84285_1.ts, title_index=0
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Users/mediacenter/Downloads/BBC One HD_BBC One HD (Ch_33)_Sep 01 20;18_82m_84285_1.ts/BDMV/index.bdmv
libbluray/bluray.c:1471: nav_get_title_list(/Users/mediacenter/Downloads/BBC One HD_BBC One HD (Ch_33)_Sep 01 20;18_82m_84285_1.ts) failed (0x10215c400)
[00:18:42] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.11 for DVD access
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: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:18:43] dvd: not a dvd - trying as a stream/file instead
[00:18:43] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[00:18:43] build_program_map - Continuity Counter 2 out of sequence - expected 1
[00:18:43] build_program_map - Continuity Counter 3 out of sequence - expected 1
[00:18:44] Found the following PIDS
[00:18:44]     Video PIDS : 
[00:18:44]       0x1518 type H.264 (0x1b) (PCR)
[00:18:44]     Audio PIDS : 
[00:18:44]       0x151a type MPEG1 (0x3)
[00:18:44]       0x1519 type AC3 (0x81)
[00:18:44]     Subtitle PIDS : 
[00:18:44]     Other PIDS : 
[00:18:44]       0x151b type DVB Teletext (0x0)
[00:18:44]       0xf05 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:18:44]       0xf06 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:18:44]       0xf07 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:18:44]       0xf08 type ISO 13818-6 DSM-CC U-N msgs (0xb)
[00:18:44]       0x151c type DVB Subtitling (0x0)
[00:18:44]       0xf00 type ISO 13818-1 private section (0x5)
[00:18:44]       0xf01 type ISO 13818-1 private section (0x5)
[00:18:44]       0xf02 type ISO 13818-1 private section (0x5)
[00:18:44]       0xf03 type ISO 13818-1 private section (0x5)
[00:18:44]       0xf04 type ISO 13818-1 private section (0x5)
[00:18:44]       0x911 type ISO 13818-1 private section (0x5)
[00:18:44]       0x912 type ISO 13818-1 private section (0x5)
[00:18:44]       0x913 type ISO 13818-1 private section (0x5)
[00:18:44]       0x919 type ISO 13818-1 private section (0x5)
[00:18:44]       0x91a type ISO 13818-1 private section (0x5)
[00:18:44] stream id 0x151a (type 0x3 substream 0x0) audio 0x151a
[00:18:44] stream id 0x1519 (type 0x81 substream 0x0) audio 0x1519
[00:18:58] scan: decoding previews for title 1
[00:19:00] scan: audio 0x1519: AC-3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[00:19:00] scan: audio 0x151a: mp2, rate=48000Hz, bitrate=256000 Unknown (MPEG1) (2.0 ch)
[00:19:17] scan: 30 previews, 1920x1080, 25.000 fps, autocrop = 0/0/2/2, aspect 16:9, PAR 1:1
[00:19:17] scan: title (0) job->width:1904, job->height:1072
[00:19:17] stream: 40 good frames, 0 errors (0%)
[00:19:17] libhb: scan thread found 1 valid title(s)
[00:19:17] macgui: showNewScan: This is a new source item scan
[00:19:17] macgui: Preview: Enabling HUD Controls
Deleted User 11865

Re: Transport Stream + Audio

Post by Deleted User 11865 »

Short of cutting the commercials out, I don't think there's much you can do about it.

I guess now that we do support changing channel layouts, we could try to keep scanning audio even if we have enough information, and set the input channel layout to the "best" layout (even if that means upmixing for some of a good part of the stream). Or we could set it to the "most common" layout. I'm neither familiar enough with scan.c nor interested enough to implement this though.

As always, patches welcome.
Vietwoojagig
Posts: 49
Joined: Thu Dec 17, 2009 8:38 am

Re: Transport Stream + Audio

Post by Vietwoojagig »

Ok, understood.
My question is now:
I select for the AC3 2.0 track AC3-Passthrough, and this track changes form 2.0 to 5.1 at a certain time.
I then take the file, open it in Quicktime remove the beginning and end and save it and keep only the part, where I'm sure that it was initially 5.1.
What type of track will the file now contain? 2.0 or 5.1?
Deleted User 11865

Re: Transport Stream + Audio

Post by Deleted User 11865 »

Hmm, no idea. If you re-encode, the nightly builds should be able to handle the channel layout change, and the output will have the same layout throughout (in this case, 2-channel, since HandBrake won't let you pick a 5.1 mixdown).

But for passthrough, I have no idea. Handling layout changes is more complex as we can only write one "channel arrangement" (in the case of AC-3, acmod) per track at the container level.
Deleted User 11865

Re: Transport Stream + Audio

Post by Deleted User 11865 »

Just to clarify, my suggestion was to cut the commercials before feeding the source to HandBrake. That way, it should allow HB to detect that the track is 5.1.
Post Reply