amix parameter 'inputs' out of range [1 - 1024]

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

amix parameter 'inputs' out of range [1 - 1024]

Yunpeng Guan
Hello everyone:

I was adding tons of audio files to a video, my command looks like this:

ffmpeg -i video.mp4 -i 0.mp3 -i 1.mp3 ...... -i 1291.mp3 -filter_complex
"[1]adelay=670[a0];[2]adelay=2209[a1];[3]adelay=3748[a2] ......
[1292]adelay=4011880[a1291];[a0][a1][a2] ......
[a1291]amix=inputs=1292,loudnorm[a]" -map 0:v -map "[a]" output-video.mp4

Then I get this error:

[amix @ 0x7ff7811a6940] Value 1292.000000 for parameter 'inputs' out of
range [1 - 1024]
     Last message repeated 1 times
[amix @ 0x7ff7811a6940] Error setting option inputs to value 1292.
[Parsed_amix_1292 @ 0x7ff7811a6720] Error applying options to the filter.
[AVFilterGraph @ 0x7ff789229160] Error initializing filter 'amix' with
args 'inputs=1292'
Error initializing complex filters.
Numerical result out of range

Is this a limit of amix? What should I do to burn these audio files to
one video? Thanks.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: amix parameter 'inputs' out of range [1 - 1024]

Limin Wang
On Mon, Jan 06, 2020 at 10:10:44AM +0000, Yunpeng Guan wrote:

> Hello everyone:
>
> I was adding tons of audio files to a video, my command looks like this:
>
> ffmpeg -i video.mp4 -i 0.mp3 -i 1.mp3 ...... -i 1291.mp3 -filter_complex
> "[1]adelay=670[a0];[2]adelay=2209[a1];[3]adelay=3748[a2] ......
> [1292]adelay=4011880[a1291];[a0][a1][a2] ......
> [a1291]amix=inputs=1292,loudnorm[a]" -map 0:v -map "[a]" output-video.mp4
>
> Then I get this error:
>
> [amix @ 0x7ff7811a6940] Value 1292.000000 for parameter 'inputs' out of
> range [1 - 1024]
>      Last message repeated 1 times
> [amix @ 0x7ff7811a6940] Error setting option inputs to value 1292.
> [Parsed_amix_1292 @ 0x7ff7811a6720] Error applying options to the filter.
> [AVFilterGraph @ 0x7ff789229160] Error initializing filter 'amix' with
> args 'inputs=1292'
> Error initializing complex filters.
> Numerical result out of range
>
> Is this a limit of amix? What should I do to burn these audio files to
> one video? Thanks.

I submit a patch to remove the limit of max, you can try it.
https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200106102923.5280-1-lance.lmwang@.../


>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

--
Thanks,
Limin Wang
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: amix parameter 'inputs' out of range [1 - 1024]

Yunpeng Guan
On 1/6/2020 6:38 PM, Limin Wang wrote:

> On Mon, Jan 06, 2020 at 10:10:44AM +0000, Yunpeng Guan wrote:
>> Hello everyone:
>>
>> I was adding tons of audio files to a video, my command looks like this:
>>
>> ffmpeg -i video.mp4 -i 0.mp3 -i 1.mp3 ...... -i 1291.mp3 -filter_complex
>> "[1]adelay=670[a0];[2]adelay=2209[a1];[3]adelay=3748[a2] ......
>> [1292]adelay=4011880[a1291];[a0][a1][a2] ......
>> [a1291]amix=inputs=1292,loudnorm[a]" -map 0:v -map "[a]" output-video.mp4
>>
>> Then I get this error:
>>
>> [amix @ 0x7ff7811a6940] Value 1292.000000 for parameter 'inputs' out of
>> range [1 - 1024]
>>       Last message repeated 1 times
>> [amix @ 0x7ff7811a6940] Error setting option inputs to value 1292.
>> [Parsed_amix_1292 @ 0x7ff7811a6720] Error applying options to the filter.
>> [AVFilterGraph @ 0x7ff789229160] Error initializing filter 'amix' with
>> args 'inputs=1292'
>> Error initializing complex filters.
>> Numerical result out of range
>>
>> Is this a limit of amix? What should I do to burn these audio files to
>> one video? Thanks.
> I submit a patch to remove the limit of max, you can try it.
> https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200106102923.5280-1-lance.lmwang@.../
Thank you! I will try it after reading the compile document.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".