[Libav-user] Repeating frame while encoding using ffmpeg api

Nicolas George george at nsup.org
Thu Oct 2 19:44:41 CEST 2014


L'octidi 8 vendémiaire, an CCXXIII, Bradley O'Hearne a écrit :
> As soon as an actual working code sample emerges which proves that you can
> feed varying FPS to the encoder

There is no need for it to emerge, it already exists. Look at ffmpeg.c. You
can see for yourself:

ffmpeg -lavfi \
  'testsrc=r=1:d=60,settb=1/1000,setpts=N*1000+400*cos(PI*N)-400,showinfo' \
  -avoid_negative_ts 0 -r 1000 -y test.mkv

You can see the variable timestamps using ffprobe on the output file, and
you can see that MPlayer and ffplay both respect it.

You just did something wrong in your program.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141002/b2b78400/attachment.asc>


More information about the Libav-user mailing list