Log in

View Full Version : demux *.m2ts with ffmpeg


YouDontKnowMe
22nd February 2010, 18:05
can somebody tell me how I can demux a m2ts with ffmpeg? I opended the m2ts and ffmpeg does recognize the streams in it... can somebody give me the line I need for demuxing all streams?

thanks in advance


Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.97 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream #0.2[0x1101]: Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s
Stream #0.3[0x1102]: Audio: dca, 48000 Hz, 5.1, s16, 768 kb/s
Stream #0.4[0x1103]: Audio: dca, 48000 Hz, 5.1, s16, 768 kb/s
Stream #0.5[0x1200]: Subtitle: pgssub
Stream #0.6[0x1201]: Subtitle: pgssub
Stream #0.7[0x1202]: Subtitle: pgssub
Stream #0.8[0x1203]: Subtitle: pgssub
Stream #0.9[0x1204]: Subtitle: pgssub
Stream #0.10[0x1205]: Subtitle: pgssub
Stream #0.11[0x1206]: Subtitle: pgssub
Stream #0.12[0x1207]: Subtitle: pgssub
Stream #0.13[0x1208]: Subtitle: pgssub
Stream #0.14[0x1209]: Subtitle: pgssub
Stream #0.15[0x120a]: Subtitle: pgssub

Blue_MiSfit
22nd February 2010, 18:13
Easier still - don't use ffmpeg. Use eac3to :devil:!!


eac3to.exe input.m2ts -demux


What is your overall goal? Fully demuxing all parts of the transport stream is probably not necessary. You can probably have an easier time by isolating the tracks you need. With more info we can tailor something more efficient for you.

~MiSfit

YouDontKnowMe
22nd February 2010, 18:17
show me a debian x64 version of eac3to :P

YouDontKnowMe
22nd February 2010, 18:23
I want to encode some blurays on my debian lenny.... 64bit. And because I dont want to go always to my other maschiene I want to use console... Encoding should be no problem with mencoder and ffmpeg... and muxing afterwards aswell with mkvtoolnix... The only problem I got into is the demuxing of the m2ts so I have the audio streams... I dont need to demux all of them just a few but and the subtitles arent needed at all :D I just want to know how I can lets say stream 0.3 demux... thats all :D

Blue_MiSfit
22nd February 2010, 18:28
eac3to runs perfectly fine via WINE, but that introduces hassles of its own.

Look up the -map command in ffmpeg. This will allow you to dump specific streams to individual outputs. eac3to has excellent audio transcoding and robustness that ffmpeg probably lacks. I'm not a huge ffmpeg guy, but it will probably be fine with most BluRay titles. Exotic / proprietary audio formats like DTS-HD/MA might prove difficult. There are working E-AC3 and TrueHD decoders in libavcodec last I checked.

So, you can definitely get something working with ffmepg, but keep eac3to handy for difficult cases. If you want to just cruise easy street, use Virualbox or something to run a simple Windows XP VM :devil:!!

~MiSfit

YouDontKnowMe
22nd February 2010, 18:47
thanks a lot works like a charm :P

Blue_MiSfit
22nd February 2010, 21:09
Happy to be of assistance! I learned everything I know right here :) Pass it forward.