Opened 3 years ago

Closed 3 years ago

#9208 closed defect (invalid)

Should I always set dropout_transition very high number like 10000 when using amix filter

Reported by: kvsico Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

I want to mix many audio files with different duration, but the volume of mix.mp3 increased like issue[0], then I solved this problem by adding dropout_transition=10000[1], the whole command is
ffmpeg -y -i a.mp3 -i b.mp3 -filter_complex "[0]volume=1[a0];[a0]adelay=0|0[a00];[1]volume=1[a1];[a1]adelay=5000|5000[a11];[a00][a11]amix=inputs=2:dropout_transition=10000,volume=2[aaa]" -map "[aaa]" mix.mp3 .

I don't know much about amxi filter and googled less search result about it, does dropout_transition=10000 have potential problems?
Should use amerge filter instead, or use newly added sum option[2]

[0]:https://stackoverflow.com/questions/35509147/ffmpeg-amix-filter-volume-issue-with-inputs-of-different-duration
[1]:https://www.reddit.com/r/ffmpeg/comments/d63fki/preventing_amixs_volume_normalization_issue/
[2]:http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=57651493923ea4bc76453aa18fb0ecad7926720d
[9]:https://stackoverflow.com/questions/62367391/ffmpeg-amix-filter-always-does-volume-normalization-how-to-prevent-it-and-wha

Change History (2)

comment:1 by kvsico, 3 years ago

Type: defectenhancement

comment:2 by Carl Eugen Hoyos, 3 years ago

Resolution: invalid
Status: newclosed
Type: enhancementdefect

Please ask all usage questions on the FFmpeg user mailing list, this is a bug tracker.

Note: See TracTickets for help on using tickets.