Opened 3 years ago

Closed 3 years ago

#10435 closed defect (invalid)

Hash sign in a RTSP URI inside password breaks parser: Port missing in uri

Reported by: Martin Owned by:
Priority: normal Component: undetermined
Version: 4.4.4 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi,

if one has a '#' sign in the password it cannot be passed via a cmdline to ffmpeg-4.4.4:

ffmpeg -i rtsp://someuser:pass_with_#_@192.168.0.1:554/live1s1.sdp -vcodec copy -acodec copy -map 0 -f segment -segment_time 300 -segment_format mp4 camera1-%03d.mp4

Change History (3)

comment:1 by Balling, 3 years ago

We only support master. Is # still a problem in master?

comment:2 by Martin, 3 years ago

Sorry, I am on Gentoo Linux and there is no newer build in the ~amd64 testing repo.

Please think of the issue as affecting lots of Ip cameras and router OSes and other distros which at the best may release an update of the older versions. Imagine how cryptic it is to debug such issues on vendor-locked IP camera.

Please test yourself how the parser works. How about a ':' in a password, btw?

comment:3 by Marton Balint, 3 years ago

Resolution: invalid
Status: newclosed

You should percent encode # in the userinfo part of an URI, that should work.

Note: See TracTickets for help on using tickets.