sim_tcr
Posts: 326
Joined: Tue Nov 06, 2012 1:01 pm
Location: Bangalore
Contact: Website

ffserver and ffmpeg question

Fri Jan 18, 2019 4:25 am

Hello,

I am trying to stream a video file from raspberry pi using ffserver and ffmpeg, command I ran is,

Code: Select all

ffserver -d /home/pi/ffserver.conf & ffmpeg -r 25 -s 352x288 -i /home/pi/fatal.mp4 http://localhost:8090/feed1.ffm
When I try to access http://192.168.0.40:8090/test.swf from my windows computer browser and I get error "File '/test.swf' not found".

Code: Select all

Fri Jan 18 09:54:31 2019 192.168.0.83 - - New connection: GET /test.swf
Fri Jan 18 09:54:31 2019 File '/test.swf' not found
Fri Jan 18 09:54:31 2019 192.168.0.83 - - [GET] "/test.swf HTTP/1.1" 404 189
Fri Jan 18 09:54:33 2019 192.168.0.83 - - [] " " 200 0
My ffserver.conf,

Code: Select all

Port 8090
# 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 10000
# Suppress that if you want to launch ffserver as a daemon.
NoDaemon

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 5M
</Feed>

<Stream test.swf>
Feed feed1.ffm
Format swf
VideoCodec flv
VideoFrameRate 15
VideoBufferSize 80000
VideoBitRate 100
VideoQMin 1
VideoQMax 5
VideoSize 352x288
PreRoll 0
Noaudio
</Stream>
http://raspisimon.no-ip.org
Raspberry Pi Model B x 2, Raspberry Pi 2 x 2, Transcend 32GB Class 10, Transcend 16GB Class 10, Transcend 8GB Class 4, Custom 12V 1.5A (stepped down to 5.5V)

Return to “Media centres”