AnsweredAssumed Answered

mfw_isink takes 4 seconds

Question asked by Javier Valcarce on Apr 24, 2015
Latest reply on Mar 19, 2017 by Abhilash Dharpure

Hi all.

 

I would like to know what is the best way to quickly reconfigure video source in gstreamer-0.10, I'm using a pipeline built in C (not gst-launch) witch uses a udpsnk element (rtsp) and a mfw_isink element for multi overlay.

 

Currently I send a stop command to the pipeline, reconfigure the rtspsnk element and then send a play command but the mfw_isink is terribly slow in its transition from READY to PLAYING (takes about 4 seconds) and, hence, the camera switching in very slow.

 

The code is something similar to this:

 

gst_element_set_state(pipeline_, GST_STATE_READY);

g_object_set (G_OBJECT (source_), "location", url.c_str(), NULL);

gst_element_set_state(pipeline_, GST_STATE_PLAYING);

// After 4 seconds the first video frame shows in the screen

The trace after those commands are:

 

[INFO]bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
[INFO]Product Info: i.MX6Q/D/S

vpudec versions

plugin: 3.0.8
wrapper: 1.0.38(VPUWRAPPER_ARM_LINUX Build on Oct  1 2014 16:38:10)
vpulib: 5.4.15
firmware: 2.3.10.40778

0002:33:24.916 [DEBUG   ] Pipeline state changed from PLAYING to PAUSED:

0002:33:24.920 [DEBUG   ] Pipeline state changed from PLAYING to PAUSED:

0002:33:24.923 [DEBUG   ] Pipeline state changed from PAUSED to READY:

0002:33:24.925 [DEBUG   ] Pipeline state changed from PAUSED to READY:

0002:33:24.938 [DEBUG   ] Pipeline state changed from READY to PAUSED:

0002:33:24.940 [DEBUG   ] Pipeline state changed from READY to PAUSED:

[INFO]bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0

can not create threadmfw_gst_isink_setcaps:1489

0002:33:28.903 [DEBUG   ] Pipeline state changed from PAUSED to PLAYING:

can not create threadmfw_gst_isink_setcaps:1489

0002:33:29.298 [DEBUG   ] Pipeline state changed from PAUSED to PLAYING:

reconfig win from (0,0-400,480:400x480) to (0,0-400,480:400x480)

 

 

 

 

Any sugestion?

 

Thanks.

Outcomes