Don't use the ffmpeg concat filter when only one audio segment
The concat filter requires at least 2 segments, it doesn't support the degenerate case.
This commit is contained in:
parent
0841dd4233
commit
d53e7d21f3
@ -127,10 +127,15 @@ module BigBlueButton
|
||||
end
|
||||
ffmpeg_filter = ffmpeg_filters.join(' ; ')
|
||||
|
||||
# Add the final concat filter
|
||||
ffmpeg_filter << " ; "
|
||||
(0...output_index).each { |i| ffmpeg_filter << "[out#{i}]" }
|
||||
ffmpeg_filter << " concat=n=#{output_index}:a=1:v=0"
|
||||
if output_index > 1
|
||||
# Add the final concat filter
|
||||
ffmpeg_filter << " ; "
|
||||
(0...output_index).each { |i| ffmpeg_filter << "[out#{i}]" }
|
||||
ffmpeg_filter << " concat=n=#{output_index}:a=1:v=0"
|
||||
else
|
||||
# Only one input, no need for concat filter
|
||||
ffmpeg_filter << " ; [out#{i}] anull"
|
||||
end
|
||||
|
||||
ffmpeg_cmd += ['-filter_complex', ffmpeg_filter]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user