


So the command that works best for one FLV may not be the same for another FLV. You would want to first use media inspection utility of choice to see what is used within the file itself before you choose to either just copy the video and/or audio stream or if you would want to transmux it from whatever it was to something new. c:v = codec(video) so: -c:v libx264 is same as using: -vcodec libx264 FYI same with this example: -c:v copy = -vcodec copyĪnd furthermore for FLVs be careful the flv file is the same as an avi in that it is a container which can contain any number of codecs for either video or audio.


Of course if trying to minimize space used you could specify just one to try and knock a little bit of size off the file ]. This is only required if using a codec which does not support multiple audio tracks in the same file then you would want to map the needed audio and not all. Is really the SAME as ffmpeg -i filename.flv -vcodec libvpx -acodec libvorbisĮssentially in the first you are using the shorter-handed options and in the second is the more written out variety.ĪLSO -map 0 is referring to audio tracks so if using something like mp4a which can handle multi audio tracks just fine you can leave this off to copy all audio streams to the resulting file. avconv -i inputfile.flv -map 0 -c:v libx264 -c:a copy outputfile.mp4 It is not a bad thing to use avconv, I just saw the one reply mentioning the depreciation warning which is essentially an empty message should be more of for an alternative to ffpmeg you could try avconv which is more true to the case here. the depreciation warning referring to avconv is telling you that they have created a newer util to try and replace ffmpeg, BUT it is SO extensively used that even if they tried to cut it off we would all be creating softlinks from avconv to ffmpeg anyways so they are not going to stop work and drop it.]] , but if you bother to read the ffmpeg compile guide and compile it from git it has none of the issues of the older versions that come stock in most OSes. Avconv and ffmpeg are essentially the same thing.
