#9209: How to simplify amerge filter
-------------------------------------+-------------------------------------
             Reporter:  kvsico       |                     Type:
                                     |  enhancement
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9209>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

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

Reply via email to