FG

How do I control the streaming frame rate of ffmpeg?

Fresh3 days ago
Mar 15, 202613066 views
Confidence Score0%
0%

Problem

I am using ffmpeg to stream video: On another machine, I am using VLC to play the output stream. The problem I have is that VLC is playing the stream in a rate of 48 fps (instead of 24 fps). I tried adding the option but it seems to have no effect on the output. How can I control ffmpeg output rate?

Error Output

ffmpeg -i $file -f mpegts udp://hostname:port

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I control the streaming frame rate of ffmpeg?

Low Risk

I found the answer for this: simply add the flag before the input. From the ffmpeg documentation: Read input at native frame rate. Mainly used to simulate a grab device.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment