
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (89)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (13483)
-
How to upload dynamically generated video thumbnails as a BLOB into MySQL database in PHP
26 octobre 2018, par Parthapratim NeogHere is the code that has been used to create a thumbnail of a uploaded video. The thumbnail is automatically generated successfully, but now, I want to store that thumbnail as a BLOB in the Database.
I know how to upload an image as a BLOB using form posts, but there is no form posts involved in this.Could someone guide me through this ?
<form action="index.php" method="POST" enctype="multipart/form-data">
<input type="file" />
<input type="submit" value="Upload" />
</form>
<?php
if(isset($_POST['submit'])){
/*
-i input file name
-an Disabled audio
-ss Get image from x seconds in the video
-s size of the image
*/
//Get one thumbnail from the video
$ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
//echo $ffmpeg;
$videoFile = $_FILES["file"]["tmp_name"];
$imageFile = "1.jpg";
$size = "120x90";
$getFromSecond = 5;
//echo "<pre>"; print_r($_FILES); die;
//echo "video location: ",$videoFile,"<br />";
echo $cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile";
echo "<br />";
if(!shell_exec($cmd)){
echo "Thumbnail Created!";
}else{
echo "Error creating Thumbnail";
}
/*// Get multiple thumbnails from one video
$ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
$videoFile = $_FILES["file"]["tmp_name"];
$size = "120x90";
for($num =1; $num<=3; $num++){
$interval = $num * 3;
shell_exec("$ffmpeg -i $videoFile -an -ss $interval -s $size $num.jpg");
echo "Thumbnail Created!- $num.jpg<br />";
}
echo "<br />$num thumbnails Created!";
*/
}
?>
</pre> -
tls : Add support for listen mode
19 septembre 2013, par Martin Storsjötls : Add support for listen mode
Also add options for specifying a certificate and key, which can
be used both when operating as client and as server.Partially based on a patch by Peter Ross.
Signed-off-by : Martin Storsjö <martin@martin.st>
-
lavf/movenc : Write disc number and total number of discs as part of metadata.
1er août 2013, par Carl Eugen Hoyos