Skip to content

Instantly share code, notes, and snippets.

@dvapelnik
Created December 6, 2014 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvapelnik/d7eec0ee5ff49fcba948 to your computer and use it in GitHub Desktop.
Save dvapelnik/d7eec0ee5ff49fcba948 to your computer and use it in GitHub Desktop.
#!/bin/sh
vlc -Idummy v4l2:// \
:v4l-vdev="/dev/video0" \
:input-slave=alsa://hw:0,0 :v4l-norm=3 \
:v4l-frequency=-1v4l-caching=300 \
:v4l-chroma="" \
:v4l-fps=-1.000000 \
:v4l-samplerate=44100 \
:v4l-channel=0 \
:v4l-tuner=-1 \
:v4l-audio=-1 \
:v4l-stereo \
:v4l-width=640 \
:v4l-height=480 \
:v4l-brightness=-1 \
:v4l-colour=-1 \
:v4l-hue=-1 \
:v4l-contrast=-1 \
:no-v4l-mjpeg \
:v4l-decimation=1 \
:v4l-quality=100 \
--sout "#transcode{vcodec=mp4v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=/home/dvapelnik/Videos/Captured/vlc_capture_`date +"%Y-%m-%d %H:%M"`.mp4}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment