[FFmpeg-user] audio streams
rickcorteza at gmail.com
Wed Jan 11 14:23:29 CET 2012
On Jan 10, 2012, at 10:40 PM, Tim Nicholson wrote:
> On 10/01/12 13:19, Rick C. wrote:
>> Hi again,
>> I know that if a video has multiple audio streams that FFmpeg by default selects the "best" one and uses it, but is there a way to have all audio streams encoded in this case? Thanks!
> Yes, use -map and/or -map_channel as per the docs, or more simply if you only have one video -map 0 will ensure all incoming streams end up in the output stream...
So I have tried a few conversions with -map 0 and I can see that all the streams are being added, but I also experienced that the conversion never finishes and the ffmpeg output just hangs. It might be something with the specific videos I tried because they actually have 2 video streams. I will do some more testing but my question would be when I use -map it says the defaults are overridden. Is there not a way to allow all audio streams to come through for example, but for the video/subtitle streams keep the default behavior? Something like this is close:
-map 0:a -map 0:v:0 -map 0:s:0
But then it would always take the first video stream and not the video stream with the highest resolution...
More information about the ffmpeg-user