Created
July 27, 2011 04:58
-
-
Save rlm/1108713 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# GET AUDIO | |
gst-launch-0.10 \ | |
alsasrc device="plughw:1,0" ! audio/x-raw-int ! queue ! \ | |
audioconvert ! queue ! vorbisenc ! queue ! mux. \ | |
oggmux name=mux ! filesink location=whatever.ogg | |
# works | |
# GET VIDEO | |
gst-launch-0.10 \ | |
v4l2src device="/dev/video0" ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! \ | |
tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate ! \ | |
'video/x-raw-yuv,framerate=30/1' ! theoraenc ! queue ! mux. \ | |
oggmux name=mux ! filesink location=whatever.ogg | |
# also works | |
# GET AUDIO AND VIDEO | |
gst-launch-0.10 \ | |
alsasrc device="plughw:1,0" ! audio/x-raw-int ! queue ! \ | |
audioconvert ! queue ! vorbisenc ! queue ! mux. \ | |
v4l2src device="/dev/video0" ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! \ | |
tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate ! \ | |
'video/x-raw-yuv,framerate=30/1' ! theoraenc ! queue ! mux. \ | |
oggmux name=mux ! filesink location=whatever.ogg | |
# fails with | |
Setting pipeline to PAUSED ... | |
libv4l2: error setting pixformat: Input/output error | |
Pipeline is live and does not need PREROLL ... | |
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 640x480 | |
Additional debug info: | |
gstv4l2object.c(1920): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: | |
Call to S_FMT failed for YU12 @ 640x480: Input/output error | |
ERROR: pipeline doesn't want to preroll. | |
Setting pipeline to PAUSED ... | |
Setting pipeline to READY ... | |
Setting pipeline to NULL ... | |
Freeing pipeline ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment