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

Wrong resolution chosen with <=?1080 filter option on 360° video #21680

Closed
Bzzz opened this issue Jul 7, 2019 · 2 comments
Closed

Wrong resolution chosen with <=?1080 filter option on 360° video #21680

Bzzz opened this issue Jul 7, 2019 · 2 comments
Labels

Comments

@Bzzz
Copy link

@Bzzz Bzzz commented Jul 7, 2019

Checklist

youtube-dl -U
youtube-dl is up-to-date (2019.07.02)

youtube-dl 3cuNPyrngwc

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2019.07.02
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

youtube-dl -F 3cuNPyrngwc
[youtube] 3cuNPyrngwc: Downloading webpage
[youtube] 3cuNPyrngwc: Downloading video info webpage
[info] Available formats for 3cuNPyrngwc:
format code  extension  resolution note
249          webm       audio only DASH audio   48k , opus @ 50k, 1.50MiB
250          webm       audio only DASH audio   62k , opus @ 70k, 1.95MiB
171          webm       audio only DASH audio  120k , vorbis@128k, 3.65MiB
251          webm       audio only DASH audio  123k , opus @160k, 3.96MiB
140          m4a        audio only DASH audio  130k , m4a_dash container, mp4a.40.2@128k, 4.46MiB
327          m4a        audio only  258k , mp4a.40.2, 8.88MiB
339          webm       audio only  292k , vorbis, 8.35MiB
338          webm       audio only  540k , opus , 16.23MiB
278          webm       256x144    144s   97k , webm container, vp9, 30fps, video only, 2.89MiB
160          mp4        256x144    144s  111k , avc1.4d400c, 30fps, video only, 1.80MiB
242          webm       424x240    240s  221k , vp9, 30fps, video only, 5.02MiB
133          mp4        424x240    240s  241k , avc1.4d4015, 30fps, video only, 3.22MiB
243          webm       640x360    360s  409k , vp9, 30fps, video only, 9.83MiB
134          mp4        640x360    360s  632k , avc1.4d401e, 30fps, video only, 9.71MiB
244          webm       852x480    480s  755k , vp9, 30fps, video only, 17.83MiB
135          mp4        852x480    480s 1154k , avc1.4d401f, 30fps, video only, 20.67MiB
247          webm       1280x720   720s 1509k , vp9, 30fps, video only, 37.66MiB
136          mp4        1280x720   720s 2312k , avc1.4d401f, 30fps, video only, 40.70MiB
248          webm       1920x1080  1080s 2664k , vp9, 30fps, video only, 70.04MiB
137          mp4        1920x1080  1080s 4332k , avc1.640028, 30fps, video only, 77.72MiB
271          webm       2560x1440  1440s 8858k , vp9, 30fps, video only, 230.05MiB
264          mp4        2560x1440  1440s 10382k , avc1.640032, 30fps, video only, 202.03MiB
272          webm       5760x2880  2880s 11588k , vp9, 30fps, video only, 376.01MiB
313          webm       3840x2160  2160s 17760k , vp9, 30fps, video only, 548.34MiB
266          mp4        3840x2160  2160s 22935k , avc1.640033, 30fps, video only, 395.24MiB
138          mp4        5760x2880  2880s 39266k , avc1.64003c, 30fps, video only, 761.18MiB
18           mp4        640x360    medium , avc1.42001E, mp4a.40.2@ 96k, 14.86MiB
43           webm       640x360    medium , vp8.0, vorbis@128k, 23.15MiB
22           mp4        1280x720   hd720 , avc1.64001F, mp4a.40.2@192k (best)



