Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • The input is live, so realtime filter is superfluous.
    – Gyan
    Commented Feb 27 at 3:55
  • @Gyan without the realtime filter, the delay gets shorter over time. It's not working without it.
    – Rotem
    Commented Feb 27 at 8:35
  • I tried this, but the experience is different then I was looking for. The UI from ffplay doesn't show up for 30s. Then it looks like the buffered 30s webcam stream is played during 5 seconds. Afterwards I see the realtime webcam stream without delay.
    – Juergen
    Commented Feb 27 at 9:31
  • @Juergen, You are right that it is taking forever for FFplay to start playing, but after it starts (with my webcam), the delay is 5 seconds constantly. What is the framerate of your input video source? Is it constant or variable framerate? Is it a real webcam, or simulated webcam? The solution is working with my "Microsoft® LifeCam HD-3000" webcam. I can't guess the reason your system behavior is different. I tested using FFmpeg and FFplay version 5.1.2-full_build-www.gyan.dev.
    – Rotem
    Commented Feb 27 at 10:34
  • Try: ffmpeg -an -f dshow -rtbufsize 1G -framerate 10 -i video="Microsoft® LifeCam HD-3000" -f lavfi -i testsrc=size=1280x1024:rate=5:duration=5 -filter_complex "[0:v]fps=5,setpts='(N+25)/5/TB',scale=1280x1024,setsar=1[v0];[1:v][v0]concat,realtime=10" -c:v mjpeg -pix_fmt yuvj420p -f mjpeg pipe: | ffplay pipe:
    – Rotem
    Commented Feb 27 at 11:20