Cant get mjpg_streamer to run in the background

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
tdrakehi
Posts: 2
Joined: Sat Dec 06, 2008 9:15 pm

Cant get mjpg_streamer to run in the background

Post by tdrakehi »

Subject line about says it all. have been completely unable to get the mjpg_streamer to run in daemon mode. This is how things normally run:
./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -r CIF -f 5" -o "./output_http.so -p 8080"
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 352 x 288
i: Frames Per Second.: 5
i: Format............: MJPEG
o: www-folder-path...: disabled
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
If I add the -b background fork option, this is what it does:
./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -r CIF -f 5" -o "./output_http.so -p 8080" -b
enabling daemon mode[Tim@localhost mjpg-streamer-r63]$ forked to background (7857)
But that PID does not have any attached processes.

Any idea on places that I can check for log info or debug info or something that might have happened that I could reverse to get it to run? I downloaded and compiled the most recent version of the uvc_stream program, and it runs perfectly fine in the background, but the resolution is too low. Any help whatsoever would be great.

tdrakehi
yogev_ezra
Posts: 9
Joined: Sat Dec 06, 2008 2:02 pm

Post by yogev_ezra »

Try to open another terminal and there run
tail -f /var/log/messages
and then at the first terminal run the mjpg_streamer in background.
it will tell you what happens.
tdrakehi
Posts: 2
Joined: Sat Dec 06, 2008 9:15 pm

Post by tdrakehi »

That did it. Thank you very much. FOund where the configuration issue was.
Post Reply