SmallNetBuilder Forums
Go Back   SmallNetBuilder Forums > Wireless Networking > ASUS Wireless > Asuswrt-Merlin

Reply
 
Thread Tools Search this Thread Display Modes
  #71  
Old 09-08-2014, 04:08 PM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 611
Thanks: 137
Thanked 228 Times in 131 Posts
TeHashX is just starting out
Default

Quote:
Originally Posted by mwieting View Post
Whenever I get to this part of the instructions: /opt/etc/init.d/S99webcam start
my router reboots. It doesnt seem like the service is starting.
help?
Try with firmware 374.43
Reply With Quote
The Following User Says Thank You to TeHashX For This Useful Post:
  #72  
Old 09-08-2014, 11:05 PM
sabot105mm sabot105mm is offline
Member
 
Join Date: Feb 2013
Posts: 48
Thanks: 3
Thanked 4 Times in 1 Post
sabot105mm is just starting out
Default

mjpg_streamer
Section: USER COMMANDS (1)
Updated: June 28, 2012
Index
NAME
mjpg_streamer - Stream webcam video to HTTP
SYNOPSIS
mjpg_streamer[-b|--background] [-i "INPUT_PLUGIN [INPUT_OPTIONS]"]
-o "OUTPUT_PLUGIN [OUTPUT_OPTIONS]"

mjpg_streamer-h | --help
mjpg_streamer-v | --version


DESCRIPTION
mjpg_streamertakes JPGs from Linux-UVC compatible webcams, from the filesystem or fromother input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLCand other software. Alternatively, the stream can be saved to a file orsingle frames can be captured and saved. It is the successor ofuvc-streamer, a Linux-UVC streaming application with Pan/Tilt.

Note:The name of the executable program is mjpg_streamer (with underscore) butthe name of the package is mjpg-streamer (with hyphen). The latter is usedin pathnames too.
OPTIONS

-i | --input "<input-plugin.so> [parameters]"
-o | --output "<output-plugin.so> [parameters]"
-h | --help
display a short help message.
-v | --version
display version information.
-b | --background
fork to the background, run in daemon mode.


EXAMPLES

To open an UVC webcam "/dev/video1" and stream it via HTTP:
mjpg_streamer-i "input_uvc.so -d /dev/video1"
-o "output_http.so"

To open an UVC webcam and stream via HTTP port 8090:
mjpg_streamer-i "input_uvc.so" -o "output_http.so -p 8090"

To get help for a certain plugin:
mjpg_streamer-i "input_uvc.so --help"
mjpg_streamer-i input_testpicture.so
-o "output_http.so --help"

This is the minimum command line to start mjpg_streamer with webpages. For the input-plugin default parameters are used:

mjpg_streamer-o "output_http.so
-w /usr/share/mjpg-streamer/www"


FINDING THE PLUGINS
The default search path for the plugins is taken from the variableLD_LIBRARY_PATH. When you get an error saying that plugins can not be found,set LD_LIBRARY_PATH like this:

exportLD_LIBRARY_PATH="/usr/lib/mjpg-streamer"

or - for 64-Bit systems:

exportLD_LIBRARY_PATH="/usr/lib64/mjpg-streamer"

Or instead of just providing the plugin file name, use a complete (absolute)path and filename:

mjpg_streamer-i "/usr/lib/mjpg-streamer/input_uvc.so"


PLUGINS
input_uvc.so- UVC webcam grabber

The following parameters can be passed to this plugin:

-d | --device <DEVICE>
Video device to open. Example: /dev/video0.
-r | --resolution <RES>
The resolution of the video device. Can be one of the following strings:QSIF QCIF CGA QVGA CIF VGA SVGA XGA SXGA or a custom value like thefollowing example: 640x480.
-f | --fps <NUMBER>
Frames per second. You must choose a value supported by your camera.
-y | --yuv
Enable YUYV format and disable MJPEG mode.
-q | --quality <PERCENT>
JPEG compression quality in percent (activates YUYV format, disables MJPEG).
-m | --minimum_size <SIZE>
Drop frames smaller then this limit, useful if the webcam producessmall-sized garbage frames. This may happen under low light conditions.
-n | --no_dynctrl
Do not initalize dynctrls of Linux-UVC driver.
-l | --led <on|off|blink|auto>
Switch the LED "on", "off", let it "blink" or leave it up to the driverusing the value "auto".

