Skip to content

Instantly share code, notes, and snippets.

@bubblun
Created March 26, 2014 18:32
Show Gist options
  • Save bubblun/9790114 to your computer and use it in GitHub Desktop.
Save bubblun/9790114 to your computer and use it in GitHub Desktop.
Get Vimeo MP4 URL
function getVimeoMP4($vimeo_id) {
$result = file_get_contents( "http://keepvid.com/?url=http%3A%2F%2Fvimeo.com%2F" . $vimeo_id );
preg_match_all('/"(http\:\/\/pdl.vimeocdn.com.+?)"/i', $result, $matches);
return $matches[1][1];
}
@bubblun
Copy link
Author

bubblun commented Mar 26, 2014

Just a quick hack to get a high quality MP4 link of a standard (non-pro) Vimeo video. Since I did not find any working PHP code out there, I whipped up my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment