mpv-player / mpv-player/mpv

Unable to encode SVT-AV1 or h264_nvenc using MPV

Open
#10,014 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Important Information
Reproduction steps

Use a command-line or bat file with the following. Using a custom mpv-webm version has the same results.

mpv --no-config TestVideo.mp4 -ovc libsvtav1 -oac libopus -oacopts-add b=64k -o outputfile.mp4
pause
mpv --no-config TestVideo.mp4 -ovc h264_nvenc -ovcopts-add preset=p3 -oac libopus -oacopts-add b=64k -o outputfile.mp4
pause

Note: Encoding libaom-av1 works, but is extremely slow. NVENC only works with preset p1 or p2, anything slower will cause failure.
libsvtav1 and h264_nvenc work without any issue when using FFMPEG directly.

Expected behavior

Successful Encode

Actual behavior

Stuck or failed encode.

Log file

SVT-Log Failure.txt
NVENC-Log P2 Success.txt
NVENC-Log P3 Failure.txt

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two commands from the issue on Windows and compare the attached SVT and NVENC logs with the successful NVENC p2 case. Trace the encoding path involved in these commands and confirm that SVT-AV1 and h264_nvenc complete successfully with the requested options.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.