Skip to content

Videos: ffmpeg framerate (-r) option incorrect when using h264_nvenc #2442

@abgd1234

Description

@abgd1234

When NVENC is used, the call to ffmpeg sets the framerate to 30 before -i. This causes ffmpeg to interpret the input video as 30fps, even when it isn't.

case NvidiaEncoder:
// ffmpeg -hide_banner -h encoder=h264_nvenc
result = exec.Command(
ffmpegBin,
"-r", "30",
"-i", fileName,

To fix this, "-r", "30", should be placed after "-i", fileName, in line with the other non-NVENC cases.

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedHelp with this would be much appreciated!videoVideo Formats, Transcoding, FFmpeg, Streaming & Co

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions