Video playback freezes after seeking
Describe your issue
When seeking through a video file with gst-play-1.0
or with any other gstreamer-based players (like totem) the playback will sometimes freeze. Most of the time, the sound will continue to play until another seek is done. And at least for totem, when the video freezes but the audio is still playing, the time is also counting up.
When a freeze happens, seeking is still possible and a frame from that position is displayed, but playback is no longer possible.
Expected Behavior
Playback continues normally after seeking
Observed Behavior
Sometimes the video playback freezes after seeking, with the audio still playing. Seeking again will freeze both, but seeking will still update the video with a frame from the new position.
Setup
- Operating System: Fedora 40
- Device: Computer with Ryzen 7 6800H + NVIDIA GeForce RTX 3060
-
GStreamer Version: 1.22.12 (installed in Fedora 40), I also observed this behavior with main (87ec3bd3), 1.22.9 and 1.22.3 (compiled from source, tested via
./gst-env.py
) - Command line: gst-play-1.0 media-file.mp4
The issue did not show up with Fedora 38 and gstreamer 1.22, so I suspect some dependencies that came with Fedora 40 (nvidia decoder, ffmpeg, ..) as the cause. I dumped some logs with GST_DEBUG
but I couldn't do much with it. Please tell me what I can do or provide you to narrow this issue down.
Steps to reproduce the bug
- Generate dummy video:
ffmpeg -f lavfi -i testsrc=rate=60 -f lavfi -i "sine=frequency=1000" -to 05:00 -pix_fmt yuv420p -c:a aac dummy_aac.mp4
- Play video:
gst-play-1.0 dummy_aac.mp4
ortotem dummy_aac.mp4
- Seek with arrow keys or playback bar until the video freezes
The video and audio codec do not seem to matter, theora+aac, vp9+mp3, h264+opus, they all freeze.
How reproducible is the bug?
Always within seconds when seeking
Screenshots if relevant
simplescreenrecorder-2024-05-18_14.00.59.mkv
Solutions you have tried
Related non-duplicate issues
Additional Information
Videos without a audio track work fine, they do not freeze.