Debugging video jerking problem

Wolfgang Grandegger wg at grandegger.com
Fri Dec 7 10:02:52 UTC 2018


Hello,

hmm, the long story: My camera records AVCHD video with 1920x1080 pixel
and 50 frames/sec. Then I convert it to an 50 FPS AVI raw video using:

  $ ffmpeg -i input.mts -vcodec rawvideo -y output-50fps.avi

To get the same video running at 60 FPS I do:

  $ ffmpeg -i input.mts -filter:v "setpts=0.83333333*PTS" \
         -r 60 -vcodec rawvideo -y output-60fps.avi

I assume that this video uses the same raw frames just with different
time stamps. What do I miss?

Thanks,

Wolfgang.

Am 07.12.2018 um 10:13 schrieb Ian Davidson:
> You start with a video recorded at 50 fps and convert it to 60 fps.  So,
> for each 5 frames of the original video, something has to 'invent' 1
> extra frame.  It is never going to be 'perfect'.
> 
> 
> On 06/12/18 19:50, Wolfgang Grandegger wrote:
>>
>> Not sure if I understand you correctly. I do not change FPS on the fly.
>> I convert my MJPEG video from 50 to 60 FPS on the remote side with
>>
>>    $ ffmpeg ... -filter:v "setpts=0.83333333*PTS" -r 60 ...
>>
>> and then send it to the network. The video with 50 FPS is recorded
>> and displayed fine. The one with 60 FPS causes jerking on the display.
>> The jerking is also visible on the recorded video... hm, can I assume
>> that the "rtpjitterbuffer" calculated jerky timestamps then?
>>
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list