Opened 3 years ago
Closed 3 years ago
#9209 closed defect (invalid)
How to simplify amerge 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:
How to reproduce:
I want to mix audio files, mono and stereo all possible, but the use of amerge filter is complicated because I should identify channel of every input[0], so I found this answer[4], the command like this:
`
ffmpeg -y\
-i a.mp3 \
-i b.mp3\
-filter_complex "
[0]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[a0];[a0]volume=1[a00];[a00]adelay=2000|2000[a000];
[1]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[a1];[a1]volume=1[a11];[a11]adelay=4000|4000[a111];
[a000][a111]amerge,pan=stereo|c0<c0+c2|c1<c1+c3" \
-ac 2 result.mp3
`
Can I use this command simplify use of amerge filter?
[0]:https://trac.ffmpeg.org/wiki/AudioChannelManipulation
[1]:https://stackoverflow.com/questions/54060729/ffmpeg-how-to-merge-all-audio-streams-into-stereo
[2]:https://superuser.com/questions/1029466/how-to-mix-two-audio-files-with-ffmpeg-amerge-filter
[3]:https://stackoverflow.com/questions/14498539/how-to-overlay-downmix-two-audio-files-using-ffmpeg
[4]:https://superuser.com/questions/714879/simplify-ffmpeg-amerge-and-volume-customization
Change History (1)
comment:1 by , 3 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Type: | enhancement → defect |
Please ask all usage questions on the FFmpeg user mailing list, this is a bug tracker.