From 434734021d3b1c4d3c6bb29f8b650e9e6ebd5843 Mon Sep 17 00:00:00 2001 From: Hyunchul Kim Date: Mon, 2 Nov 2020 01:18:47 +0900 Subject: [PATCH] Test --- requirements.txt | 3 ++- test-ffmpeg.py | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 test-ffmpeg.py diff --git a/requirements.txt b/requirements.txt index 46167cf..47a899c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ pillow python-magic python-magic-bin -markdown \ No newline at end of file +markdown +PythonVideoConverter \ No newline at end of file diff --git a/test-ffmpeg.py b/test-ffmpeg.py new file mode 100644 index 0000000..dd27cca --- /dev/null +++ b/test-ffmpeg.py @@ -0,0 +1,21 @@ +from converter import Converter +conv = Converter() + +info = conv.probe('1234.mov') + +convert = conv.convert('1234.mov', '111.mov', { + 'format': 'mp4', + 'audio': { + 'codec': 'aac', + 'samplerate': 11025, + 'channels': 2 + }, + 'video': { + 'codec': 'h264', + 'width': 720, + 'height': 400, + # 'fps': 25 + }}) + +for timecode in convert: + print(f'\rConverting ({timecode:.2f}) ...') \ No newline at end of file