Git Product home page Git Product logo

Comments (7)

shbatm avatar shbatm commented on June 22, 2024

Please provide a copy of the module config that you used. Also, have you confirmed ffmpeg has been installed and have run npm install inside the module's directory?

from mmm-rtspstream.

shadownomore avatar shadownomore commented on June 22, 2024

{
module: 'MMM-RTSPStream',
position: 'middle_center',
config: {
autoStart: true,
rotateStreams: false,
rotateStreamTimeout: 10,
showSnapWhenPaused: false,
moduleWidth: 354,
moduleHeight: 240,
player: 'ffmpeg',
stream1: {
name: 'Front Door',
url: 'http://192.168.1.177:65520/videostream.asf?user=mirror&pwd=mirroradmin&resolution=64&rate=0',
snapshotUrl: '',
snapshotRefresh: 10, // Seconds
frameRate: "30",
port: 9999,
}
}
},

above is the config that im using. Ive got it now to where the default stream will work but when i change it to mine i just get a gray box in the middle of the screen, even though the feed works in VLC.

from mmm-rtspstream.

shbatm avatar shbatm commented on June 22, 2024

Unfortunately I have not yet tested this with an http:// protocol. It's on my TO-DO list, but I don't have one to test with. What model camera are you trying to connect to?

  1. You can try adding protocol: "udp", in the stream1 config section to test if its udp and not tcp.
  2. Are you getting any errors in the console / pm2 logs? Add hideFfmpegOutput: false after port: 9999, to get the ffmpeg errors to appear in the MM2 logs
  3. Can you access the stream directly using a webpage? Have you confirmed if you need a plugin to play the video? If no plugin is required, you could try and use the MMM-iFrame module for now until I add direct streaming capabilities to the module.
  4. You can try playing with the ffmpeg command line arguments yourself and see if you get any errors. The default is:
ffmpeg -rtsp_transport tcp -r 30 -i {{YOUR URL}} -f mpegts -codec:v mpeg1video -bf 0 -
  1. If you're willing to do some experimentation you can install the dev branch which uses omxplayer for the local screen (no video will be accessible from a browser on another computer, but it uses the GPU so it will run much faster). More details in this thread. To
    cd ~/MagicMirror/modules/MMM-RTSPStream
    git checkout wip
    # Update node modules
    npm install

from mmm-rtspstream.

psteimann avatar psteimann commented on June 22, 2024

I have the same problem (blank window in position middle_enter) but with rtsp. The stram works (see config), tested with Ispy and VLC. So Portforwarding, Firewall etc must be ok
Here is my config:
config: {
autoStart: true,
rotateStreams: false,
rotateStreamTimeout: 10,
showSnapWhenPaused: false,
moduleWidth: 354,
moduleHeight: 240,
stream1: {
name: 'DLinkStream',
url: 'rtsp://xxxx:[email protected]:554/play1.sdp',
snapshotUrl: '',
snapshotRefresh: 0, // Seconds
frameRate: "30",
port: 9999,
}
}

from mmm-rtspstream.

psteimann avatar psteimann commented on June 22, 2024

Solved the problem now: I had to change the port from 8088 to 8099...

from mmm-rtspstream.

marcelontime avatar marcelontime commented on June 22, 2024

@psteimann which port? I'm having the same issue...

from mmm-rtspstream.

psteimann avatar psteimann commented on June 22, 2024

The Port in the config.js on the top of the file. I had an error starting MM concerning the port while starting it in the shell with npi start magic mirror..check out first if you get errors.

if it still does not work: I also installed the master branch, described in another issue here, used another player as suggested and corrected the position...

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.