Unable to encode SVT-AV1 or h264_nvenc using MPV
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Important Information
- mpv 0.34.0-235-g84821dbcb6 (Build with media-autobuild_suite)
- mpv-x86_64-20220320-git-f871294
- Windows 10 21H1
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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