[MPlayer-dev-eng] error while playing streams over ipv6

qwen dux qwendu at gmail.com
Fri Nov 25 12:30:14 CET 2005


hi,
      I tried playing rtsp stream over  ipv6 network and found a problem:
$mplayer rtsp://[3ffe:3218:6::c0a8:a39]/movie2.mp4
Playing rtsp://[3ffe:3218:6::c0a8:a39]/movie2.mp4.
Resolving %5B3ffe for AF_INET6...
Couldn't resolve name for AF_INET6: %5B3ffe
Resolving %5B3ffe for AF_INET...
Couldn't resolve name for AF_INET: %5B3ffe
Not a Realmedia rtsp url. Trying standard rtsp protocol.
Connected to server: %5B3ffe
Stream not seekable!
Failed to get a SDP description from URL
"rtsp://%5B3ffe:3218:6::c0a8:a39%5D/movie2.mp4": Failed to find
network address for "%5B3ffe"

MPlayer interrupted by signal 11 in module: demux_open

i found that in  libmpdemux/url.c
where url_new() calling url_escape_string() to create unescaped/escaped
versions of url, url_escape_string() simply escapes '[' and ']' and turn them
into %5B and %5D,
        But from line 133 to line 145 url_new() tries to find '[' and ']' again
(which has been escaped already) to determine whether url is an ipv6 addr...
        so i added slapdash from line 287   to line 289:
else if(c=='[' || c==']'){
                        *outbuf++=c;
                }
but mplayer's info is:
Playing rtsp://[3ffe:3218:6::c0a8:a39]/movie2.mp4.
Connecting to server 3ffe:3218:6::c0a8:a39[3ffe:3218:6::c0a8:a39]:554 ...
Resolving 3ffe:3218:6::c0a8:a39 for AF_INET...
Couldn't resolve name for AF_INET: 3ffe:3218:6::c0a8:a39
Connecting to server 3ffe:3218:6::c0a8:a39[3ffe:3218:6::c0a8:a39]:7070 ...
Resolving 3ffe:3218:6::c0a8:a39 for AF_INET...
Couldn't resolve name for AF_INET: 3ffe:3218:6::c0a8:a39
Not a Realmedia rtsp url. Trying standard rtsp protocol.
Connected to server: 3ffe:3218:6::c0a8:a39
Stream not seekable!
Failed to get a SDP description from URL
"rtsp://[3ffe:3218:6::c0a8:a39]/movie2.mp4": Failed to find network
address for "[3ffe"
MPlayer interrupted by signal 11 in module: demux_open




More information about the MPlayer-dev-eng mailing list