[FFmpeg-user] how to use ffserver+ ffmpeg

praveen vattipalli praveen.vatt at gmail.com
Fri Oct 11 13:04:40 CEST 2013


hi
i connected a webcam to my arm cortexa8 board now i want to stream video in
my webpage. for that i compiled ffserver and ffmpeg in
buildroot(buildsystem) and ported the root filesystem
then i gave
ffserver -f /etc/ffserver.conf &

it shows as below


ffserver version 0.8.12, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 10 2013 11:04:38 with gcc 4.6.2
  configuration: --enable-cross-compile
--cross-prefix=/home/praveen/phytec_work/cosmic-am335x/buildroot-2013.05/output/host/usr/bin/arm-corten
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libswscale    2.  0. 0 /  2.  0. 0
Sat Jan  1 01:18:29 2000 FFserver started.
Sat Jan  1 01:18:29 2000 Launch commandline: ffmpeg
http://127.0.0.1:8090/feed1.ffm
Sat Jan  1 01:18:30 2000 File '/feed1.ffm' not found
Sat Jan  1 01:18:30 2000 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 404 149
feed1.ffm: Pid 1267 exited with status 256 after 1 seconds
Sat Jan  1 01:20:07 2000 192.168.1.7 - - [] " " 200 0
Sat Jan  1 01:20:18 2000 192.168.1.7 - - [] " " 200 0


after that i gave
ffmpeg -f video4linux2 -s 640x480 -r 25 -i /dev/video0 ht
tp://localhost:8090/feed1.ffm

it shows like below

ffmpeg version 0.8.12, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 10 2013 11:04:38 with gcc 4.6.2
  configuration: --enable-cross-compile
--cross-prefix=/home/praveen/phytec_work/cosmic-am335x/buildroot-2013.05/output/host/usr/bin/arm-corten
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  5. 0 / 53.  5. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libswscale    2.  0. 0 /  2.  0. 0
[video4linux2 @ 0x2f410] The driver changed the time per frame from 1/25 to
1/30
[video4linux2 @ 0x2f410] Estimating duration from bitrate, this may be
inaccurate
Input #0, video4linux2, from '/dev/video0':
  Duration: N/A, start: 3122.719003, bitrate: 147456 kb/s
    Stream #0.0: Video: rawvideo, yuyv422, 640x480, 147456 kb/s, 30 tbr,
1000k tbn, 30 tbc
Sat Jan  1 01:32:59 2000 File '/feed1.ffm' not found
Sat Jan  1 01:32:59 2000 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 404 149
[http @ 0x2f920] HTTP error 404 Not Found
http://localhost:8090/feed1.ffm: Input/output error

this is  my ffserver.cong

Port 8090

BindAddress 0.0.0.0

MaxHTTPConnections 2000

MaxClients 1000

MaxBandwidth 1000

CustomLog -

NoDaemon

<Feed feed1.ffm>

File /tmp/feed1.ffm
FileMaxSize 1G

Launch ffmpeg

ACL allow 192.168.1.7 192.168.255.255

</Feed>

<Stream test1.mpeg>

Format mpeg
Feed feed1.ffm

VideoBitRate 64

VideoBufferSize 40

VideoFrameRate 3

VideoSize 640x480


can i get any help from you

Thanks & Regards
Praveen


More information about the ffmpeg-user mailing list