Vikram Desai
Vikram Desai

Reputation: 63

Gstreamer : Fast Rewind of Video File

I am trying to rewind a video file with "-1" rate parameter. It rewinds for a small duration and then the playback stops. Finally the player gets killed. However the fast forward for the same video file works fine. I tested it with "2x" and "4x" speed. If I just seek backwards with certain duration (rate is "1.0" ), it goes to that timestamp and starts the playback as expected.

From what I understand, Seek event is handled in the Demuxer element of the pipeline, wherein:

  1. It flushes the currently queued stream data
  2. Creates a new-segment with updated values from the seek event.
  3. Once the new segment is ready with the new stream data, playback starts. From here on playback will be started,based on the new parameters set in new segment.

For the reverse playback, I'm not able to figure out where the pipeline is actually getting blocked. I'm able to see the demuxer element is fetching the data and pushing it on the new segment. Can anyone suggest or point where the issue could be?

Upvotes: 1

Views: 2013

Answers (1)

ensonic
ensonic

Reputation: 3450

Reverse playback might not be properly implemented here. Please file a bug, give as much details about the format (e.g. using gst-discoverer) and if possible link to the file.

Upvotes: 2

Related Questions