mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(media): encode gif-to-video WebM as yuv420p
GIFs decode to bgra/gbrap (alpha); libvpx-vp9 rejects those pixel formats so the encoder never opened (ffmpeg exit 234), breaking GIF->WebM for essentially every GIF. Flatten to yuv420p in the webm branch, matching what the mp4 branch already does.
This commit is contained in:
@@ -34,6 +34,10 @@ export function registerGifToVideo(app: FastifyInstance) {
|
|||||||
"0",
|
"0",
|
||||||
"-crf",
|
"-crf",
|
||||||
"32",
|
"32",
|
||||||
|
// GIFs decode to bgra/gbrap (alpha); libvpx-vp9 rejects those pixel
|
||||||
|
// formats, so flatten to yuv420p just like the mp4 branch does.
|
||||||
|
"-pix_fmt",
|
||||||
|
"yuv420p",
|
||||||
"-an",
|
"-an",
|
||||||
out,
|
out,
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user