| 1 | | Hello Everyone |
| 2 | | I've small issue hopefully can be sorted out . |
| 3 | | I have an HTTP URL that redirects (status code 307) to another URL |
| 4 | | |
| 5 | | like this : |
| 6 | | {{{ |
| 7 | | wget https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd |
| 8 | | --2022-07-18 21:51:33-- https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd |
| 9 | | Resolving ucdn.starhubgo.com (ucdn.starhubgo.com)... 202.156.10.23 |
| 10 | | Connecting to ucdn.starhubgo.com (ucdn.starhubgo.com)|202.156.10.23|:443... connected. |
| 11 | | HTTP request sent, awaiting response... 307 Temporary Redirect |
| 12 | | Location: https://sh-bks400-07.starhubgo.com:443/bpk-token/m3hstwfbabaaaaaaaodt0mcaaaaaaaaaaaaetcngvzngt1yg/bpk-tv/HubSports1HDNEW/output/manifest.mpd [following] |
| 13 | | --2022-07-18 21:51:34-- https://sh-bks400-07.starhubgo.com/bpk-token/m3hstwfbabaaaaaaaodt0mcaaaaaaaaaaaaetcngvzngt1yg/bpk-tv/HubSports1HDNEW/output/manifest.mpd |
| 14 | | Resolving sh-bks400-07.starhubgo.com (sh-bks400-07.starhubgo.com)... 203.116.4.46 |
| 15 | | Connecting to sh-bks400-07.starhubgo.com (sh-bks400-07.starhubgo.com)|203.116.4.46|:443... connected. |
| 16 | | HTTP request sent, awaiting response... 200 OK |
| 17 | | Length: 4254 (4.2K) [application/dash+xml] |
| 18 | | }}} |
| 19 | | |
| 20 | | but the issue is when I put it on FFmpeg it seems doen't redirect it |
| 21 | | |
| 22 | | {{{ |
| 23 | | ./ffprobe https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd |
| 24 | | ffprobe version 4.3.git Copyright (c) 2007-2020 the FFmpeg developers |
| 25 | | built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.4) |
| 26 | | 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 |
| 27 | | libavutil 56. 62.100 / 56. 62.100 |
| 28 | | libavcodec 58.115.102 / 58.115.102 |
| 29 | | libavformat 58. 65.100 / 58. 65.100 |
| 30 | | libavdevice 58. 11.103 / 58. 11.103 |
| 31 | | libavfilter 7. 94.100 / 7. 94.100 |
| 32 | | libswscale 5. 8.100 / 5. 8.100 |
| 33 | | libswresample 3. 8.100 / 3. 8.100 |
| 34 | | libpostproc 55. 8.100 / 55. 8.100 |
| 35 | | [https @ 0x3276400] HTTP error 403 Forbidden |
| 36 | | [dash @ 0x325c200] Failed to open an initialization section |
| 37 | | [dash @ 0x325c200] Error when loading first fragment of playlist |
| 38 | | https://ucdn.starhubgo.com/bpk-tv/HubSports1HDNEW/output/manifest.mpd: Server returned 403 Forbidden (access denied) |
| 39 | | |
| 40 | | }}} |
| 41 | | I can't use the redirected URL as it comes with token & Expire , if there a way to force ffmpeg to use second URL . |
| 42 | | |
| 43 | | Greetings . |
| | 1 | I tried other version it same issue , is there a way force ffmpeg to parse location URL instead of main url ? |