Skip to content

Commit 1b4afa0

Browse files
dsward2claude
andcommitted
Loop the file-test example continuously with ffmpeg -stream_loop -1
Without it, the example stops streaming as soon as ffmpeg reaches EOF on the input file, which makes the "open http://localhost:8080/ and listen" instruction misleading for short clips. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent db90f64 commit 1b4afa0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,10 @@ Options:
227227
### Test with a file (no hardware needed)
228228

229229
```bash
230-
# Pipe a WAV/FLAC/MP3 file through ffmpeg and into the server
231-
ffmpeg -i input.wav -f s16le -ar 44100 -ac 2 - \
230+
# Pipe a WAV/FLAC/MP3 file through ffmpeg and into the server. The
231+
# -stream_loop -1 flag loops the file indefinitely, so the stream
232+
# keeps running for as long as the server is up.
233+
ffmpeg -stream_loop -1 -i input.wav -f s16le -ar 44100 -ac 2 - \
232234
| .build/release/LiveAudioServer
233235
```
234236

0 commit comments

Comments
 (0)