~heckyel/librevideoconverter

9ed3dc13721eee5e6debd864f0befc08c7c461a6 — Jesús 1 year, 3 months ago 582355e master
Fix specified sample rate 44100 is not supported in VP9
2 files changed, 3 insertions(+), 9 deletions(-)

M lvc/basicconverters.py
M test/test_converter.py
M lvc/basicconverters.py => lvc/basicconverters.py +3 -6
@@ 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):

M test/test_converter.py => test/test_converter.py +0 -3
@@ 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',