Last active
January 11, 2016 15:49
-
-
Save MaZderMind/e316fea68dd9e9cdcb4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
gst-launch-1.0 \ | |
v4l2src device=$HDMI2USB !\ | |
image/jpeg,width=1280,height=720 !\ | |
jpegdec !\ | |
videoconvert !\ | |
videorate !\ | |
video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1 !\ | |
queue !\ | |
intervideosink channel=v \ | |
\ | |
alsasrc device='hw:1,0' !\ | |
audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\ | |
queue !\ | |
interaudiosink channel=a \ | |
\ | |
intervideosrc channel=v ! mux. \ | |
interaudiosrc channel=a ! mux. \ | |
\ | |
matroskamux name=mux !\ | |
fdsink | pv >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment