When scaling the height on some videos, mpv fails as the new width is not divisible by 2, e.g. scaling a 1280x720 video to be 480px in height. However, the output is still "Encoded successfully!" even though no file is created.
The underlying problem of being unable to scale it due to the new dimensions should be fixed by using lavfi-scale=-2:480 instead of -1:.
But if I run the command manually in Terminal, I get the following output:
[encode-lavc] Opening video encoder: libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libx264]
[ffmpeg] libx264: width not divisible by 2 (853x480)
[encode-lavc] unable to open encoder (see above for the cause)
[encode-lavc] vo-lavc: encoded 0 bytes
[encode-lavc] ao-lavc: encoded 0 bytes
Could not initialize video chain.
Video: no video
Exiting... (Quit)
[encode-lavc] Called a function on a failed encoding context. Bailing out.
[ao/lavc] not even ready to encode audio at end -> dropped
mpv version and platform
Description
When scaling the height on some videos, mpv fails as the new width is not divisible by 2, e.g. scaling a 1280x720 video to be 480px in height. However, the output is still "Encoded successfully!" even though no file is created.
The underlying problem of being unable to scale it due to the new dimensions should be fixed by using
lavfi-scale=-2:480
instead of-1:
.Log file
https://pastebin.com/r5eYzpUW
But if I run the command manually in Terminal, I get the following output: