
what command line and output do you need, when this is a wish/enhancement request?Įxpected results: Copy EVERYTHING from the input container and remux it into the output container no offense, but that's the feeling I got so far. So it seems this isn't just about Matroska, because I can't set any disposition of a stream other than Forced or Default in any container that I tried so far.Cehoyos, this is 3rd or 4th time that I get impression that you are not even reading these messages on trac, but rather just reply to them, only to make a reply. ts containers, and all of them failed (disposition settings were ignored).
#Ffmpeg map streams iso#
As far as I can gather after further investigating about this by searching through ffmpeg-devel and trying to figure out the relevant parts of the source code, it seems that the dispositions "clean_effects", "hearing_impaired", "visual_impaired" (as an example) correspond to the audio_type field of the MPEG-2 ISO 639 language descriptor.īut I've tried setting these three flags to AC3 and mp2 audio streams inside different. Now I realize that the ability to set disposition types depends on the container (and maybe on the stream type?). Part of the confusion arises from lack of documentation and the fact that ffprobe always returns ALL disposition types irrespective of stream or container, but it should probably only return the dispositions that are applicable to a particular stream type inside a particular container. Initially when I created this ticket I thought that some dispositions (like "hearing_impaired") were kind of metadata switches that can be turned on/off for any type of stream inside any container.

This won't work (disposition is ignored with no errors/warnings):įfmpeg -i input.mkv -map 0 -c copy -disposition:s:2 hearing_impaired output.mkvįfmpeg -i input.mkv -map 0 -c copy -disposition:s:2 karaoke output.mkv mkv with a total of 3 subtitle streams:įfmpeg -i input.mkv -map 0 -c copy -disposition:s:2 forced output.mkv

This works for the third subtitle track inside an. However there are at least 2 more dispositions that can be set for subtitle streams: "karaoke" (for ass/ssa which are designed as karaoke subtitles) and "hearing_impaired" (for SDH subtitles). So obviously if you pass a disposition type of "attached_pic" to a subtitle it won't make any sense, hence nothing will change in the output disposition-wise (although there's no error or warning displayed to inform the user about this, and the documentation doesn't state which dispositions apply to which types of streams).

If this is a feature, then there's probably some internal checking by ffmpeg to determine whether the disposition type given by the user can be applied to the selected stream. I'm not sure whether this is a bug or a feature but I'm filing this since the documentation on disposition types is lacking details.
