Camera support?

Hello!

Thanks for the great work with webthings (devices, gateway,…).
How can I see the ffmpeg command executed to watch the video stream?

I’m trying to get an Android app that emulates an ONVIF camera working with WebThings Gateway and ONVIF addon - details at How to show video stream?.

ONVIF add on and gateway Thing configurations look OK: The gateway found the ‘camera’.

- Changing resolution on the camera is shown in the gateway;
- Checking streaming and clicking on stream button on the gateway is detected by the 'camera';

… but there is no video showing in the stream view in the gateway. Just a close button (perhaps a transparent window?)

Previous posts in this thread were very useful. I merged the information and got ffplay to show the video stream using the command: ffplay rtsp://admin:admin@192.168.0.13:8080/h264_pcm.sdp

edit:
ffplay reports a lot of errors:

[h264 @ 0x7f1414057740] concealing 514 DC, 514 AC, 514 MV errors in P frame
[rtsp @ 0x7f1414000bc0] max delay reached. need to consume packet
[rtsp @ 0x7f1414000bc0] RTP: missed 10 packets
[rtsp @ 0x7f1414000bc0] max delay reached. need to consume packet
[rtsp @ 0x7f1414000bc0] RTP: missed 16 packets
[rtsp @ 0x7f1414000bc0] max delay reached. need to consume packet
[rtsp @ 0x7f1414000bc0] RTP: missed 2 packets
[h264 @ 0x7f1414057740] mb_type 54 in P slice too large at 12 14
[h264 @ 0x7f1414057740] error while decoding MB 12 14
[h264 @ 0x7f1414057740] concealing 677 DC, 677 AC, 677 MV errors in P frame
Invalid UE golomb code= 52 aq= 159KB vq= 0KB sq= 0B f=7/7
[h264 @ 0x7f1414161900] cbp too large (3199971767) at 10 23
[h264 @ 0x7f1414161900] error while decoding MB 10 23
[h264 @ 0x7f1414161900] concealing 319 DC, 319 AC, 319 MV errors in P frame
[h264 @ 0x7f1414084240] corrupted macroblock 36 5 (total_coeff=-1)
[h264 @ 0x7f1414084240] error while decoding MB 36 5
[h264 @ 0x7f1414084240] concealing 1013 DC, 1013 AC, 1013 MV errors in I frame
[NULL @ 0x7f1414004a80] missing picture in access unit with size 4744
[h264 @ 0x7f1414057740] No start code is found.
[h264 @ 0x7f1414057740] Error splitting the input into NAL units.
[NULL @ 0x7f1414004a80] missing picture in access unit with size 4744
[h264 @ 0x7f1414057740] No start code is found.
[h264 @ 0x7f1414057740] Error splitting the input into NAL units.
[NULL @ 0x7f1414004a80] missing picture in access unit with size 7116
[h264 @ 0x7f1414057740] No start code is found.

Reducing resolution to 240x320 and limiting framerate to 10fps (in the ‘camera’) reduce the quantity of errors.

I’m going to try the gateway with these camera settings…

Thank you all.