[FFserver-user] ffserver cannot open ffserver.conf file

Aviv Finkler - Paradox Israel afinkler at paradox.com
Thu Dec 1 09:59:58 CET 2011


Hello, I use ffserver & ffmpeg in order to generate a live stream
(recorded by a webcam).

 

I use an embedded processor (SH7724), busybox version 2010.09, kernel
2.6.39.3.

 

the command I issue is:

--------------------------------

 ffserver -f /etc/ffserver.conf & ffmpeg -v 2 -r 24 -s 640x480 -loglevel
verbose -f video4linux2 -i /dev/video0 http://localhost:8090/webcam.ffm

 

And the output of the command is:

----------------------------------------------

FFserver version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers

  built on Nov 29 2011 12:54:27 with gcc 4.5.1

  configuration: --enable-cross-compile
--cross-prefix=/home/projects/itouch/renesas/SH7724_install07/bsp/buildr
oot/output/host/usr/bin/b

  libavutil     50.15. 1 / 50.15. 1

  libavcodec    52.72. 2 / 52.72. 2

  libavformat   52.64. 2 / 52.64. 2

  libavdevice   52. 2. 0 / 52. 2. 0

  libswscale     0.11. 0 /  0.11. 0

FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers

  built on Nov 29 2011 12:54:27 with gcc 4.5.1

  configuration: --enable-cross-compile
--cross-prefix=/home/projects/itouch/renesas/SH7724_install07/bsp/buildr
oot/output/host/usr/bin/b

  libavutil     50.15. 1 / 50.15. 1

  libavcodec    52.72. 2 / 52.72. 2

  libavformat   52.64. 2 / 52.64. 2

  libavdevice   52. 2. 0 / 52. 2. 0

  libswscale     0.11. 0 /  0.11. 0

sh_mobile_ceu sh_mobile_ceu.0: SuperH Mobile CEU driver attached to
camera 0

[video4linsh_mobile_ceu sh_mobile_ceu.0: Format 32315559 not found

ux2 @ 0x442c20][sh_mobile_ceu sh_mobile_ceu.0: Format 32315559 not found

sh_mobile_ceu sh_mobile_ceu.0: Format 50323234 not found

 

sh_mobile_ceu sh_mobile_ceu.0: dma_alloc_coherent of size 614400 failed

[video4linux2 @ 0x442c20]Estimating duration from bitrate, this may be
inaccurate

Input #0, video4linux2, from '/dev/video0':

  Duration: N/A, start: 1636986972.390231, bitrate: 117964 kb/s

    Stream #0.0: Video: rawvideo, yuyv422, 640x480, 117964
kb/s,sh_mobile_ceu sh_mobile_ceu.0: SuperH Mobile CEU driver detached
from ca0

 24 tbr, 1000k tbn, 24 tbc

http://localhost:11000/webcam.ffm:Input/output error

ioctl(VIDIOC_QBUF)

 

--> It seems for me that ffserver does NOT open the conf file, hence
webcam.ffm file is NOT opened.

 

I've tried to move the conf file to some other path or to change its
name, but it wouldn't help.

I've also tried to remove the "-f /etc/ffserver.conf" (default location
is anyway /etc/ffserver.conf), but it also wouldn't help.

 

--> As far as I can tell the problem is that ffserver does NOT care
about its conf file (hence is not started).

 

Do you have any idea? I'm lost....

 

Thanks

 

 

The ffserver.conf file is:

------------------------------

Port 8090

# bind to all IPs aliased or not 

BindAddress 0.0.0.0 

# max number of simultaneous clients 

MaxClients 4

# max bandwidth per-client (kb/s) 

MaxBandwidth 10000

CustomLog -

# Suppress that if you want to launch ffserver as a daemon. 

NoDaemon

 

<Stream status.html>

Format status

# Only allow local people to get the status

#ACL allow localhost

#ACL allow 192.168.0.0 192.168.255.255

</Stream>

 

<Feed webcam.ffm> 

File /tmp/webcam.ffm 

FileMaxSize 5M 

</Feed> 

 

# FLV output - good for streaming 

<Stream webcam.flv> 

# the source feed 

Feed webcam.ffm 

# the output stream format - FLV = FLash Video 

Format flv 

VideoCodec flv 

# this must match the ffmpeg -r argument 

VideoFrameRate 24

# generally leave this is a large number 

VideoBufferSize 50 #Aviv: changed from 20000 

# another quality tweak 

VideoBitRate 100

# quality ranges - 1-31 (1 = best, 31 = worst) 

VideoQMin 5

VideoQMax 10 

VideoSize qvga

# this sets how many seconds in past to start 

PreRoll 0 

# wecams don't have audio 

Noaudio

</Stream> 

 

# ASF output - for windows media player 

<Stream webcam.asf> 

# the source feed 

Feed webcam.ffm 

# the output stream format - ASF 

Format asf 

VideoCodec msmpeg4 

# this must match the ffmpeg -r argument 

VideoFrameRate 24

# generally leave this is a large number 

VideoBufferSize 80000 

# another quality tweak 

VideoBitRate 200 

# quality ranges - 1-31 (1 = best, 31 = worst) 

VideoQMin 1 

VideoQMax 10 

VideoSize 640x480

# this sets how many seconds in past to start 

PreRoll 0 

# wecams don't have audio 

Noaudio

</Stream>

 

<Stream webcam.mjpeg>

Feed webcam.ffm

Format mpjpeg

VideoSize qvga

VideoFrameRate 24

VideoIntraOnly

# Noaudio

Strict -1

</Stream>

 

 

Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/ffserver-user/attachments/20111201/021295c1/attachment.html>


More information about the ffserver-user mailing list