Comments (6)
Hi @Fonfonof:
I will look into this, sounds like the module needs to be told to restart the feed when it wakes back up.
Can you answer these questions:
- What module do you use to put the mirror to sleep? MMM-pir-sensor?
- Just turning off the monitor or are you putting the whole Pi to sleep?
- Which branch of this module are you using? master branch (ffmpeg) or wip branch (omxplayer)?
Thank you!
from mmm-rtspstream.
Hi @shbatm:
- I use MMM-PIR-Sensor
- Only the monitor sleeping with the pir sensor.
- I using the master branch (ffmpeg).
- For indication my ip camera is dahua.
Thanks for your help .;)
from mmm-rtspstream.
@Fonfonof, I made a change to the code, please run the following from a command line and see if the problem is still there. The module should now listen for MMM-PIR-sensor's events and stop/start the feed based on if the monitor is off or on.
cd ~/MagicMirror/modules/MMM-RTSPStream
git pull
npm run-script update
from mmm-rtspstream.
Hi,
Thanks for the update but lots of bug now...
i give you the log:
<--- Last few GCs --->
[7561:0x4dbf000] 10873718 ms: Mark-sweep 308.7 (320.0) -> 136.7 (145.5) MB, 2536.8 / 1.0 ms allocation failure GC in old space requested
[7561:0x4dbf000] 10874375 ms: Mark-sweep 136.7 (145.5) -> 136.5 (144.5) MB, 656.6 / 1.1 ms allocation failure GC in old space requested
[7561:0x4dbf000] 10875146 ms: Mark-sweep 136.5 (144.5) -> 136.5 (141.5) MB, 770.7 / 43.3 ms last resort
[7561:0x4dbf000] 10875839 ms: Mark-sweep 136.5 (141.5) -> 136.5 (141.5) MB, 693.1 / 18.6 ms last resort
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x3fab62ad <String[21]: http://localhost:8080>
1: readHuffman [http://localhost:8080/modules/MMM-RTSPStream//jsmpeg.min.js:~1] [pc=0x2f00ed1c](this=0x21e4ffd1 <an MPEG1 with map 0x4c1321d5>,codeTable=0x3d071391 <an Int32Array with map 0x48f0572d>)
2: decodeBlock [http://localhost:8080/modules/MMM-RTSPStream//jsmpeg.min.js:~2] [pc=0x2f015f8c](this=0x21e4ffd1 <an MPEG1 with map 0x4c1321d5>,block=2)
3: decodeMac...
lots of black screen ...
can you help me?
from mmm-rtspstream.
Looks like a memory error I haven't seen before... I will investigate further.
You should try the wip
branch - it is still new, but has been working much smoother and uses hardware-acceleration. See post here for how to switch: https://forum.magicmirror.builders/topic/2743/mmm-rtspstream-video-streaming-from-live-feeds-security-cameras/24?page=3
Short version:
cd ~/MagicMirror/modules/MMM-RTSPStream
git checkout wip
npm install
Add moduleOffset: { left: ##, top: ## }
with ##=number of pixels to your config if the box and video don't line up.
Also, you can make sure you have hideFfmpegOutput: true
inside the stream1
section of your config.
from mmm-rtspstream.
Closing due to inactivity.
from mmm-rtspstream.
Related Issues (20)
- After the update the module does not work HOT 5
- Video positioning after turning off the screen from the PIR sensor HOT 2
- 2 Amcrest Cameras, only one works HOT 3
- [Bug] Rotating cameras does not work with omxplayer HOT 2
- Cannot see full stream HOT 1
- ELIFECYCLE errno 7 after new install HOT 2
- [FEATURE REQUEST] Improve startup/restart behavior - less screen blinking HOT 1
- boarder issue HOT 2
- [Bug] After a random couple of ours the stream stops by itself. HOT 3
- [Bug] RTSP stream is not displayed only a white border HOT 4
- [Bug] VLC Black Screen with PM2 HOT 6
- [Bug] Identifier 'force_visible' is not in camel case HOT 1
- Unable to install
- Module doesn't rotate on vertical Screen HOT 2
- [Bug] rotateStreams not repeating HOT 1
- MMM-RTSPStream. Positioning HOT 1
- [Bug] MagicMirror not starting "Request" not found HOT 4
- /MMM-RTSPStream/config.html can't be reached - MM won't startup HOT 1
- [FEATURE REQUEST] enable vlc muting HOT 8
- Install auto script giving 404 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmm-rtspstream.