Skip to content

Instantly share code, notes, and snippets.

@codingtony
Last active August 29, 2015 14:14
Show Gist options
  • Save codingtony/05d3ab0b1d1b29fc4a93 to your computer and use it in GitHub Desktop.
Save codingtony/05d3ab0b1d1b29fc4a93 to your computer and use it in GitHub Desktop.
transcode low quality cvlc
#!/bin/sh
DEST=$1
cvlc v4l2:///dev/video0 :input-slave=alsa://hw:3,0 --sout '#transcode{vcodec=h264,vb=400,venc=x264{profile=baseline},scale=Auto,width=480,height=352,acodec=mp2,ab=24,channels=2,samplerate=44100}:standard{mux=mp4, access=file, dst='$DEST'}'
mplayer tv:// -tv driver=v4l2:norm=NTSC:alsa:amode=1:forcechan=2:audiorate=48000:adevice=hw.3,0:forceaudio:immediatemode=0
mencoder tv:// -tv driver=v4l2:norm=NTSC:width=720:height=480:fps=30:alsa:amode=1:forcechan=2:audiorate=48000:adevice=hw.3,0:forceaudio:immediatemode=0 -of mpeg -mpegopts format=dvd -oac lavc -ovc lavc -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=8000:vbitrate=5000:keyint=15:acodec=ac3:abitrate=192 -o test.mpg
mencoder tv:// -tv driver=v4l2:norm=NTSC:width=720:height=480:fps=30:alsa:amode=1:forcechan=2:audiorate=48000:adevice=hw.3,0:forceaudio:immediatemode=0 -ovc lavc -lavcopts vcodec=mpeg4:trell:v4mv:mbd=2:vbitrate=2000 -oac mp3lame -lameopts vbr=3 -vf eq2=1.0:1.0:0.0:2,kerndeint -o test.mpg
mencoder tv:// -tv driver=v4l2:norm=NTSC:width=720:height=480:fps=30:alsa:amode=1:forcechan=2:audiorate=48000:adevice=hw.3,0:forceaudio:immediatemode=0 -oac mp3lame -ovc xvid -xvidencopts fixed_quant=2:threads=4 -endpos 8:00:00 -vf yadif=0 -o file.avi
#works best for me :
mencoder tv:// -tv driver=v4l2:norm=NTSC:width=720:height=480:fps=30:alsa:amode=1:forcechan=2:audiorate=48000:adevice=hw.3,0:forceaudio:immediatemode=0 -oac mp3lame -ovc xvid -xvidencopts bitrate=1600:threads=4 -endpos 8:00:00 -vf yadif=0 -o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment