[FFmpeg-devel] [PATCH] doc/examples/filtering_video: fix frame rate

Michael Niedermayer michaelni at gmx.at
Fri Dec 5 17:35:24 CET 2014


On Fri, Dec 05, 2014 at 03:52:23PM +0100, Piotr Fusik wrote:
> Hello,
> 
> I'm new to ffmpeg. I've started learning it by playing with the 
> filtering_video example.
> 
> I've noticed that for some mp4 files it plays with an incorrect frame rate:
> for some files it's twice too fast and for other files the delays are 
> completely skipped
> because the calculated delay values are too large.
> I can provide sample movies if needed.
> 
> I managed to correct the frame rate by setting time_base the way
> the other example, filtering_audio, does it. Please review my patch.
> 
> Thank you,
> Piotr

>  filtering_video.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 7a169d049a37bc28601cf69026746bf7d0dd43d1  0001-doc-examples-filtering_video-fix-frame-rate.patch
> From abd439d9f845d0057c562a82aa97a7f3a22cfc94 Mon Sep 17 00:00:00 2001
> From: Piotr Fusik <piotr at fusik.info>
> Date: Fri, 5 Dec 2014 15:47:05 +0100
> Subject: [PATCH] doc/examples/filtering_video: fix frame rate

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141205/3b4b7a94/attachment.asc>


More information about the ffmpeg-devel mailing list