Git Product home page Git Product logo

Comments (6)

shbatm avatar shbatm commented on September 24, 2024 1

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.

Fonfonof avatar Fonfonof commented on September 24, 2024

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.

shbatm avatar shbatm commented on September 24, 2024

@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.

Fonfonof avatar Fonfonof commented on September 24, 2024

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.

shbatm avatar shbatm commented on September 24, 2024

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.

shbatm avatar shbatm commented on September 24, 2024

Closing due to inactivity.

from mmm-rtspstream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.