chpmrc / foscam_streamer

A small tool to stream Foscam IP cameras on the web
110 stars 46 forks source link

Doesn't stream correctly #5

Closed hupptechnologies closed 4 years ago

hupptechnologies commented 6 years ago

Please see below screenshot how it render. I played the rtsp in vlc palyer and it's perfect, but when played through this library, it appeared as in screenshot.

screenshot from 2018-02-02 12-48-40

Below logs on node terminal :

Past duration 0.799995 too large 362908kB time=00:21:04.50 bitrate=2351.1kbits/s dup=12639 drop=5 speed= 1x Last message repeated 4 times

greenygh0st commented 6 years ago

Same issue here

chpmrc commented 6 years ago

Have you checked that the streaming resolution is the same as the script?

hupptechnologies commented 6 years ago

Yes checked that already.

patelShreyaP commented 6 years ago

I have same problem. In 1280 x 720 it is working fine. 1280_720px

but in other resolution eg(720 x 480) it shows otherresolution

i did this changes in mpeg1muxer.js file var args = ('-i ' + this.url + ' -vf scale=720:480 -f mpeg1video -b:v 1000k -an -r 24 -').split(' ')

ducati1224 commented 6 years ago

@patelShreyaP you should try: var args = ("-rtsp_transport tcp -i " + this.url + " -s 720x480 -f mpeg1video -b:v 1000k -an -r 24 -").split(" ");

aluminiumgeek commented 4 years ago

The solution is to change width/height in index.html to the actual size of your video.

hupptechnologies commented 4 years ago

I am closing as I am not working on this solution anymore.