Open ignace72 opened 1 year ago
The issue is here:
Width : 1 480 pixels
Height : 1 080 pixels
The -vf scale=-1:720
filter tells ffmpeg to downscale your video to 720p while preserving the aspect ratio. Essentially, you're telling it to produce the video of this resolution:
Width : 986,666... pixels
Height : 720 pixels
Which will round up to 987x720. 987 isn't an even number, so you get the "Source Width" error.
There's an easy workaround, though:
-vf scale=-2:720
Specifying 2
instead of 1
will round up to an even number, and it should resolve the issue.
The correct command would be:
ffmpeg -i Movie.mkv -map 0:v:0 -pix_fmt yuv420p10le -vf scale=-2:720 -f yuv4mpegpipe -strict -1 - | SvtAv1EncApp -i stdin --preset 6 --keyint 240 --input-depth 10 --crf 30 --rc 0 --passes 1 --film-grain 0 -b av1.ivf
Or:
ffmpeg -i Movie.mkv -map 0:v:0 -c:v libsvtav1 -pix_fmt yuv420p10le -vf scale=-2:720 -g 240 -crf 30 -preset 6 -pass 1 -svtav1-params rc=0:film-grain=0 av1.ivf
This issue keeps showing up every time I click on the GitHub page instead of the GitLab one, so I felt obligated to answer. For any further issues, please use the GitLab repository, since the development moved there: https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues
Hello to all of you. I am having a problem converting a really old film. The characteristics of my source file:
My order is as follows:
ffmpeg -i Movie.mkv -map 0:v:0 -pix_fmt yuv420p10le -vf scale=-1:720 -f yuv4mpegpipe -strict -1 - | SvtAv1EncApp -i stdin --preset 6 --keyint 240 --input-depth 10 --crf 30 --rc 0 --passes 1 --film-grain 0 -b av1.ivf
My error message is as follows:Can someone point me in the right direction to solve my problem? Thank you in advance.