Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter video that plays normally on site gives 404 error when attempting to download with 'bestvideo+bestaudio' option. #25242

Closed
Basillica85 opened this issue May 11, 2020 · 1 comment

Comments

@Basillica85
Copy link

@Basillica85 Basillica85 commented May 11, 2020

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.05.08
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

$ ./youtube-dl.exe -v -f http-2176 https://twitter.com/WuffFluff/status/1259010650530918402
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', 'http-2176', 'https://twitter.com/WuffFluff/status/1259010650530918402']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2020.05.08
[debug] Python version 3.4.4 (CPython) - Windows-8.1-6.3.9600
[debug] exe versions: ffmpeg N-74324-gecc806a, ffprobe N-74324-gecc806a
[debug] Proxy map: {}
[twitter] 1259010650530918402: Downloading guest token
[twitter] 1259010650530918402: Downloading JSON metadata
[twitter] 1259010650530918402: Downloading m3u8 information
[debug] Invoking downloader on 'https://video.twimg.com/ext_tw_video/1259010206215794689/pu/vid/1280x720/1UxuUP3SBFX3nqEx.mp4?tag=10'
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4z7swgz7\build\youtube_dl\YoutubeDL.py", line 1926, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4z7swgz7\build\youtube_dl\YoutubeDL.py", line 1865, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4z7swgz7\build\youtube_dl\downloader\common.py", line 366, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4z7swgz7\build\youtube_dl\downloader\http.py", line 341, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4z7swgz7\build\youtube_dl\downloader\http.py", line 109, in establish_connection
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp4z7swgz7\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found

Description

Trying to download this video in http-2176 format results in a 404 error, even though it's listed in the available formats (marked as the best option).
The derived video URL (https://video.twimg.com/ext_tw_video/1259010206215794689/pu/vid/1280x720/1UxuUP3SBFX3nqEx.mp4?tag=10) also gives a 404 error in browser.
Downloading it in hls-2176 format works fine.

$ ./youtube-dl.exe -v -F https://twitter.com/WuffFluff/status/1259010650530918402
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://twitter.com/WuffFluff/status/1259010650530918402']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2020.05.08
[debug] Python version 3.4.4 (CPython) - Windows-8.1-6.3.9600
[debug] exe versions: ffmpeg N-74324-gecc806a, ffprobe N-74324-gecc806a
[debug] Proxy map: {}
[twitter] 1259010650530918402: Downloading guest token
[twitter] 1259010650530918402: Downloading JSON metadata
[twitter] 1259010650530918402: Downloading m3u8 information
[info] Available formats for 1259010650530918402:
format code  extension  resolution note
hls-256      mp4        480x270     256k , avc1.4d001e, mp4a.40.2
http-256     mp4        480x270     256k
hls-832      mp4        640x360     832k , avc1.4d001f, mp4a.40.2
http-832     mp4        640x360     832k
hls-2176     mp4        1280x720   2176k , avc1.640020, mp4a.40.2
http-2176    mp4        1280x720   2176k  (best)
@Basillica85 Basillica85 changed the title Twitter video that plays normally on site gives 404 error when downloaded with 'bestvideo+bestaudio' option. Twitter video that plays normally on site gives 404 error when attempting to download with 'bestvideo+bestaudio' option. May 11, 2020
@remitamine
Copy link
Collaborator

@remitamine remitamine commented May 12, 2020

just choose another format.

@remitamine remitamine closed this May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.