[FFmpeg-trac] #8710(undetermined:new): HTTP error 403 Forbidden when open an mpd url (MPEG-DASH) from facebook video
FFmpeg
trac at avcodec.org
Thu Jun 4 04:10:31 EEST 2020
#8710: HTTP error 403 Forbidden when open an mpd url (MPEG-DASH) from facebook
video
-------------------------------------+-------------------------------------
Reporter: farleylai | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Built with dash support but when opening a dash mpd url corresponding to a
facebook live stream, "HTTP error 403 Forbidden" is returned as follows.
However, VLC is able to play the mpd url without any issue.
Any ideas?
{{{
$> ffprobe version 4.2.3 Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
configuration: --prefix=/home/ml/farleylai/miniconda3/envs/sinet37
--cc=/home/ml/farleylai/miniconda3/envs/sinet37/conda-
bld/ffmpeg_1591228974768/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc
--disable-doc --disable-openssl --enable-avresample --enable-demuxer=dash
--enable-gnutls --enable-gpl --enable-hardcoded-tables --enable-
libfreetype --enable-libopenh264 --enable-libx264 --enable-pic --enable-
pthreads --enable-shared --enable-static --enable-version3 --enable-
libxml2 --enable-zlib --enable-libmp3lame
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[NULL @ 0x55e2b03331c0] Opening 'https://video-dfw5-1.xx.fbcdn.net/hvideo-
prn2-frc/_nc_cat-107/v/rh9reyEfDyAckn2On4dEG/live-dash/dash-abr-ibr-
audio/3246902542042931.mpd?_nc_rl=AfC78hI2eTCtKuFO' for reading
[https @ 0x55e2b0333bc0] Setting default whitelist
'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x55e2b0335c40] Original list of addresses:
[tcp @ 0x55e2b0335c40] Address 157.240.19.20 port 443
[tcp @ 0x55e2b0335c40] Address 2a03:2880:f034:13:face:b00c:0:1823 port 443
[tcp @ 0x55e2b0335c40] Interleaved list of addresses:
[tcp @ 0x55e2b0335c40] Address 157.240.19.20 port 443
[tcp @ 0x55e2b0335c40] Address 2a03:2880:f034:13:face:b00c:0:1823 port 443
[tcp @ 0x55e2b0335c40] Starting connection attempt to 157.240.19.20 port
443
[tcp @ 0x55e2b0335c40] Successfully connected to 157.240.19.20 port 443
[https @ 0x55e2b0333bc0] request: GET /hvideo-
prn2-frc/_nc_cat-107/v/rh9reyEfDyAckn2On4dEG/live-dash/dash-abr-ibr-
audio/3246902542042931.mpd?_nc_rl=AfC78hI2eTCtKuFO HTTP/1.1
User-Agent: Lavf/58.29.100
Accept: */*
Range: bytes=0-
Connection: close
Host: video-dfw5-1.xx.fbcdn.net
Icy-MetaData: 1
[https @ 0x55e2b0333bc0] HTTP error 403 Forbidden
https://video-dfw5-1.xx.fbcdn.net/hvideo-
prn2-frc/_nc_cat-107/v/rh9reyEfDyAckn2On4dEG/live-dash/dash-abr-ibr-
audio/3246902542042931.mpd?_nc_rl=AfC78hI2eTCtKuFO: Server returned 403
Forbidden (access denied)
}}}
PS:
The live video urls from facebook are changing.
As mentioned in #7540, one can browse current live streams at
https://www.facebook.com/livemap (a facebook account to log in may be
necessary).
The video URL can be copied by clicking the three dot option on the top
right corner (Copy Link).
A straightforward way to get the mpd url is using youtube-dl that can be
installed through conda:
{{{
conda install -c conda-forge youtube-dl
}}}
Then the mpd url can be retrieved as follows (Here is an example. Please
get a live one instead),
{{{
$> youtube-dl -g
https://www.facebook.com/thenational/videos/675435893241531/
https://video-dfw5-1.xx.fbcdn.net/hvideo-atn3-prn/bhost_video-
den4-1.xx/_nc_cat-1/v/rine4ddLcnIFSNpsvsQYG/live-dash/dash-abr-ibr-
audio/10157549607307686.mpd?_nc_rl=AfC15-gDFaUQGQHO&ms=m_CT&oh=b3d591a680205f940394ed08bae6e1bb&oe=5EDA00B5
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8710>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list