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

Video from youtube (recently ended livestream) has wrong framerate set #26604

Closed
bilbo2 opened this issue Sep 16, 2020 · 0 comments
Closed

Video from youtube (recently ended livestream) has wrong framerate set #26604

bilbo2 opened this issue Sep 16, 2020 · 0 comments
Labels

Comments

@bilbo2
Copy link

@bilbo2 bilbo2 commented Sep 16, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.09.14
  • 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 -v -k -f 137,140 https://www.youtube.com/watch?v=uYMD4elmVIE
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-k', '-f', '137,140', 'https://www.youtube.com/watch?v=uYMD4elmVIE']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.09.14
[debug] Python version 3.8.5 (CPython) - Linux-5.7.0-3-amd64-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.3.1-3, ffprobe 4.3.1-3
[debug] Proxy map: {}
[youtube] uYMD4elmVIE: Downloading webpage
[youtube] {137} signature length 109, html5 player e0d83c30
[youtube] {299} signature length 109, html5 player e0d83c30
[youtube] {136} signature length 109, html5 player e0d83c30
[youtube] {298} signature length 109, html5 player e0d83c30
[youtube] {135} signature length 109, html5 player e0d83c30
[youtube] {134} signature length 109, html5 player e0d83c30
[youtube] {133} signature length 109, html5 player e0d83c30
[youtube] {160} signature length 109, html5 player e0d83c30
[youtube] {140} signature length 105, html5 player e0d83c30
[youtube] {386} signature length 109, html5 player e0d83c30
[youtube] {387} signature length 109, html5 player e0d83c30
[youtube] uYMD4elmVIE: Downloading MPD manifest
[info] uYMD4elmVIE: downloading video in 2 formats
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1600293893/ei/pDdiX-3cOYWO1wb2kruAAg/ip/(IP_REDACTED)/id/uYMD4elmVIE.1/source/yt_live_broadcast/requiressl/yes/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/force_finished/1/gcr/cz/vprv/1/keepalive/yes/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cforce_finished%2Cgcr%2Cvprv%2Citag%2Cplaylist_type/sig/AOq0QJ8wRgIhAJ7Es9H9hK1icEC9VW0KLWOh_RtAIeMR_5huiUdzM_foAiEA83gEvDJJMl7mPimkG5R_TBFTNu6gS0mJnmRg04PyumI%3D'
[dashsegments] Total fragments: 2882
[download] Destination: [ENG] 2020 GSL S3 Code S RO24 Group F + RO16 Group Nominations-uYMD4elmVIE.mp4
[download] 100% of 4.64GiB in 34:29
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1600293893/ei/pDdiX-3cOYWO1wb2kruAAg/ip/(IP_REDACTED)/id/uYMD4elmVIE.1/source/yt_live_broadcast/requiressl/yes/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/force_finished/1/gcr/cz/vprv/1/keepalive/yes/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cforce_finished%2Cgcr%2Cvprv%2Citag%2Cplaylist_type/sig/AOq0QJ8wRgIhAJ7Es9H9hK1icEC9VW0KLWOh_RtAIeMR_5huiUdzM_foAiEA83gEvDJJMl7mPimkG5R_TBFTNu6gS0mJnmRg04PyumI%3D'
[dashsegments] Total fragments: 2882
[download] Destination: [ENG] 2020 GSL S3 Code S RO24 Group F + RO16 Group Nominations-uYMD4elmVIE.m4a
[download] 100% of 223.58MiB in 02:55
[ffmpeg] Correcting container in "[ENG] 2020 GSL S3 Code S RO24 Group F + RO16 Group Nominations-uYMD4elmVIE.m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:[ENG] 2020 GSL S3 Code S RO24 Group F + RO16 Group Nominations-uYMD4elmVIE.m4a' -c copy -f mp4 'file:[ENG] 2020 GSL S3 Code S RO24 Group F + RO16 Group Nominations-uYMD4elmVIE.temp.m4a'

Tried downloading without "-f 137,140" to get 60fps with more or less same results (also bad FPS in video)

Description

When downloading video from https://www.youtube.com/watch?v=uYMD4elmVIE, the downloaded video part has wrong FPS set (approx 1000x expected FPS):
$ ffprobe [ENG]\ 2020\ GSL\ S3\ Code\ S\ RO24\ Group\ F\ +\ RO16\ Group\ Nominations-uYMD4elmVIE.mp4
...
Duration: 00:00:19.08, start: 0.000000, bitrate: 2916450 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 3680221 kb/s, 59185.43 fps, 60 tbr, 90k tbn, 120 tbc (default)

and also appropriately shorter playback time (19 seconds instead of 5+ hours)

From the size of the video and number of frames, it most likely is the complete 5+ hours video, just with wrong framerate

The mentioned video was a livestream that ended relatively recently (few hours ago), I vaguely remember when downloading few days old videos from that channel there were no problems with them.

When examining partial files (only the video stream as kept behind with -k), the problem is in the video stream.
As a result, none of the video players is able to play the video correctly

I suspect the downloaded stream is sent with bad framerate from source, but perhaps youtube-dl could check and/or fix the framerate in the metadata

@dstftw dstftw closed this Sep 16, 2020
@dstftw dstftw added the duplicate label Sep 16, 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.