Closed jtbates closed 12 years ago
Do you want me to add code to check the version and issue the correct command so that both are supported?
The ffmpeg commit that changed the syntax is 88bfe4518 http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88bfe4518bc31a111023d5c7f0b54b17955a735e
Versions 0.9 and newer contain this change
Hi JT,
before I merge this, I think it would be safer to actually check the ffmpeg version. Everybody has a different version of ffmpeg, it's a bit of a nightmare.
Agreed. I'll see if I can get to this tomorrow.
I think that should do it
Cool, did you test it on Mac and Linux?
Yes, ffmpeg 0.9 on MacOS and ffmpeg 0.8 on Ubuntu
Cool just merged it.
The map parameter syntax is now '-map 0:stream_id' instead of '-map 0.stream_id'. I changed it to 0:v:stream_id to be sure we get a video stream and not an audio stream.
Reference: http://ffmpeg-users.933282.n4.nabble.com/Invalid-stream-specifier-0-Stream-map-0-0-matches-no-streams-Changes-in-FFMPEG-map-option-td4091165.html http://ffmpeg.org/ffmpeg.html#Advanced-options