This commit is contained in:
Hyunchul Kim 2020-11-02 01:18:47 +09:00
parent 1231cfc9db
commit 434734021d
2 changed files with 23 additions and 1 deletions

View file

@ -2,3 +2,4 @@ pillow
python-magic
python-magic-bin
markdown
PythonVideoConverter

21
test-ffmpeg.py Normal file
View file

@ -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}) ...')