[FFmpeg-trac] #8625(avformat:new): function ff_make_absolute_url failed to process too many "../" in relative path while handling HLS

FFmpeg trac at avcodec.org
Tue Apr 21 04:30:47 EEST 2020


#8625: function ff_make_absolute_url failed to process too many "../" in relative
path while handling HLS
-------------------------------------+------------------------------------
             Reporter:  neksus       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:  hls          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by neksus):

 Replying to [comment:1 cehoyos]:
 > Please provide at least the command line you tested together with the
 complete, uncut console output to make this a valid ticket.


 {{{
 ffmpeg -i "https://domain:4433/hls-live/xxx.m3u8" -v trace aa.mp4
 xxx.m3u8's content:
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:2
 #EXT-X-MEDIA-SEQUENCE:79
 #EXTINF:1.980000,
 ../../../hls-live/xxx/xxx_1/xxx_1-79.ts
 #EXTINF:1.980000,
 ../../../hls-live/xxx/xxx_1/xxx_1-80.ts

 console output:
 Splitting the commandline.
 Reading option '-i' ... matched as input url with argument
 'https://domain:4433/hls-live/xxx.m3u8'.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument 'trace'.
 Reading option 'aa.mp4' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument trace.
 Successfully parsed a group of options.
 Parsing a group of options: input url https://domain:4433/hls-
 live/xxx.m3u8.
 Successfully parsed a group of options.
 Opening an input file: https://domain:4433/hls-live/xxx.m3u8.
 [NULL @ 000001d44dd2a600] Opening 'https://domain:4433/hls-live/xxx.m3u8'
 for reading
 [https @ 000001d44dd2b700] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [tcp @ 000001d44dd2d780] Original list of addresses:
 [tcp @ 000001d44dd2d780] Address 91.192.80.210 port 4433
 [tcp @ 000001d44dd2d780] Interleaved list of addresses:
 [tcp @ 000001d44dd2d780] Address 91.192.80.210 port 4433
 [tcp @ 000001d44dd2d780] Starting connection attempt to 91.192.80.210 port
 4433
 [tcp @ 000001d44dd2d780] Successfully connected to 91.192.80.210 port 4433
 [https @ 000001d44dd2b700] request: GET /hls-live/xxx.m3u8 HTTP/1.1
 User-Agent: Lavf/58.26.100
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: domain:4433
 Icy-MetaData: 1


 [https @ 000001d44dd2b700] header='HTTP/1.1 200 OK'
 [https @ 000001d44dd2b700] http_code=200
 [https @ 000001d44dd2b700] header='Content-Length: 274'
 [https @ 000001d44dd2b700] header='Content-Type:
 application/vnd.apple.mpegurl'
 [https @ 000001d44dd2b700] header='Server: Microsoft-HTTPAPI/2.0'
 [https @ 000001d44dd2b700] header='Access-Control-Allow-Origin: *'
 [https @ 000001d44dd2b700] header='Date: Tue, 21 Apr 2020 01:21:59 GMT'
 [https @ 000001d44dd2b700] header='Connection: close'
 [https @ 000001d44dd2b700] header=''
 Probing hls,applehttp score:100 size:274
 [hls,applehttp @ 000001d44dd2a600] Format hls,applehttp probed with
 size=2048 and score=100
 [hls,applehttp @ 000001d44dd2a600] new_program: id=0x0000
 [hls,applehttp @ 000001d44dd2a600] HLS request for url 'https:/hls-
 live/xxx/xxx_1/xxx_1-19.ts', offset 0, playlist 0
 [hls,applehttp @ 000001d44dd2a600] Opening 'https:/hls-
 live/xxx/xxx_1/xxx_1-19.ts' for reading
 [tcp @ 000001d44e3823c0] Failed to resolve hostname hls-live: The name
 does not resolve for the supplied parameters
 [hls,applehttp @ 000001d44dd2a600] Failed to open segment 19 of playlist 0
 [hls,applehttp @ 000001d44dd2a600] Opening 'https://domain:4433/hls-
 live/xxx.m3u8' for reading
 [tcp @ 000001d44e3823c0] Original list of addresses:
 [tcp @ 000001d44e3823c0] Address 91.192.80.210 port 4433
 [tcp @ 000001d44e3823c0] Interleaved list of addresses:
 [tcp @ 000001d44e3823c0] Address 91.192.80.210 port 4433
 [tcp @ 000001d44e3823c0] Starting connection attempt to 91.192.80.210 port
 4433
 [tcp @ 000001d44e3823c0] Successfully connected to 91.192.80.210 port 4433
 [https @ 000001d44e220dc0] request: GET /hls-live/xxx.m3u8 HTTP/1.1
 User-Agent: Lavf/58.26.100
 Accept: */*
 Connection: keep-alive
 Host: domain:4433
 Icy-MetaData: 1


 [https @ 000001d44e220dc0] header='HTTP/1.1 200 OK'
 [https @ 000001d44e220dc0] http_code=200
 [https @ 000001d44e220dc0] header='Content-Length: 274'
 [https @ 000001d44e220dc0] header='Content-Type:
 application/vnd.apple.mpegurl'
 [https @ 000001d44e220dc0] header='Server: Microsoft-HTTPAPI/2.0'
 [https @ 000001d44e220dc0] header='Access-Control-Allow-Origin: *'
 [https @ 000001d44e220dc0] header='Date: Tue, 21 Apr 2020 01:22:02 GMT'
 [https @ 000001d44e220dc0] header=''
 [hls,applehttp @ 000001d44dd2a600] HLS request for url 'https:/hls-
 live/xxx/xxx_1/xxx_1-20.ts', offset 0, playlist 0
 [hls,applehttp @ 000001d44dd2a600] Opening 'https:/hls-
 live/xxx/xxx_1/xxx_1-20.ts' for reading
 [tcp @ 000001d44ddcb500] Failed to resolve hostname hls-live: The name
 does not resolve for the supplied parameters
 [hls,applehttp @ 000001d44dd2a600] Failed to open segment 20 of playlist 0
 [https @ 000001d44dd31a80] Opening 'https://domain:4433/hls-live/xxx.m3u8'
 for reading
 [https @ 000001d44e220dc0] request: GET /hls-live/xxx.m3u8 HTTP/1.1
 User-Agent: Lavf/58.26.100
 Accept: */*
 Connection: keep-alive
 Host: domain:4433
 Icy-MetaData: 1


 [https @ 000001d44e220dc0] header='HTTP/1.1 200 OK'
 [https @ 000001d44e220dc0] http_code=200
 [https @ 000001d44e220dc0] header='Content-Length: 274'
 [https @ 000001d44e220dc0] header='Content-Type:
 application/vnd.apple.mpegurl'
 [https @ 000001d44e220dc0] header='Server: Microsoft-HTTPAPI/2.0'
 [https @ 000001d44e220dc0] header='Access-Control-Allow-Origin: *'
 [https @ 000001d44e220dc0] header='Date: Tue, 21 Apr 2020 01:22:05 GMT'
 [https @ 000001d44e220dc0] header=''

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8625#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list