[FFmpeg-user] Can ffmpeg feed shoutcast?

Simon Thelen ffmpeg-user at c-14.de
Sun Nov 22 18:05:46 CET 2015


On 15-11-22 at 12:37, En Figureo Canal wrote:
> On Sun, Nov 22, 2015 at 12:18 PM, Simon Thelen <ffmpeg-user at c-14.de> wrote:
> > On 15-11-22 at 12:07, En Figureo Canal wrote:
> > > I've already tried that and it doesn't work. I get "End of File"
> > Have you tried setting -legacy_icecast?
> Sorry.
> 
> I've tried another command:
> 
> ffmpeg -rtbufsize 500M -f dshow -i audio="recorder (Realtek High Definiti"
> -vn
> -acodec libmp3lame -ab 128k -legacy_icecast 1 -content_type audio/mpeg
> -ice_name
>  "DemoStream" -f mp3 icecast://user:pass@ip:8082/2
> 
> 
> And starts doing something but it just dies. Remember I'm trying to send
> the feed to SHOUTCAST.
afaik shoutcast and icecast use the same protocol
I don't have a shoutcast server though, so I can't test.
 
[..]
>   libavutil      54. 27.100 / 54. 27.100
>   libavcodec     56. 46.100 / 56. 46.100
>   libavformat    56. 40.100 / 56. 40.100
>   libavdevice    56.  4.100 / 56.  4.100
>   libavfilter     5. 19.100 /  5. 19.100
>   libswscale      3.  1.101 /  3.  1.101
>   libswresample   1.  2.100 /  1.  2.100
>   libpostproc    53.  3.100 / 53.  3.100
> Guessed Channel Layout for  Input Stream #0.0 : stereo
> Input #0, dshow, from 'audio=recorder (Realtek High Definiti':
>   Duration: N/A, start: 104958.814000, bitrate: 1411 kb/s
>     Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
> Output #0, mp3, to 'icecast://user:pass@ip:8082/2':
>   Metadata:
>     TSSE            : Lavf56.40.100
>     Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 128 kb/s
>     Metadata:
>       encoder         : Lavc56.46.100 libmp3lame
> Stream mapping:
>   Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
> Press [q] to stop, [?] for help
> av_interleaved_write_frame(): Unknown error
> size=       7kB time=00:00:00.41 bitrate= 136.5kbits/s
> video:0kB audio:7kB subtitle:0kB other streams:0kB global headers:0kB
> muxing ove
> rhead: 0.633357%
> Conversion failed!
Hmm, Unknown error. That doesn't sound good.

-- 
Simon Thelen


More information about the ffmpeg-user mailing list