Youtube videos missing quality options

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Youtube videos missing quality options

Postby yinteresting » Mon Sep 17, 2018 3:45 pm

Hi,

When I was running cefclient and browsing some youtube videos, I noticed that some videos are missing quality options. Only 360p is available. For the same video, on Chrome, it has many other options to select.

Just wondering if there is any parameter or setting that I can set to enable more options.

For example, the following video: http://www.youtube.com/embed/ZX9e-ZrnZI ... autoplay=1

Thanks in advance.
Y
yinteresting
Newbie
 
Posts: 5
Joined: Thu Sep 07, 2017 1:53 pm

Re: Youtube videos missing quality options

Postby ndesktop » Tue Sep 18, 2018 1:03 am

Most likely the libcef was not built with codecs support.
ndesktop
Master
 
Posts: 754
Joined: Thu Dec 03, 2015 10:10 am

Re: Youtube videos missing quality options

Postby yinteresting » Tue Sep 18, 2018 11:07 am

ndesktop wrote:Most likely the libcef was not built with codecs support.


The problem is some videos have the same quality options as what Chrome offers. If there is no codecs support at all, my suspect is that all videos should be limited with 360p option.
yinteresting
Newbie
 
Posts: 5
Joined: Thu Sep 07, 2017 1:53 pm

Re: Youtube videos missing quality options

Postby magreenblatt » Tue Sep 18, 2018 12:33 pm

Could also be the lack of DRM (Widevine) support causing YouTube to only offer very low-quality options.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: Youtube videos missing quality options

Postby yinteresting » Mon Sep 24, 2018 12:56 pm

Just to confirm, after setting proprietary_codecs to be true, I can see different video quality options now.
What confuses me is why other videos have all different options if H.264 are not supported.
yinteresting
Newbie
 
Posts: 5
Joined: Thu Sep 07, 2017 1:53 pm

Re: Youtube videos missing quality options

Postby Czarek » Mon Sep 24, 2018 1:38 pm

With the youtube-dl tool you can check all formats available for a video. For your video it shows:

Code: Select all
format code  extension  resolution note
139          m4a        audio only DASH audio   52k , m4a_dash container, mp4a.40.5@ 48k (22050Hz)
140          m4a        audio only DASH audio  132k , m4a_dash container, mp4a.40.2@128k (44100Hz)
160          mp4        256x144    DASH video  108k , avc1.4d400b, 30fps, video only
133          mp4        426x240    DASH video  242k , avc1.4d400c, 30fps, video only
134          mp4        640x360    DASH video  633k , avc1.4d401e, 30fps, video only
135          mp4        854x480    DASH video 1155k , avc1.4d4014, 30fps, video only
136          mp4        1280x720   DASH video 2310k , avc1.4d4016, 30fps, video only
137          mp4        1920x1080  DASH video 4333k , avc1.640028, 30fps, video only
17           3gp        176x144    small , mp4v.20.3, mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3, mp4a.40.2
43           webm       640x360    medium , vp8.0, vorbis@128k
18           mp4        640x360    medium , avc1.42001E, mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F, mp4a.40.2@192k (best)
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 35 guests