pro100andrey / lame

Swift Lame Framework
MIT License
35 stars 7 forks source link

Merge multiple mp3 files into one mp3 #16

Closed areeudh-q closed 3 months ago

areeudh-q commented 3 months ago

Is your feature request related to a problem? Please describe. First of all thanks for the code. I would like to know if this third party library can h merge multiple mp3 audio

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

pro100andrey commented 3 months ago

Hi @areeudh-q, To merge multiple MP3 files into one MP3, you need to use FFmpeg. like FFmpeg-iOS

This will concatenate two mp3 files, and the resulting metadata will be that of the first file:

ffmpeg -i "concat:file1.mp3|file2.mp3" -acodec copy output.mp3
import FFmpegSupport

ffmpeg(["ffmpeg", "-i", "concat:file1.mp3|file2.mp3", "-acodec", "copy", "output.mp3"])

Thanks!