chriswiggins / rtsp-streaming-server

Lightweight RTSP/RTP streaming media server written in Javascript
GNU General Public License v3.0
106 stars 21 forks source link

Code gets crashed when i run ffmeg command #11

Closed PuneetSalhotra closed 4 years ago

PuneetSalhotra commented 5 years ago

When i run command ffmpeg -i videoplayback.mp4 -c:v copy -f rtsp rtsp://test:test@127.0.0.1:6001/samplevideo then the main code gets crashed. Here is the error UnhandledPromiseRejectionWarning: ReferenceError: URL is not defined at Object.checkMount (/Users/puneet/Desktop/Project_Nodejs/rtsp-streaming-server/test/index.ts:36:15) at module.exports.checkMount (/Users/puneet/Desktop/Project_Nodejs/rtsp-streaming-server/src/lib/PublishServer.ts:127:42) I could not able to resolve it. let me know if there is any issue in command

ffplay -rtsp_flags listen rtsp://test:test@127.0.0.1:6002/samplevideo there is no file at this location

chriswiggins commented 5 years ago

Is there a reason you're doing a -rtsp_flags listen on your ffplay command? Try without this and see how you go

chriswiggins commented 4 years ago

Please re-open if you're still having issues