DISQUS

Abdul Qabiz's Blog - India: Getting Dailymotion Video (FLV) URL

  • srinivas · 1 year ago
    were should i keep the video_id .
    when i call this code its saying video_id is required
  • etienne · 1 year ago
    Hi,
    I've copy your script on a test.php file, but it doesn't work.
    Any Idea ?
  • Abdul Qabiz · 1 year ago
    @etienne: It seems you don't have CURL module installed on your server... It works fine, I tested..
    Install the PHP CURL extension..
    -abdul
  • Luke · 1 year ago
    Your script has stopped working after the recent changes by dailymotion. Could you look into it?
    Regards,
    Luke
  • Khan · 1 year ago
    I am developer and followed exactly, but the result i no flv url not thumb url
    resut is "flv=&thumbnail;="
    Do you think dailymotion has changed the mechanism ?
    regards
  • xcrow · 1 year ago
    i am also getting only the "flv=&thumbnail;=" with this script. so i have tried with
    http://www.dailymotion.com/rss/video/x44ls3
    the video info xml contain the flv url with a dynamic key. i am able to grab the flv url from my local server. but when i tried it in the remote server the flv is not downloding.
    please can you help me?
  • suresh · 1 year ago
    I am also doing myself on this task. But still i don't get any result using this code.
    http://www.dailymotion.com/featured/video/x4m46...
    When i am giving this url it dosen't show anything. Mr.Khan can u send your code which ever you can get thumbnail and photo to use this code. If u send it i am very thank full to you.
  • Uzeik · 1 year ago
    It works OK, but Dailymotion has changed their system again, so the script to grab their FLV's need to be changed too. You can find the FLV url in the source code of the video page, at addVariable("video",....) with preg_match and then get headers of this URL with CURL. I use it on my site and it works fine now.
  • Abdul Qabiz · 1 year ago
    @Uzeik: You are right, they have changed the system and the method you mentioned is the one that works now. I investigate and found the same :-)
    Thanks
    -abdul
  • praveen castelino · 1 year ago
    does anybody know to construct webshots download url?
  • Hely · 1 year ago
    Parece que DailyMotion genera el parametro KEY=xxxx acorde a la IP del usuario.
    Yo leo el RSS del video. luego Parseo la direccion buscando el FLV.... But error 403... :(
    Heeeeelp @UZEIK
  • Hely · 1 year ago
    Yo mismo me contesto, Solucion: Leer el RSS de el lado del cliente asi el KEY generado es el Key que sirve para hacer la descarga(No leer el RSS en el Server, para luego devolver el KEY)
  • Durai · 1 year ago
    Hi,
    so.addVariable('video', 'dailymotion.php?video_id=x6msvc_dancing-traffic-cop_fun&redirect;=true')
    and I've copy your script(above php script) on a dailymotion.php
    but it doesn't play the video,please help me..
    please give me the code
  • SAM · 1 year ago
    =>I followed the method posted by "Suresh" , but stil am not getting the "FLV URL"....
    vieo_id= 'xxxxxxxxxxxxxxxx'
    so.addVariable('video',dailymotion.php?video_id=videoid&redirect;=true')
    and i've copied the above script on dailymotion.php..
    but still not working.
  • Ayyadurai · 1 year ago
    Hi Friends,
    This is correct FLV Path for dailymotion video
    try this i have implemented this is working..
    http://www.dailymotion.com/get/17/320x240/flv/1...
  • rmic · 1 year ago
    can somebody post the last php content with the corrections please :) thank you
  • Roman · 12 months ago
    Dear Abdul,
    it's a bit offtopic for this post, but hope you would forgive me :)
    Do you know of any solution to get a final (after redirect) url for progressively downloaded FLV? Either AS2 or AS3.
    We have Sockets in AS3 and can use it to send a request and parse reply, get new location and start netstream with that location. But my specific setup is a cross-domain request and I need a cookie in a request. I can make a javascript call to the second domain and get cookie as a js reply and provide this cookie to SWF via flashvars.
    But this is the least desired method.
    It would be handy to get this string directly from netstream, but looks like there's no such option. Probably we can rewrite or extend netstream class with the desired behavior.
    Thank you for any responce!
    BR, Roman
  • Ed · 10 months ago
    Any way to get this to work now?
  • Abdul Qabiz · 9 months ago
    Hi Guys
    It's been while since I updated this script, not sure it works now or not. Dailymotion keeps changing the way they do things.
    Sorry for delaying replying. Specially, Roman sorry I have been so occupied couldn't even read some comments. Shame on me :-(
    I hope, you guys have figured things you asked here.
    I would take care of these in future.
    Thanks
    -abdul
  • doonrothmani · 9 months ago
    the string "http://www.dailymotion.com/rss/video/" is the correct feed to get the underlying flv. running this on your local server will work. it's a sandbox violation though, if you run it from a web server
    if would seem that a solution for this might be
    feeding a php file with "http://www.dailymotion.com/rss/video/" as the url parameter, but this returns an incorrect flv key value from daily motion. if you do this in a browser you will get a "cute" message from dailymotion chiding you for trying to "sneak around" so this result is obviously deliberate on dailymotion's part.
    parsing the html from http://www.dailymotion.com/video/ will also provide you with an incorrect flv key value.
    so there seems to be no OBVIOUS way to broadcast or download the underlying daily motion flv from a web server.
    the good news is its fairly easy, using the rss feed, to download and broadcast dailymotion flvs from your pc.
  • Ayyadurai · 8 months ago
    Hi Guys,
    I think the dailymotion video flv has been changed Please can any post it.
  • mmm · 4 months ago
    Hi Abdul,

    Dailymotion video flv has been changed.

    Can you please update the script.
  • loop32 · 2 months ago
    Damn, not work, please inform me if you find fix. Thanks