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

[youtube] Formats 22 and 299 conflict with each other and result in only one file being downloaded #16685

Closed
voltagex opened this issue Jun 10, 2018 · 1 comment
Labels

Comments

@voltagex
Copy link

@voltagex voltagex commented Jun 10, 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.04. 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.04

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

youtube-dl -vvv -F https://www.youtube.com/watch?v=JflRPkSAH8A
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-vvv', '-F', 'https://www.youtube.com/watch?v=JflRPkSAH8A']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.06.04
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg N-90796-ge5ba5fab49, ffprobe N-90796-ge5ba5fab49, rtmpdump 2.4-20151223-gfa8646d-LibreSSL_2.5.4-x86_64-static
[debug] Proxy map: {}
[youtube] JflRPkSAH8A: Downloading webpage
[youtube] JflRPkSAH8A: Downloading video info webpage
[info] Available formats for JflRPkSAH8A:
format code  extension  resolution note
249          webm       audio only DASH audio   59k , opus @ 50k, 6.49MiB
250          webm       audio only DASH audio   76k , opus @ 70k, 8.33MiB
171          webm       audio only DASH audio  129k , vorbis@128k, 13.56MiB
140          m4a        audio only DASH audio  131k , m4a_dash container, mp4a.40.2@128k, 16.35MiB
251          webm       audio only DASH audio  147k , opus @160k, 15.81MiB
278          webm       256x144    144p  106k , webm container, vp9, 30fps, video only, 11.51MiB
160          mp4        256x144    144p  113k , avc1.4d400c, 30fps, video only, 7.30MiB
242          webm       426x240    240p  230k , vp9, 30fps, video only, 20.01MiB
133          mp4        426x240    240p  249k , avc1.4d4015, 30fps, video only, 14.03MiB
243          webm       640x360    360p  418k , vp9, 30fps, video only, 37.14MiB
134          mp4        640x360    360p  641k , avc1.4d401e, 30fps, video only, 42.26MiB
244          webm       854x480    480p  770k , vp9, 30fps, video only, 64.61MiB
135          mp4        854x480    480p 1182k , avc1.4d401f, 30fps, video only, 86.78MiB
247          webm       1280x720   720p 1553k , vp9, 30fps, video only, 136.13MiB
136          mp4        1280x720   720p 2346k , avc1.4d401f, 30fps, video only, 170.99MiB
302          webm       1280x720   720p60 2741k , vp9, 60fps, video only, 220.70MiB
248          webm       1920x1080  1080p 2744k , vp9, 30fps, video only, 283.22MiB
298          mp4        1280x720   720p60 3496k , avc1.4d4020, 60fps, video only, 300.14MiB
137          mp4        1920x1080  1080p 4386k , avc1.640028, 30fps, video only, 325.61MiB
303          webm       1920x1080  1080p60 4566k , vp9, 60fps, video only, 480.16MiB
299          mp4        1920x1080  1080p60 5814k , avc1.64002a, 60fps, video only, 502.99MiB
17           3gp        176x144    small , mp4v.20.3, mp4a.40.2@ 24k, 9.92MiB
36           3gp        320x180    small , mp4v.20.3, mp4a.40.2, 28.97MiB
18           mp4        640x360    medium , avc1.42001E, mp4a.40.2@ 96k, 67.52MiB
43           webm       640x360    medium , vp8.0, vorbis@128k, 94.83MiB
22           mp4        1280x720   hd720 , avc1.64001F, mp4a.40.2@192k (best)

 youtube-dl -vvv -f'22,299,303+251' https://www.youtube.com/watch?v=JflRPkSAH8A
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-vvv', '-f22,299,303+251', 'https://www.youtube.com/watch?v=JflRPkSAH8A']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.06.04
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg N-90796-ge5ba5fab49, ffprobe N-90796-ge5ba5fab49, rtmpdump 2.4-20151223-gfa8646d-LibreSSL_2.5.4-x86_64-static
[debug] Proxy map: {}
[youtube] JflRPkSAH8A: Downloading webpage
[youtube] JflRPkSAH8A: Downloading video info webpage
[info] JflRPkSAH8A: downloading video in 3 formats
[debug] Invoking downloader on 'https://r3---sn-ppoxu-ntql.googlevideo.com/videoplayback?ip=xyz&key=yt6&itag=22&pl=19&c=WEB&dur=1058.992&mv=m&source=youtube&ms=au%2Crdu&mn=sn-ppoxu-ntql%2Csn-ntqe6n76&mm=31%2C29&expire=1528647084&id=o-AD1pjVivQtikJ8yFxWErkbhOhQevRforIwmPEupYPpv2&ei=TPkcW8nrH5DW4wLa4pToCw&mime=video%2Fmp4&lmt=1524950724857462&signature=BFBEE7E2C2AD51648F56BD362220415EBD76797E.446EC6E98FA102FFD1CE684D230708C405C26EE2&fvip=3&ratebypass=yes&requiressl=yes&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&ipbits=0&initcwndbps=711250&mt=1528625333'
[download] Destination: God of War's Director Explains Ending-JflRPkSAH8A.mp4
[download] 100% of 187.26MiB in 00:18
[debug] Invoking downloader on 'https://r3---sn-ppoxu-ntql.googlevideo.com/videoplayback?ip=xyz&key=yt6&mv=m&mt=1528625333&ms=au%2Crdu&mn=sn-ppoxu-ntql%2Csn-ntqe6n76&mm=31%2C29&id=o-AD1pjVivQtikJ8yFxWErkbhOhQevRforIwmPEupYPpv2&lmt=1524950293910937&fvip=3&ei=TPkcW8nrH5DW4wLa4pToCw&requiressl=yes&gir=yes&itag=299&pl=19&dur=1058.924&source=youtube&keepalive=yes&c=WEB&expire=1528647084&mime=video%2Fmp4&signature=51E7D3772605B4F1559340B7102B5D68F8B81BEF.3CBDD589C6E299E64BD3A1A2BB6EAFEC77895098&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C298%2C299%2C302%2C303&clen=527426132&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&initcwndbps=711250&ratebypass=yes'
[download] God of War's Director Explains Ending-JflRPkSAH8A.mp4 has already been downloaded
[download] 100% of 187.26MiB
[debug] Invoking downloader on 'https://r3---sn-ppoxu-ntql.googlevideo.com/videoplayback?ip=xyz&key=yt6&mv=m&mt=1528625333&ms=au%2Crdu&mn=sn-ppoxu-ntql%2Csn-ntqe6n76&mm=31%2C29&id=o-AD1pjVivQtikJ8yFxWErkbhOhQevRforIwmPEupYPpv2&lmt=1524955309224503&fvip=3&ei=TPkcW8nrH5DW4wLa4pToCw&requiressl=yes&gir=yes&itag=303&pl=19&dur=1058.924&source=youtube&keepalive=yes&c=WEB&expire=1528647084&mime=video%2Fwebm&signature=8B25F44E2E1D36A0747826CACB6FF913F3BB4B58.21C9C27933F5E45AEE38C00274FB169416068782&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C298%2C299%2C302%2C303&clen=503487293&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&initcwndbps=711250&ratebypass=yes'
[download] Destination: God of War's Director Explains Ending-JflRPkSAH8A.f303.webm
[download] 100% of 480.16MiB in 00:47
[debug] Invoking downloader on 'https://r3---sn-ppoxu-ntql.googlevideo.com/videoplayback?ip=xyz&key=yt6&mv=m&mt=1528625333&ms=au%2Crdu&mn=sn-ppoxu-ntql%2Csn-ntqe6n76&mm=31%2C29&id=o-AD1pjVivQtikJ8yFxWErkbhOhQevRforIwmPEupYPpv2&lmt=1524954345229204&fvip=3&ei=TPkcW8nrH5DW4wLa4pToCw&requiressl=yes&gir=yes&itag=251&pl=19&dur=1058.961&source=youtube&keepalive=yes&c=WEB&expire=1528647084&mime=audio%2Fwebm&signature=A0870F4F6F4A7C7019246706854D0D2E219FFC9B.7DF40D21CFE034CAE4D16574A6D1FA696DFD18D6&clen=16581260&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&initcwndbps=711250&ratebypass=yes'
[download] Destination: God of War's Director Explains Ending-JflRPkSAH8A.f251.webm
[download] 100% of 15.81MiB in 00:01
[ffmpeg] Merging formats into "God of War's Director Explains Ending-JflRPkSAH8A.webm"
[debug] ffmpeg command line: ffmpeg -y -i "file:God of War's Director Explains Ending-JflRPkSAH8A.f303.webm" -i "file:God of War's Director Explains Ending-JflRPkSAH8A.f251.webm" -c copy -map "0:v:0" -map "1:a:0" "file:God of War's Director Explains Ending-JflRPkSAH8A.temp.webm"
Deleting original file God of War's Director Explains Ending-JflRPkSAH8A.f303.webm (pass -k to keep)
Deleting original file God of War's Director Explains Ending-JflRPkSAH8A.f251.webm (pass -k to keep)


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       29/04/2018   7:25 AM      196357742 God of War's Director Explains Ending-JflRPkSAH8A.mp4
-a----       29/04/2018   8:25 AM      520071205 God of War's Director Explains Ending-JflRPkSAH8A.webm
...
<end of log>

Description of your issue, suggested solution and other information

You can delete 303+251 from my command line to show the issue more clearly - the problem is that the output filenames of the two conflicting formats are the same, so one file is already there by the time the request is made for the second format.

@dstftw dstftw closed this Jun 10, 2018
@dstftw dstftw added the duplicate label Jun 10, 2018
@voltagex
Copy link
Author

@voltagex voltagex commented Jul 22, 2018

What's the non-duplicate issue number?

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.