input_file.so- File input plugin.

-d | --delay <DELAY>
Delay to pause between frames in ms.
-f | --folder <DIRECTORY>
Folder to watch for new JPEG files.
-r | --remove
Remove/delete JPEG file after reading.
-n | --name
Ignore changes unless filename matches.

input_gspcav1.so- GSPCAV1 webcam grabber.

-d | --device <DEVICE>
Video device to open.
-r | --resolution <RES>
The resolution of the video device. Can be one of the following strings:QSIF QCIF CGA QVGA CIF VGA SVGA XGA SXGA or a custom value like thefollowing example: 640x480.
-f | --format <r16|r24|r32|yuv|jpg>
Grabbing format, should be set to 'jpg'. Can be: r16 r24 r32 yuv jpg.

input_testpicture.so- Test picture input plugin.

-d | --delay <DELAY>
Delay to pause between frames in ms.
-r | --resolution <RES>
Can be one of 960x720, 640x480, 320x240, 160x120.

output_http.so- HTTP output plugin

-w | --www <DIRECTORY>
Directory that contains webpages in flat hierarchy (no subdirectories). ForopenSUSE packages this is
/usr/share/mjpg-streamer/www.
-p | --port <PORT>
TCP port for this HTTP server. The default port is 8080.
-c | --credentials <USERNAME:PASSWORD>
Ask for "usernameassword" on connect.
-n | --nocommands
Disable execution of commands.

output_file.so- File output plugin.

-f | --folder <DIRECTORY>
Directory to save pictures.
-m | --mjpeg
Save the stream to an mjpeg file.
-d | --delay <DELAY>
Delay after saving pictures in ms.
-s | --size <NUMBER>
Size of ring buffer (max number of pictures to hold).
-e | --exceed <NUMBER>
Allow ringbuffer to exceed limit by this amount.
-c | --command <COMMAND>
Execute command after saving picture.

output_udp.so- UDP output plugin.
This plugin saves a picture from the stream upon receiving an UDP request.The request is sent usingmjpg_streamer_udp_client.

-f | --folder <DIRECTORY>
Directory to save pictures.
-d | --delay <DELAY>
Delay after saving pictures in ms.
-c | --command <COMMAND>
Execute command after saving picture.
-p | --port <PORT>
UDP port to listen for picture requests. UDP message is the filename tosave. By default the client uses port 2001.

output_autofocus.so- Autofocus output plugin
This plugin continuously grabs a fresh frame, calculates focus for bestsharpness and adjusts the focus accordingly.

-d | --delay <DELAY>
Delay between grabbing frames in ms. Defaults to 1000.


EXIT STATUS
A runningmjpg_streamercan be stopped with CTRL-C or by sending the signal SIGINT (kill -SIGINT) tothe process. Receiving the signal will shutdown all plugins and freeresources. On normal termination it returns a zero exit status and onerror it returns 1.
AUTHOR
Tom Stöveken, Márton Miklós

Last edited by sabot105mm; 09-08-2014 at 11:08 PM.
Reply With Quote
  #73  
Old 09-17-2014, 08:17 AM
gregnukem gregnukem is offline
New Member
 
Join Date: Sep 2012
Posts: 9
Thanks: 4
Thanked 0 Times in 0 Posts
gregnukem is just starting out
Default

Quote:
Originally Posted by TeHashX View Post
Try with firmware 374.43
My previous firmware was 374.40 so I rolled back there and everything works now.

But I wish we were able to be on the latest and greatest firmware. I wonder if it's possible to update the modules to be compatible with the current 374.45? Or is it the firmware that is the culprit?
Reply With Quote
  #74  
Old Today, 03:15 AM
White_Knight's Avatar
White_Knight White_Knight is offline
Member
 
Join Date: Apr 2014
Location: Georgia, Tbilisi
Posts: 51
Thanks: 4
Thanked 5 Times in 5 Posts
White_Knight is just starting out
Question

Hi TeHashX,

