These are some of the command like stuff that I use regularly. I thought I will put all of this in one place; though you will find a lot more detail if you GoBiYa!
- Playing a VCD
- $ mplayer vcd://1
- $ mplayer-cdrom-device /dev/cdrom vcd://1
- Playing a DVD
- $ mplayer dvd://[title [start_title]-end_title] [options]
- Ripping a DVD
- $ mplayer -dumpstream dvd://2 -dumpfile ripped_output.avi
- Creating an MPEG-4 file from JPG
- all the JPEG files in the current directory
- $ mencoder mf://*.jpg -mf w=800:h=600:fps=1:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
- list of JPEG files (list.txt in current
directory contains the list of files to use as source, one per line)
- $ mencoder mf://@list.txt -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
- all the JPEG files in the current directory
- Combining two videos
- concatenate 2 avi files
- $ cat 1.avi 2.avi > 12.avi
- combing audio and video files
- $ mencoder -oac copy -ovc copy -o output_movie.avi -audiofile input_audio.mp2 input_video.avi
- concatenate 2 avi files
- Extracting audio from an avi file
- $ mplayer -ao pcm:file=output_audio.wav input.avi
- Rotating video by 90 degree
- $ mencoder -vf rotate=1 -o out_rotated_90.mov -oac pcm -ovc lavc in_original.mov
- Something that I had used for ;-)
$ mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1100:vhq:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01 -vf pp=md scale=640:480, -oac lavc -o output.avi
Comments