[FFmpeg-user] Use ffmpeg to delay webcam feed with dshow displayed locally

Ted Park kumowoon1025 at gmail.com
Thu Feb 14 23:28:43 EET 2019


> ./ffmpeg.exe -f dshow -video_size 160x120 -framerate 30 -i video="Integrated Webcam" -filter setpts=expr=PTS+10/TB -pix_fmt yuv420p -f sdl
ohhh wait. SDL gives you a hw surface to draw on if I understand correctly? So it will happily gobble up frames and draw them fast as it can whenever it gets it, I doubt they are even timestamped.

You need the 10 seconds of delayed frames to be stored anyway (I was thinking of keeping them in memory) so I would say just write to file and play back after delay. There is no output at realtime function.


More information about the ffmpeg-user mailing list