Saturday, December 17, 2022

How to download a single frame from a YouTube video with highest quality

How to download a single frame from a YouTube video, at specific timestamp, from highest video quality source:

ffmpeg -ss 3:01.5 -i $(youtube-dl -f bestvideo/best --get-url "https://www.youtube.com/watch?v=SL3FlgWQiS4") -vframes 1 -q:v 2 ytscreenshot.png
ffmpeg -ss 3:01.5 -i $(youtube-dl -f bestvideo/best --get-url "https://www.youtube.com/watch?v=SL3FlgWQiS4") -vframes 1 -q:v 2 ytscreenshot.png

Links

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.