Updating FFmpeg’s MPEG-TS Muxer for Extensive Codec Output Support

Started by Simon744, January 11, 2025, 05:49:20 AM

Previous topic - Next topic

Simon744

Hello, and thanks to the developers of Avidemux for this wonderful program. It works wonderfully and cuts almost frame-accurately. It's almost on par with VideoReDo with regards to its accuracy and consistency...or at least is so to me.

However, I'd like to ask that FFmpeg's MPEG-TS muxer employed by Avidemux be updated to include support for outputting all codecs that the said muxer supports natively. For example, support for Dolby E audio if it's not data type 28, also DVB and Teletext Subtitles. Programs like LosslessCut support these already because they rely on FFmpeg for their operations, and if Avidemux adds this, it'll make the program stand out even more.

Thanks in advance, and I hope this is considered.

eumagga0x2a

There is no infrastructure for soft subtitles in Avidemux yet, is very high on wishlist.

Regarding Dolby E: looks like an extremely niche feature, but please provide a sample video via WeTransfer, Mega, Dropbox or Google Drive which ffplay 7.0.2 is actually able to play. No promises here.

Simon744

Quote from: eumagga0x2a on January 12, 2025, 09:34:48 PMThere is no infrastructure for soft subtitles in Avidemux yet, is very high on wishlist.

Regarding Dolby E: looks like an extremely niche feature, but please provide a sample video via WeTransfer, Mega, Dropbox or Google Drive which ffplay 7.0.2 is actually able to play. No promises here.
Here's a sample: https://drive.google.com/file/d/1bU7Qu4Q46kS1MMyFcRCgZ7bH_vOpZ9Y1/view?usp=sharing

This was cut using LosslessCut, which  basically is a GUI for FFmpeg. So if LC cut this, so should FFmpeg CLI.

FFplay should play this back fine except when selecting the Dolby E, you'll hear just noise. It needs to be demuxed and decoded separately. But most importantly, FFmpeg has no problem manipulating this file.

Simon744

Forgot to say that even VirtualDub2, which I find Avidemux to be similar to, preserves this audio track when remuxing on Copy mode. Let me know it you need any more samples.

eumagga0x2a

Thank you, got the sample, but missing a sufficiently trivial way to actually play (i.e. decode) the Dolby E audio track, the Dolby-E-support in Avidemux is a non-starter.

Simon744

Quote from: eumagga0x2a on January 18, 2025, 08:37:31 PMThank you, got the sample, but missing a sufficiently trivial way to actually play (i.e. decode) the Dolby E audio track, the Dolby-E-support in Avidemux is a non-starter.
Thank YOU for the response! The thing with Dolby E is no editor really has to fully decode it when editing a file containing it. That's why the only way of getting something playable out of Dolby E is demuxing it first and then decoding and then transcoding to the codec of your choice.

See this: https://forum.videohelp.com/threads/400100-Dolby-E-Decoding-FFmpeg

Simon744

Even premium software like both of the VideoReDo suites don't fully decode or play back the Dolby E when editing them. All you're going to hear when trimming/cutting it is digital noise, the same noise you probably heard when you selected the Dolby E track in any media player.