This is an old revision of multimedia from 18.08.2015 12:22 edited by EvaggelosBalaskas.
mencoder -sub SUBTITLES.srt -subcp iso-8859-7 -ovc lavc -oac lavc -lavcopts vcodec=mpeg4 acodec=libmp3lame -o VIDEO.MPEG4.avi VIDEO.avi mencoder -sub SUBTITLES.srt -subcp iso-8859-7 -ovc lavc -oac lavc -lavcopts vcodec=mpeg1 -o VIDEO.MPEG1.avi VIDEO.avi
mencoder -ovc help mencoder -oac help
Rip mp3 from avi
mencoder -ovc frameno -oac mp3lame -of rawaudio -o FILENAME.mp3 FILENAME.avi
convert mp3 to wav
for i in *.mp3; do mpg321 -w "`basename "$i" .mp3`.wav" "$i"; done mkisofs -J -R -o audio01.iso *wav wodim -v -pad speed=1 dev=/dev/sr0 -dao -swab *.wav
convert ogg to avi
mencoder out.ogv -o out.avi -ovc lavc -oac lavc
resize video file
mencoder file.avi -vf scale=640:400 -ovc lavc -lavcopts vcodec=mpeg4 -o file_640x400.avi
convert m4a to mp3
ffmpeg -i filename.m4a filename.mp3 for i in `ls -1 --color=no *.m4a`; do ffmpeg -i $i $i.mp3 && rm -f $i ; done
http://pvdm.xs4all.nl/wiki/ind[..]_to_MP4_using_ffmpeg
http://www.catswhocode.com/blo[..]mmands-for-all-needs
ffmpeg -formats ffmpeg -codecs
Convert wmv to avi (raw)
mencoder clip1.wmv -oac pcm -ovc raw -o tmp1.avi
join avi files
mencoder -oac copy -ovc copy intro.avi gamos.avi -o video.avi
ffmpeg -i VIDEO.flv -s 480x320 -vcodec mpeg4 -acodec libmp3lame -ar 16000 -r 13 -ab 32000 -aspect 3:2 VIDEO.mp4
ffmpeg -i VIDEO.flv -s 480x320 -vcodec mpeg4 -ab 128 -acodec aac VIDEO.mp4
mencoder Ldap_Attribute.ogv -ovc lavc -oac mp3lame -o Ldap_Attribute.avi
remove audio from a video file (avi)
ffmpeg -i input.avi -c copy -an output.avi
Using -an to remove audio
Convert bitrate
ffmpeg -i audio_file.mp3 -ab 192k newaudiofile.mp3