Opened 22 months ago

Last modified 22 months ago

#8828 new defect

avformat_open_input hangs on non-existent RTSP url

Reported by: Max Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


I use the 4.2.3 build for Windows in 64Bits

When I use avformat_open_input on a non existant rtsp url it hangs all my code because they are no call back in this case.

Work very good on a working rtsp url, return a callback if the url are malformed but hangs if the url is good formed like : rtsp://login:password@ but do not exist.

For exemple, if this url work and exist : rtsp://login:password@
this will hangs because the good adress are in "554" : rtsp://login:password@

It's a real issue for me because I don't see how to properly make this working wihout a callback from avformat_open_input.

I noticed the same hangs if I have "" in the password, but the first issues is more critical.

Thank you in advance and excuse me if I do a error.

Change History (4)

comment:1 by Max, 22 months ago

the caracters that hangs the function too in password field are slashs. Think it can be normal but my cam had slash in the passwords...

comment:2 by Carl Eugen Hoyos, 22 months ago

Keywords: avformat_open_input removed
Priority: criticalnormal
Version: 4.2unspecified

Please test current FFmpeg git head - the only version supported on this bug tracker - and provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:3 by Max, 22 months ago

Excuse my bad english, "command line" so I have to use the static version ? But I use the ffmpeg lib in shared. I'm not on the good place for this reporting ? Or I have to compile the shared lib myself to post the issue ? I download the build on your official link ->

comment:4 by Max, 22 months ago

I see that the same issue for UDP was post and fixed 2 years ago.
I tested on the last build shared/dev for windows 64bits from the 27-07-2020

Last edited 22 months ago by Max (previous) (diff)
Note: See TracTickets for help on using tickets.