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

Downloading ONLY AUDIO and not downloading video #18447

Closed
durai23 opened this issue Dec 7, 2018 · 1 comment
Closed

Downloading ONLY AUDIO and not downloading video #18447

durai23 opened this issue Dec 7, 2018 · 1 comment

Comments

@durai23
Copy link

@durai23 durai23 commented Dec 7, 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.12.03. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2018.12.03

Before submitting an issue make sure you have:

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

What is the purpose of your issue?

  • [x ] 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 ```):

C:\cygwin64\home\synapse\scripts_youtube_dl>python proxy_disbalesslcheck_sleep_t
est.py --url "https://www.youtube.com/watch?v=CqJPXVuqs2Y"
WARNING: Parameter outtmpl is bytes, but should be a unicode string. Put  from _
_future__ import unicode_literals  at the top of your code file or consider swit
ching to Python 3.x.
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.12.03
[debug] Python version 2.7.11 (CPython) - Windows-8.1-6.3.9600
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2
[debug] Proxy map: {u'http': u'xxx.xxx.xxx.xx:xxxxx', u'https': u'xxx.xxx.xxx.xx:xxxxx'}
[youtube] CqJPXVuqs2Y: Downloading webpage
[youtube] CqJPXVuqs2Y: Downloading video info webpage
WARNING: "id" field is not a string - forcing string conversion, there is an err
or in extractor
Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off
[info] Writing video description metadata as JSON to: Y:\yt2018\NA_NA\CqJPXVuqs2
Y_Jennifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.in
fo.json
[youtube] CqJPXVuqs2Y: Downloading thumbnail ...
[youtube] CqJPXVuqs2Y: Writing thumbnail to: Y:\yt2018\NA_NA\CqJPXVuqs2Y_Jennife
r Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.jpg
[debug] Invoking downloader on u'https://r2---sn-5hne6nsd.googlevideo.com/videop
layback?keepalive=yes&clen=5766928&gir=yes&key=yt6&signature=99756D8152D1F9E34E9
9B013376C6442C95E8AE2.493D9F9930B3439AEB12680399C5AF3CE55E774D&mime=audio%2Fmp4&
initcwndbps=1840000&lmt=1509849205067640&itag=140&expire=1544241663&ipbits=0&spa
rams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2
Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&source=youtu
be&dur=363.043&requiressl=yes&id=0aa24f5d5baab366&pl=25&mn=sn-5hne6nsd%2Csn-4g5e
6n7k&mm=31%2C26&ms=au%2Conr&mv=m&mt=1544219943&ip=81.171.74.80&ei=n-0KXI73AsTgVd
KGg4gC&c=WEB&fvip=2&ratebypass=yes'
[download] Sleeping 10 seconds...
[download] Destination: Y:\yt2018\NA_NA\CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Ku
drow in Celebrity Curse Off_20141125_NA_128_140.m4a
[download] 100% of 5.50MiB in 00:02
[ffmpeg] Correcting container in "Y:\yt2018\NA_NA\CqJPXVuqs2Y_Jennifer Aniston v
s. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.m4a"
[debug] ffmpeg command line: ffmpeg -y -i "file:Y:\yt2018\NA_NA\CqJPXVuqs2Y_Jenn
ifer Aniston vs. Lisa Kudrow in Celebrity Curse Off_20141125_NA_128_140.m4a" -c
copy -f mp4 "file:Y:\yt2018\NA_NA\CqJPXVuqs2Y_Jennifer Aniston vs. Lisa Kudrow i
n Celebrity Curse Off_20141125_NA_128_140.temp.m4a"


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.

@durai23 durai23 changed the title Not downloading mp4 Downloading ONLY AUDIO and not downloading video Dec 7, 2018
@durai23
Copy link
Author

@durai23 durai23 commented Dec 8, 2018

Hi,
I figured it out. I think it is because of the format selection.
Thanks, you can close.

@remitamine remitamine closed this Dec 8, 2018
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
2 participants
You can’t perform that action at this time.