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

Dailymotion only 512x384p even if video is available in 1080p #986

Closed
strex opened this issue Jul 3, 2013 · 4 comments
Closed

Dailymotion only 512x384p even if video is available in 1080p #986

strex opened this issue Jul 3, 2013 · 4 comments
Assignees

Comments

@strex
Copy link

@strex strex commented Jul 3, 2013

Hi,

It seems it is no longer possible to download 1080p/720p dailymotion videos with youtube-dl.
Maybe they have changed something?

The quality is always 512x384.

A few example videos I tried:
http://www.dailymotion.com/video/xu3okw
http://www.dailymotion.com/video/x11cle2
http://www.dailymotion.com/video/x11gdbk

But it seems every dailymotion video is affected.

@yasoob
Copy link
Contributor

@yasoob yasoob commented Jul 3, 2013

I am also facing that problem. Yup they have changed something. Let me figure out a way to get the hd url. Lets see what i can come up with. Patches are welcome so if you can figure it out then dont hesitate to submit patches.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 3, 2013

It seems that the video is split in different parts. The method to get each part is the following:

  1. Get the autoURL from the page.

  2. Use this url to get the formats manifest, which looks like this:

    {"version":"1","duration":289,"alternates":
    [{"name":"240","bitrate":246,"codecs":"mp4a.40.2,avc1.42000d","width":320,"height":180,"template":"http://proxy-63.dailymotion.com/sec(668579d1b1534037ab4ba91da476d135)/video/403/065/50560304_mp4_h264_aac_ld.mnft#cell=core"},
    {"name":"380","bitrate":460,"codecs":"mp4a.40.2,avc1.42001e","width":512,"height":288,"template":"http://proxy-63.dailymotion.com/sec(e544064251aa28cb84fc6c97552f9c60)/video/403/065/50560304_mp4_h264_aac.mnft#cell=core"},
    {"name":"480","bitrate":836,"codecs":"mp4a.40.2,avc1.64001f","width":848,"height":480,"template":"http://proxy-63.dailymotion.com/sec(791b0bd1789f44a9c1872b6b326f2d8d)/video/403/065/50560304_mp4_h264_aac_hq.mnft#cell=core"},
    {"name":"720","bitrate":2149,"codecs":"mp4a.40.2,avc1.64001f","width":1280,"height":720,"template":"http://proxy-63.dailymotion.com/sec(93442626b31d2b76e84ba84dd1f456e5)/video/403/065/50560304_mp4_h264_aac_hd.mnft#cell=core"},
    {"name":"1080","bitrate":6189,"codecs":"mp4a.40.2,avc1.640028","width":1920,"height":1080,"template":"http://proxy-63.dailymotion.com/sec(b7529ba70fad463dfea90452c12115e9)/video/403/065/50560304_mp4_h264_aac_fhd.mnft#cell=core"}]
    ,"default":"480"}
    
  3. Then you take the template url of the format you want to download, it contains a manifest of the video:

    {"version":"1","duration":289.298,"bitrate":832,"codecs":"mp4a.40.2,avc1.64001f","audio":{"codec":"AAC/LC","bitrate":127,"channels":2,"samplesize":16,"samplerate":44100},"video":{"codec":"H264/AVC High@L3.1","bitrate":697,"width":848,"height":480,"framerate":25.000},
    "template":"/sec(791b0bd1789f44a9c1872b6b326f2d8d)/frag($fragment$)/video/403/065/50560304_mp4_h264_aac_hq.flv",
    "fragments":[[2,10.000],[1,9.960],[1,10.040],[1,9.320],[1,10.680],[2,10.000],[1,9.440],[1,10.560],[1,9.960],[1,10.000],[1,10.040],[1,10.000],[1,9.240],[1,10.760],[1,9.200],[1,10.760],[1,10.000],[1,10.040],[2,10.000],[1,9.720],[1,9.280],[1,11.000],[3,10.000],[1,9.280]]}
    

The total number of fragments is obtained by adding all the first elements of the fragments, in this case: 29. Each fragment can be downloaded by replacing the $fragment$ in the template url, in this case it will go from 1 to 29.

Here is where I find the problems, I don't know how to create the final video and each fragment is not a valid video by itself, I hope someone can figure out how to join them.

@deltaforce316
Copy link

@deltaforce316 deltaforce316 commented Jul 4, 2013

I'm also getting the problem of only getting HD vids in 512x384.

Also any video that requires the family filter to be turned off (age verification) on dailymotion is failing to download altogether. I just get ERROR: Unable to extract video URL.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 4, 2013

@deltaforce316 please open a new issue for the videos with age verification and post some example urls.

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