anullsrc has no duration value in older ffmpeg versions
This commit is contained in:
parent
f700bdee5a
commit
6da0364f5a
@ -160,7 +160,7 @@ def add_audio(probe, duration):
|
|||||||
|
|
||||||
if not probe.audio:
|
if not probe.audio:
|
||||||
messenger.warning(f'Clip "{probe.src}" has no audio!')
|
messenger.warning(f'Clip "{probe.src}" has no audio!')
|
||||||
line = [(f'anullsrc:channel_layout=stereo:duration={duration}:'
|
line = [(f'aevalsrc=0:channel_layout=stereo:duration={duration}:'
|
||||||
f'sample_rate={48000}')]
|
f'sample_rate={48000}')]
|
||||||
|
|
||||||
return line
|
return line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user