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

Corrupted video from YouTube #16869

Closed
fireattack opened this issue Jun 30, 2018 · 3 comments
Closed

Corrupted video from YouTube #16869

fireattack opened this issue Jun 30, 2018 · 3 comments

Comments

@fireattack
Copy link

@fireattack fireattack commented Jun 30, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.06.25. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.06.25

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

G:\>youtube-dl https://www.youtube.com/watch?v=18qXooJf3Aw -v -k
[debug] System config: []
[debug] User config: ['--write-description', '--write-info-json', '-i', '-4']
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=18qXooJf3Aw', '-v',
 '-k']
[debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
[debug] youtube-dl version 2018.06.25
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-91378-g3f953379e1, ffprobe N-91378-g3f953379e1
[debug] Proxy map: {}
[youtube] 18qXooJf3Aw: Downloading webpage
[youtube] 18qXooJf3Aw: Downloading video info webpage
[youtube] 18qXooJf3Aw: Downloading m3u8 information
[youtube] 18qXooJf3Aw: Downloading MPD manifest
[youtube] 18qXooJf3Aw: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video description to: アイドルマスター ミリオンライブ! シアター
デイズ ミリシタ1周年!サンキュー生配信-18qXooJf3Aw.description
[info] Writing video description metadata as JSON to: アイドルマスター ミリオン
ライブ! シアターデイズ ミリシタ1周年!サンキュー生配信-18qXooJf3Aw.info.json
[debug] Invoking downloader on 'https://r3---sn-q4fl6nlr.googlevideo.com/videopl
ayback/id/18qXooJf3Aw.2/itag/136/source/yt_live_broadcast/requiressl/yes/playlis
t_type/DVR/ei/WjQ3W9igEM_CDsS-magP/gcr/us/force_finished/1/ratebypass/yes/cmbypa
ss/yes/mime/video%2Fmp4/live/1/gir/yes/noclen/1/dur/5.000/fexp/23709359/disable_
polymer/true/ip/66.76.81.9/ipbits/0/expire/1530366138/sparams/cmbypass,dur,ei,ex
pire,force_finished,gcr,gir,id,ip,ipbits,itag,live,mime,mm,mn,ms,mv,noclen,pl,pl
aylist_type,ratebypass,requiressl,source/signature/1419E968A37201A778E27DD3F6561
0E136234064.0F6B34B5DF9C2288395304290C26DBC32E11C458/key/cms1/mm/32/mn/sn-q4fl6n
lr/ms/lv/mt/1530344181/mv/u/pl/24/'
[dashsegments] Total fragments: 1635
[download] Destination: アイドルマスター ミリオンライブ! シアターデイズ ミリシ
タ1周年!サンキュー生配信-18qXooJf3Aw.f136.mp4
[download] 100% of 1.23GiB in 03:27
[debug] Invoking downloader on 'https://r3---sn-q4fl6nlr.googlevideo.com/videopl
ayback/id/18qXooJf3Aw.2/itag/140/source/yt_live_broadcast/requiressl/yes/playlis
t_type/DVR/ei/WjQ3W9igEM_CDsS-magP/gcr/us/force_finished/1/ratebypass/yes/cmbypa
ss/yes/mime/audio%2Fmp4/live/1/gir/yes/noclen/1/dur/5.000/fexp/23709359/disable_
polymer/true/ip/66.76.81.9/ipbits/0/expire/1530366138/sparams/cmbypass,dur,ei,ex
pire,force_finished,gcr,gir,id,ip,ipbits,itag,live,mime,mm,mn,ms,mv,noclen,pl,pl
aylist_type,ratebypass,requiressl,source/signature/41D3DF7A06D105F43E6DBDB5827AD
FFFCF977CE8.5FB2C06FFE3B459B34CEE31F6C1580B8C7FE3FB8/key/cms1/mm/32/mn/sn-q4fl6n
lr/ms/lv/mt/1530344181/mv/u/pl/24/'
[dashsegments] Total fragments: 1635
[download] Destination: アイドルマスター ミリオンライブ! シアターデイズ ミリシ
タ1周年!サンキュー生配信-18qXooJf3Aw.f140.m4a
[download] 100% of 126.99MiB in 01:19
[ffmpeg] Merging formats into "アイドルマスター ミリオンライブ! シアターデイズ
ミリシタ1周年!サンキュー生配信-18qXooJf3Aw.mp4"
[debug] ffmpeg command line: ffmpeg -y -i "file:アイドルマスター ミリオンライブ
! シアターデイズ ミリシタ1周年!サンキュー生配信-18qXooJf3Aw.f136.mp4" -i "file
:アイドルマスター ミリオンライブ! シアターデイズ ミリシタ1周年!サンキュー生配
信-18qXooJf3Aw.f140.m4a" -c copy -map "0:v:0" -map "1:a:0" "file:アイドルマスタ
ー ミリオンライブ! シアターデイズ ミリシタ1周年!サンキュー生配信-18qXooJf3Aw.t
emp.mp4"
...
<end of log>

Description of your issue, suggested solution and other information

The video: [YouTube](youtube-dl https://www.youtube.com/watch?v=18qXooJf3Aw)
All files, including .f136.mp4, .f140.m4a, and combined .mp4 can't be played correctly. The file has the right file size (1 GiB+ for the video) but the nominal length is only 12 seconds, and the playback if full of glitch (tried multiple players).

@bato3
Copy link
Contributor

@bato3 bato3 commented Jun 30, 2018

Probably ffmpg have problem with Japanese file name. try add --id param (or filename template)
it work for me.

youtube-dl https://www.youtube.com/watch?v=18qXooJf3Aw -f "136+140" -v -k -o "test-%(format_id)s.%(ext)s"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=18qXooJf3Aw', '-f', '136+140', '-v', '-k', '-o', 'test-%(format_id)s.%(ext)s']
[debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250
[debug] youtube-dl version 2018.06.25
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg 4.0, ffprobe 4.0, phantomjs 2.1.1
[debug] Proxy map: {}
[youtube] 18qXooJf3Aw: Downloading webpage
[youtube] 18qXooJf3Aw: Downloading video info webpage
[debug] Invoking downloader on 'https://r4---sn-8xjug5oxu-3ufe.googlevideo.com/videoplayback?signature=A5AA877D48061DC576EE3DAAC98945D05F2B4A5F.6F1EE9D8224E50210FD7CE7E2DA114349DE8A51E&requiressl=yes&clen=1342360938&ms=au%2Crdu&keepalive=yes&pcm2cms=yes&mv=m&source=youtube&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&pl=21&dur=8164.266&lmt=1530344344482399&ip=178.235.234.158&id=o-AJarzYg0dLBiTCgjSkofT7se57hJ9i3T1GXRuQdeo3P8&c=WEB&mn=sn-8xjug5oxu-3ufe%2Csn-f5f7lnel&mm=31%2C29&beids=%5B9466594%5D&gir=yes&key=yt6&ei=zJM3W_uLG7De7ASl3ICYCw&gcr=pl&expire=1530390572&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&fvip=5&mt=1530368813&itag=136&mime=video%2Fmp4&initcwndbps=1121250&fexp=23709359&ipbits=0&ratebypass=yes'
[download] Destination: test-136.f136.mp4
[download] 100% of 1.25GiB in 04:04
[debug] Invoking downloader on 'https://r4---sn-8xjug5oxu-3ufe.googlevideo.com/videoplayback?signature=75AC0B88942E3FADC9D9DC5930155A5B5680A9C7.CC4D39D408B8BF64D712A0343856159031B23AAD&requiressl=yes&clen=129669721&ms=au%2Crdu&keepalive=yes&pcm2cms=yes&mv=m&source=youtube&pl=21&dur=8164.321&lmt=1530343743283785&ip=178.235.234.158&id=o-AJarzYg0dLBiTCgjSkofT7se57hJ9i3T1GXRuQdeo3P8&c=WEB&mn=sn-8xjug5oxu-3ufe%2Csn-f5f7lnel&mm=31%2C29&beids=%5B9466594%5D&gir=yes&key=yt6&ei=zJM3W_uLG7De7ASl3ICYCw&gcr=pl&expire=1530390572&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&fvip=5&mt=1530368813&itag=140&mime=audio%2Fmp4&initcwndbps=1121250&fexp=23709359&ipbits=0&ratebypass=yes'
[download] Destination: test-140.f140.m4a
[download] 100% of 123.66MiB in 00:23
[ffmpeg] Merging formats into "test-136+140.mp4"
[debug] ffmpeg command line: ffmpeg -y -i "file:test-136.f136.mp4" -i "file:test-140.f140.m4a" -c copy -map "0:v:0" -map "1:a:0" "file:test-136+140.temp.mp4"

player: MPC-HC (Nightly, 64-bit)

Build information:
Version: 1.7.13.89 (b2575f55d8)
Compiler: MSVC v19.11.25506
Build date: Aug 18 2017

FFmpeg compiler:    MinGW-w64 GCC 7.2.0
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 30, 2018

Plays in vlc and mpv without any issue.

@fireattack
Copy link
Author

@fireattack fireattack commented Jun 30, 2018

@dstftw it looks like they changed the file entirely. Now f136 is around ~836M (and does play flawlessly), before it was 1.23G.

[download] Destination: アイドルマスター ミリオンライブ! シアターデイズ ミリシ
タ1周年!サンキュー生配信-18qXooJf3Aw.f136.mp4
[download]  46.0% of 836.95MiB at 18.26MiB/s ETA 00:24

@bato3

Thanks for the suggestion. I never encountered problem with Japanese name or long name before so I'm not quite sure if that's the cause. Unfortunately, it seems YouTube have changed the file (see above) so I can't test any more.

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
3 participants
You can’t perform that action at this time.