Last active
October 9, 2025 04:23
-
-
Save 777777miSSU7777777/9c500a6d5d183ffb040a8c9d77cacbc0 to your computer and use it in GitHub Desktop.
Transcode mp3 to hls stream via ffmpeg.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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