Skip to content

Instantly share code, notes, and snippets.

@777777miSSU7777777
Last active October 9, 2025 04:23
Show Gist options
  • Select an option

  • Save 777777miSSU7777777/9c500a6d5d183ffb040a8c9d77cacbc0 to your computer and use it in GitHub Desktop.

Select an option

Save 777777miSSU7777777/9c500a6d5d183ffb040a8c9d77cacbc0 to your computer and use it in GitHub Desktop.
Transcode mp3 to hls stream via ffmpeg.
ffmpeg \
-i audio_name.mp3 \
-vn -ac 2 -acodec aac \
-f segment -segment_format mpegts -segment_time 10 \
-segment_list audio_pl.m3u8 \
audio_segment%05d.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment