Question

I'm using FFMpeg to segment a WAV file into mp3s for use in HTTP Live Streaming. I'm using this command:

ffmpeg -i input.wav -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mp3 'output%03d.mp3'

The stream is working, however I'm getting small "gaps" between each mp3 segment. Why is this?

Was it helpful?

Solution

I was able to solve this by using -segment_format mpegts.

ffmpeg -i input.wav -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mpegts 'output%03d.mp3'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top