Set thumbnail, if video data exists only in other streams of the file #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some flacs use a separate video stream for the thumbnail. In this case the thumbnail will be lost after the conversion. A solution could be to recognice if a thumbnail is missing and a video stream exists. In this case the video stream could be converted into an png and added as a thumbnail.
Adding a thumbnail with ffmpeg to an opus is quite complex because it needs to be converted as a data blob first. So I would prefer, using opusenc with a picture flag for the conversion.
https://opus-codec.org/docs/opus-tools/opusenc.html
This could also be a solution for future support of extracting audio of video streams
https://superuser.com/questions/538112/meaningful-thumbnails-for-a-video-using-ffmpeg
Combination of this 2 can be used to determine, if there is a thumbnail in a video stream:
ffprobe 01\ -\ Tongue\ Demons.flac -select_streams v -show_entries stream=index -v 0 -of compact=p=0:nk=1
ffprobe 01\ -\ Tongue\ Demons.flac -select_streams V -show_entries stream=index -v 0 -of compact=p=0:nk=1