Closed karkirowle closed 3 years ago
Your mpv is fine you're just hitting a quirk with how JPEG is encoded.
The following works: mpv video.mp4 --frames=1 -vf scale=out_range=pc -o test_image.jpg
If you want to extract multiple frames (and not MJPEG) also consider vo-image
.
Thanks, this solves my issues!
There was one minor hiccup that I discovered during the debugging process, which will be a relatively obscure case for most users. Namely, that the combination of libass commit hash 9a2b38e8f5957418362e86b525f72794565deed and Lua didn't work for me.
However, this is solved by simply changing to the last hash of libass (as of 12th of July 2021).
After some tedious attempts, I built my own mpv version from source. It's not clear to me what are the list of dependencies that are needed for building so I went on a trial-and-error attempt based on the README.
This is the version info, see below:
When I attempt to run
mpv my_favourite_video.mp4 --loop-file=no --frames=1 -o='test_image.jpg'
I obtain the output
I guess it is some dependency that's missing, or a wrong FFmpeg version is built, Is there any way I could figure out what else I need to install to make this command work?