Difference between revisions of "Video Tools"
From RobolaboWiki
Line 73: | Line 73: | ||
<pre> | <pre> | ||
ffmpeg -i <INPUT_FILE.mpg> -y -f flv -ar 44100 -ab 64000 -ac 1 -acodec libmp3lame <OUTPUT_FILE.flv> | ffmpeg -i <INPUT_FILE.mpg> -y -f flv -ar 44100 -ab 64000 -ac 1 -acodec libmp3lame <OUTPUT_FILE.flv> | ||
+ | ffmpeg -i <INPUT_FILE.avi> -y -f flv -ar 44100 -ab 64 -ac 1 SOSingleCommReal.swf <OUTPUT_FILE.swf> | ||
</pre> | </pre> |
Revision as of 20:38, 8 December 2013
Contents
Convert MTS to AVI
ffmpeg -i <INPUT_FILE.mts> -threads 2 -deinterlace -f avi -r 25 -vcodec libxvid -vtag XVID \ -aspect 16:9 -maxrate 1800k -b 1500k -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2 -trellis -aic \ -cmp 2 -subcmp 2 -g 300 -acodec libmp3lame -ar 48000 -ab 128k -ac 2 <OUTPUT_FILE.avi>
NOTE: Add the following lines to /etc/apt/sources.list
deb http://deb-multimedia.org squeeze main non-free deb-src http://deb-multimedia.org squeeze main non-free deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
If a signature is missing use the following command:
apt-get -y --force-yes install deb-multimedia-keyring; apt-get update
From PPM to AVI
PPM to PNG
Same dir
for f in *.ppm; do f2=`basename "$f" ppm`png; echo "$f -> $f2"; convert "$f" "$f2"; done
Other dir
# Type on Origin, where ppm's are for f in *.ppm; do f2=`basename "$f" ppm`png; echo "$f -> $f2"; convert "$f" <ending_directory>/"$f2";done
PNG to MPEG4
Same dir
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
Other dir
# Type on Origin, where png's are mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <ending-directory>/output.avi
More info
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html http://www.tevs.eu/blog_8.html
Videos from YouTube
http://www.down-tube.com/es/
Convert FLV to AVI
ffmpeg -i <INPUT_FILE.flv> <OUTPUT_FILE.avi>
Convert AVI/MPG to FLV/SWF
ffmpeg -i <INPUT_FILE.mpg> -y -f flv -ar 44100 -ab 64000 -ac 1 -acodec libmp3lame <OUTPUT_FILE.flv> ffmpeg -i <INPUT_FILE.avi> -y -f flv -ar 44100 -ab 64 -ac 1 SOSingleCommReal.swf <OUTPUT_FILE.swf>