[FFmpeg-devel] [RFC] How to make 2 AVStreams out of 1 PID in mpegts.

Ramiro Polla ramiro.polla
Thu Mar 26 02:04:13 CET 2009


Blu-Ray .m2ts files have a PID in which the same audio data is
interleaved both in TrueHD and AC3. The information to differ one PES
packet between the two codecs is in some PES extension flag.

Attached not-for-review patch hardcodes either one codec or the other,
skipping the unwanted packets.

What's the best course of action to support both codecs at the same
time? I suppose creating 2 AVStreams would be best, but that would
require lots of work on the code since it ties one PID to an AVStream.
Or maybe expecting the user to specify -acodec and choose TrueHD by
default if he doesn't?

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decode_bluray_m2ts.diff
Type: text/x-diff
Size: 2888 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090325/2d9f0d96/attachment.diff>

More information about the ffmpeg-devel mailing list