No Video

Krzysztof Konopko krzysztof.konopko at youview.com
Mon Jan 7 01:57:34 PST 2013


On 07/01/13 09:51, David Röthlisberger wrote:
> On 7 Jan 2013, at 09:17, Ian Davidson wrote:
>>
>> Hi Kris,
>>
>> You are correct when you say that you did not explain why my program didn't work - but I tried your advice and now have 2 programs which don't work.
>>
>> I use a gst_parse_launch, passing it a string such as 
>> "v4l2src norm=PAL ! videorate ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' ! queue ! mux. alsasrc ! audioconvert ! 'audio/x-raw,rate=44100,channels=2' ! queue ! mux. avimux name=mux ! filesink location=file.avi"
>> but when I run the program I get a message
>> GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed
> 
> Have you tried removing the single-quotes? When you pass that to gst-launch on the command line, the shell will have stripped the quotes off, so what gst-launch saw isn't the same as what you are passing to gst_parse_launch.
> 
> 

I actually tried to remove the quotes but when I checked whether it
works before suggesting it I found that there's no video when playing
from a file created by the C program.

I'm left wondering why gst_parse_lauch() behaves differently than
gst-launch-1.0 in this situation.

Kris


More information about the gstreamer-devel mailing list