diff options
author | Jesús <heckyel@hyperbola.info> | 2020-06-02 18:27:48 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-02 18:27:48 -0500 |
commit | 809cab455c2d2c19dd78df87f023419674a23cd4 (patch) | |
tree | 72d6a6ca6df21100146fc316d33963ce258563bd /test/test_converter.py | |
parent | 0e4495fe7cd627fb6c4c0a4cfe286dcf033b1558 (diff) | |
download | librevideoconverter-809cab455c2d2c19dd78df87f023419674a23cd4.tar.lz librevideoconverter-809cab455c2d2c19dd78df87f023419674a23cd4.tar.xz librevideoconverter-809cab455c2d2c19dd78df87f023419674a23cd4.zip |
Improve test
Diffstat (limited to 'test/test_converter.py')
-rw-r--r-- | test/test_converter.py | 55 |
1 files changed, 53 insertions, 2 deletions
diff --git a/test/test_converter.py b/test/test_converter.py index 01af66b..1ecf786 100644 --- a/test/test_converter.py +++ b/test/test_converter.py @@ -31,9 +31,13 @@ def make_ffmpeg_arg_parser(): "-i", "-lag-in-frames", "-level", + "-map_metadata", "-maxrate", "-preset", "-profile:v", + "-qscale:a", + "-qscale:v", + "-quality", "-r", "-s", "-slices", @@ -388,7 +392,7 @@ class TestConverterDefinitions(base.Test): def test_mp4(self): self.check_ffmpeg_arguments('mp4', { - 'ab': '96k', + 'ab': '128k', 'acodec': 'aac', 'crf': '22', 'f': 'mp4', @@ -398,6 +402,7 @@ class TestConverterDefinitions(base.Test): 's': '542x320', 'strict': 'experimental', 'vcodec': 'libx264', + 'map_metadata': '-1', }) self.check_uses_input_size('mp4') @@ -788,6 +793,7 @@ class TestConverterDefinitions(base.Test): 'strict': 'experimental', 'vcodec': 'libvpx', 'vprofile': '0', + 'map_metadata': '-1', }) self.check_size('webmhd', 1080, 720) @@ -1040,9 +1046,52 @@ class TestConverterDefinitions(base.Test): 'strict': 'experimental', 'vcodec': 'libvpx', 'vprofile': '0', + 'map_metadata': '-1', }) self.check_size('webmsd', 720, 480) + def test_webmvp9(self): + self.check_ffmpeg_arguments('webmvp9', { + 'acodec': 'libopus', + 'vcodec': 'libvpx-vp9', + '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': '8', + 'map_metadata': '-1', + }) + self.check_uses_input_size('webmvp9') + + def test_webmuhd(self): + self.check_ffmpeg_arguments('webmuhd', { + 'ab': '128k', + 'acodec': 'libvorbis', + '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, + 'qmax': '51', + 'qmin': '11', + 's': '542x320', + 'slices': '4', + 'strict': 'experimental', + 'vcodec': 'libvpx', + 'vprofile': '0' + }) + self.check_size('webmuhd', 1920, 1080) + def test_galaxymini(self): self.check_ffmpeg_arguments('galaxymini', { 'ab': '160k', @@ -1086,13 +1135,15 @@ class TestConverterDefinitions(base.Test): def test_oggtheora(self): self.check_ffmpeg_arguments('oggtheora', { 'acodec': 'libvorbis', - 'aq': '60', 'f': 'ogg', 'i': self.input_path, 'output_file': self.output_path, 's': '542x320', 'strict': 'experimental', 'vcodec': 'libtheora', + 'qscale:v': '7', + 'qscale:a': '5', + 'map_metadata': '-1', }) self.check_uses_input_size('oggtheora') |