Opened 6 weeks ago

Last modified 12 days ago

#7540 reopened defect

Dash Decoder Fails when initialization tag contains ../

Reported by: gorilla.maguila Owned by: stevenliu
Priority: normal Component: avformat
Version: git-master Keywords: dash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

In the following example you can see that dashdec tries to play wrong url "https://video.fmad3-7.fna.fbcdn.net/hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/../live-md-v/1881008871954710_0-init.m4v?ms=m_CN":

ffplay "https://video.fmad3-7.fna.fbcdn.net/hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1" -loglevel debugffplay version N-92384-g70463b7026 Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20180831
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
  libavutil      56. 23.101 / 56. 23.101
  libavcodec     58. 39.100 / 58. 39.100
  libavformat    58. 22.100 / 58. 22.100
  libavdevice    58.  6.100 / 58.  6.100
  libavfilter     7. 43.100 /  7. 43.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Initialized opengl renderer.
[NULL @ 0x7fe3f0000b80] Opening 'https://video.fmad3-7.fna.fbcdn.net/hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1' for reading
[https @ 0x7fe3f0001840] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x7fe3f0003e80] Original list of addresses:sq=    0B f=0/0   
[tcp @ 0x7fe3f0003e80] Address 213.99.19.18 port 443
[tcp @ 0x7fe3f0003e80] Interleaved list of addresses:
[tcp @ 0x7fe3f0003e80] Address 213.99.19.18 port 443
[tcp @ 0x7fe3f0003e80] Starting connection attempt to 213.99.19.18 port 443
[tcp @ 0x7fe3f0003e80] Successfully connected to 213.99.19.18 port 443
[https @ 0x7fe3f0001840] request: GET /hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1 HTTP/1.1
User-Agent: Lavf/58.22.100
Accept: */*
Range: bytes=0-
Connection: close
Host: video.fmad3-7.fna.fbcdn.net
Icy-MetaData: 1


[dash @ 0x7fe3f0000b80] Format dash probed with size=2048 and score=100
[https @ 0x7fe3f061ec80] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x7fe3f061f7c0] Original list of addresses:sq=    0B f=0/0   
[tcp @ 0x7fe3f061f7c0] Address 213.99.19.18 port 443
[tcp @ 0x7fe3f061f7c0] Interleaved list of addresses:
[tcp @ 0x7fe3f061f7c0] Address 213.99.19.18 port 443
[tcp @ 0x7fe3f061f7c0] Starting connection attempt to 213.99.19.18 port 443
[tcp @ 0x7fe3f061f7c0] Successfully connected to 213.99.19.18 port 443
[https @ 0x7fe3f061ec80] request: GET /hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1 HTTP/1.1
User-Agent: Lavf/58.22.100
Accept: */*
Connection: close
Host: video.fmad3-7.fna.fbcdn.net
Icy-MetaData: 1


