Part2: Output-Selectors and send EOS and Internal GSTREAMER errors...

somnyrds tom.morrison at smith-nephew.com
Fri Nov 30 16:23:24 PST 2012


So, this again is the basic idea: I have a c-program that 'sorta' works that
can be reduced to this:

       video_source->output-selector- - - - >video encoder->avimux->filesink
                                                     \
                                                      \
                                                       v
                                                     Fakesink

The selector toggles every 5 seconds. I want to save each 5 second clip to a
unique file.
So, when the 5 second timer goes off, I send an EOS to video_source (to
flush and fix
the AVI file header).

      gst_element_set_state(video_source, GST_STATE_NULL);

My intention is to then wait until the EOS has actually occurred (which
means its flushed
and the file has been finalized) and then switch to the fakesink...

  In MVC: mxc_v4l_open
     device name is Mxc Camera
  Exiting Pipeline1 because: Error (000149A0): Internal GStreamer error:
negotiation problem.  
  Please file a bug at
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
  Stopped Playing (EOS) - Set State
  Now Cleanup/Delete pipeline
  
This is with gstreamer-0.10.35 (as is part1)

What could I be doing wrong?

Thanks in advance

Sincerely,

Tom Morrison




But, even before I get an EOS in the pipeline callback, I get
 - so I see 5 seconds worth in the file, and then
another 5 seconds (5 seconds later)...but, I am getting this:

   GStreamer-CRITICAL **: gst_segment_set_newsegment_full: assertion
`segment->format == format' failed

Why am I getting this?

Tom

ps: Part (2) will be coming soon - and it involves switching filesink
locations (filename) every time it switches to live video. 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Part2-Output-Selectors-and-send-EOS-and-Internal-GSTREAMER-errors-tp4657164.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list