<div dir="ltr">Hey, <div><br></div><div>Are you sure your camera supports that format and resolution? Can you run guvcview or something similar to list your dongle's accepted formats and resolution?. Because I tested a pipeline similar to yours and I got no errors. </div><div><br></div><div><font face="monospace, monospace">gst-launch-1.0 -v avimux name=mux videotestsrc ! video/x-raw, format=YV12, width=720, height=576 ! videorate ! video/x-raw, format=YV12, framerate=25/1 ! videoconvert ! video/x-raw, format=YV12, width=720, height=576 ! jpegenc ! queue ! mux. audiotestsrc ! audio/x-raw, format=S16LE, rate=48000, channels=2 ! audiorate ! audioresample ! audio/x-raw,rate=44100 ! audioconvert ! audio/x-raw, channels=1 ! queue ! mux. mux. ! fakesi</font>nk<br></div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-08 12:13 GMT+01:00 greeny <span dir="ltr"><<a href="mailto:qrld@wp.pl" target="_blank">qrld@wp.pl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for your answer Sérgio Agostinho!<br>
I changed command to:<br>
<span class=""><br>
gst-launch-1.0 -v avimux name=mux v4l2src device=/dev/video1<br>
do-timestamp=true !\<br>
<br>
'video/x-raw,format=(string)YV12,width=(int)720,height=(int)576' !\<br>
               videorate ! 'video/x-raw,format=(string)YV12,framerate=25/1'<br>
! videoconvert !<br>
'video/x-raw,format=(string)YV12,width=(int)720,height=(int)576' !\<br>
               jpegenc  ! queue !\<br>
</span>               mux. pulsesrc<br>
device='alsa_input.pci-0000_00_1b.0.analog-stereo' !<br>
<span class="">'audio/x-raw,format=(string)S16LE,rate=(int)48000,channels=(int)2' !\<br>
               audiorate ! audioresample ! 'audio/x-raw,rate=(int)44100' !<br>
audioconvert ! 'audio/x-raw,channels=(int)1' ! queue ! mux. mux. ! filesink<br>
location=test.avi<br>
<br>
</span>then I got:<br>
<br>
Setting pipeline to PAUSED ...<br>
Pipeline is live and does not need PREROLL ...<br>
Setting pipeline to PLAYING ...<br>
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal<br>
data flow error.<br>
Additional debug info:<br>
gstbasesrc.c(2933): gst_base_src_loop ():<br>
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:<br>
streaming task paused, reason not-negotiated (-4)<br>
Execution ended after 0:00:00.000071814<br>
Setting pipeline to PAUSED ...<br>
/GstPipeline:pipeline0/GstPulseSrc:pulsesrc0: source-output-index = 11<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
<br>
What could be wrong?<br>
Here is output of the same command with -gst-debug-level=4 :<br>
<a href="http://pastebin.com/2NupVLVn" target="_blank">http://pastebin.com/2NupVLVn</a><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Capture-Easycap-audio-and-video-to-MJPEG-and-raw-sound-on-linux-tp4670613p4670645.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Capture-Easycap-audio-and-video-to-MJPEG-and-raw-sound-on-linux-tp4670613p4670645.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>