Skip to content

Instantly share code, notes, and snippets.

@AstraLuma
Created September 3, 2013 01:40
Show Gist options
  • Save AstraLuma/6418823 to your computer and use it in GitHub Desktop.
Save AstraLuma/6418823 to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo modprobe v4l2loopback
# This works just fine, w/o sound
#gst-launch-0.10 filesrc location=$1 ! decodebin ! v4l2sink device=/dev/video0
# This fails to play
gst-launch-0.10 filesrc location=$1 ! decodebin name=decoder \
decoder. ! audioconvert ! alsasink \
decoder. ! videoconvert ! v4l2sink device=/dev/video0 \
# decoder. ! xvimagesink \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment