RTSP in Nicla Vision

@kwagyeman Thank you very much for your patience, finally my camera works. :heart_eyes:

1 Like

HI @kwagyeman , I noticed that when you run wireshark the protocol is JPEG, but mine is UDP, how can I change it to JPEG? I am trying to run my Nicla in VLC media player.
wireshark


VLC media player.
2

Hi, WireShark only says the protocol is JPEG when it sees the start of the RTP stream. The packets are the same. It’s just not classifying them.

As for VLC, VLC is getting the packets. It just refuses to decode them. I have no idea how to fix this since they are valid JPEGs.

As far as I can tell… VLC will only decode VERY particular JPEGs. This is something on my to fix as it will decode JPEGs produced by the OV5640. The difference between our files and the hardware JPEGs created by the camera sensors like the OV5640/OV2640 are minimal.

1 Like

Thanks for your reply I appreciate :slight_smile:

Hi,

Firstly thanks for this amazing thread it really saved my life. I have a kinda unrelated question about RTSP stream with Nicla Vision. So the camera in Nicla Vision is 2MP. In my understanding it needs to give me 1080p resolution. But in my RTSP stream it looks like resolutionis max 480p if not 320p. So my question is how to get max resolution in RTSP stream with Arduino Nicla Vision.

There’s not enough RAM on the system to actually handle the full res of the camera. The only thing you can do is virtually move around the ROI in the full res to scan around.

Thats bad news for me. I didn’t understand what you mean by “The only thing you can do is virtually move around the ROI in the full res to scan around.” Is there a tutorial or thread about how i do that?

Uh, yeah, there’s a feature where you can change the sensor readout window or set windowing. Setting the readout window doesn’t work too well with the camera sensor on the Nicla. But, you can set_windowing(). This will crop the image data from the camera.

So, you’d set the resolution to the max. 2Mp… then set the windowing. The you can move around the window to scan around in the full res.

Nicla vision connects to the R-Pi and obtains an IP address.
Running ffplay on the R-Pi ffplay -rtsp_transport udp rtsp://10.42.0.12 gives [tcp @ 0x7f60003710] Connection to tcp://10.42.0.12:554?timeout=0 failed: Connection timed out
rtsp://10.42.0.12: Connection timed out

Wireshark shows that the R-Pi sends SYN flags to the nicla vision to request a connection, but the nicla does not respond.

What may be wrong?

Hi, do you have the RTSP WiFi script running onboard? did it print out a rstp address to connect to? And did you try playing the video file via tools → video tools → play rstp stream in the IDE?