seek event on

Dudi.r dudi017 at gmail.com
Wed Mar 26 07:03:27 PDT 2014


Hi,

I have a question about events, 

there are two pipelines  inside my code- transmitter and receiver
(loopback). 


the transmitter (pipe1): 

 filesrc location=file.pcap ! pcapparse src-port=56496 ! "application/x-rtp,
payload=(int)96, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264" ! udpsink port=[port] 

the receiver (pipe2): 

 udpsrc uri=udp://localhost:[port] ! "application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
payload=(int)96" ! gstrtpjitterbuffer ! decodebin2 ! autovideosink 

the pipelines not connected and when I want to run the code, this is the
commands: 

/* Start playing */ 
  gst_element_set_state (pipe2, GST_STATE_PLAYING); 
  gst_element_set_state (pipe1, GST_STATE_PLAYING); 

I can see the video, but when I send seek event to the second pipeline, the
seek failed and the video continues to run regularly: 

1. gst_element_query_position (data->pipe2, &format, &position) 
2. seek_event = gst_event_new_seek (data->rate, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH |  GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, position ,
GST_SEEK_TYPE_SET, -1); 
3. gst_element_send_event (data->pipe2, seek_event) 

is the event somehow sent also to pipe1 even if I send it to pipe2? 
is the problem with one of the elements in pipe2? 

I cant figure it out why the event doesn't effect on pipe2 (the receiver).. 


I will be happy for clarification about the event.. 
thanks!
Dudi.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/seek-event-on-tp4666132.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list