GNOME Bugzilla – Bug 748893
RTSP clock jumps after OSX sleep
Last modified: 2015-12-07 12:22:03 UTC
Only tried on OSX so far. Sender pipeline: ./test-launch "videotestsrc is-live=true pattern-18 ! timeoverlay font-desc=\",48\" ! video/x-raw,width=1280,height=720,framerate=30/1 ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96" Receiver pipeline: Just play the above using gst-play. Steps to reproduce: Start the above, go to lunch or otherwise leave the Macbook intact for maybe half an hour, come back, wake up the Macbook. Symptom: Both the bouncy ball from videotestsrc and the clock from timeoverlay will be jumping forward - they play back for maybe about a second, then jump forward for a couple of seconds, etc etc. Lame screen capture (from phone) available at http://ahiru.eu/~vivia/lunch_bug.mp4 Will test on Linux and report back.
!!! TYPO ALERT !!! In the sender pipeline, instead pattern-18 it should be pattern=18 of course. So, for the sake of pasting, the correct pipeline is: ./test-launch "videotestsrc is-live=true pattern=18 ! timeoverlay font-desc=\",48\" ! video/x-raw,width=1280,height=720,framerate=30/1 ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96" It is the sleep mode on OSX that triggers the bug. Enabling the "Prevent computer from sleeping automatically when the display is off" option prevents the bug. Also it works fine on Linux.
This might behave differently now since GstSystemClock uses mach_absolute_time (see #758012).
Can someone test and confirm?
Just did a quick test: works for me.
*** This bug has been marked as a duplicate of bug 758012 ***