aboutsummaryrefslogtreecommitdiffstats
path: root/lvc/basicconverters.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-06-02 19:42:57 -0500
committerJesús <heckyel@hyperbola.info>2020-06-02 19:42:57 -0500
commit92152b9ee059d322629ccbba269bc6af998eabfd (patch)
tree56e996b853877a41cef33267046b0816abb42416 /lvc/basicconverters.py
parent809cab455c2d2c19dd78df87f023419674a23cd4 (diff)
downloadlibrevideoconverter-92152b9ee059d322629ccbba269bc6af998eabfd.tar.lz
librevideoconverter-92152b9ee059d322629ccbba269bc6af998eabfd.tar.xz
librevideoconverter-92152b9ee059d322629ccbba269bc6af998eabfd.zip
Add WebM VP8
Diffstat (limited to 'lvc/basicconverters.py')
-rw-r--r--lvc/basicconverters.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/lvc/basicconverters.py b/lvc/basicconverters.py
index 2390282..807021f 100644
--- a/lvc/basicconverters.py
+++ b/lvc/basicconverters.py
@@ -41,6 +41,14 @@ class WebM_VP9(converter.FFmpegConverterInfo):
'-b:v 0 -acodec libopus -map_metadata -1')
+class WebM_VP8(converter.FFmpegConverterInfo):
+ media_type = 'format'
+ extension = 'webm'
+ parameters = ('-f webm -vcodec libvpx -g 240 -threads 8 '
+ '-quality good -crf 32 '
+ '-b:v 0 -acodec libvorbis -map_metadata -1')
+
+
class MP4(converter.FFmpegConverterInfo):
media_type = 'format'
extension = 'mp4'
@@ -150,10 +158,20 @@ webm_uhd = WebM_UHD('WebM UHD')
webm_hd = WebM_HD('WebM HD')
webm_sd = WebM_SD('WebM SD')
webm_vp9 = WebM_VP9('WebM VP9')
+webm_vp8 = WebM_VP8('WebM VP8')
mp4 = MP4('MP4')
theora = OggTheora('Ogg Theora')
-video_formats = ('Video', [webm_uhd, webm_hd, webm_sd, webm_vp9, mp4, theora])
+video_formats = ('Video',
+ [
+ webm_uhd,
+ webm_hd,
+ webm_sd,
+ webm_vp9,
+ webm_vp8,
+ mp4,
+ theora
+ ])
dnxhd_1080 = DNxHD_1080('DNxHD 1080p')
dnxhd_720 = DNxHD_720('DNxHD 720p')