[FFmpeg-trac] #7660(undetermined:new): Unable to play URLs with fragment identifier

FFmpeg trac at avcodec.org
Tue Jan 8 17:07:39 EET 2019


#7660: Unable to play URLs with fragment identifier
-------------------------------------+-------------------------------------
             Reporter:  remitamine   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 FFmpeg does not handle URLs with
 [https://tools.ietf.org/html/rfc3986#section-3.5 fragment identifier], VLC
 plays the same URLs without a problem.
 How to reproduce:
 {{{
 ffplay -v trace $(curl
 https://www.dailymotion.com/player/metadata/video/x6ykqgm | jq -r
 .qualities.auto[0].url)
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
 100 11301    0 11301    0     0  17740      0 --:--:-- --:--:-- --:--:--
 17713
 ffplay version n4.1 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-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-libjack --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. 22.100 / 56. 22.100
   libavcodec     58. 35.100 / 58. 35.100
   libavformat    58. 20.100 / 58. 20.100
   libavdevice    58.  5.100 / 58.  5.100
   libavfilter     7. 40.101 /  7. 40.101
   libswscale      5.  3.100 /  5.  3.100
   libswresample   3.  3.100 /  3.  3.100
   libpostproc    55.  3.100 / 55.  3.100
 Initialized opengl renderer.
 [NULL @ 0x7efdb4000b80] Opening
 'https://www.dailymotion.com/cdn/manifest/video/x6ykqgm.m3u8?sec=Hp1KzZeSUhvvwGdZmd4x5K8jkxgnOYC771Zyn8FZkJUN_AWj69qF7OeErQkRTW6D'
 for reading
 [https @ 0x7efdb4001800] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [tcp @ 0x7efdb4003dc0] Original list of addresses:sq=    0B f=0/0
 [tcp @ 0x7efdb4003dc0] Address 195.8.215.136 port 443
 [tcp @ 0x7efdb4003dc0] Interleaved list of addresses:
 [tcp @ 0x7efdb4003dc0] Address 195.8.215.136 port 443
 [tcp @ 0x7efdb4003dc0] Starting connection attempt to 195.8.215.136 port
 443
 [tcp @ 0x7efdb4003dc0] Successfully connected to 195.8.215.136 port 443
 [https @ 0x7efdb4001800] request: GET
 /cdn/manifest/video/x6ykqgm.m3u8?sec=Hp1KzZeSUhvvwGdZmd4x5K8jkxgnOYC771Zyn8FZkJUN_AWj69qF7OeErQkRTW6D
 HTTP/1.1
 User-Agent: Lavf/58.20.100
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: www.dailymotion.com
 Icy-MetaData: 1


 [https @ 0x7efdb4001800] header='HTTP/1.1 206 Partial Content'0/0
 [https @ 0x7efdb4001800] http_code=206
 [https @ 0x7efdb4001800] header='Content-Security-Policy-Report-Only:
 default-src https: blob: wss: data: android-webview-video-poster: android-
 webview: chrome-extension: safari-extension: 'unsafe-eval' 'unsafe-
 inline'; report-uri
 https://www.dailymotion.com/content_security_policy_report_uri'
 [https @ 0x7efdb4001800] header='Server: DMS/1.0.42'
 [https @ 0x7efdb4001800] header='X-DM-BackNode:
 web-423.adm.dc3.dailymotion.com:80'
 [https @ 0x7efdb4001800] header='Vary: X-DM-SSL,Accept-Encoding'
 [https @ 0x7efdb4001800] header='Cache-Control: private, max-age=60'
 [https @ 0x7efdb4001800] header='Content-Type:
 application/vnd.apple.mpegurl'
 [https @ 0x7efdb4001800] header='Content-Security-Policy: upgrade-
 insecure-requests'
 [https @ 0x7efdb4001800] header='Access-Control-Expose-Headers: X-DM-
 BackNode-Response-Time'
 [https @ 0x7efdb4001800] header='Strict-Transport-Security: max-
 age=31708800; includeSubDomains'
 [https @ 0x7efdb4001800] header='Date: Tue, 08 Jan 2019 14:53:47 GMT'
 [https @ 0x7efdb4001800] header='Keep-Alive: timeout=60, max=4998'
 [https @ 0x7efdb4001800] header='X-DM-LB-IP: 195.8.215.136'
 [https @ 0x7efdb4001800] header='Expires: Tue, 08 Jan 2019 14:54:48 +0000'
 [https @ 0x7efdb4001800] header='X-DM-LB-Name: lb-10'
 [https @ 0x7efdb4001800] header='Content-Range: bytes 0-2775/2776'
 [https @ 0x7efdb4001800] header='X-DM-BackNode-Response-Time: 32'
 [https @ 0x7efdb4001800] header='Connection: close'
 [https @ 0x7efdb4001800] header='Set-Cookie: dmvk=5c34b97c01f90; path=/;
 domain=.dailymotion.com'
 [https @ 0x7efdb4001800] header='Set-Cookie: ts=415128; expires=Fri, 07
 Feb 2020 14:53:47 GMT; Max-Age=34128000; path=/; domain=.dailymotion.com'
 [https @ 0x7efdb4001800] header='Set-Cookie:
 v1st=91DEB00193F51C5CAF50579CA542B004; expires=Fri, 07 Feb 2020 14:53:47
 GMT; max-age=34128000; path=/; domain=.dailymotion.com'
 [https @ 0x7efdb4001800] header='X-Protected-By: Sqreen'
 [https @ 0x7efdb4001800] header='X-Dm-Page: tn.html.cdn_director'
 [https @ 0x7efdb4001800] header='Content-Length: 2776'
 [https @ 0x7efdb4001800] header=''
 Probing hls,applehttp score:100 size:2048
 [hls,applehttp @ 0x7efdb4000b80] Format hls,applehttp probed with
 size=2048 and score=100
 [hls,applehttp @ 0x7efdb4000b80] Opening
 'https://proxy-010.ix7.dailymotion.com/sec(vKiHgyGzZBGev66P3WFPeIrlb_WdYJRrrxnWgJ36vhg)/video/414/178/420871414_mp4_h264_aac.m3u8#cell=core&qos_vpart=1&qos_geostore=1&qos_stail=1'
 for reading
 [tcp @ 0x7efdb40a1540] Original list of addresses:sq=    0B f=0/0
 [tcp @ 0x7efdb40a1540] Address 188.65.126.10 port 443
 [tcp @ 0x7efdb40a1540] Interleaved list of addresses:
 [tcp @ 0x7efdb40a1540] Address 188.65.126.10 port 443
 [tcp @ 0x7efdb40a1540] Starting connection attempt to 188.65.126.10 port
 443
 [tcp @ 0x7efdb40a1540] Successfully connected to 188.65.126.10 port 443
 [https @ 0x7efdb4634a00] request: GET
 /sec(vKiHgyGzZBGev66P3WFPeIrlb_WdYJRrrxnWgJ36vhg)/video/414/178/420871414_mp4_h264_aac.m3u8#cell=core&qos_vpart=1&qos_geostore=1&qos_stail=1
 HTTP/1.1
 User-Agent: Lavf/58.20.100
 Accept: */*
 Connection: keep-alive
 Host: proxy-010.ix7.dailymotion.com
 Cookie: dmvk=5c34b97c01f90; ts=415128;
 v1st=91DEB00193F51C5CAF50579CA542B004
 Icy-MetaData: 1


 [https @ 0x7efdb4634a00] header='HTTP/1.1 403 Forbidden' 0B f=0/0
 [https @ 0x7efdb4634a00] http_code=403
 [https @ 0x7efdb4634a00] HTTP error 403 Forbidden
 [AVIOContext @ 0x7efdb4643100] Statistics: 2776 bytes read, 0 seeks
 https://www.dailymotion.com/cdn/manifest/video/x6ykqgm.m3u8?sec=Hp1KzZeSUhvvwGdZmd4x5K8jkxgnOYC771Zyn8FZkJUN_AWj69qF7OeErQkRTW6D:
 Server returned 403 Forbidden (access denied)
     nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0
 }}}
 or:
 ffplay $(youtube-dl -f http-720 -g
 https://www.dailymotion.com/video/x6ykqgm)
 originaly reported at https://github.com/mpv-player/mpv/issues/6421.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7660>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list