Originally Posted by
smr54
http://forums.fedoraforum.org/showthread.php?t=255842
Found with the google term linux convert video to flash
It was about the second hit--note that it's completely untested on my part. (That's not an insult to your googling skills, just giving the terms, that this time at least, seem to have been successful.)
A little more googling indicates that ffmpeg -i my.avi my.flv will also work--no idea about the quality.
Interesting - you were able to find my own thread using Google and then give me a link for it? WOW
The suggested ffmpeg -i input_file.avi output_file.flv does NOT work, as most of the time, there is an error message like:
Code:
FFmpeg version SVN-r24044, Copyright (c) 2000-2010 the FFmpeg developers
built on Jul 21 2010 15:07:15 with gcc 4.5.0 20100716 (Red Hat 4.5.0-3)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' --extra-version=rpmfusion --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect
libavutil 50.20. 0 / 50.20. 0
libavcodec 52.79. 1 / 52.79. 1
libavformat 52.73. 0 / 52.73. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 1 / 1.20. 1
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, avi, from 'An.Idiot.Abroad.S01E01.WS.PDTV.XviD-aAF.avi':
Duration: 00:44:03.16, start: 0.000000, bitrate: 1112 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 25 tbr, 25 tbn, 25 tbc
Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
[libmp3lame @ 0x8722140] flv does not support that sample rate, choose from (44100, 22050, 11025).
Output #0, flv, to 'aaaaaa-demo.flv':
Metadata:
encoder : Lavf52.73.0
Stream #0.0: Video: flv, yuv420p, 624x352 [PAR 1:1 DAR 39:22], q=2-31, 200 kb/s, 1k tbn, 25 tbc
Stream #0.1: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)