Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: roadhazard on July 10, 2025, 06:27:57 PM

Title: Please please please add subtitle support and a question about audio containers
Post by: roadhazard on July 10, 2025, 06:27:57 PM
I have lots of MKV files with soft-embedded subtitles. I need to cut out random parts of the videos but need to keep the subtitles. I absolutely love Avidemux's ability to cut my files and would be willing to pay a couple hundred dollars for a lifetime license or a perpetual monthly fee of say $5 if you add the ability to handle subs. Is this feature on your roadmap? LosslessCut does this but no matter what I try, I can't get a perfect cut when the MKV segments are merged back together. I always end up with this weird SPLIT second glitch at the spots I removed despite cutting on key frames. When I chop the same sections with Avidemux, they're perfect.

2nd question/request. When I import my MKVs into Avidemux, they'll often have multiple audio tracks. Example: English AC3, English DTS, Director Commentary, etc. When I chop up an MKV file, the output file lists all those individual audio tracks as: Track 1 [English], Track 2 [English], Track 3 [English] etc. When Avidemux is saving the new file, can it retain the original names for the audio tracks?

Thank you
Title: Re: Please please please add subtitle support and a question about audio containers
Post by: WTWASP on August 17, 2025, 02:42:21 PM
Have you done the SRT thing? SRTs will provide you the subs you need (for MP4s in VLC, anyway), and when editing the video, cutting parts out or whatever, well, you literally have your work cut out for you ; SRTs can be edited, but it's a lot of painstaking manual effort to change all the timestamps after the points of edit, and depending on how much dialogue there is, you could be looking at thousands of individual captions that need their timestamp adjusted to the new timestamp, post-edit.

I dunno if this helps you at all, or if I am even in the ballpark of your issue, but there it is, anyway.
Title: Re: Please please please add subtitle support and a question about audio containers
Post by: alexstorm on September 02, 2025, 11:43:53 PM
Handling subs is very complex to do well and it depends on what hardware and processing speed each end user has.  Very fast servers with hardware transcoding support can handle most embedded subtitles but even these server can fail to process in real time wen there are too many embedded subtitles for media coming from original blu-ray discs.  Blu-ray players are set to handle one sub at a time. Servers, even with hardware encoding support see all the subtitles and tries to handle them in sequence during the transcoding. Even a dedicated fast and hardware supported server may not be able to handle all he subtiles in real time.

Keeping many subtitles embedded in .mkv media including graphic subtitles .sub works fine with blu-ray playback but other players do not support .sub or some don' even do .ass files.  The .sub files need to be scanned, read by a optical character reader and converted to text based subtitles that the user's player, browser or TV app can accept.  This has to be done in real time or the sync goes bad or the media buffers before any playback starts.

This problem varies with every user, every hardware and every network / Internet connection speed and traffic.  In short, .sub graphic subtitles are fine for blu-ray and not really supported for video streaming.  Trying to support them would be pointless, because it depends on each user as to what bandwidth and hardware processing their hardware and software player can handle.

This type of subtitle support won't work with the current hardware.  In my opinion, there is no point in trying.  Take the embedded subtitles and convert them to text .srt.  Most players support this and there is no lag time for processing.  You are asking everything to be automatic so you don't have to prep anything, but video streaming that works smoothly has to be prepared and it is different than blu-ray playback.

There is software that can take out all embedded subtitles for all media in a directory and subdirectory.  It's possible to create a command line and point the software at 10,000 videos and the software will do them all when you click 'Enter'.  Average computer can do a 2 hour media remove embedded subtitles around 10 a minute.

The sync should be fine, but even if it needs adjustment there are online services that can adjust a subtitle in ms plus or minus in a few seconds.

The video collection is yours, so prep it correctly and remove the subtitles yourself with tools. MKVCleaver MKVtoolnix, full ffmpeg install.

Online services:
https://subtitletools.com/subtitle-sync-shifter
https://subtitletools.com/convert-sub-idx-to-srt-online

Online professinal sites that sell content make sure their playback has been prepped in this way with all sub converted ahead of time.  I do not believe any online streaming site includes embedded subtitles.  If someone knows of one, please do post it here.  These sites are running these support software to remove subtitles and convert them so their streaming playback works for everyone.  Doing it automatically is not reasonable to even attempt.