[FFmpeg-user] .flv conversion to .avi

Jim Worrall coniophora at gmail.com
Sat Apr 23 21:24:56 CEST 2011


I'm trying to convert a .flv file (H.264/MPEG-4 AVC and AAC - MPEG-4 audio) to something that Windows Media Player can play on a normal Windows installation without installing additional codecs.  This could be in a .wmv, .avi, .mpg, and a few others I guess.
At first, recoding the video with -sameq gave 10x the file size of the original.  Then I realized I could keep the video intact with "-vcodec copy" and still make an avi.  

ffmpeg -i INPUT.flv -vcodec copy -acodec libmp3lame OUTPUT.avi

This played great with VLC on my Mac, but when I tried playing it on a Windows machine, only the audio would play.  I would be grateful if someone could recommend an efficient method of transcoding files like this, that would play with codecs available on a basic Windows install.

Here is the ffmpeg setup on my Mac.  It is built from a git snapshot just two days ago:

Jims-MacBook-Pro:~ jim$ ffmpeg
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr 21 2011 18:00:17 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --enable-runtime-cpudetect
  libavutil    51.  0. 0 / 51.  0. 0
  libavcodec   53.  0. 0 / 53.  0. 0
  libavformat  53.  0. 0 / 53.  0. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  0. 0 /  2.  0. 0
  libswscale    0. 13. 0 /  0. 13. 0

Thanks,
Jim





More information about the ffmpeg-user mailing list