mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:06:12 +00:00
add new image params
This commit is contained in:
parent
f9ba260a19
commit
d7bdb744ca
44 changed files with 520 additions and 206 deletions
|
|
@ -299,6 +299,9 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: Output in webp for smaller sizes
|
||||
// -f image2 -f webp
|
||||
|
||||
// Use ffmpeg to sample 100 (we can drop this if required using thumbnail=50 for 50 frames) frames and pick the best thumbnail. Have a fall back just in case.
|
||||
var args = useIFrame ? string.Format("-i {0} -threads 0 -v quiet -vframes 1 -vf \"{2},thumbnail=30\" -f image2 \"{1}\"", inputPath, "-", vf) :
|
||||
string.Format("-i {0} -threads 0 -v quiet -vframes 1 -vf \"{2}\" -f image2 \"{1}\"", inputPath, "-", vf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue