ffserver cannot open ffserver.conf file


 
Thread Tools Search this Thread
Special Forums IP Networking ffserver cannot open ffserver.conf file
# 1  
Old 11-30-2011
ffserver cannot open ffserver.conf file

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:
Code:
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:
Code:
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/buildroot/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/buildroot/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

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

Thanks

Code:
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>

# 2  
Old 11-30-2011
syntax error:
Code:
# this is
ffserver -f /etc/ffserver.conf & ffmpeg & ..........
# should be
ffserver -f /etc/ffserver.conf & ffmpeg  && ...........

I am assuming you really know how to use the .conf file syntax and it works somewhere else the way you now have it. If not review it very carefully.

what are the permissions on /etc/ffserver.conf?

try ffserver -f /etc/ffserver.conf -d to get exact information as to how ffserver is interpreting things.
# 3  
Old 12-01-2011
same command and the ffserver.conf file did work on Ubuntu

Hello Jim, thanks for your reply.


Same command and the ffserver.conf file did work on Ubuntu, so I assume it should work on the embedded processor as well.

The permissions are fine (777, and the owner and group are "root").

I'm pretty sure that the problem is in the -f switch in the ffserver command. I noticed that even when I point to a path which does NOT exist, the command is issued with no error (for example: ffserver -f /etc111/ffserver.conf).
No matter what I put inder the -f switch, the comamnd did NOT return an error (unless nothing was after the -f).

The -d switch does not change anything (no info is shown on screen).

What did you main in your reply - "# should be
ffserver -f /etc/ffserver.conf & ffmpeg && ..........."?
It's fine with me that the ffmpeg is in foreground.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Can't open nodes-6379.conf in order to acquire a lock: Permission denied

I am getting error on redis server on linux 7.5 after change the default path /var/lib/redis to /redisdata, and enable cluster-enabled yes. It would be really appreciate if some one can check and suggest on this issue. error code: 1240:C 09 Sep 2018 13:53:51.058 # oO0OoO0OoO0Oo Redis is... (3 Replies)
Discussion started by: nadeemrafikhan
3 Replies

2. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies

3. Shell Programming and Scripting

Script to update rsyslog.conf and auditd.conf

Hello all, Newbie here. I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
Discussion started by: Mide
3 Replies

4. Shell Programming and Scripting

Conf file entry.

Hi, Lets say I have a script which reads a conf file (say MASTERFILE) line by line to fetch file_name, source_path, dest_path. But currently, here the file name are static for eg: ABC.txt or XYZ.txt. So i have hard-coded in the conf file. So what happens that the script picks up the file_name... (1 Reply)
Discussion started by: amit.mathur08
1 Replies

5. UNIX for Advanced & Expert Users

Help me at squid.conf file

Hi all, i have a scenario below: <========> <=========> Internet With IP: -Local: 10.0.0.2 -Squid: 2NICs (10.0.0.1 and 192.168.100.1) -Internet: 192.168.100.2 * On Squid: hosting a website name www.sample.com * On Local: hosting a website name www.abc.sample.com * Complete DNS... (0 Replies)
Discussion started by: kidzer0
0 Replies

6. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

7. UNIX for Advanced & Expert Users

How can i tell which conf file it is using

i have this program running on my solaris and there are two identical config files, i am not sure which one is being used by this program but I am sure it uses one of them. I run lsof -p {pid} but it does not show which config file has been read by this program, what i am doing wrong? thanks (4 Replies)
Discussion started by: fedora
4 Replies

8. Solaris

basic question on sd.conf and lpc.conf file

Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies

9. UNIX for Advanced & Expert Users

Configuring snmpd.conf and snmptrapd.conf

HI, I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP) for receiving TRAPS in my networks. I am using RHEL4.0 OS. Please tell me How I can configure above two files in a proper way and at an advanced level. Especially I am getting... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies

10. IP Networking

snmptrap.conf file

Hi I tried a lot bt could not configure snmptrapd.conf... Can any one tell me the steps or give me the configured snmptrapd.conf file?? Its really important..Plz help me.. Thanx (0 Replies)
Discussion started by: swapna_me
0 Replies
Login or Register to Ask a Question