Replies: 5 comments
-
Not sure what you mean by dynamic. A sample of the webcontrol html is in the "doc" subdirectory of the code here This sample is a bit outdated but can cycle through grabbing static images to refresh the preview page if needed and when users select camera specific it goes to the mjpeg stream. For just static images, the page could be really simple and just point to the static jpg urls. All the information regarding the streams and uris is provided via the http://MotionplusUrl:port/0/config.json Other options from the page are listed here |
Beta Was this translation helpful? Give feedback.
-
Thanks for the starting point.
related question: the nice url reference page you mention, says there are
urls to view the main, and substream outputs, for the camera.
but.. I dont see anything in the config docs about how to specify the
streams for each of those, from the camera?
…On Sun, Apr 30, 2023 at 10:39 AM Mr-Dave ***@***.***> wrote:
Not sure what you mean by dynamic. A sample of the webcontrol html is in
the "doc" subdirectory of the code here
<https://github.com/Motion-Project/motionplus/blob/master/doc/samplepage.html>
This sample is a bit outdated but can cycle through grabbing static images
to refresh the preview page if needed and when users select camera specific
it goes to the mjpeg stream.
For just static images, the page could be really simple and just point to
the static jpg urls. All the information regarding the streams and uris is
provided via the http://MotionplusUrl:port/0/config.json Other options
from the page are listed here
<https://motion-project.github.io/motionplus_examples.html#webcontrol_pages>
—
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANEV6LEXLIUS53EHPG6L43XD2PVFANCNFSM6AAAAAAXRABAHY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
If I said that the |
Beta Was this translation helpful? Give feedback.
-
ah okay lemme be more specific.
Terminology first:
typically ,in IP cameras that support RTSP, you often have choice of a
"primary stream" and a 'sub stream".
For example, in reolink cameras,
Main Stream: ***@***.***_address:554/h264Preview_01_main
Sub Stream: ***@***.***_address:554/h264Preview_01_sub
primary, aka main stream, is full resolution.
sub stream is often a preview stream, at 640x480 or equivalent.
https://motion-project.github.io/motionplus_examples.html#webcontrol_pages
mentions
{IP}:{port0}/{camid}/static Primary image for the camera
{IP}:{port0}/{camid}/static/substream Substream image for the camera
In the sample camera-dist.conf , it mentions
netcam_url
in the docs, file:///C:/Users/phil/OneDrive/Documents/motionplus_config.html#netcam_url
it only says (give an RTSP stream)
it doesnt say anything about a sub stream!
But, now I guess I'll answer my own question, because now in the FULL
docs, I notice there is also a
netcam_high_url
Which is apparently intended for the full-res stream.
Seems like it could be a good thing to include that in the sample
camera configs.
|
Beta Was this translation helpful? Give feedback.
-
Ah. The url that is specified in the The substream from MotionPlus will be created by MotionPlus by chopping in half the resolution from whatever is coming from All this is of course undocumented, or if so, in a very cryptic way..... |
Beta Was this translation helpful? Give feedback.
-
For bandwidth reasons, I want the server to only serve up static snapshots of the camera view.
User will have to manually refresh page, to get updated image.
I've tried various settings in the conf files, but no luck.
Seems like the most straightforward way is to take advantage of
"webcontrol_interface user"
But... what URL can I use in the html for this?
Even when I poke around directly with the default interface, and tell my browser "open image in new tab".... it uses a dynamic url, that keeps refreshing the image automatically :(
Beta Was this translation helpful? Give feedback.
All reactions