No Video

David Röthlisberger david at rothlis.net
Mon Jan 7 02:17:45 PST 2013


On 7 Jan 2013, at 10:09, Krzysztof Konopko wrote:
> On 07/01/13 10:06, Ian Davidson wrote:
>> Thanks David,
>> 
>> The program ran after removing the single quotes - but just like my
>> other program, the video does not show.
>> I don't know whether this is significant - I run the program and it is
>> supposed to start recording, then I press Ctrl-C to stop the recording. 
>> Have I got a problem where the file has not been 'finalised'?  If so, it
>> would be because I do not know how to capture the Ctrl-C and tell the
>> pipeline to stop.
>> 
>> Ian
> 
> OK, got it. You need to send EOS and wait for the EOS message rather
> than simple quit the main loop. AVI muxer needs to finalize the output.
> 
> gst_element_send_event (pipeline, gst_event_new_eos ());
> 
> Kris

Presumably when you were using gst-launch, you were running it with "-e"
("--eos-on-shutdown"; see the gst-launch-1.0 man page for details);
whereas in your C program it seems you have to send the end-of-stream
event yourself.



More information about the gstreamer-devel mailing list