Opened 22 months ago

Last modified 22 months ago

#9836 new defect

Redirecting an Input by FFmpeg

Reported by: chopo31 Owned by:
Priority: normal Component: ffmpeg
Version: 4.3.5 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by chopo31)

Hello Everyone
I've small issue hopefully can be sorted out .
I have an HTTP URL that redirects (status code 307) to another URL

like this :

wget https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd
--2022-07-18 21:51:33--  https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd
Resolving ucdn.starhubgo.com (ucdn.starhubgo.com)... 202.156.10.23
Connecting to ucdn.starhubgo.com (ucdn.starhubgo.com)|202.156.10.23|:443... connected.
HTTP request sent, awaiting response... 307 Temporary Redirect
Location: https://sh-bks400-07.starhubgo.com:443/bpk-token/m3hstwfbabaaaaaaaodt0mcaaaaaaaaaaaaetcngvzngt1yg/bpk-tv/HubSports1HDNEW/output/manifest.mpd [following]
--2022-07-18 21:51:34--  https://sh-bks400-07.starhubgo.com/bpk-token/m3hstwfbabaaaaaaaodt0mcaaaaaaaaaaaaetcngvzngt1yg/bpk-tv/HubSports1HDNEW/output/manifest.mpd
Resolving sh-bks400-07.starhubgo.com (sh-bks400-07.starhubgo.com)... 203.116.4.46
Connecting to sh-bks400-07.starhubgo.com (sh-bks400-07.starhubgo.com)|203.116.4.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4254 (4.2K) [application/dash+xml]

but the issue is when I put it on FFmpeg it seems doen't redirect it

./ffprobe https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd
ffprobe version 4.3.git Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.4)
configuration: --enable-gpl --enable-libass --enable-libfdk-aac --enable-libxml2 --enable-demuxer=dash --enable-libx264 --enable-libfreetype --enable-libmp3lame --enable-libzvbi --enable-gpl --enable-fontconfig --enable-openssl --enable-nonfree --extra-libs=-lpthread --enable-libass
libavutil      56. 62.100 / 56. 62.100
libavcodec     58.115.102 / 58.115.102
libavformat    58. 65.100 / 58. 65.100
libavdevice    58. 11.103 / 58. 11.103
libavfilter     7. 94.100 /  7. 94.100
libswscale      5.  8.100 /  5.  8.100
libswresample   3.  8.100 /  3.  8.100
libpostproc    55.  8.100 / 55.  8.100
[https @ 0x3276400] HTTP error 403 Forbidden
[dash @ 0x325c200] Failed to open an initialization section
[dash @ 0x325c200] Error when loading first fragment of playlist
https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd: Server returned 403 Forbidden (access denied)

I can't use the redirected URL as it comes with token & Expire , if there a way to force ffmpeg to use second URL .

Greetings .

Change History (5)

comment:1 by Marton Balint, 22 months ago

Priority: importantnormal

Please try git master.

comment:2 by chopo31, 22 months ago

Description: modified (diff)

comment:3 by chopo31, 22 months ago

Description: modified (diff)

comment:4 by chopo31, 22 months ago

Description: modified (diff)

comment:5 by chopo31, 22 months ago

I tried different Version always get same error . if there a way to force ffmpeg to parse second URL ( location ) ?

Note: See TracTickets for help on using tickets.