[FFmpeg-user] Streaming audio input in a lossless format

Alex Becerra alexbecerra at gmail.com
Fri Oct 5 16:23:40 CEST 2012


Hello Carl,

First of all, I don't know what is "top-post", but anyway, sorry if I did
something that was rude.
I didn't realize that the command that you posted was a quote of something
I wrote before, sorry again.

I tried flac and I got these errors
"[rtp @ 0x98ebb60] Unsupported codec flac
...
Could not write header for output file #0 (incorrect codec parameters ?):
Operation not permitted"

Maybe I didn't configure ffmpeg with flac support but I converted a mp3
file to flac successfully, so I don't know what's happening. I also tried
with alac and I got the same errors, but again, I was able to convert any
file to .m4a

About PCM encoding, I was trying several options and I found that this one
works
"ffmpeg -f alsa -ar 22050 -i hw:0 -acodec pcm_s16be -ac 2 -f rtp rtp://
234.5.5.5:1234"
I only changed the codec from pcm_s16le which is used to capture the sound
from the sound card to pcm_s16be which is used to make the streaming, I
don't know why is working, but I at least I can heard something.

Best regards,
Alex.


2012/10/5 Carl Eugen Hoyos <cehoyos at ag.or.at>

> Alex Becerra <alexbecerra <at> gmail.com> writes:
>
> > I tried the command that you gave me
>
> I did not give you a command line, I just
> suggested to try flac.
> (I don't know if it works.)
>
> Please do not top-post here, it is considered rude,
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list