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

ERROR: content too short (expected 4743394 bytes and served 3260939) #13793

Closed
NoamHerry opened this issue Jul 31, 2017 · 4 comments
Closed

ERROR: content too short (expected 4743394 bytes and served 3260939) #13793

NoamHerry opened this issue Jul 31, 2017 · 4 comments

Comments

@NoamHerry
Copy link

@NoamHerry NoamHerry commented Jul 31, 2017

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

What is the purpose of my 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

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 ```):

ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--continue', '-o', '-', 'https://www.youtube.com/watch?v=2tN875A3Bj8']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2017.07.30.1
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2
[debug] Proxy map: {}
[youtube] 2tN875A3Bj8: Downloading webpage
[youtube] 2tN875A3Bj8: Downloading video info webpage
[youtube] 2tN875A3Bj8: Extracting video information
[youtube] {22} signature length 41.42, html5 player vflrwQIQw
[youtube] {43} signature length 41.42, html5 player vflrwQIQw
[youtube] {18} signature length 41.42, html5 player vflrwQIQw
[youtube] {36} signature length 41.42, html5 player vflrwQIQw
[youtube] {17} signature length 41.42, html5 player vflrwQIQw
[youtube] {137} signature length 41.42, html5 player vflrwQIQw
[youtube] {248} signature length 41.42, html5 player vflrwQIQw
[youtube] {136} signature length 41.42, html5 player vflrwQIQw
[youtube] {247} signature length 41.42, html5 player vflrwQIQw
[youtube] {135} signature length 41.42, html5 player vflrwQIQw
[youtube] {244} signature length 41.42, html5 player vflrwQIQw
[youtube] {134} signature length 41.42, html5 player vflrwQIQw
[youtube] {243} signature length 41.42, html5 player vflrwQIQw
[youtube] {133} signature length 41.42, html5 player vflrwQIQw
[youtube] {242} signature length 41.42, html5 player vflrwQIQw
[youtube] {160} signature length 41.42, html5 player vflrwQIQw
[youtube] {278} signature length 41.42, html5 player vflrwQIQw
[youtube] {140} signature length 41.42, html5 player vflrwQIQw
[youtube] {171} signature length 41.42, html5 player vflrwQIQw
[youtube] {249} signature length 41.42, html5 player vflrwQIQw
[youtube] {250} signature length 41.42, html5 player vflrwQIQw
[youtube] {251} signature length 41.42, html5 player vflrwQIQw
[youtube] 2tN875A3Bj8: Downloading MPD manifest
[debug] Default format spec: best
[debug] Invoking downloader on 'https://r6---sn-gphvo-ua8e.googlevideo.com/videoplayback?lmt=1471140228282999&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&id=o-AOil-JcTijW3zyPbTxf4ccbEbO5XaKppTA4_qmvFpjq-&initcwndbps=21852500&beids=%5B9466593%5D&itag=22&key=yt6&ip=2a01%3A6500%3Aa041%3Aec9d%3A90b0%3A65f5%3Ab584%3A7e9c&mime=video%2Fmp4&ipbits=0&ei=x0p_WYXxEMSpW9muicAM&pl=50&requiressl=yes&dur=173.731&mv=m&mt=1501514361&ms=au&mn=sn-gphvo-ua8e&source=youtube&mm=31&expire=1501536039&ratebypass=yes&signature=5F191CA7C995AF706D50A97A652C15C980C34B9B.0BAD4510AFE812D778A26E556FA0C7D5EBF2915D'
[download] Destination: -
[download]   2.7% of 4.52MiB at  1.96MiB/s ETA 00:02         Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-08-14T02:03:41.000000Z
  Duration: 00:02:53.69, start: 0.000000, bitrate: N/A
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 960x720 [SAR 1:1 DAR 4:3], 89 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2016-08-14T02:03:41.000000Z
      handler_name    : ISO Media file produced by Google Inc.
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2016-08-14T02:03:41.000000Z
      handler_name    : ISO Media file produced by Google Inc.
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> pcm_s16le (native))
Output #0, s16le, to 'pipe:1':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf57.71.100
    Stream #0:0(und): Audio: pcm_s16le, 48100 Hz, stereo, s16, 1539 kb/s (default)
    Metadata:
      creation_time   : 2016-08-14T02:03:41.000000Z
      handler_name    : ISO Media file produced by Google Inc.
      encoder         : Lavc57.89.100 pcm_s16le
[download]   5.5% of 4.52MiB at 66.38KiB/s ETA 01:05         size=     964kB time=00:00:05.13 bitrate=1539.2kbits/s spee[download]   6.9% of 4.52MiB at 53.05KiB/s ETA 01:21         size=    1352kB time=00:00:07.19 bitrate=1539.2kbits/s spee[download]   7.6% of 4.52MiB at 44.03KiB/s ETA 01:37         size=    1741kB time=00:00:09.26 bitrate=1539.2kbits/s spee[download]   9.0% of 4.52MiB at 46.41KiB/s ETA 01:30         size=    1933kB time=00:00:10.28 bitrate=1539.2kbits/s spee[download]  10.4% of 4.52MiB at 37.60KiB/s ETA 01:50         size=    2609kB time=00:00:13.88 bitrate=1539.2kbits/s spee[download]  11.7% of 4.52MiB at 38.31KiB/s ETA 01:46         size=    2910kB time=00:00:15.48 bitrate=1539.2kbits/s spee[download]  12.8% of 4.52MiB at 33.92KiB/s ETA 01:59         size=    3490kB time=00:00:18.57 bitrate=1539.2kbits/s spee[download]  13.8% of 4.52MiB at 34.07KiB/s ETA 01:57         size=    3691kB time=00:00:19.64 bitrate=1539.2kbits/s spee[download]  14.7% of 4.52MiB at 33.33KiB/s ETA 01:58         size=    4075kB time=00:00:21.68 bitrate=1539.2kbits/s spee[download]  15.3% of 4.52MiB at 33.45KiB/s ETA 01:57         size=    4175kB time=00:00:22.22 bitrate=1539.2kbits/s spee[download]  16.5% of 4.52MiB at 31.97KiB/s ETA 02:01         size=    4655kB time=00:00:24.77 bitrate=1539.2kbits/s spee[download]  17.9% of 4.52MiB at 32.75KiB/s ETA 01:56         size=    4952kB time=00:00:26.35 bitrate=1539.2kbits/s spee[download]  19.9% of 4.52MiB at 31.85KiB/s ETA 01:56         size=    5632kB time=00:00:29.97 bitrate=1539.2kbits/s spee[download]  21.3% of 4.52MiB at 30.93KiB/s ETA 01:57         size=    6208kB time=00:00:33.04 bitrate=1539.2kbits/s spee[download]  21.9% of 4.52MiB at 30.16KiB/s ETA 01:59         size=    6492kB time=00:00:34.55 bitrate=1539.2kbits/s spee[download]  23.0% of 4.52MiB at 31.26KiB/s ETA 01:54         size=    6588kB time=00:00:35.06 bitrate=1539.2kbits/s spee[download]  25.2% of 4.52MiB at 30.09KiB/s ETA 01:55         size=    7460kB time=00:00:39.70 bitrate=1539.2kbits/s spee[download]  26.6% of 4.52MiB at 30.27KiB/s ETA 01:52         size=    7853kB time=00:00:41.79 bitrate=1539.2kbits/s spee[download]  28.4% of 4.52MiB at 30.03KiB/s ETA 01:50         size=    8433kB time=00:00:44.88 bitrate=1539.2kbits/s spee[download]  30.6% of 4.52MiB at 28.95KiB/s ETA 01:50         size=    9397kB time=00:00:50.01 bitrate=1539.2kbits/s spee[download]  32.1% of 4.52MiB at 29.59KiB/s ETA 01:46         size=    9589kB time=00:00:51.03 bitrate=1539.2kbits/s spee[download]  33.9% of 4.52MiB at 28.99KiB/s ETA 01:45         size=   10357kB time=00:00:55.12 bitrate=1539.2kbits/s spee[download]  35.1% of 4.52MiB at 28.78KiB/s ETA 01:44         size=   10842kB time=00:00:57.70 bitrate=1539.2kbits/s spee[download]  35.7% of 4.52MiB at 28.56KiB/s ETA 01:44         size=   11033kB time=00:00:58.72 bitrate=1539.2kbits/s spee[download]  37.0% of 4.52MiB at 28.94KiB/s ETA 01:40         size=   11321kB time=00:01:00.25 bitrate=1539.2kbits/s spee[download]  38.2% of 4.52MiB at 28.43KiB/s ETA 01:40         size=   11897kB time=00:01:03.32 bitrate=1539.2kbits/s spee[download]  39.2% of 4.52MiB at 28.45KiB/s ETA 01:38         size=   12190kB time=00:01:04.87 bitrate=1539.2kbits/s spee[download]  40.5% of 4.52MiB at 28.44KiB/s ETA 01:36         size=   12574kB time=00:01:06.91 bitrate=1539.2kbits/s spee[download]  41.8% of 4.52MiB at 28.08KiB/s ETA 01:35         size=   13154kB time=00:01:10.00 bitrate=1539.2kbits/s spee[download]  42.7% of 4.52MiB at 28.27KiB/s ETA 01:33         size=   13350kB time=00:01:11.05 bitrate=1539.2kbits/s spee[download]  43.6% of 4.52MiB at 27.85KiB/s ETA 01:33         size=   13830kB time=00:01:13.60 bitrate=1539.2kbits/s spee[download]  44.1% of 4.52MiB at 27.91KiB/s ETA 01:32         size=   13926kB time=00:01:14.11 bitrate=1539.2kbits/s spee[download]  45.6% of 4.52MiB at 28.50KiB/s ETA 01:28         size=   14122kB time=00:01:15.16 bitrate=1539.2kbits/s spee[download]  47.9% of 4.52MiB at 28.02KiB/s ETA 01:26         size=   15078kB time=00:01:20.24 bitrate=1539.2kbits/s spee[download]  49.5% of 4.52MiB at 27.51KiB/s ETA 01:25         size=   15850kB time=00:01:24.35 bitrate=1539.2kbits/s spee[download]  50.3% of 4.52MiB at 27.79KiB/s ETA 01:22         size=   15950kB time=00:01:24.89 bitrate=1539.2kbits/s spee[download]  51.8% of 4.52MiB at 27.69KiB/s ETA 01:20         size=   16435kB time=00:01:27.46 bitrate=1539.2kbits/s spee[download]  52.6% of 4.52MiB at 27.88KiB/s ETA 01:18         size=   16627kB time=00:01:28.49 bitrate=1539.2kbits/s spee[download]  53.7% of 4.52MiB at 27.93KiB/s ETA 01:16         size=   16910kB time=00:01:30.00 bitrate=1539.2kbits/s spee[download]  54.3% of 4.52MiB at 28.08KiB/s ETA 01:15         size=   17011kB time=00:01:30.53 bitrate=1539.2kbits/s spee[download]  55.4% of 4.52MiB at 27.46KiB/s ETA 01:15         size=   17778kB time=00:01:34.62 bitrate=1539.2kbits/s spee[download]  55.9% of 4.52MiB at 27.53KiB/s ETA 01:14         size=   17870kB time=00:01:35.10 bitrate=1539.2kbits/s spee[download]  56.7% of 4.52MiB at 27.66KiB/s ETA 01:12         size=   18062kB time=00:01:36.13 bitrate=1539.2kbits/s spee[download]  57.6% of 4.52MiB at 27.43KiB/s ETA 01:11         size=   18446kB time=00:01:38.17 bitrate=1539.2kbits/s spee[download]  58.1% of 4.52MiB at 27.48KiB/s ETA 01:10         size=   18538kB time=00:01:38.66 bitrate=1539.2kbits/s spee[download]  59.5% of 4.52MiB at 27.76KiB/s ETA 01:07         size=   18821kB time=00:01:40.17 bitrate=1539.2kbits/s spee[download]  60.7% of 4.52MiB at 27.54KiB/s ETA 01:06         size=   19305kB time=00:01:42.74 bitrate=1539.2kbits/s spee[download]  61.2% of 4.52MiB at 27.43KiB/s ETA 01:05         size=   19589kB time=00:01:44.25 bitrate=1539.2kbits/s spee[download]  62.1% of 4.52MiB at 27.57KiB/s ETA 01:03         size=   19781kB time=00:01:45.27 bitrate=1539.2kbits/s spee[download]  63.0% of 4.52MiB at 27.40KiB/s ETA 01:02         size=   20160kB time=00:01:47.29 bitrate=1539.2kbits/s spee[download]  63.5% of 4.52MiB at 27.44KiB/s ETA 01:01         size=   20352kB time=00:01:48.32 bitrate=1539.2kbits/s spee[download]  64.2% of 4.52MiB at 27.44KiB/s ETA 01:00         size=   20540kB time=00:01:49.31 bitrate=1539.2kbits/s spee[download]  64.8% of 4.52MiB at 27.53KiB/s ETA 00:59         size=   20640kB time=00:01:49.85 bitrate=1539.2kbits/s spee[download]  65.7% of 4.52MiB at 27.40KiB/s ETA 00:57         size=   21020kB time=00:01:51.87 bitrate=1539.2kbits/s spee[download]  66.2% of 4.52MiB at 27.43KiB/s ETA 00:57         size=   21212kB time=00:01:52.89 bitrate=1539.2kbits/s spee[download]  66.9% of 4.52MiB at 27.37KiB/s ETA 00:56         size=   21400kB time=00:01:53.89 bitrate=1539.2kbits/s spee[download]  67.9% of 4.52MiB at 27.55KiB/s ETA 00:53         size=   21587kB time=00:01:54.89 bitrate=1539.2kbits/s spee[download]  68.9% of 4.52MiB at 27.31KiB/s ETA 00:52         size=   22163kB time=00:01:57.95 bitrate=1539.2kbits/s spee[download]  69.5% of 4.52MiB at 27.28KiB/s ETA 00:51         size=   22355kB time=00:01:58.97 bitrate=1539.2kbits/s spee[download]  70.4% of 4.52MiB at 27.34KiB/s ETA 00:50         size=   22543kB time=00:01:59.97 bitrate=1539.2kbits/s spee[download]  71.6% of 4.52MiB at 27.36KiB/s ETA 00:48         size=   22922kB time=00:02:01.99 bitrate=1539.2kbits/s spee[download]  73.0% of 4.52MiB at 27.18KiB/s ETA 00:46         size=   23498kB time=00:02:05.06 bitrate=1539.2kbits/s spee[download]  73.9% of 4.52MiB at 27.31KiB/s ETA 00:44         size=   23690kB time=00:02:06.08 bitrate=1539.2kbits/s spee[download]  74.3% of 4.52MiB at 27.31KiB/s ETA 00:43         ERROR: content too short (expected 4743394 bytes and served 3524650)
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfdfxmx88\build\youtube_dl\YoutubeDL.py", line 1863, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfdfxmx88\build\youtube_dl\YoutubeDL.py", line 1805, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfdfxmx88\build\youtube_dl\downloader\common.py", line 361, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpfdfxmx88\build\youtube_dl\downloader\http.py", line 238, in real_download
youtube_dl.utils.ContentTooShortError: Downloaded 3524650 bytes, expected 4743394 bytes

size=   24013kB time=00:02:07.80 bitrate=1539.2kbits/s speed=1.01x
video:0kB audio:24013kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
...
<end of log>

Description of my issue:

Happens when I try this URL: https://www.youtube.com/watch?v=2tN875A3Bj8
with these options: --continue -o - {url}

Any idea why?
And why is the download speed so low (30KB/s)?
(Using C#)

@NoamHerry
Copy link
Author

@NoamHerry NoamHerry commented Jul 31, 2017

People?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 31, 2017

Most likely network issue on your side.

And why is the download speed so low (30KB/s)?

Cause you are streaming to stdout and consume with ffmpeg at playback bitrate.

@dstftw dstftw closed this Jul 31, 2017
@NoamHerry
Copy link
Author

@NoamHerry NoamHerry commented Aug 1, 2017

Most likely network issue on your

That's a no. it happens to me and a friend of mine. @dstftw

@anisse
Copy link
Contributor

@anisse anisse commented Aug 2, 2017

@NoamHerry : try without piping to stdout to isolate the download speed from the ffmpeg transcode speed. This might be the issue here as was suggested.

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.