Could you create step by step tutorial for setup mjpg-streamer on Entware ( as i see in this topic only optware ) ?

Can mjpg-streamer works with Cam connected through HUB ( if hub take power from usb port) ?

And one more question about mjpg-streamer, can we create motion detection with save video files on Attachment HDD based on this Software?
__________________
Moment between past and future is called "Life"

Last edited by White_Knight; Today at 03:20 AM.
Reply With Quote
  #75  
Old Today, 05:08 AM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 611
Thanks: 137
Thanked 228 Times in 131 Posts
TeHashX is just starting out
Default

Quote:
Originally Posted by White_Knight View Post
Hi TeHashX,

Could you create step by step tutorial for setup mjpg-streamer on Entware ( as i see in this topic only optware ) ?
It's easy on entware too but after firmware 374.43 some kernel changes make router to crash when starting mjpg-streamer

Quote:
Can mjpg-streamer works with Cam connected through HUB ( if hub take power from usb port) ?
Yes, should work http://forums.smallnetbuilder.com/sh...ad.php?t=10083
Quote:
And one more question about mjpg-streamer, can we create motion detection with save video files on Attachment HDD based on this Software?
Dunno, I have to see

Last edited by TeHashX; Today at 05:15 AM.
Reply With Quote
  #76  
Old Today, 06:57 AM
White_Knight's Avatar
White_Knight White_Knight is offline
Member
 
Join Date: Apr 2014
Location: Georgia, Tbilisi
Posts: 51
Thanks: 4
Thanked 5 Times in 5 Posts
White_Knight is just starting out
Default

Quote:
Originally Posted by TeHashX View Post
It's easy on entware too but after firmware 374.43 some kernel changes make router to crash when starting mjpg-streamer
Now i have myself compilled FW ver. 376.47 Beta 2

( i test with hub connection\i didn't test directly connection )
In sys log i see "Video Device not detected" after logs about mjpg-stream loaded.

Today i change my usb device configuration and test with directly connection webcam

In Entware version I need change configuration in main Start\Stop script as you changed in Optware, or need edit some other configuration file ?
__________________
Moment between past and future is called "Life"
Reply With Quote
  #77  
Old Today, 07:37 AM
TeHashX's Avatar
TeHashX TeHashX is offline
Very Senior Member
 
Join Date: Jul 2012
Location: Europe
Posts: 611
Thanks: 137
Thanked 228 Times in 131 Posts
TeHashX is just starting out
Default

Quote:
Originally Posted by White_Knight View Post
Now i have myself compilled FW ver. 376.47 Beta 2

( i test with hub connection\i didn't test directly connection )
In sys log i see "Video Device not detected" after logs about mjpg-stream loaded.

Today i change my usb device configuration and test with directly connection webcam

In Entware version I need change configuration in main Start\Stop script as you changed in Optware, or need edit some other configuration file ?
In entware you should already have S96mjpg-streamer startup script if is installed from repository
Code:
opkg install mjpg-streamer
Reply With Quote
Reply

Tags
howto, tutorial

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 07:54 PM.


Top 10 Stats
Top Posters* Top Thanked
RMerlin  367
stevech  134
john9527  134
azazel1024  129
hggomes  84
noric  83
sfx2000  75
L&LD  69
AndreyPopov  60
Trip  59
RMerlin  5780
stevech  338
john9527  282
ryzhov_al  272
TeHashX  228
L&LD  207
RogerSC  195
sinshiva  146
joegreat  126
sfx2000  124
Most Viewed Threads* Hottest Threads*
Old Asuswrt-Merli...  14112
Old Asuswrt-Merli...  12762
Old My...  5481
Old Most stable...  4792
Old RT-AC87R (U)...  4007
Old Thinking of...  3985
Old Connection...  3270
Old [HOW TO]...  3011
Old Can't trust...  2594
Old RT-N66U...  2508
Old Asuswrt-Merli...  122
Old Asuswrt-Merli...  73
Old Connection...  59
Old My...  56
Old [HOW TO]...  50
Old RT-AC87R (U)...  39
Old USB N...  37
Old Most stable...  30
Old New...  28
Old Second new...  27


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2006-2014 Pudai LLC All Rights Reserved.