Git Product home page Git Product logo

Comments (3)

shbatm avatar shbatm commented on September 24, 2024

A few things to try:

  • Do you need a username/password? If so, add it to the url:
rtsp://<user>:<pass>@192.168.0.100:554/onvif1
  • From a command line, please try:
ffmpeg -rtsp_transport tcp -r 30 -i rtsp://192.168.0.100:554/onvif1 -f mpegts -codec:v mpeg1video -bf 0 -

See if there are any errors. You can also add hideFfmpegOutput: false to the stream1 section in the module config and check MM logs instead.

  • If not working, try -rtsp_transport udp in the line above. (if that works, change tcp to udp in Line 14 of modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/src/mpeg1muxer.js)

  • You can also try the following command line to make sure ffmpeg can see the stream. This will save a snapshot.png file.

ffmpeg -i rtsp://192.168.0.100:554/onvif1 -ss 00:00:01.500 -f image2 -vframes 1 snapshot.png

from mmm-rtspstream.

glelan avatar glelan commented on September 24, 2024

tcp--> udp was the trick ;-) thanks a lot !!

from mmm-rtspstream.

shbatm avatar shbatm commented on September 24, 2024

@glelan - Great! I'm glad it was an easy fix. Just to let you know, I've updated the module to add a protocol: "tcp" or protocol: "udp" option in the stream config. If you want to update and try it:

cd ~/MagicMirror/modules/MMM-RTSPStream
git pull
npm run-script update

and then add the option into your stream section in the config file.

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.