mjpegtools usage examples
December 28, 2009 00:11:20 Last update: January 15, 2010 04:01:46
- From http://www.videohelp.com/tools/MJPEG_Tools:
A sample command line to deinterlace dv footage, give a slight film look, pass it through a Spatial-Pre-Filter, Temporal-Noise-Filter, and a Spatial-Post-Filter, then encode to DVD complient mpeg2 video looks like this -
lav2yuv capture.dv | yuvdeinterlace -f | yuvdenoise -G 1,2,2 | mpeg2enc -f 8 -b 6000 -q 2 -o out.m2v
- From http://www.linux.com/archive/feature/40069, the actual video file can be used in place of edit list (eli) file:
# de-noice the video and scale for DVD output lav2yuv myvideo.eli | yuvdenoise | yuvscaler -O DVD | ... # add another filter lav2yuv myvideo.eli | yuvdenoise | yuvscaler -O DVD | yuvmedianfilter -T 3 | ... # pipe the output to yuvplay lav2yuv myvideo.eli | yuvdenoise | yuvscaler -O DVD | yuvmedianfilter -T 3 | yuvplay # extract the audio track lav2wav myvideo.avi > myvideo.wav lav2wav myvideo.eli | mp2enc -o myvideo.mp2 # extract the video track and encode for DVD lav2yuv myvideo.eli | <filter chain> | mpeg2enc -f 8 -o myvideo.m2v # mux together audio and video mplex -f 8 myvideo.mp2 myvideo.m2v -o myvideo.mpg