Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--thumbnail-from-video option to extract the thumbnail from the video #25271
Comments
|
For now, I've gone with the following as a post-process step on my
#!/bin/bash
# "$1" is the video
set -e
file=${1%.*}
ffmpeg -sseof -00:00:20 -i "$1" -frames:v 1 "$file.png"
ffmpeg -i "$file.m4a" -i "$file.png" -c copy "$file.with_cover.mp4"
rm "$1" "$file.png"
mv "$file.with_cover.mp4" "$file.m4a" |
|
For https://www.youtube.com/watch?v=cEFStFTtBxI, here's what Then there's https://www.youtube.com/watch?v=VzGxhMVd0pA, whose thumbnail is as tiny as it seems ( I might not want the author's thumbnail ( |






Checklist
Description
Feature request: A
--thumbnail-from-videooption to extract the thumbnail (to be used by the other thumbnail options) from the video (for better image quality).I'm personally going to use this with music videos that have a static image throughout the whole video. Some have a mostly static image, so to avoid corner cases, perhaps some further-refining options may be required. Like for: