A friend and I are trying to setup a streaming service. Our goal is to receive from an Mpeg4 IP video source (an Axis 210A IP camera) and re-encode into 3 separate bit rates. The re-encoded streams will then be served out on different ports for clients to view depending on their connection speed.
In order to do this we used VLC's VLM interface and a batch file that is created on the fly from a customised web GUI.
Contents of the batch file are as follows:
Code: Select all
#############################################################
# VLM Configuration file, created: Fri Mar 16 03:04:29 2007 #
#############################################################
new cam1_LBR broadcast enabled loop
setup cam1_LBR input rtsp://192.168.1.5:554/mpeg4/media.amp
setup cam1_LBR output #transcode{vcodec=WMV2,vb=256,acodec=mp3,ab=32,scale=0.25}:duplicate{dst=std{access=mmsh,mux=asfh,url=192.168.1.3:50011}}
new cam1_MBR broadcast enabled loop
setup cam1_MBR input rtsp://192.168.1.5:554/mpeg4/media.amp
setup cam1_MBR output #transcode{vcodec=WMV2,vb=512,acodec=mp3,ab=96,scale=0.5}:duplicate{dst=std{access=mmsh,mux=asfh,url=192.168.1.3:50012}}
new cam1_HBR broadcast enabled loop
setup cam1_HBR input rtsp://192.168.1.5:554/mpeg4/media.amp
setup cam1_HBR output #transcode{vcodec=WMV2,vb=768,acodec=mp3,ab=128,scale=0.75}:duplicate{dst=std{access=mmsh,mux=asfh,url=192.168.1.3:50013}}
control cam1_LBR play
control cam1_MBR play
control cam1_HBR play
############################ EOF ############################
One of the major errors that we see is: "ffmpeg encoder warning: almost fed libavcodec with a frame in the past".
We have also tried to rectify this error by recompiling VLC 0.8.6a according to advice given in this thread: viewtopic.php?p=95377#95377
However we still have the same error. Can anyone help us with this error, or advise on an alternative method to achieve our goal.
Thanks in advance.