Test
This commit is contained in:
parent
1231cfc9db
commit
434734021d
2 changed files with 23 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
pillow
|
||||
python-magic
|
||||
python-magic-bin
|
||||
markdown
|
||||
markdown
|
||||
PythonVideoConverter
|
||||
21
test-ffmpeg.py
Normal file
21
test-ffmpeg.py
Normal 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}) ...')
|
||||
Loading…
Reference in a new issue