Thomas Mayer wrote:
https://github.com/residuum/Bash-Scripts/blob/master/mencmjpeg
Usage: ./mencmjpeg original_video new_video Or: ./mencmjpeg original_video
I noticed mencoder occasionaly produce bad frames if the input file is malformed (Premiere seems to suck at exporting), so I switched to ffmpeg+mjpegtools:
for example: ffmpeg -loglevel quiet -y -i "INPUTFILE" -r 25 -f yuv4mpegpipe - | yuv2lav -v0 -b 2000 -q 90 -o OUTPUTFILE.avi
Charles