youtube-dl -v 3cuNPyrngwc
[debug] System config: []
[debug] User config: [u'-f', u'bestvideo[height<=?1080/vcodec!=vp9]+bestaudio[ext=m4a]/best[ext=m4a]/best', u'-o', u'/home/bzzz/Downloads/yt/%(duration)05d - %(title)s - %(id)s.%(ext)s', u'--default-search', u'ytsearch']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'3cuNPyrngwc']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.02
[debug] Python version 2.7.15+ (CPython) - Linux-5.1.8-050108-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 3cuNPyrngwc: Downloading webpage
[youtube] 3cuNPyrngwc: Downloading video info webpage
[debug] Invoking downloader on u'https://r3---sn-4g5e6ns7.googlevideo.com/videoplayback?expire=1562476944&ei=MC0hXbuWFJaC8gOR2KuoBA&ip=88.64.214.71&id=o-AK9VOUlczwPpbZevNWBDmQCWCgLEZlKzwBLhVKmGry2C&itag=138&aitags=133%2C134%2C135%2C136%2C137%2C138%2C160%2C242%2C243%2C244%2C247%2C248%2C264%2C266%2C271%2C272%2C278%2C313&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-4g5e6ns7%2Csn-4g5ednsl&ms=au%2Crdu&mv=m&mvi=2&pl=22&initcwndbps=788750&xtags=vproj%3Dmesh&mime=video%2Fmp4&gir=yes&clen=798155231&dur=289.155&lmt=1562241986241271&mt=1562455205&fvip=3&keepalive=yes&c=WEB&txp=5530232&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxtags%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ALgxI2wwRgIhAPHLtbX8hBHBsNK4BkbEImyPi4PcQK4BXCXx6UaZSLEdAiEAsuw9nRdZoGPHkozq7e9DGJCNfEMqmrI6zCh01urKd2A%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhAOvlJJdzqEl-LGNydx-5IUAkKG-cWI7PfzTT_SJjZCyFAiEApRR6qYpWjIwj7x0p0chhzlqMPRFZlKnbweHQiXYIDlg%3D&ratebypass=yes'
[download] Destination: /home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.f138.mp4
[download] 100% of 761.18MiB in 01:20
[debug] Invoking downloader on u'https://r3---sn-4g5e6ns7.googlevideo.com/videoplayback?expire=1562476944&ei=MC0hXbuWFJaC8gOR2KuoBA&ip=88.64.214.71&id=o-AK9VOUlczwPpbZevNWBDmQCWCgLEZlKzwBLhVKmGry2C&itag=327&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-4g5e6ns7%2Csn-4g5ednsl&ms=au%2Crdu&mv=m&mvi=2&pl=22&initcwndbps=788750&mime=audio%2Fmp4&gir=yes&clen=9313203&dur=289.216&lmt=1562241058503663&mt=1562455205&fvip=3&keepalive=yes&c=WEB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ALgxI2wwRQIhAOnzZN3Se_CPdQMpGl6D5_ycWhWpZwSLYcjVgjRbVuUEAiB7-DWQFsrsNMPLdyhtRZPxeETttHKmE53mHtR0uiLERw%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhAOvlJJdzqEl-LGNydx-5IUAkKG-cWI7PfzTT_SJjZCyFAiEApRR6qYpWjIwj7x0p0chhzlqMPRFZlKnbweHQiXYIDlg%3D&ratebypass=yes'
[download] Destination: /home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.f327.m4a
[download] 100% of 8.88MiB in 00:00
[ffmpeg] Merging formats into "/home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:/home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.f138.mp4' -i 'file:/home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.f327.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:/home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.temp.mp4'
Deleting original file /home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.f138.mp4 (pass -k to keep)
Deleting original file /home/bzzz/Downloads/yt/00289 - 360º EXPLOSIVE Petrol Station Stunt! _ Top Gear - Jumps - 3cuNPyrngwc.f327.m4a (pass -k to keep)


Description

Downloading https://www.youtube.com/watch?v=3cuNPyrngwc with my format options
-f bestvideo[height<=?1080/vcodec!=vp9]+bestaudio[ext=m4a]/best[ext=m4a]/best
should catch a file with 1080p max, however, according to VLC codec information (5760x2880@29.97fps), file size (770MiB for 4:49 play time ~ 21 Mbps, matching codec 138 from the -F list) and my struggling CPU (the reason for 1080p limit on a 1440x900 display), that doesn't seem to be the case.
This is a 360° video, maybe different rules apply for determining video resolution on these? The codec filter works fine otherwise, resolution is 1080p max and vp9 is excluded which doesn't play on my TV. This is the very first video that was downloaded in bestvideo/bestaudio format.

@Bzzz Bzzz changed the title Wrong resolution chosen with <=?1080 filter option on 3D video Wrong resolution chosen with <=?1080 filter option on 360° video Jul 7, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 7, 2019

Invalid syntax, precedence does not work inside brackets.

@dstftw dstftw closed this Jul 7, 2019
@dstftw dstftw added the invalid label Jul 7, 2019
@Bzzz
Copy link
Author

@Bzzz Bzzz commented Jul 7, 2019

So -f bestvideo[height<=?1080][vcodec!=vp9]+bestaudio[ext=m4a]/best[ext=m4a]/best?
Well, who cares.

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.