[AVIOContext @ 0x7fe3f063f280] Statistics: 4770 bytes read, 0 seeks 
[dash @ 0x7fe3f0000b80] old fragment: cur[0] min[0] max[9], playlist 0
[dash @ 0x7fe3f0000b80] DASH request for url 'https://video.fmad3-7.fna.fbcdn.net/hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/../live-md-v/1881008871954710_0-init.m4v?ms=m_CN', offset 0, playlist 0
[https @ 0x7fe3f0641140] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x7fe3f0625240] Original list of addresses:sq=    0B f=0/0   
[tcp @ 0x7fe3f0625240] Address 213.99.19.18 port 443
[tcp @ 0x7fe3f0625240] Interleaved list of addresses:
[tcp @ 0x7fe3f0625240] Address 213.99.19.18 port 443
[tcp @ 0x7fe3f0625240] Starting connection attempt to 213.99.19.18 port 443
[tcp @ 0x7fe3f0625240] Successfully connected to 213.99.19.18 port 443
[https @ 0x7fe3f0641140] request: GET /hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/../live-md-v/1881008871954710_0-init.m4v?ms=m_CN HTTP/1.1
User-Agent: Lavf/58.22.100
Accept: */*
Connection: close
Host: video.fmad3-7.fna.fbcdn.net
Icy-MetaData: 1


[https @ 0x7fe3f0641140] HTTP error 404 Not Found sq=    0B f=0/0   
[dash @ 0x7fe3f0000b80] Failed to open an initialization section in playlist 0
[dash @ 0x7fe3f0000b80] Error when loading first fragment, playlist 0
[AVIOContext @ 0x7fe3f063b780] Statistics: 4770 bytes read, 0 seeks
https://video.fmad3-7.fna.fbcdn.net/hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1: Server returned 404 Not Found

Attachments (4)

dashdec.path (492 bytes) - added by gorilla.maguila 6 weeks ago.
1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1 (4.7 KB) - added by gorilla.maguila 6 weeks ago.
facebook2.png (173.4 KB) - added by gorilla.maguila 13 days ago.
livemap.jpg (275.0 KB) - added by stevenliu 12 days ago.

Download all attachments as: .zip

Change History (13)

Changed 6 weeks ago by gorilla.maguila

comment:1 Changed 6 weeks ago by gorilla.maguila

  • Component changed from undetermined to avformat

comment:2 Changed 6 weeks ago by stevenliu

I saw there have an .. in the url, maybe this need process, let me this how to fix it.

comment:3 Changed 6 weeks ago by stevenliu

  • Owner set to stevenliu
  • Status changed from new to open

comment:4 Changed 2 weeks ago by stevenliu

  • Resolution set to needs_more_info
  • Status changed from open to closed
bogon:dash StevenLiu$ wget -S "https://video.fmad3-7.fna.fbcdn.net/hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1"
--2018-12-03 11:25:00--  https://video.fmad3-7.fna.fbcdn.net/hvideo-prn1-atn/v/rUJkkfofUZCVMtIVILKRw/live-dash/dash-abr4/1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1
Resolving video.fmad3-7.fna.fbcdn.net... 213.99.19.18
Connecting to video.fmad3-7.fna.fbcdn.net|213.99.19.18|:443... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 403 Forbidden
  Access-Control-Allow-Origin: *
  Content-Type: text/plain
  Server: proxygen-bolt
  X-FB-Config-Version-FLB-PROD: 238
  Date: Mon, 03 Dec 2018 03:25:04 GMT
  x-fb-fna-hit: -
  Connection: keep-alive
  Content-Length: 21
2018-12-03 11:25:05 ERROR 403: Forbidden.

bogon:dash StevenLiu$

The link cannot be used, can you give me a valid url? or how to get the valid url?

comment:5 Changed 2 weeks ago by gorilla.maguila

Last edited 2 weeks ago by gorilla.maguila (previous) (diff)

comment:6 follow-up: Changed 2 weeks ago by cehoyos

  • Resolution needs_more_info deleted
  • Status changed from closed to reopened

comment:7 in reply to: ↑ 6 ; follow-up: Changed 2 weeks ago by stevenliu

Replying to cehoyos:

Hi Carl, I cannot open the link https://www.facebook.com/livemap, can you help me to check that patch uploaded by gorilla maguila?
That modify looks ok, but i think check that is better.

@cehoyos

Last edited 2 weeks ago by stevenliu (previous) (diff)

comment:8 in reply to: ↑ 7 ; follow-up: Changed 13 days ago by gorilla.maguila

@stevenliu

The url of the screenshot you've posted says "liveapp" it should say "livemap"

Changed 13 days ago by gorilla.maguila

Changed 12 days ago by stevenliu

comment:9 in reply to: ↑ 8 Changed 12 days ago by stevenliu

Replying to gorilla.maguila:

@stevenliu

The url of the screenshot you've posted says "liveapp" it should say "livemap"

always cannot open that page :(

Note: See TracTickets for help on using tickets.