Skip to content

Instantly share code, notes, and snippets.

@diablowu
Created March 22, 2015 00:07
Show Gist options
  • Select an option

  • Save diablowu/a8a9c0bd691c5e3df766 to your computer and use it in GitHub Desktop.

Select an option

Save diablowu/a8a9c0bd691c5e3df766 to your computer and use it in GitHub Desktop.
streaming mp4v codec using a video device in vlc cli
#!/bin/bash
sudo -u pi /usr/bin/vlc -d --pidfile /tmp/vlc.pid -I dummy \
v4l2:// :v4l2-dev=/dev/video0 \
:v4l2-width=320 :v4l2-height=240 :live-caching=300 \
--sout="#transcode{vcodec=mp4v,vb=300,scale=1}:http{dst=:8080/stream.ts}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment