#2227: ffmpeg incorrectly identifying mjpeg as video stream instead of attachment -------------------------------------+------------------------------------- Reporter: ramitbhalla | Owner: Type: defect | Status: new Priority: normal | Component: Version: unspecified | undetermined Keywords: wtv | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+-------------------------------------
Comment (by cehoyos): Replying to [comment:45 ramitbhalla]: > Replying to [comment:43 cehoyos]: > > Is anything wrong with one of the following two commands? > > $ ffmpeg -i "Family Guy-S11E14-Call Girl.mp4" -qscale 2 out.avi > > $ ffmpeg -i "Family Guy-S11E14-Call Girl.mp4" -map 0:2 out.jpg > > If yes that would (probably) indicate a bug. > > Taht's fine, it works and will work since there is ONLY 1 audio stream. What if there are 2 audio streams and you want to copy both, how will you do it? you can't use map 0:a since you need to add map 0:v and that will fail. The following should work fine: $ ffmpeg -i input_with_multiple_audio_channels -map 0:0 -map 0:1 -map 0:2 out.avi Please remember that generally -map 0 cannot work the way you seem to expect: The option -map 0 does not mean "copy all streams for which it makes sense" but "copy all streams". -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2227#comment:46> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac