Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
truncated (quickly) get #1468
truncated (quickly) get #1468
Comments
* [ximalaya_extractor] Add new extractor * format change according by flake8 * changes accoring to review by @yan12125 at github pull #14687 * change %d to %s in a temp str * seond changes accoring to review by @yan12125 at github pull #1468 * improve TESTS about contains * changes accoring to third review by @yan12125 at github pull #1468 * forth changes accoring to forth review by @yan12125 at github pull #1468
Summary: On at least some youtube videos, only the first small fraction are downloaded. Failures occur with " ERROR: content too short (expected 887562491 bytes and served 4195009)"
Details:
Note that these are long videos. They do play on the youtube site.
Sometimes the failure is quick (as below), sometimes after 1-2 mins.
First - see what is available:
$ youtube-dl -F -o mayan9a.mp4 -r 4m 'https://www.youtube.com/watch?v=xUOBNW11Yeg'
[youtube] Setting language
[youtube] xUOBNW11Yeg: Downloading video webpage
[youtube] xUOBNW11Yeg: Downloading video info webpage
[youtube] xUOBNW11Yeg: Extracting video information
Available formats:
22 : mp4 [720x1280]
45 : webm [720x1280]
35 : flv [480x854]
44 : webm [480x854]
34 : flv [360x640]
18 : mp4 [360x640]
43 : webm [360x640]
5 : flv [240x400]
36 : 3gp [240x320]
17 : 3gp [144x176]
136 : mp4 [720p](DASH Video)
135 : mp4 [480p](DASH Video)
134 : mp4 [360p](DASH Video)
133 : mp4 [240p](DASH Video)
160 : mp4 [192p](DASH Video)
141 : mp4 [256k](DASH Audio)
140 : mp4 [128k](DASH Audio)
139 : mp4 [48k](DASH Audio)
But...
$ youtube-dl -f 22/45 -o mayan9a2.mp4 -r 4m 'https://www.youtube.com/watch?v=xUOBNW11Yeg'
[youtube] Setting language
[youtube] xUOBNW11Yeg: Downloading video webpage
[youtube] xUOBNW11Yeg: Downloading video info webpage
[youtube] xUOBNW11Yeg: Extracting video information
[download] Destination: mayan9a2.mp4
[download] 100% of 846.45MiB in 00:01
ERROR: content too short (expected 887562491 bytes and served 4195009)
$ youtube-dl -f 45/22 -o mayan9a4.mp4 -r 500k
'https://www.youtube.com/watch?v=xUOBNW11Yeg'
[youtube] Setting language
[youtube] xUOBNW11Yeg: Downloading video webpage
[youtube] xUOBNW11Yeg: Downloading video info webpage
[youtube] xUOBNW11Yeg: Extracting video information
ERROR: Did not get any data blocks
$ youtube-dl -f 22/45 -o mayan9a5.mp4 -r 500k 'https://www.youtube.com/watch?v=xUOBNW11Yeg'
[youtube] Setting language
[youtube] xUOBNW11Yeg: Downloading video webpage
[youtube] xUOBNW11Yeg: Downloading video info webpage
[youtube] xUOBNW11Yeg: Extracting video information
[download] Destination: mayan9a5.mp4
[download] 100% of 846.45MiB in 00:08
ERROR: content too short (expected 887562491 bytes and served 4195009)
$ youtube-dl --version
2013.09.20
$ python --version
Python 2.7.3
$ cat /etc/issue
Ubuntu 12.04.3 LTS \n \l
$ uname -a
Linux x 3.2.0-49-generic #75-Ubuntu SMP Tue Jun 18 17:39:32 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux