mirror of https://github.com/VERT-sh/VERT.git
feat: apng & video to webp support
This commit is contained in:
parent
1c5cd9ea17
commit
9332c95721
|
|
@ -90,7 +90,13 @@
|
|||
cat === rootCategory ||
|
||||
categories[rootCategory!]?.canConvertTo?.includes(cat),
|
||||
);
|
||||
|
||||
// handle special cases
|
||||
if (from === ".gif") finalCategories.push("video");
|
||||
if (from === ".apng") {
|
||||
//finalCategories.push("image"); // -- buggy, magick can't convert from or to apng properly
|
||||
finalCategories = finalCategories.filter((cat) => cat !== "audio");
|
||||
}
|
||||
|
||||
// filter out categories that can't handle large files (due to browser/device limitations)
|
||||
if (file && file.isLarge()) {
|
||||
|
|
|
|||
|
|
@ -264,6 +264,8 @@ export class VertdConverter extends Converter {
|
|||
new FormatInfo("wmv", true, true),
|
||||
new FormatInfo("mov", true, true),
|
||||
new FormatInfo("gif", true, true),
|
||||
new FormatInfo("apng", true, true),
|
||||
new FormatInfo("webp", false, true), // for some odd reasons, ffmpeg only supports encoding webp and not decoding -- https://trac.ffmpeg.org/ticket/4907
|
||||
new FormatInfo("mts", true, true),
|
||||
new FormatInfo("ts", true, true),
|
||||
new FormatInfo("m2ts", true, true),
|
||||
|
|
@ -379,7 +381,9 @@ export class VertdConverter extends Converter {
|
|||
ws.onopen = () => {
|
||||
const speed = Settings.instance.settings.vertdSpeed;
|
||||
const keepMetadata = Settings.instance.settings.metadata;
|
||||
this.log(`opened ws connection to vertd for file ${input.name}`);
|
||||
this.log(
|
||||
`opened ws connection to vertd for file ${input.name}`,
|
||||
);
|
||||
const msg: StartJobMessage = {
|
||||
type: "startJob",
|
||||
data: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue