citolen / goproh4 Goto Github PK
View Code? Open in Web Editor NEWNode.js module to control a GoPro Hero 4
License: MIT License
Node.js module to control a GoPro Hero 4
License: MIT License
Hi,
First of all thanks for great library!
I was creating an app heavily working with live stream. At some point I've noticed the app is crashing after few hours with EMFILE bind thrown. After digging I've noticed that my app is constantly opening new UDP connections and that led me to your _keepAliveStart function. You are using UDP socket to send 'keep alive' message to the camera but the socket is never closed. After adding simple callback function (line 168 in index.js) to the send and closing socket problem disappeared.
client.send(GoPro.keepAliveMessage, 0, GoPro.keepAliveMessage.length, GoPro.keepAlivePort, self._ip, **function(err){ client.close(); }**);
I'm trying to run livestream.js example for Hero 4 Session. Tried both 320x240 and 432x240 resolutions. Console is flooded with messages about corrupted packets. Video in the browser has major artefacts. If I keep camera still, eventually (5-10s) image in the browser clears and entire picture can be seen correctly. But if I move the camera, or something moves in the camera's FOV then artefacts appear again.
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14588574).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14591577).3.1kbits/s dup=3787 drop=0 speed=1.18x
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14594580).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14597583).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14609595).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14612598).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14615601).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14687673).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14690676).3.6kbits/s dup=3792 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14705691).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14708694).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14711697).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14723709).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14726712).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14729715).
[h264 @ 0x7fa306834200] error while decoding MB 18 2, bytestream -38
[h264 @ 0x7fa306834200] concealing 382 DC, 382 AC, 382 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14732718).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14735721).3.6kbits/s dup=3814 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14786772).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14801787).3.6kbits/s dup=3814 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14804790).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14807793).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14810796).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14816802).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14819805).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14834820).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14843829).4.0kbits/s dup=3821 drop=0 speed=1.17x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14846832).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14849835).
[h264 @ 0x7fa306833600] top block unavailable for requested intra mode -1
[h264 @ 0x7fa306833600] error while decoding MB 15 0, bytestream 7526
[h264 @ 0x7fa306833600] concealing 405 DC, 405 AC, 405 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14852838).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14873859).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14876862).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14888874).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14891877).4.3kbits/s dup=3862 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14903889).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14918904).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14930916).
[h264 @ 0x7fa2f4058e00] error while decoding MB 22 9, bytestream -24
[h264 @ 0x7fa2f4058e00] concealing 189 DC, 189 AC, 189 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14936922).4.1kbits/s dup=3884 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14951937).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14954940).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14957943).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14969955).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14972958).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14975961).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14978964).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14990976).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 14993979).3.8kbits/s dup=3897 drop=0 speed=1.18x
[h264 @ 0x7fa305032400] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7fa305032400] error while decoding MB 0 3, bytestream 4827
[h264 @ 0x7fa305032400] concealing 373 DC, 373 AC, 373 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15015000).
[h264 @ 0x7fa305035a00] error while decoding MB 6 12, bytestream -6
[h264 @ 0x7fa305035a00] concealing 124 DC, 124 AC, 124 MV errors in P frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15066051).
[h264 @ 0x7fa305036000] top block unavailable for requested intra mode -1
[h264 @ 0x7fa305036000] error while decoding MB 16 0, bytestream 17773
[h264 @ 0x7fa305036000] concealing 405 DC, 405 AC, 405 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15069054).4.3kbits/s dup=3900 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15072057).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15075060).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15078063).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15081066).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15084069).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15087072).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15090075).
[h264 @ 0x7fa2f4061000] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7fa2f4061000] error while decoding MB 0 6, bytestream 6626
[h264 @ 0x7fa2f4061000] concealing 292 DC, 292 AC, 292 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15093078).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15111096).
[h264 @ 0x7fa306833600] top block unavailable for requested intra mode -1kbits/s dup=3917 drop=0 speed=1.18x
[h264 @ 0x7fa306833600] error while decoding MB 15 0, bytestream 6212
[h264 @ 0x7fa306833600] concealing 405 DC, 405 AC, 405 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15129114).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15138123).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15141126).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15144129).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15147132).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15168153).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15171156).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15174159).4.6kbits/s dup=3949 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15183168).
[h264 @ 0x7fa2f4059400] error while decoding MB 25 14, bytestream -8
[h264 @ 0x7fa2f4059400] concealing 51 DC, 51 AC, 51 MV errors in P frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15186171).
[h264 @ 0x7fa2f4059a00] cabac decode of qscale diff failed at 18 2
[h264 @ 0x7fa2f4059a00] error while decoding MB 18 2, bytestream 6426
[h264 @ 0x7fa2f4059a00] concealing 382 DC, 382 AC, 382 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15207192).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15210195).
[h264 @ 0x7fa2f4060a00] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7fa2f4060a00] error while decoding MB 0 2, bytestream 6897
[h264 @ 0x7fa2f4060a00] concealing 400 DC, 400 AC, 400 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15213198).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15216201).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15228213).4.4kbits/s dup=3949 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15231216).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15237222).
[h264 @ 0x7fa306833c00] error while decoding MB 26 7, bytestream -6
[h264 @ 0x7fa306833c00] concealing 239 DC, 239 AC, 239 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15240225).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15243228).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15258243).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15261246).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15264249).4.3kbits/s dup=3958 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15276261).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15279264).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15288273).
[h264 @ 0x7fa2f4059400] left block unavailable for requested intra mode
[h264 @ 0x7fa2f4059400] error while decoding MB 0 4, bytestream 2360
[h264 @ 0x7fa2f4059400] concealing 346 DC, 346 AC, 346 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15291276).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15303288).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15309294).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[h264 @ 0x7fa2f4060a00] concealing 273 DC, 273 AC, 273 MV errors in I frameits/s dup=3980 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15312297).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15327312).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15345330).
[h264 @ 0x7fa2f4018e00] concealing 284 DC, 284 AC, 284 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15348333).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15351336).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15357342).
[h264 @ 0x7fa306834200] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7fa306834200] error while decoding MB 0 2, bytestream 550
[h264 @ 0x7fa306834200] concealing 400 DC, 400 AC, 400 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15360345).5.4kbits/s dup=3984 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15369354).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15372357).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15375360).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15402387).
[h264 @ 0x7fa2f405d000] top block unavailable for requested intra mode -1
[h264 @ 0x7fa2f405d000] error while decoding MB 15 0, bytestream 7628
[h264 @ 0x7fa2f405d000] concealing 405 DC, 405 AC, 405 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15405390).5.4kbits/s dup=3993 drop=0 speed=1.17x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15408393).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15411396).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15414399).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15435420).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpeg1video @ 0x7fa30682da00] warning, clipping 1 dct coefficients to -255..255
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15390375).
[mpegts @ 0x7fa2f400b400] DTS 15390375 < 15435420 out of order
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15447432).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15450435).
[h264 @ 0x7fa306833600] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7fa306833600] error while decoding MB 0 3, bytestream 6400
[h264 @ 0x7fa306833600] concealing 373 DC, 373 AC, 373 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15465450).5.8kbits/s dup=4008 drop=0 speed=1.18x
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15468453).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15471456).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15480465).
[h264 @ 0x7fa305036000] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7fa305036000] error while decoding MB 0 9, bytestream -6
[h264 @ 0x7fa305036000] concealing 211 DC, 211 AC, 211 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15483468).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15486471).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15489474).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15492477).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15495480).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15501486).4.8kbits/s dup=4019 drop=0 speed=1.18x
[h264 @ 0x7fa2f4060400] left block unavailable for requested intra mode
[h264 @ 0x7fa2f4060400] error while decoding MB 0 6, bytestream 1916
[h264 @ 0x7fa2f4060400] concealing 292 DC, 292 AC, 292 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15516501).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15519504).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15525510).
[h264 @ 0x7fa2f4061600] left block unavailable for requested intra mode
[h264 @ 0x7fa2f4061600] error while decoding MB 0 3, bytestream 856
[h264 @ 0x7fa2f4061600] concealing 373 DC, 373 AC, 373 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15528513).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15531516).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15537522).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15540525).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15543528).3.6kbits/s dup=4045 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15549534).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[h264 @ 0x7fa305036000] left block unavailable for requested intra mode
[h264 @ 0x7fa305036000] error while decoding MB 0 4, bytestream 3154
[h264 @ 0x7fa305036000] concealing 346 DC, 346 AC, 346 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15552537).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15555540).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15558543).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15570555).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15603588).
udp://10.5.5.9:8554: corrupt decoded frame in stream 04.43 bitrate= 583.5kbits/s dup=4047 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15609594).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15642627).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15645630).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15648633).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15651636).3.2kbits/s dup=4053 drop=0 speed=1.18x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15657642).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15660645).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15663648).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15666651).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[h264 @ 0x7fa305036000] left block unavailable for requested intra mode
[h264 @ 0x7fa305036000] error while decoding MB 0 8, bytestream 1553
[h264 @ 0x7fa305036000] concealing 238 DC, 238 AC, 238 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15669654).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15672657).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15681666).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15690675).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15717702).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15720705).2.4kbits/s dup=4068 drop=0 speed=1.17x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15723708).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15729714).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15774759).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15789774).2.3kbits/s dup=4068 drop=0 speed=1.17x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15792777).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15795780).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15798783).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15810795).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15828813).
udp://10.5.5.9:8554: corrupt decoded frame in stream 0
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15831816).1.9kbits/s dup=4082 drop=0 speed=1.17x
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15837822).
[h264 @ 0x7fa2f405d000] error while decoding MB 17 11, bytestream -34
[h264 @ 0x7fa2f405d000] concealing 140 DC, 140 AC, 140 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15849834).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15852837).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15855840).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15858843).
[h264 @ 0x7fa2f4060400] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x7fa2f4060400] error while decoding MB 0 3, bytestream 3244
[h264 @ 0x7fa2f4060400] concealing 373 DC, 373 AC, 373 MV errors in I frame
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15861846).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15864849).
[mpegts @ 0x7fa2f400b400] Packet corrupt (stream = 0, dts = 15882867).
dont have example "List/retrieve information of the files on the camera" ?
amazing work
regards !
Thanks for this interesting library. Is audio supported on Livestream.js?
Hi,
I'd like to port your library to Ruby, and I'm just having some difficulty in figuring out what is the live streaming URL of the GP4, and what is the intended command sequence for enabling it.
Could you please disclose it?
Thanks,
Paolo
When running the live stream example, I get the following error:
Potentially unhandled rejection [21] null (WARNING: non-Error used)
I noticed this, but I have ffmpeg installed.
My GoPro Hero 4 Black was not responding the powerOn.
I found that the call to the creation of the bytestring for the mac address was not working.
Fix can be found at #14
Hi Guys,
Is there any plans for adding GoPro 5 functionality to this, or doing a GoProH5?
Does this work with the Hero 4 session?
Has anyone integrated this into an application that also needs access to the internet? I am trying to figure out how to remote control the GoPro, allow the user to take a photo or video, and then upload the files to AWS s3 to be displayed on a custom gallery landing page.
Any ideas would be awesome, thanks
See pull request #14
Was released a couple of weeks ago.
Hi. Im considering getting a hero 4 and use your package. In my node app, is there a function that I could use to take a photo and return that photo to my web app such as a get request?
I see that the GoPro's API returns a base64 string.
image() - get an image and return it as a base64-encoded-encoded PNG string
here is my issue when i try livestream
[livestream] started
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn ffmpeg ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
Hi,
have you had any success on retrieving a live video feed?
Grtz,
Sam
I was attempting to run cam.listMedia() shortly after stopping a recording - this would result in an unhandled rejection. If the .catch() promise was handled, the error was simple "null".
After experimenting I found it had to do with timing - a simple half second delay (maybe even less?) after the cam.stop() would allow the listMedia() to fire off fine - doing listMedia() immediately after a stop() causes an error.
It might be worth noting this in the docs or introducing your own internal rate limiting.
Hi, Great work.
Can I take photos while video is recording?
Hello,
I was wondering in what format the MAC address needs to be in the camera object.
cams[0] = new GoPro.Camera({
ip: '192.168.2.2',
broadcastip: '192.168.2.255',
//mac: '2122172514413965'
});
When I log the cam._mac I get [ 212, 217, 25, 144, 139, 65 ]
Awesome repo!
I am seeing semi-gibberish(pieces are broken but inividually do contain various parts of the video feed) when I browse at http://127.0..0.1:8082/index. what am i doing wrong -- seems like some error in the encoder/decoder cycle ?
Hi, I just tried your module and it's pretty awesome. But when I called powerOn() I can't wake it up. I have set the mac address correctly.
I've tried to run livestream.js. I had installed ffmpeg. and I still got this error message.
[livestream] started
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn ffmpeg ENOENT
at exports._errnoException (util.js:907:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
p.s. run on windows 10 aniversary build with node 4.5.0 npm 3.10.6
All is working fine,
But the livepreview does not show up in the browser
The console log from livestream.js looks like this
$ node livestream.js
[livestream] started
ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --disable-ffserver --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libtheora --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc --enable-libzimg
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
New WebSocket Connection (1 total)
But the website remains gray
I tried all in Windows 10 Ubuntu Bash Developer Tool
Hello!
I'm trying to use your library to connect to a GoPro Hero. I think it's the first edition.
this is the code i've copied from one of your examples:
var GoPro = require ('goproh4');
var cam = new GoPro.Camera();
cam.status().then(function (status) {
console.log('[status] = ', status);
});
this is the output:
Potentially unhandled rejection [1] Error: connect ETIMEDOUT 10.5.5.9:80
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at TCPConnectWrap.afterConnect as oncomplete
Can it be done? Can I connect to my camera?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.