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 552603 - video freeze while don't send any audio buffer to sink
video freeze while don't send any audio buffer to sink
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.19
Other All
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-17 09:33 UTC by EverChen
Modified: 2008-09-26 08:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description EverChen 2008-09-17 09:33:56 UTC
Steps to reproduce:
my pipeline obtain video link to xvimagesink and audio link to osssink, while i playback a file with audio and video data, it is ok; however i playback a file only with video or only with audio, it is not ok that picture or audio will be freeze, i  trace basesink, and found audio sink or video sink is preroll status and waiting first buffer to render. i don't know how to avoid it. my stream maybe only video in first 10 second, then audio occur. Anybody can advise me?



Stack trace:


Other information:
Comment 1 Sebastian Dröge (slomo) 2008-09-23 10:48:45 UTC
If you have all the sinks linked you'll get freezes because the pipeline wants data on all sinks. You can fix this by sending "filler segments", i.e. NEWSEGMENT events, for filling the gaps. Take a look at matroskademux' code for example
Comment 2 EverChen 2008-09-25 03:15:58 UTC
Hi, Sebastian, I don't understand matroska format, can you help me to introduce how to implement a filler segment while there is no audio data?
Comment 3 EverChen 2008-09-25 05:37:19 UTC
i see source of gstreamer, found 
Comment 4 EverChen 2008-09-25 07:20:23 UTC
do you mean we should often send a newsegment event to audio sink if have no audio data? but i tried and result still not be ok. video picture is still freezed. It sounds like audiosink is still preroll status.
Comment 5 Wim Taymans 2008-09-26 07:58:04 UTC
You can also use the async=false option so that the sink does not wait for data before prerolling.

Going to close this bug, it's not a bug.
Comment 6 EverChen 2008-09-26 08:01:00 UTC
i have tried async=false option, it is poor, the first several seconds, audio have noise.