Re: [FFmpeg-user] Piped processes result in glitches/dropouts

2024-09-28 Thread Srikanth Kotagiri
On Sat, Sep 28, 2024 at 11:26 AM Anders Bjerkén wrote: > SOLVED! Here's an update from me, that might help someone with a similar > problem in the future: > > My problem turned out to be mainly hardware related. The "ALSA buffer > xrun." messages indeed came every time I experienced a glitch in t

Re: [FFmpeg-user] Piped processes result in glitches/dropouts

2024-09-28 Thread Anders Bjerkén
SOLVED! Here's an update from me, that might help someone with a similar problem in the future: My problem turned out to be mainly hardware related. The "ALSA buffer xrun." messages indeed came every time I experienced a glitch in the sound stream. I first assumed it all had to do with limitations

Re: [FFmpeg-user] Piped processes result in glitches/dropouts

2024-09-14 Thread Anders Bjerkén
Thanks Moritz for the quick response! Here's my command in its full context: ffmpeg -hide_banner -f s16le -ac 2 -ar 44100 -channel_layout stereo -f alsa -i hw:2 -filter:a "volume=1.5" -ab 192k -acodec mp3 -f mp3 - | ffmpeg -hide_banner -f mp3 -i - -c copy -f mpegts udp://:1685 -c copy -f mp3 udp:

Re: [FFmpeg-user] Piped processes result in glitches/dropouts

2024-09-14 Thread Moritz Barsnick via ffmpeg-user
Hej Anders, On Sat, Sep 14, 2024 at 13:32:01 +0200, Anders Bjerkén wrote: > ffmpeg -f alsa -i hw:2 -filter:a "volume=1.5" -ab 192k -acodec mp3 -f mp3 - > | ffmpeg -f mp3 -i - -c copy -f mpegts udp://:1685 -c copy -f > mp3 udp://0.0.0.0:1685 It's usually expected to also post the complete, uncut c

[FFmpeg-user] Piped processes result in glitches/dropouts

2024-09-14 Thread Anders Bjerkén
Hi! My setup is a ZOOM H5 microphone, a Raspberry Pi and a AWS hosted icecast server. I want to take a stream from the mic, encode it to mp3 on the RPI, save it to disc on the RPI, and pipe the same encoded content to the icecast server. This is the command I use: ffmpeg -f alsa -i hw:2 -filter: