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.
Downloading ONLY AUDIO and not downloading video #18447
Comments
|
Hi, |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.12.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
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
-vflag 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 ```):Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
Hi,
I am using the python version.
NOTE: had to hide my private proxy with "xxxxx"s in the verbose output.
These are the arguments -
ydl_opts = {
'forcetitle':args.ttl,
'outtmpl':args.oloc,
'writethumbnail':True,
'writeinfojson':True,
'format': args.fmat,
'ignoreerrors':args.i,
'nooverwrites':args.w,
'verbose':True,
'proxy':"xxx.xxx.xxx.xx:xxxxx",
'sleep_interval':10,
'noplaylist':False,
}
I set the output template to the following (in Windows) :
"Y:\yt2018%(playlist_id)s_%(playlist_title)s%(id)s_%(title)s_%(upload_date)s_%(height)s_%(abr)s_%(format_id)s.%(ext)s"
and the file format to the following:
"bestvideo[ext=mp4][height=1080][height>=720],bestaudio[ext=m4a][abr<192]"
So, it should download 6 files for each youtube video -
VIDEO:thumbnail
VIDEO:json
VIDEO:mp4
AUDIO:thumbnail
AUDIO:json
AUDIO:m4a
I tried it on a playlist with 22 videos and it works for 15 videos. For the rest 7, it only downloads the 3 files related to the AUDIO. So then I tried it on a single video instead of a playlist and it produces the same behavior. this is the log from that. The above log is from the single video test. To be more specific -
The expected output files-
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.jpg
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.m4a
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.info.json
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_1080_NA_137.jpg
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_1080_NA_137.mp4
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_1080_NA_137.info.json
The actually downloaded -
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.jpg
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.m4a
CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.info.json
So, the 3 video related files don't download. Do you know what is going on?
Thanks.