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