[Ffmpeg-devel] using ffmpeg to encode an internet stream

Cyrus Adkisson lists
Wed Aug 31 22:43:13 CEST 2005


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
 >>>>>>>>>>>>>>>>>>

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
 >>>>>>>>>>>>>>

Can anyone capture these streams successfully?

Cyrus



Michael Niedermayer wrote:

>Hi
>
>On Tue, Aug 30, 2005 at 11:02:25PM -0400, Cyrus Adkisson wrote:
>  
>
>>I've seen a few posts that mention ffmpeg might have stream-grabbing 
>>capabilities. Some say it does, some say it doesn't (or is hopelessly 
>>segfaulting). Can ffmpeg grab a live internet radio feed and encode it 
>>into an mp3 yet? If not, are there any programs that do? I've tried the 
>>following commands:
>>
>>ffmpeg -vn 
>>http://audio.wtopnews.com/stream/real/prerolls/real_audio/wtop.rm -y 
>>outfile.wav
>>ffmpeg -vn 
>>http://audio.wtopnews.com/stream/real/prerolls/real_audio/wtop.rm -ab 
>>192 -ar 44100 -acodec mp3 outfile.mp3
>>ffmpeg -vn http://mmslb.eonstreams.com/wbalam?MSWMExt=.asf -ab 192 -ar 
>>44100 -acodec mp3 outfile.mp3
>>ffmpeg -vn http://hq.dynalias.com/swayze/champions.mp3 -y outfile.wav 
>>(just a file, not a stream)
>>
>>Each time, the output file is just silence. Any ideas what's going on here?
>>    
>>
>
>you didnt RTFM, you must put -i before the input
>
>[...]
>  
>





More information about the ffmpeg-devel mailing list