I was playing around with opening a HD transport stream containing H.264 video with AAC-HE audio. This is what HandBrake thinks about it:
I'm thinking that what I need to do to get this to work is figure out how to identify H.264 video, and just pass it through, how to identify AAC-HE audio, and pass it to FAAD2 for decoding and then encode as per usual using faac.
Does all of this sound doable?
Code: Select all
[18:45:55] file is MPEG Transport Stream
[18:45:55] hb_ts_stream_find_pids - found the following PIDS
[18:45:55] Video PIDS :
[18:45:55] 0xffffffff (-1)
[18:45:55] 0xfa (250)
[18:45:55] 0x12c (300)
[18:45:55] 0x3ea (1002)
[18:45:55] 0x3fc (1020)
[18:45:55] 0x3fc (1020)
[18:45:55] 0x20 (32)
[18:45:55] 0xfa (250)
[18:45:55] 0x12c (300)
[18:45:55] 0x3ea (1002)
[18:45:55] 0x3fc (1020)
[18:45:55] 0x20 (32)
[18:45:55] 0xfa (250)
[18:45:55] 0x12c (300)
[18:45:55] 0x3ea (1002)
[18:45:55] 0x3fc (1020)
[18:45:55] 0x420 (1056)
[18:45:55] 0x0 (0)
[18:45:55] 0x0 (0)
[18:45:55] 0x0 (0)
[18:45:55] 0x0 (0)
[18:45:55] 0x0 (0)
[18:45:55] 0x0 (0)
[18:45:55] 0x0 (0)
[18:45:55] 0x0 (0)
[18:45:55] 0x1b00 (6912)
[18:45:55] 0xb11 (2833)
[18:45:55] 0x606 (1542)
[18:45:55] 0x1b05 (6917)
[18:45:55] 0xb11 (2833)
[18:45:55] 0x506 (1286)
[18:45:55] 0x111b (4379)
[18:45:55] Audio PIDS :
[18:45:55] 0xfa (250)
[18:45:55] 0x12c (300)
[18:45:55] 0x3ea (1002)
[18:45:55] 0x3fc (1020)
[18:45:55] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:55] hb_sample_pts: couldn't find video packet near 534542
[18:45:55] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:55] hb_sample_pts: couldn't find video packet near 1603627
[18:45:55] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:55] hb_sample_pts: couldn't find video packet near 2672712
[18:45:55] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:55] hb_sample_pts: couldn't find video packet near 3741797
[18:45:55] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:55] hb_sample_pts: couldn't find video packet near 4810882
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 5879967
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 6949052
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 8018137
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 9087222
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 10156307
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 11225392
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 12294477
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 13363562
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 14432647
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 15501732
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0xffffffff
[18:45:56] hb_sample_pts: couldn't find video packet near 16570817
[18:45:56] transport stream pid 0xfa (type 0x1b) isn't audio
[18:45:56] transport stream pid 0x12c (type 0x11) is MPEG audio id 0xc1
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0x3ea
[18:45:56] transport stream pid 0x3ea (type 0xb) isn't audio
[18:45:56] hb_ts_stream_getPEStype: EOF while searching for PID 0x3fc
[18:45:56] transport stream pid 0x3fc (type 0x6) isn't audio