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

Downloaded mp4 file from youtube is broken #24933

Closed
5 tasks done
Giszmo opened this issue Apr 22, 2020 · 3 comments
Closed
5 tasks done

Downloaded mp4 file from youtube is broken #24933

Giszmo opened this issue Apr 22, 2020 · 3 comments

Comments

@Giszmo
Copy link

Giszmo commented Apr 22, 2020

Checklist

  • I've verified that I'm running youtube-dl version 2020.03.24
  • 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 bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

$ /usr/local/bin/youtube-dl --verbose -k --fixup never https://www.youtube.com/watch?v=CuohgbKo-3U
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'-k', u'--fixup', u'never', u'https://www.youtube.com/watch?v=CuohgbKo-3U']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.17 (CPython) - Linux-5.3.0-46-generic-x86_64-with-Ubuntu-19.10-eoan
[debug] exe versions: ffmpeg 4.1.4-1build2, ffprobe 4.1.4-1build2, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] CuohgbKo-3U: Downloading webpage
[youtube] CuohgbKo-3U: Downloading m3u8 information
[youtube] CuohgbKo-3U: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/expire/1587544343/ei/t6yfXoHrE4zExwTpl78w/ip/201.239.52.222/id/CuohgbKo-3U.1/source/yt_live_broadcast/requiressl/yes/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/force_finished/1/vprv/1/keepalive/yes/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Cas%2Cforce_finished%2Cvprv%2Citag%2Cplaylist_type/sig/AJpPlLswRQIgYM9Q6d1CxHh24TymzC7cTwQIP7K14PIKukuHQqMpnzYCIQDLdd0JNtsftoLp-SNLQ4XuA3tQcT040HXv_My5Rql3tg%3D%3D'
[dashsegments] Total fragments: 1010
[download] Destination: ₿🛠️ Satoshi's 21 #001 - Wallet Scrutiny-CuohgbKo-3U.f136.mp4
[download] 100% of 98.14MiB in 03:54
[debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/expire/1587544343/ei/t6yfXoHrE4zExwTpl78w/ip/201.239.52.222/id/CuohgbKo-3U.1/source/yt_live_broadcast/requiressl/yes/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/force_finished/1/vprv/1/keepalive/yes/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Cas%2Cforce_finished%2Cvprv%2Citag%2Cplaylist_type/sig/AJpPlLswRQIgYM9Q6d1CxHh24TymzC7cTwQIP7K14PIKukuHQqMpnzYCIQDLdd0JNtsftoLp-SNLQ4XuA3tQcT040HXv_My5Rql3tg%3D%3D'
[dashsegments] Total fragments: 1010
[download] Destination: ₿🛠️ Satoshi's 21 #001 - Wallet Scrutiny-CuohgbKo-3U.f140.m4a
[download] 100% of 78.16MiB in 03:40
[ffmpeg] Merging formats into "₿🛠️ Satoshi's 21 #001 - Wallet Scrutiny-CuohgbKo-3U.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:₿🛠️ Satoshi'"'"'s 21 #001 - Wallet Scrutiny-CuohgbKo-3U.f136.mp4' -i 'file:₿🛠️ Satoshi'"'"'s 21 #001 - Wallet Scrutiny-CuohgbKo-3U.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:₿🛠️ Satoshi'"'"'s 21 #001 - Wallet Scrutiny-CuohgbKo-3U.temp.mp4'

Description

I try to download this video and it appears to work fine but the resulting mp4 is broken. Loading it in vlc or mplayer fails. Loading it in openshot freezes the app to then show the clip to be only 10 seconds long. This player plays it but also with only 10 seconds of video and noise.

When converting the video with ffmpeg I get thousands of these:

[libvorbis @ 0x55bd61895840] Queue input is backward in time
[matroska @ 0x55bd61894180] Non-monotonous DTS in output stream 0:1; previous: 9796, current: 9786; changing to 9796. This may result in incorrect timestamps in the output file.

and the ffmpeg output ends in:

[libvorbis @ 0x55bd61895840] Queue input is backward in time
    Last message repeated 777 times
[libvorbis @ 0x55bd61895840] Queue input is backward in timebitrate=   4.1kbits/s dup=0 drop=151282 speed=0.131x    
    Last message repeated 4197 times
[libvorbis @ 0x55bd61895840] Queue input is backward in timebitrate=   4.1kbits/s dup=0 drop=151282 speed=0.131x    
    Last message repeated 1649 times
frame=  202 fps=2.7 q=-1.0 Lsize=   46654kB time=00:00:09.93 bitrate=38457.6kbits/s dup=0 drop=151298 speed=0.131x    
video:704kB audio:44013kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: 4.330698%
[libx264 @ 0x55bd61893740] frame I:2     Avg QP:19.60  size: 60070
[libx264 @ 0x55bd61893740] frame P:59    Avg QP:19.55  size:  6790
[libx264 @ 0x55bd61893740] frame B:141   Avg QP:16.62  size:  1418
[libx264 @ 0x55bd61893740] consecutive B-frames:  3.0% 10.9%  3.0% 83.2%
[libx264 @ 0x55bd61893740] mb I  I16..4: 38.7% 29.1% 32.1%
[libx264 @ 0x55bd61893740] mb P  I16..4:  4.2%  8.3%  4.0%  P16..4:  2.5%  0.5%  0.3%  0.0%  0.0%    skip:80.2%
[libx264 @ 0x55bd61893740] mb B  I16..4:  0.7%  0.3%  0.5%  B16..8:  3.7%  0.3%  0.1%  direct: 0.5%  skip:93.9%  L0:50.4% L1:47.6% BI: 2.0%
[libx264 @ 0x55bd61893740] 8x8 transform intra:42.8% inter:37.2%
[libx264 @ 0x55bd61893740] coded y,uvDC,uvAC intra: 23.0% 17.8% 10.7% inter: 0.7% 0.7% 0.1%
[libx264 @ 0x55bd61893740] i16 v,h,dc,p: 41% 53%  4%  2%
[libx264 @ 0x55bd61893740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 63% 11% 22%  1%  0%  0%  1%  1%  1%
[libx264 @ 0x55bd61893740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 36% 13%  2%  3%  3%  4%  3%  4%
[libx264 @ 0x55bd61893740] i8c dc,h,v,p: 78% 15%  6%  1%
[libx264 @ 0x55bd61893740] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55bd61893740] ref P L0: 56.8% 10.6% 24.8%  7.8%
[libx264 @ 0x55bd61893740] ref B L0: 62.2% 33.7%  4.1%
[libx264 @ 0x55bd61893740] ref B L1: 95.9%  4.1%
[libx264 @ 0x55bd61893740] kb/s:856.25

The intermediate separate audio and video files play just fine.

@Giszmo
Copy link
Author

Giszmo commented Apr 22, 2020

So even though vlc does play correctly the separate audio and video files, they appear to be only 10s long on openshot, ffmpeg has the above mentioned issues with them and even converting the video in vlc to mp4 results in only 12min output while inflating the file size from 100 to 325MB.

@dstftw
Copy link
Collaborator

dstftw commented Apr 22, 2020

Report to ffmpeg.

@dstftw dstftw closed this as completed Apr 22, 2020
@Giszmo
Copy link
Author

Giszmo commented Apr 22, 2020

ffmpeg issue created.

@Yarn Yarn mentioned this issue Apr 26, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants