diff options
Diffstat (limited to 'test/test_converter.py')
-rw-r--r-- | test/test_converter.py | 111 |
1 files changed, 91 insertions, 20 deletions
diff --git a/test/test_converter.py b/test/test_converter.py index 16b1ba4..a57974e 100644 --- a/test/test_converter.py +++ b/test/test_converter.py @@ -1003,8 +1003,26 @@ class TestConverterDefinitions(base.Test): }) self.check_size('iphone5', 1920, 1080) - def test_webmuhd1080p(self): - self.check_ffmpeg_arguments('webmuhd1080p', { + def test_webmvp8(self): + self.check_ffmpeg_arguments('webmvp8', { + 'acodec': 'libvorbis', + 'vcodec': 'libvpx', + 'b:v': '0', + 'g': '240', + 'crf': '32', + 'f': 'webm', + 'i': self.input_path, + 'output_file': self.output_path, + 'quality': 'good', + 's': '542x320', + 'strict': 'experimental', + 'threads': '4', + 'map_metadata': '-1', + }) + self.check_uses_input_size('webmvp8') + + def test_webm1080pvp8(self): + self.check_ffmpeg_arguments('webm1080pvp8', { 'ab': '128k', 'acodec': 'libvorbis', 'ar': '44100', @@ -1025,10 +1043,10 @@ class TestConverterDefinitions(base.Test): 'vcodec': 'libvpx', 'vprofile': '0' }) - self.check_size('webmuhd1080p', 1920, 1080) + self.check_size('webm1080pvp8', 1920, 1080) - def test_webmhd720p(self): - self.check_ffmpeg_arguments('webmhd720p', { + def test_webm720pvp8(self): + self.check_ffmpeg_arguments('webm720pvp8', { 'ab': '112k', 'acodec': 'libvorbis', 'ar': '44100', @@ -1049,10 +1067,10 @@ class TestConverterDefinitions(base.Test): 'vprofile': '0', 'map_metadata': '-1', }) - self.check_size('webmhd720p', 1080, 720) + self.check_size('webm720pvp8', 1080, 720) - def test_webmsd480p(self): - self.check_ffmpeg_arguments('webmsd480p', { + def test_webm480pvp8(self): + self.check_ffmpeg_arguments('webm480pvp8', { 'ab': '112k', 'acodec': 'libvorbis', 'ar': '44100', @@ -1072,7 +1090,7 @@ class TestConverterDefinitions(base.Test): 'vprofile': '0', 'map_metadata': '-1', }) - self.check_size('webmsd480p', 720, 480) + self.check_size('webm480pvp8', 720, 480) def test_webmvp9(self): self.check_ffmpeg_arguments('webmvp9', { @@ -1087,28 +1105,81 @@ class TestConverterDefinitions(base.Test): 'quality': 'good', 's': '542x320', 'strict': 'experimental', - 'threads': '8', + 'threads': '4', 'map_metadata': '-1', }) self.check_uses_input_size('webmvp9') - def test_webmvp8(self): - self.check_ffmpeg_arguments('webmvp8', { - 'acodec': 'libvorbis', - 'vcodec': 'libvpx', - 'b:v': '0', - 'g': '240', - 'crf': '32', + def test_webm1080pvp9(self): + self.check_ffmpeg_arguments('webm1080pvp9', { + 'ab': '128k', + 'acodec': 'libopus', + 'ar': '44100', + 'b:v': '4M', + 'cpu_used': '0', + 'deadline': 'good', 'f': 'webm', + 'g': '120', 'i': self.input_path, + 'lag_in_frames': '23', + 'map_metadata': '-1', 'output_file': self.output_path, - 'quality': 'good', + 'qmax': '51', + 'qmin': '11', + 's': '542x320', + 'slices': '4', + 'strict': 'experimental', + 'vcodec': 'libvpx-vp9', + 'vprofile': '0' + }) + self.check_size('webm1080pvp9', 1920, 1080) + + def test_webm720pvp9(self): + self.check_ffmpeg_arguments('webm720pvp9', { + 'ab': '112k', + 'acodec': 'libopus', + 'ar': '44100', + 'b:v': '2M', + 'cpu_used': '0', + 'deadline': 'good', + 'f': 'webm', + 'g': '120', + 'i': self.input_path, + 'lag_in_frames': '16', + 'output_file': self.output_path, + 'qmax': '51', + 'qmin': '11', 's': '542x320', + 'slices': '4', 'strict': 'experimental', - 'threads': '8', + 'vcodec': 'libvpx-vp9', + 'vprofile': '0', 'map_metadata': '-1', }) - self.check_uses_input_size('webmvp8') + self.check_size('webm720pvp9', 1080, 720) + + def test_webm480pvp9(self): + self.check_ffmpeg_arguments('webm480pvp9', { + 'ab': '112k', + 'acodec': 'libopus', + 'ar': '44100', + 'b:v': '768k', + 'cpu_used': '0', + 'deadline': 'good', + 'f': 'webm', + 'g': '120', + 'i': self.input_path, + 'lag_in_frames': '16', + 'output_file': self.output_path, + 'qmax': '53', + 'qmin': '0', + 's': '542x320', + 'strict': 'experimental', + 'vcodec': 'libvpx-vp9', + 'vprofile': '0', + 'map_metadata': '-1', + }) + self.check_size('webm480pvp9', 720, 480) def test_galaxymini(self): self.check_ffmpeg_arguments('galaxymini', { |