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

Please add support for higher quality videos from xvideos #10356

Closed
rbrito opened this issue Aug 16, 2016 · 1 comment
Closed

Please add support for higher quality videos from xvideos #10356

rbrito opened this issue Aug 16, 2016 · 1 comment

Comments

@rbrito
Copy link
Contributor

@rbrito rbrito commented Aug 16, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.08.13
  • Searched the bugtracker for similar issues including closed ones
  • Feature request (request for a new functionality)

Description of the issue, suggested solution and other information

xvideos.com has now started offering videos in higher resolutions (actually, multiple resolutions) via HLS. Currently, youtube-dl is only downloading, via the URLs taken by the regexp, things via straight HTTP.

See, for example, the following video: http://www.xvideos.com/video22833069/anal_queen_from_brazil

The relevant HTML snippet is the following (yes, the indenting is messy):

            <script>logged_user = false;
    var html5player = new HTML5Player('html5video', '22833069');
    html5player.setVideoTitle('Anal Queen From Brazil');
    html5player.setSponsors(false);
    html5player.setVideoUrlLow('http://content.xvideos.com/videos/3gp/c/9/9/xvideos.com_c994677a47070a513b047354f1fb7b1c.mp4?e=1471362685&ri=1024&rs=85&h=0bcedcdb9793f7e4eacc07f95cd14704');
    html5player.setVideoUrlHigh('http://content.xvideos.com/videos/mp4/c/9/9/xvideos.com_c994677a47070a513b047354f1fb7b1c.mp4?e=1471362685&ri=1024&rs=85&h=09235234476a4665c9d89adf40ff80a2');
    html5player.setVideoHLS('http://cdn3-l3-cdn.xvideos.com/32e75581661733b3df6b1d863cd669e602458cf3-1471362685/videos/hls/c9/94/67/c994677a47070a513b047354f1fb7b1c/hls.m3u8');
    html5player.setThumbUrl('http://img-l3.xvideos.com/videos/thumbslll/c9/94/67/c994677a47070a513b047354f1fb7b1c/c994677a47070a513b047354f1fb7b1c.30.jpg');
    html5player.setRelated(video_related);
    html5player.setThumbSlide('http://img-l3.xvideos.com/videos/thumbs/c9/94/67/c994677a47070a513b047354f1fb7b1c/mozaique.jpg');
    html5player.setIdCDN('2');
    html5player.setIdCdnHLS('3');
    html5player.setFakePlayer(false);
    html5player.setDesktopiew(true);
    html5player.setVideoURL('/video22833069/anal_queen_from_brazil');
    html5player.initPlayer();
    </script>

If I manually grab the HLS URL and use ffmpeg with something like (the hashes may, of course, change due to timestamps being embedded in the URLs):

ffmpeg -i http://cdn3-l3-cdn.xvideos.com/c0fcdbe93306559fd86db1dd941faf2376020507-1471361420/videos/hls/c9/94/67/c994677a47070a513b047354f1fb7b1c/hls.m3u8 -c copy -bsf:a aac_adtstoasc -map 0:2 -map 0:3 out.mkv

I determined the substreams/programs in the HLS, manually. It would be nice to have the option of downloading higher quality files via ffmpeg than with pure HTTP. The difference in resolution is huge.

Thanks,

Rogério Brito.

P.S.: I believe that the amount of information that I provided is enough for understanding the problem. If not, please don't hesitate to ask for more details.

@dstftw dstftw closed this in 70a2829 Aug 16, 2016
@rbrito
Copy link
Contributor Author

@rbrito rbrito commented Aug 17, 2016

Thanks! I will upload this to Debian tomorrow (or by this weekend).

(I'm the package maintainer downstream).

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
1 participant
You can’t perform that action at this time.