jrantaka
Posts: 2
Joined: Sun Oct 16, 2016 3:30 pm

RTSP stream from IP Camera with omxplayer

Sun Oct 16, 2016 3:36 pm

Hey,

Device= raspberry pi 3 b
os= raspbian newest

I'm having difficulties connecting to an rtsp stream with omxplayer. I can't use VLC either because of the lack of GPU support so it hangs the stream on the first frame and drops the connection because it's too slow.

When I use omxplayer with the setup:

Code: Select all

omxplayer -i "rtsp://streamurl
I get an error message:

Code: Select all

omxplayer -i "rtsp://streamurl"
[rtsp @ 0x1f54640] UDP timeout, retrying with TCP
[rtsp @ 0x1f54640] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
When I view the media information of the stream in VLC it shows that it contains Stream 0 and Stream 1 and both are supposed to be h264 streams.

Any suggestions where to go from here? On a normal PC using VLC the stream works just fine, just can't get it running with raspberry pi.
Last edited by jrantaka on Mon Oct 17, 2016 8:10 am, edited 1 time in total.

jrantaka
Posts: 2
Joined: Sun Oct 16, 2016 3:30 pm

Re: RTSP stream from IP Camera with omxplayer

Mon Oct 17, 2016 8:09 am

Actually solved this myself; apparently the problem was with omxplayer trying the connection via UDP and then timing out when not receiving enough information. Forcing omxplayer to use TCP connection got the thing up and running:

Code: Select all

omxplayer --avdict rtsp_transport:tcp

Return to “Graphics, sound and multimedia”