Opened 5 years ago

Closed 5 years ago

#7540 closed defect (fixed)

Dash Decoder Fails when initialization tag contains ../

Reported by: gorilla.maguila Owned by: Steven Liu
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 5 years ago.
1881008871954710.mpd?ms=m_CN&_nc_rl=AfAsVJ4tYI5-kQkO&oh=ecdb096872c943d549d085b3f8faa465&oe=5BE7E3D1 (4.7 KB ) - added by gorilla.maguila 5 years ago.
facebook2.png (173.4 KB ) - added by gorilla.maguila 5 years ago.
livemap.jpg (275.0 KB ) - added by Steven Liu 5 years ago.

Download all attachments as: .zip

Change History (14)

by gorilla.maguila, 5 years ago

Attachment: dashdec.path added

comment:1 by gorilla.maguila, 5 years ago

Component: undeterminedavformat

comment:2 by Steven Liu, 5 years ago

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

comment:3 by Steven Liu, 5 years ago

Owner: set to Steven Liu
Status: newopen

comment:4 by Steven Liu, 5 years ago

Resolution: needs_more_info
Status: openclosed
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 by gorilla.maguila, 5 years ago

Last edited 5 years ago by gorilla.maguila (previous) (diff)

comment:6 by Carl Eugen Hoyos, 5 years ago

Resolution: needs_more_info
Status: closedreopened

in reply to:  6 ; comment:7 by Steven Liu, 5 years ago

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 5 years ago by Steven Liu (previous) (diff)

in reply to:  7 ; comment:8 by gorilla.maguila, 5 years ago

@stevenliu

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

by gorilla.maguila, 5 years ago

Attachment: facebook2.png added

by Steven Liu, 5 years ago

Attachment: livemap.jpg added

in reply to:  8 comment:9 by Steven Liu, 5 years ago

Replying to gorilla.maguila:

@stevenliu

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

always cannot open that page :(

comment:10 by Steven Liu, 5 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.