FFmpeg Tips
NOTE: This for now includes mencoder as it’s a tool based off ffmpeg.
Where $1 is the input file $2 is the output.
To scan a stream for errors
ffmpeg -v 5 -i $1 -f null -
Convert to android phone [mp4, x264 (500br, 480p), aac 2ch]
mencoder $1 -o $2 -vf scale=480:-10,harddup -lavfopts format=mp4 -faacopts mpeg=4:object=2:raw:br=128 -channels 2 -srate 48000 -oac faac -ovc x264 -sws 9 -x264encopts nocabac:level_idc=30:bframes=0:global_header:threads=auto:subq=5:frameref=6:partitions=all:trellis=1:chroma_me:me=umh:bitrate=500 -of lavf