[FFmpeg-user] ffmpeg: STREAMING LIVE AUDIO OVER INTERNET AS .MP3 USING MIC...CAN THIS BE TWEAKED?

Roger Pack rogerdpack2 at gmail.com
Tue Jun 26 18:20:36 CEST 2012


> ffmpeg -f oss -i /dev/dsp -acodec libmp3lame -ab 128k -ac 2 -ar 44100 -re
> -f rtp rtp://234.5.5.5:1234
>
> These two commands appear to work well..My question to you is this: Can the
> command be modified to steam an audio file from my hard drive instead of
> from the mic input?


Yes, instead of
-f oss -i /dev/dsp -acodec
it would be like
-i /path/to/filename.mp3

and you may want to use the "-re" option as well [1].
-roger-
[1] http://ffmpeg.org/ffmpeg.html


More information about the ffmpeg-user mailing list