[FFmpeg-soc] libavfilter: filter setpts

Vitor Sessak vitor1001 at gmail.com
Fri Jan 11 17:25:34 CET 2008


Hi

Víctor Paesa wrote:
> Hi,
> 
> Here is attached a filter to manipulate the PTS.
> 
> Could you please review it?

I cannot spot anything wrong with it (apart a tiny nitpick), but I have 
to admit that there are some points in the filter API that I don't 
understand fully...

BTW, when you do slow motion/fast motion with this filter, do you get 
the right FPS printed by ffmpeg.c? I don't think it will work without 
the fix I proposed in the "libavfilter: fps ignored in ffmpeg command 
line" thread (but thinking again about it, I can skip step 4 and just 
use the suggested_rate field only to print the fps in the UI)...

Now the nitpick:

> Index: vf_setpts.c
> ===================================================================
> --- vf_setpts.c	(revision 0)
> +++ vf_setpts.c	(revision 0)
> @@ -0,0 +1,136 @@
> +/*
> + * Video pts modification filter

Maybe write here "presentation timestamp" instead of "pts" in case a 
user tries to read the source to see what this filter does...

-Vitor



More information about the FFmpeg-soc mailing list