From 9ed3dc13721eee5e6debd864f0befc08c7c461a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 13 Jun 2020 12:48:56 -0500 Subject: [PATCH] Fix specified sample rate 44100 is not supported in VP9 --- lvc/basicconverters.py | 9 +++------ test/test_converter.py | 3 --- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lvc/basicconverters.py b/lvc/basicconverters.py index 359bc18..c5a0adc 100644 --- a/lvc/basicconverters.py +++ b/lvc/basicconverters.py @@ -38,8 +38,7 @@ class WebM_UHD_VP9(converter.FFmpegConverterInfo1080p): parameters = ('-f webm -vcodec libvpx-vp9 -g 120 -lag-in-frames 23 ' '-deadline good -cpu-used 0 -vprofile 0 -qmax 51 -qmin 11 ' '-slices 4 -b:v 4M -acodec libopus -ab 128k ' - '-map_metadata -1 ' - '-ar 44100') + '-map_metadata -1') class WebM_HD_VP9(converter.FFmpegConverterInfo720p): @@ -48,8 +47,7 @@ class WebM_HD_VP9(converter.FFmpegConverterInfo720p): parameters = ('-f webm -vcodec libvpx-vp9 -g 120 -lag-in-frames 16 ' '-deadline good -cpu-used 0 -vprofile 0 -qmax 51 -qmin 11 ' '-slices 4 -b:v 2M -acodec libopus -ab 112k ' - '-map_metadata -1 ' - '-ar 44100') + '-map_metadata -1') class WebM_SD_VP9(converter.FFmpegConverterInfo480p): @@ -57,8 +55,7 @@ class WebM_SD_VP9(converter.FFmpegConverterInfo480p): extension = 'webm' parameters = ('-f webm -vcodec libvpx-vp9 -g 120 -lag-in-frames 16 ' '-deadline good -cpu-used 0 -vprofile 0 -qmax 53 -qmin 0 ' - '-b:v 768k -acodec libopus -ab 112k -map_metadata -1 ' - '-ar 44100') + '-b:v 768k -acodec libopus -ab 112k -map_metadata -1') class WebM_VP9(converter.FFmpegConverterInfo): diff --git a/test/test_converter.py b/test/test_converter.py index a57974e..5a605d4 100644 --- a/test/test_converter.py +++ b/test/test_converter.py @@ -1114,7 +1114,6 @@ class TestConverterDefinitions(base.Test): self.check_ffmpeg_arguments('webm1080pvp9', { 'ab': '128k', 'acodec': 'libopus', - 'ar': '44100', 'b:v': '4M', 'cpu_used': '0', 'deadline': 'good', @@ -1138,7 +1137,6 @@ class TestConverterDefinitions(base.Test): self.check_ffmpeg_arguments('webm720pvp9', { 'ab': '112k', 'acodec': 'libopus', - 'ar': '44100', 'b:v': '2M', 'cpu_used': '0', 'deadline': 'good', @@ -1162,7 +1160,6 @@ class TestConverterDefinitions(base.Test): self.check_ffmpeg_arguments('webm480pvp9', { 'ab': '112k', 'acodec': 'libopus', - 'ar': '44100', 'b:v': '768k', 'cpu_used': '0', 'deadline': 'good', -- 2.45.2