[FFmpeg-user] Let ffmpeg pick correct fps from stdin

Moritz Barsnick barsnick at gmx.net
Fri Jan 15 10:52:57 CET 2016

On Fri, Jan 15, 2016 at 10:11:09 +0100, Moritz Barsnick wrote:
> Would it be worth an attempt to add an option to ffmpeg to take the
> timestamps from "arrival time" (time of day)? I'll have a look at this
> - sometime.

Oh, sorry, that option does exist: "-use_wallclock_as_timestamps".

If I record my incoming MJPEG multipart/alternative HTTP stream with
"-re -use_wallclock_as_timestamps 1", the timestamps look okay, though
astonishingly quite strictly aligned to full seconds. (My stream can
vary between 1 fps and 5 fps.)

(Why is "-use_wallclock_as_timestamps" documented as an integer [0,
INT_MAX-1] when it's use as a bool? I will submit a documentation
patch and an optional source patch to make it a bool.)


More information about the ffmpeg-user mailing list