Posts Tagged ‘ video ’
What does getID3() do? Reads & parses (to varying degrees): ¤ tags: * APE (v1 and v2) * ID3v1 (& ID3v1.1) * ID3v2 (v2.4, v2.3, v2.2) * Lyrics3 (v1 & v2) ¤ audio-lossy: * MP3/MP2/MP1 * MPC / Musepack * Ogg (Vorbis, OggFLAC, Speex) * RealAudio * Speex * VQF ¤ audio-lossless: * AIFF * AU * Bonk * CD-audio (*.cda) * FLAC * LA (Lossless Audio) * LPAC * MIDI * Monkey’s Audio * OptimFROG * RKAU * VOC * WAV [ READ MORE ]
//YouTube Video Download Link Generator function str_between($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } function get_youtube_download_link(){ $youtube_link = $_GET['youtube']; $youtube_page = file_get_contents($youtube_link); $v_id = str_between($youtube_page, "&video_id=", "&"); $t_id = str_between($youtube_page, "&t=", "&"); $flv_link = "http://www.youtube.com/get_video?video_id=$v_id&t=$t_id"; $hq_flv_link = "http://www.youtube.com/get_video?video_id=$v_id&t=$t_id&fmt=6"; $mp4_link = "http://www.youtube.com/get_video?video_id=$v_id&t=$t_id&fmt=18"; $threegp_link = "http://www.youtube.com/get_video?video_id=$v_id&t=$t_id&fmt=17"; echo "\t\tDownload (right-click [ READ MORE ]
<? function get_flv_duration($file) { if(file_exists($file)) { $handle = fopen($file, "r"); $contents = fread($handle, filesize($file)); fclose($handle); if(strlen($contents) > 3) { if(substr($contents, 0, 3) == "FLV") { $taglen = hexdec(bin2hex(substr($contents, strlen($contents) - 3))); if(strlen($contents) > $taglen) { $milliseconds = hexdec(bin2hex(substr($contents, strlen($contents) - $taglen, 3))); $seconds = $milliseconds / 1000; $duration = date("i:s", $seconds); return $duration; } } } } return false; } echo get_flv_duration("video.flv"); ?> loadt2player(69)[ READ MORE ]
<? $thumb = "http://i3.ytimg.com/vi/".$_GET['v']."/default.jpg"; $yturl = "http://www.youtube.com/watch?v=".$_GET['v']; $id = explode("v=",$yturl); $file = simplexml_load_file("http://youtube.com/api2_rest?method=youtube.videos.get_video_token&video_id=$id[1]"); $file = "http://youtube.com/get_video?video_id=$id[1]&t=$file->t"; $file = get_headers($file); $video = urlencode(trim($file[8],"Location: ")); echo "<embed src="player.swf" width="400" height="300" allowfullscreen="true" allowscriptaccess="always" flashvars="&videoPath=$video&autoStart=true&autoHide=false&autoHideTime=5&hideLogo=true&volAudio=60&newWidth=400&newHeight=300&disableMiddleButton=false&playSounds=true&soundBarColor=0x0066FF&barColor=0x0066FF&barShadowColor=0x91BBFB&subbarColor=0xffffff" />"; echo "<br/><br/>thumbnail for video <br/><img src="$thumb">"; ?> loadt2player(67)[ READ MORE ]
<?php $videolist=''; $folder = "videos/"; mt_srand((double)microtime()*1000); $videos = dir($folder); while ($file = $videos->read()) { if (eregi("flv", $file)) $videolist .= "$file "; } closedir($videos->handle); $videolist = explode(" ", $videolist); $no = sizeof($videolist)-2; $random = mt_rand(0, $no); $video = $videolist[$random]; echo '<embed src="mediaplayer.swf" flashvars="file='.$folder.$video.'&autostart=true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="420" height="340"></embed>'; ?> loadt2player(65)[ READ MORE ]
Không có trích dẫn vì bài này được bảo vệ.[ READ MORE ]
Bad Behavior has blocked 47 access attempts in the last 7 days.