Useful decision tree. One trap in the mux back step: ffmpeg -i video.mp4 -i newsubs.srt -c copy -c:s mov_text output.mp4 has no -map, so automatic stream selection picks one stream per type. I tried it on FFmpeg 6.1.1 with an MP4 that already had a subtitle track and two audio tracks: the output kept the old subtitle track, ignored the new SRT completely, and dropped the second audio track. That is the same selection behaviour you describe for -sn further down, so the same fix applies:
Thanks, that's a fair catch — and it is the same default stream selection I already warn about later for -sn. I'll update the mux-back example so it maps both inputs, drops the old subtitle track, and sets the language tag. Appreciate you testing it on 6.1.1.
Vidlify
Useful decision tree. One trap in the mux back step:
ffmpeg -i video.mp4 -i newsubs.srt -c copy -c:s mov_text output.mp4has no-map, so automatic stream selection picks one stream per type. I tried it on FFmpeg 6.1.1 with an MP4 that already had a subtitle track and two audio tracks: the output kept the old subtitle track, ignored the new SRT completely, and dropped the second audio track. That is the same selection behaviour you describe for-snfurther down, so the same fix applies:That kept both audio tracks, replaced the subtitle with the edited one, and tagged it
enginstead ofund.