View Single Post
  #6  
Old 08-06-2011, 08:48 PM
hyc hyc is offline
RTMPdump team
 
Join Date: Dec 2009
Posts: 169
hyc will become famous soon enoughhyc will become famous soon enough
Default

Re: Use ffserver, ffmpeg, rtmpdump, VLC to convert live RTMP stream into UDP multicas


I still think you should try ffserver instead. This works for me with your France24 stream

ffserver.conf example
Code:
Port 8090
RTSPPort 554
BindAddress 0.0.0.0
MaxHTTPConnections 1000
MaxClients 200
MaxBandwidth 10000
CustomLog -

<Feed l.ffm>
File /tmp/l.ffm
FileMaxSize 2000M
</Feed>

<Stream test1.flv>
Format rtp
Feed l.ffm
MulticastAddress 224.124.0.1
MulticastPort 5000
MulticastTTL 16
NoLoop

VideoCodec libx264
VideoFrameRate 25
VideoBitRate 400
VideoSize 384x224
AVPresetVideo default
AVPresetVideo main
AVOptionVideo flags +global_header

AudioCodec libfaac
AudioBitRate 48
AudioChannels 1
AudioSampleRate 44100
AVOptionAudio flags +global_header

</Stream>
Start ffserver with that config file, start ffmpeg:
Code:
ffmpeg -i "rtmp://stream2.france24.yacast.net/france24_live/en app=france24_live/en swfUrl=http://www.france24.com/en/sites/all/modules/maison/aef_player/flash/player_new.swf pageUrl=http://www.france24.com/en/aef_player_popup/france24_player playpath=f24_liveen live=1" http://localhost:8090/l.ffm
set client to play from http://server:8090/test1.sdp

============


This is even easier, don't use ffmpeg at all, just let ffserver fetch the stream directly:

Code:
Port 8090
RTSPPort 554
BindAddress 0.0.0.0
MaxHTTPConnections 1000
MaxClients 200
MaxBandwidth 10000
CustomLog -

<Stream test1.flv>
Format rtp
MulticastAddress 224.124.0.1
MulticastPort 5000
MulticastTTL 16
NoLoop

File "rtmp://stream2.france24.yacast.net/france24_live/en app=france24_live/en swfUrl=http://www.france24.com/en/sites/all/modules/maison/aef_player/flash/player_new.swf pageUrl=http://www.france24.com/en/aef_player_popup/france24_player playpath=f24_liveen live=1" 
</Stream>

Last edited by hyc : 08-06-2011 at 09:36 PM.
Reply With Quote