stream flash video of vlc mpeg2 dvb stream

see other posts about streaming dvb. this sample below is receiving a vlc stream and re-encoding and streaming as flash.

in this case sky news on same server as vlc running

install ffmpeg , or checkout and build with mp3 support if your distro doesn't install with mp3support (likely)

see http://ubuntuforums.org/showthread.php?t=786095 for ubuntu

run ffserver with this conf

----
Port 9090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 1000
# max bandwidth per-client (kb/s)
MaxBandwidth 100000
# Suppress that if you want to launch ffserver as a daemon.
NoDaemon


File /tmp/feed1.ffm
FileMaxSize 50M





Feed feed1.ffm
Format swf
VideoCodec flv
VideoFrameRate 25
VideoBufferSize 80000
VideoBitRate 10000
VideoQMin 1
VideoQMax 5
VideoSize 720x576
AudioBitRate 192
AudioChannels 2
AudioSampleRate 44100
AudioCodec mp3
PreRoll 0


-----


then at command line catch the vlc stream and pipe to ffmpeg, which then feeds to ffserver

curl -s -o- http://127.0.0.1:4710 | ./ffmpeg -i - -deinterlace http://localhost:9090/feed1.ffm


then open http://ip.of.ffdserver:9090/skynews.swf
and if you have flash support you should be happy :-)

or embed with

EMBED
src="http://ip.of.ffdserver:9090" width=640 height=480 type="application/x-shockwave-flash">
/embed

Comments

Popular posts from this blog

Baileys liquor Chocolate Chip and Cream desert

nginx decode base64 url for use with imgproxy

Resol VBUS success