[Ffmpeg-devel] using ffmpeg to encode an internet stream
Benjamin Larsson
banan
Wed Aug 31 23:00:18 CEST 2005
Hi,
Cyrus Adkisson wrote:
> I'm still at a loss here. Can someone who is more experienced with
> ffmpeg help me figure out the correct command-line for what I'm trying
> to accomplish?
>
> The two streams I want to capture are
> http://mmslb.eonstreams.com/wbalam?MSWMExt=.asf and
> http://audio.wtopnews.com/stream/real/wtopnews.smil .
>
> My best attempt at the first one failed:
> >>>>>>>>>>>>>>
> [cyrus at laptop ~]$ ffmpeg -f asf -i
> http://mmslb.eonstreams.com/wbalam?MSWMExt=.asf -y -vn -acodec mp3
> outfile.mp3
> ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice
> Bellard
> configuration: --enable-mp3lame --enable-shared --cpu=x86
> built on Aug 30 2005 22:41:50, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)
> http://mmslb.eonstreams.com/wbalam?MSWMExt=.asf: Error while opening file
> >>>>>>>>>>>>>>>>>>
>
the first stream I think ffmpeg is not clever enough to follow the
redirection file that the address really is, mplayer could stream
it without any problem.
> as did my attempt at the second:
> >>>>>>>>>>>>>>>>>>
> [cyrus at laptop ~]$ ffmpeg -f rm -i
> http://audio.wtopnews.com/stream/real/prerolls/real_audio/wtop.rm -y
> -vn -acodec mp3 outfile.mp3
> ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice
> Bellard
> configuration: --enable-mp3lame --enable-shared --cpu=x86
> built on Aug 30 2005 22:41:50, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)
> [NULL @ 0xb7e33150]Unsupported video codec
> Input #0, rm, from
> 'http://audio.wtopnews.com/stream/real/prerolls/real_audio/wtop.rm':
> Duration: 00:00:03.8, start: 0.000000, bitrate: N/A
> Stream #0.0: Audio: sipr, 16000 Hz, mono, 16 kb/s
> Stream #0.1: Data: 0x0000
> Output #0, mp3, to 'outfile.mp3':
> Stream #0.0: Audio: mp3, 16000 Hz, mono, 64 kb/s
> Stream mapping:
> Stream #0.0 -> #0.0
> Unsupported codec (id=0) for input stream #0.0
> >>>>>>>>>>>>>>
>
This one is abit trickier, even if ffmpeg is capable enough to stream it
correcly there is no support for the sipr codec. Mplayer was capable
to stream it though.
> Can anyone capture these streams successfully?
>
I guess I could just not with mplayer.
> Cyrus
>
MvH
Benjamin Larsson
More information about the ffmpeg-devel
mailing list