HypeMedia.com.ng Online Video Importer/Tag
Welcome To HypeMedia Online Video Tag Editor !!
HypeMedia Online Video Tag Editor
1024 && $i<$total;$i++){ $size/=1024; } return round($size,$round).$sizes[$i]; } $default_mp4_directory = "files/uploads/"; $default_filename_prefix = " - HypeMedia.com.ng.mp4"; $default_songname_prefix = " - HypeMedia.com.ng"; $default_comment = "Video Downloaded From www.HypeMedia.com.ng"; $default_artist = " -HypeMedia"; $default_album = "HypeMedia"; $default_year = "@HypeMedia"; $default_genre = "@HypeMedia"; if(isset($_POST['submit'])){ $mp4_filepath = $_POST['mp4_filepath']; $mp4_filename = $_POST['mp4_filename']; $mp4_songname = $_POST['mp4_songname']; $mp4_comment = $_POST['mp4_comment']; $mp4_artist = $_POST['mp4_artist']; $mp4_album = $_POST['mp4_album']; $mp4_year = $_POST['mp4_year']; $mp4_genre = $_POST['mp4_genre']; if(filter_var($mp4_filepath,FILTER_VALIDATE_URL)){ if($mp4_filename!=""){ $mp4_filename = str_replace(DIRECTORY_SEPARATOR,"-X-",$mp4_filename); if(strtolower(end(explode(".",basename($mp4_filepath))))!="mp4"){ exit("URL must have a .mp4 exntension !"); } if(strtolower(end(explode(".",basename($mp4_filename))))!="mp4"){ exit("Filename must have a .mp4 exntension !"); } $sname = $default_mp4_directory.$mp4_filename; if(copy($mp4_filepath,$sname)){ $size = friendly_size(filesize($sname)); echo"
Tagged $mp4_filepath to ".basename($sname)."
Size: ( $size )
» Filename

DOWNLOAD HERE
"; $mp4_tagformat = 'UTF-8'; require_once('getid3/getid3.php'); $mp4_handler = new getID3; $mp4_handler->setOption(array('encoding'=>$mp4_tagformat)); require_once('getid3/write.php'); $mp4_writter = new getid3_writetags; $mp4_writter->filename = $sname; $mp4_writter->tagformats = array('id3v1', 'id3v2.3'); $mp4_writter->overwrite_tags = true; $mp4_writter->tag_encoding = $mp4_tagformat; $mp4_writter->remove_other_tags = true; $mp4_data['title'][] = $mp4_songname; $mp4_data['artist'][] = $mp4_artist; $mp4_data['album'][] = $mp4_album; $mp4_data['year'][] = $mp4_year; $mp4_data['genre'][] = $mp4_year; $mp4_data['comment'][] = $mp4_comment; if($_FILES['mp4_image']['error']==0 && $_FILES['mp4_image']['size']>0) { if(in_array($_FILES['mp4_image']['type'],array("image/png","image/jpeg","image/gif"))){ $mp4_data['attached_picture'][0]['data'] = file_get_contents($_FILES['mp4_image']['tmp_name']); $mp4_data['attached_picture'][0]['picturetypeid'] = $_FILES['mp4_image']['type']; $mp4_data['attached_picture'][0]['description'] = $_FILES['mp4_image']['name']; $mp4_data['attached_picture'][0]['mime'] = $_FILES['mp4_image']['type']; } else{ echo"Incompartible image !"; } } $mp4_writter->tag_data = $mp4_data; if($mp4_writter->WriteTags()) { echo"
Tags were successfully written.
"; } else{ echo"Failed to write tags!
".implode("
",$mp4_writter->errors); } } else{echo"Unable to copy file.";} } else{echo"Empty filename.";} } else{echo"Invalid FilePath.";} } else{ ?>
» Video mp4 url
» Filename
» Video / title
» Comment

© NetbAbA
Crafted By: Netguru