Skip to content

Commit

Permalink
Support libopus encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Aplietexe authored and WyattBlue committed May 7, 2024
1 parent 8f11ab5 commit 0065948
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions auto_editor/utils/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Container:
av1_en = ["av1", "libaom-av1", "av1_nvenc", "av1_amf"]
prores_en = ["prores", "prores_videotoolbox", "prores_aw", "prores_ks"]
aac_en = ["aac", "aac_at", "libfdk_aac"]

opus_en = ["opus", "libopus"]

h265: DictContainer = {
"allow_video": True,
Expand All @@ -80,24 +80,24 @@ class Container:
"allow_subtitle": True,
"allow_image": True,
"vcodecs": h264_en + hevc_en + av1_en + ["vp9", "mpeg4", "mpeg2video", "mjpeg"],
"acodecs": aac_en + ["mp3", "opus", "flac", "vorbis", "libvorbis", "ac3", "mp2"],
"acodecs": aac_en + opus_en + ["mp3", "flac", "vorbis", "libvorbis", "ac3", "mp2"],
"vstrict": True,
}
ogg: DictContainer = {
"allow_video": True,
"allow_audio": True,
"allow_subtitle": True,
"vcodecs": ["libtheora", "theora"],
"acodecs": ["libvorbis", "vorbis", "flac", "opus", "speex"],
"acodecs": opus_en + ["libvorbis", "vorbis", "flac", "speex"],
"vstrict": True,
}

mka_audio = (
["libvorbis", "vorbis"]
+ aac_en
+ opus_en
+ [
"mp3",
"opus",
"flac",
"ac3",
"mp2",
Expand Down Expand Up @@ -172,11 +172,11 @@ class Container:
},
"opus": {
"allow_audio": True,
"acodecs": ["opus", "flac", "libvorbis", "vorbis", "speex"],
"acodecs": opus_en + ["flac", "libvorbis", "vorbis", "speex"],
},
"oga": {
"allow_audio": True,
"acodecs": ["flac", "libvorbis", "vorbis", "opus", "speex"],
"acodecs": opus_en + ["flac", "libvorbis", "vorbis", "speex"],
},
"flac": {
"allow_audio": True,
Expand All @@ -188,7 +188,7 @@ class Container:
"allow_audio": True,
"allow_subtitle": True,
"vcodecs": ["vp9", "vp8"] + av1_en,
"acodecs": ["opus", "vorbis", "libvorbis"],
"acodecs": opus_en + ["vorbis", "libvorbis"],
"scodecs": ["webvtt"],
"vstrict": True,
"sstrict": True,
Expand Down

0 comments on commit 0065948

Please sign in to comment.