reformat ffmpeg calls
This commit is contained in:
parent
b9ac31aee0
commit
64c35cf502
2 changed files with 16 additions and 13 deletions
|
@ -6,11 +6,13 @@ from config import Config
|
|||
|
||||
|
||||
def generate_test_file(fn, delta):
|
||||
subprocess.call(['ffmpeg',
|
||||
'-f', 'lavfi',
|
||||
'-i', 'sine=frequency=1000:duration=%d' % delta.total_seconds(),
|
||||
'-b:a', '%dk' % Config.KBITS,
|
||||
fn])
|
||||
subprocess.call([
|
||||
'ffmpeg',
|
||||
'-f', 'lavfi',
|
||||
'-i', 'sine=frequency=1000:duration=%d' % delta.total_seconds(),
|
||||
'-b:a', '%dk' % Config.KBITS,
|
||||
fn
|
||||
])
|
||||
|
||||
|
||||
start = datetime.now().replace(minute=0, second=0) - timedelta(hours=3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue