> 2.) As far as I can tell, kmsgrab (like x11grab or other screen devices) > wants a constant frame rate value (-r). > [...] This is exactly how camera input is > recorded on mobile devices, as they're all variable frame rate, and it > works fine. kmsgrab should do the same.
Wouldn't this work the same as camera devices that change frame rate with exposure rate? I'm using a Raspberry Pi camera that slows down the frame rate as it gets darker, and using -use_wallclock_as_timestamps seems to work for that. I also combine it with -vsync 1 to duplicate the frames so I get a constant FPS in the output video but I think -vf fps would probably be better. Maybe you need to mess with the setpts or setts filters to get accurate timing but I'm pretty sure it's all doable already. At least I can produce a fixed-framerate video that runs at the correct speed when taken from a variable-framerate V4L2 camera device, so it should be similar, assuming of course kmsgrab only provides a frame upon pageflipping or similar. If it's just sampling the screen contents at regular intervals then none of this will work and you'll probably get bad tearing in the recorded video, so hopefully it's not done that way. Cheers, Adam. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".