videorate: slows down over time
Hello,
I've noticed videorate with rate smaller than 1 works unexpectedly in pipeline with filesink and autovideosink. Video looks slowing down over time, but actually it drops more and more frames over time.
Pipeline that generates file needed to recreate the problem:
gst-launch-1.0.exe -e videotestsrc pattern="ball" num-buffers=150 ! video/x-raw ! x264enc ! mp4mux ! filesink location=input.mp4
Pipeline that shows unexpected effect of "slowing down":
gst-launch-1.0.exe -e filesrc location=input.mp4 ! decodebin ! videorate rate=0.5 ! autovideosink
Pipelines that show expected result:
gst-launch-1.0.exe -e videotestsrc pattern="ball" num-buffers=150 ! videorate rate=0.5 ! autovideosink
gst-launch-1.0.exe -e filesrc location=input.mp4 ! decodebin ! videorate rate=0.5 ! x264enc ! mp4mux ! filesink location=output.mp4
Tested using:
- Gstreamer 1.16.2 (both 64 and 32 bit)
- Windows 10
- codecs: h263, flv1, h264 mpeg 4 avc, theora