Use FFmpeg’s concat demuxer to play local tracks in order, then add -stream_loop -1 before the playlist’s -i option to repeat the whole playlist indefinitely. Add -re when sending local files to a real-time radio output. The destination, format and authentication settings still depend on your streaming server.
Build a playlist and loop it
Create a text file named playlist.txt with an ffconcat header and one file entry per track:
As an Amazon Associate I earn from qualifying purchases.
ffconcat version 1.0
file 'track-01.mp3'
file 'track-02.mp3'
file 'track-03.mp3'
Place the playlist and audio files together if you want to use simple relative paths. Then use this audio-only command as a starting template:
ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.txt
-vn -c:a libmp3lame -b:a 128k -f mp3 OUTPUT
Replace OUTPUT with the destination and output form required by your radio server. This is an adaptable example, not a tested command or a guarantee that a particular server accepts MP3 in this form. The FFmpeg command-line reference defines -stream_loop as an input option; -1 means infinite looping. Because it applies to an input, put it before the corresponding -i.
#1 Best Overall
- 【64GB BUILT-IN LARGE STORAGE CAPACITY】Different from other large memory MP3 players on the market, the AGPTEK M3 boasts an impressive 64GB of internal storage, can expandable 128GB memory card (total up to 192G). [Other brands have no built-in memory and can only be used with TF card.]【Tip: The file size of a single transfer should not exceed 3GB to ensure the transfer speed and stability.】
- 【Bluetooth 5.3 & Automatic Reconnection】AGPTEK M3 MP3 music player adopts Bluetooth 5.3 technology, more stable connection, better compatibility, and lower consumption. You can pair the Bluetooth MP3 Player with wireless headphones or a Bluetooth speaker, automatically connects to the last Bluetooth device it was connected to, as soon as it is activated.
- 【HiFi Lossless Sound & Sports Partner】 With a professional audio decoding chip and smart noise reduction chip, AGPTEK MP3 player brings you original lossless music. With breakpoint resume function, perfect for doing sports, Yoga, exercise, running, travel, etc. Supports music formats like MP3/APE/FLAC/WMA/WAV/AAC [Note It does not directly support Audible, Apple music and iTunes.]
- 【Multi-function & Long battery life】 M3 MP3 player with Music Play, Video, Recording, Radio, Pictures, e-Books, Pedometer, A-B repeat, etc. Built-in 500mAh battery, it only takes 2.5 hours to fully charge and enjoy long hours of music. Perfect solution to replace mobile phone music, save mobile phone power. (To save power, the player will automatically power off after 5 minute of inactivity. You can turn it off in the settings.)
- 【 2.4'' SCREEN & LINE-IN FUNCTION】Features a 2.4-inch TFT color screen, bringing a clear and beautiful display. Metal middle frame with ABS plastic back shell,the size is approximately 4.4 inches × 2.06 inches × 0.39 inches, Weight: approximately 3.6 oz. And it supports Line-in recording and playback capabilities. Use a LINE IN cable to record from two MP3 players or connect with other devices for recording or play music.
What each option does
-rereads the local input at its native rate, equivalent to-readrate 1. It can pace files for a real-time output.-stream_loop -1repeats the input indefinitely, rather than stopping when the playlist reaches its end.-f concatselects the concat demuxer, which reads the text playlist and sequences its files.-safe 0permits paths that the default safe mode would reject, including absolute paths in many cases. Use it only with a playlist you control and trust.-i playlist.txtidentifies the playlist input.-vndisables video output;-c:a libmp3lame -b:a 128kselects MP3 audio encoding at the example bitrate;-f mp3selects the output format.
The command’s output side is service-specific. Configure the server’s endpoint or mount, authentication, accepted container and codec, and any required FFmpeg output options for that service. FFmpeg’s streaming examples treat sending output to an endpoint as a separate setup from preparing the input playlist.
Make sure the tracks are compatible
The concat demuxer joins files at the container level; it does not make incompatible tracks uniform. FFmpeg’s concat demuxer documentation states: “All files must have the same streams (same codecs, same time base, etc.).” Before relying on a playlist, check that its entries have the same stream count and compatible codecs and timing parameters.
Rank #2
- ★【64GB Large Storage & HIFI Lossless Sound】 Each MP3 Player is equipped with a 64GB large-capacity TF card, which allows you to download thousands of your favorite music. And through the powerful DSP audio decoder chip, the most original sound is presented to you. It can ensure the high sound quality of HIFI.(Supports TF cards up to 256GB.)
- ★【Upgraded Bluetooth 5.2 & Support Multiple Formats】 Latest Version Bluetooth 5.2 means that faster transmission speed, longer connection distance and stronger anti-interference ability.Reduced power consumption for more power savings. And support APE / FLAC / WMA / MP3 / ACELP and other lossless formats.
- ★【Built-in HD Speaker & Easy to Carry】 The MP3 player has built-in HD speakers, which can play music without earphones, and no longer need to feel the pain of wearing earphones. MP3 player length is 3.6", width is 1.7" and thickness is 0.35". The body is made of hard and light zinc alloy and weighs only 70 grams. Lightweight and easy to carry.
- ★【Multifunctional MP3 Player for Many Occasions】 Multiple functions in one, music play, FM radio (need to insert a wired headphones), voice recorder, e-book, Alarm clock. Touch buttons with backlight to solve the problem of button noise. Perfect for Sport, Sleeping, Reading, Leaning, Meeting etc.
- ★【Great Gift】Each package contains an MP3 player, wired earphones, a 64GB TF card, a card reader, and a Type-C data cable. It makes an ideal gift for your children, partner, parents, or family on birthdays, Christmas, Thanksgiving, and other special occasions. If you have any questions, feel free to contact us anytime.
- Use the concat demuxer for compatible files when you want to sequence them without re-encoding.
- Use the concat filter when the tracks need a re-encoding workflow to make their formats consistent. FFmpeg’s FAQ distinguishes this filter-based approach from the demuxer.
- Consider the concat protocol only for formats that support file-level concatenation; it is a different method, not a general replacement for the demuxer.
The demuxer uses each file’s duration to set the next file’s timestamps. If a duration is incorrect or unavailable, transitions can have artifacts or gaps. Its duration directive can override the stored duration in the playlist when you know the correct value.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Troubleshoot a playlist that stops or transitions badly
| Symptom | What to check | What to do |
|---|---|---|
| FFmpeg stops at the end of the last track | Confirm -stream_loop -1 is present before the playlist’s -i. |
Put the option before the matching input. It loops the local playlist; it is not a network reconnect setting. |
| A file cannot be opened or the playlist is rejected | Check spelling, path, file readability and whether safe mode rejects the path. | Prefer simple relative paths in a trusted directory. If the playlist needs paths safe mode rejects, use -safe 0 only for a playlist you control. |
| A track transition has a gap or artifact | Check stream layouts, codec and time-base compatibility, and each file’s reported duration. | Normalize or transcode tracks that differ. If a stored duration is wrong or missing, use the concat demuxer’s duration directive with a known correct duration. |
| The radio output disconnects even though the playlist should continue | Determine whether the local input ended or a network source/output connection failed. | Playlist looping and network recovery are separate problems. FFmpeg protocol reconnect options such as reconnect and reconnect_at_eof apply to supported protocol inputs; they do not restart a finite local playlist. |
| Audio is not delivered in real time | Check whether the input is being read faster than real time and whether the destination settings are correct. | Use -re for local-file pacing when feeding a real-time output, and verify the server’s endpoint, authentication and accepted output format. |
Or let it run in the cloud
If your goal is a 24/7 YouTube channel playing prerecorded videos, StreamNeo is a separate option from configuring FFmpeg for a radio server. Upload your recording or build a playlist, add your YouTube stream key once, and go live; StreamNeo loops uploaded videos from the cloud, so your computer and home connection do not need to stay on. It is YouTube-only and plays uploaded videos rather than broadcasting a live camera.
Quick Recap
Rank #4
- 🎅【Multifunctional】Portable MP3 player with Bluetooth 5.0 and WiFi, preloaded with Spotify, Apple Music, Audible, Amazon Music, Deezer. Built-in FM radio, video player, voice recorder, e-book reader, ideal for streaming music, offline videos and e-reading.
- 🎅【Stable Connectivity】Upgraded Bluetooth and WiFi ensure fast pairing with headphones, car stereos, mobile phones. Zero lag, stable connection for home, workouts, running, commuting and travel.
- 🎅【HiFi Lossless Audio】HiFi lossless music player with built-in speaker, supports MP3/FLAC/AAC/WAV/APE/OGG/WMA. Features lyric sync, custom playlists, adjustable EQ for crisp, immersive sound.
- 🎅【4-inch HD Touch Display】The mp4 player supports 1080P video playback (RMVB/MP4/MKV/FLV) no conversion needed. Powerful CPU for lag-free operation, one-key lock and screenshot for easy use. adjustable EQ for crisp, immersive sound.
- 🎅【Large Storage & Long Battery】2GB RAM+16GB ROM, 2000mAh Type-C rechargeable battery. Up to 40hrs music playback, 3-5 months standby, perfect for outdoor travel and daily use.
Rank #3
- Large Capacity: This mp3 player is designed specifically for music enthusiasts. It has 64GB storage space, which can easily hold thousands of songs, and supports TF card expansion up to 128GB, so you don't need to change songs frequently or worry about insufficient storage space. (TF card is sold separately)
- The latest version of bluetooth : mp3 player Equipped with the latest version of Bluetooth 5.3 MP3 player, which has better compatibility, signal stability, lower power consumption, longer connection distance, and stronger anti-interference ability. (Note: Bluetooth function only supports Bluetooth headset and Bluetooth speaker connection)
- Easy to operate buttons: This reproductor mp3 has several intuitive buttons. Short press “One-Key Sound” can open the music mode, support breakpoint replay function, continue to play from the last exit position; independent volume key can be up and down toggle the precise adjustment of the volume; Short press “Lock Key” can lock the screen, simple and convenient.
- High quality speakers:MP3 player Equipped with high-quality speakers that deliver clear, undistorted sound. No need to wear headphones, you can enjoy music, listen to books or play recording files directly through the speakers. Whether you're relaxing at home, traveling outdoors or sharing music with friends, the speakers will meet your listening needs.
- Upgraded design: MP3 player Length 4.25 inches (10.85 cm), width 1.95 inches (4.96 cm), thickness 0.37 inches (0.95 cm), weight 80.7 grams, equipped with a 2.4-inch color screen to enhance the visual experience and ease of operation; metal alloy shell both durability and comfortable feel, fashionable appearance to adapt to the sports, commuting, travel and other scenarios, carry no burden.
- Every slot streams what you upload, up to 4K 60fps, at one flat price per slot with no re-encode or quality tiers.
- It automatically recovers if YouTube drops the stream.
- The first day is free with no card, one free day per account.
- Monthly: $9.99 per month. Other billing lengths are available; see StreamNeo pricing.
To try it, start with StreamNeo.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




