After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755332 - AppSrc restart problem
AppSrc restart problem
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
1.5.91
Other other
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-21 09:42 UTC by swor
Modified: 2015-10-11 09:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description swor 2015-09-21 09:42:10 UTC
Hi all, 

I have a pipeline with appsrc (on iOS) of type 
appsrc --> rtph264pay --> udpsink 

It works fine as long as I don't restart it. 
This pipeline run on a thread which I close and start again 

When I do restart this pipeline it takes more time to start when the previous time. (matter of tens of seconds) 

I also tried to run pipeline of type 
videotestsrc --> x264enc --> rtph264pay --> udpsink 
Restarting this pipeline induced no delay. 

It seems like the problem is 'appsrc'-'s resources. 

What can be the reason for this and how can I fixit. (or restart differently). 

PS. 
I am using the standard appsrc code taken from the tutorials. 

Thanks
Comment 1 Sebastian Dröge (slomo) 2015-09-22 10:44:13 UTC
Can you provide some example code that reproduces this problem?
Comment 2 swor 2015-09-24 14:54:20 UTC
For testing I made simple appsrc pipeline which is being restarted a few times the sample project runs on Win64.

It is located in:
https://github.com/EduardAtReporty/AppSrcTester

For comilation/running:

1. git clone https://github.com/EduardAtReporty/AppSrcTester
2. Open the project with VisualStudio 13
3. Make sure GStreamer linkage path is correct
4. Set project to x64 (instead of Win32)
5. Run

Expected Result: The stream should start immediately after the restart just like in the first time

Actual Result: Each time the stream restarts there is a delay that's being added to the pipeline. Eventually the delay in the restart will reach above 10 seconds.

I will appreciate your help in trying to figure out what's the problem.
Comment 3 swor 2015-10-11 07:35:29 UTC
Not GStreamer bug rather its my configuration of appsrc was wrong.
Comment 4 Sebastian Dröge (slomo) 2015-10-11 09:38:10 UTC
Can you let us know what the problem was?