
Recherche avancée
Médias (5)
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
Autres articles (49)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (8880)
-
ffmpeg video thumbnail image not uploading in codeigniter
15 mars 2015, par user3785746I am trying to upload a video in codeigniter and i also want to upload thumbnail image of this video using ffmpeg. it works fine in core php but the code is not working in codeigniter. Here is my code
public function of_file_upload()
{
$un = $_POST['un'];
$other_un = $_POST['other_un'];
$up_folder = "chat_file";
$uploded_files = array();
$base_path = base_url() . "uploads/" . $up_folder . "/";
$i = 0;
#######################################
if (!empty($_FILES)) {
foreach ($_FILES as $k => $arr) {
$temp = explode('.', $arr['name']);
$extention = end($temp);
$r_char = $this->get_random_string(6);
$unArr = explode("@", $un);
$un = $unArr[0];
$file_name = $un . '_' . $r_char . '_' . time() . '.' . $extention;
$path = $_SERVER['DOCUMENT_ROOT'] . '/api/uploads/' . $up_folder . '/';
$file_path = $path . $file_name;
try {
if (move_uploaded_file($arr["tmp_name"], $file_path)) {
$uploded_files[$i]["fn"] = $base_path . $file_name;
$uploded_files[$i]["id"] = $k;
if($extention != 'jpg' && $extention != 'png' && $extention != 'jpeg' && $extention != 'gif' && $extention != 'bmp')
{
$ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
$videoFile = $arr["tmp_name"];
/*$imageFile = $path.$un . '_' . $r_char . '_' . time() . '.jpg' ;*/
$imageFile = $_SERVER['DOCUMENT_ROOT'] . 'api/uploads/'.$un . '_' . $r_char . '_' . time() . '.jpg' ;
//echo $imageFile;die;
$size = "120x90";
$getfromsecond = 5;
$cmd = "$ffmpeg -i $videoFile -an -ss $getfromsecond -s $size $imageFile";
shell_exec($cmd);
}
} else {
$this->_sendResponse(13);
}
} catch (Exception $e) {
print_r($e->getMessage());
}
$i++;
}
}
}I have put the ffmpeg folder in c drive and is there any other place where I have to place this folder in codeigniter case. Here is my core php code which works fine.
<form method="post" action="index1.php" enctype="multipart/form-data">
<input type="file" />
<input type="submit" value="submit" />
</form>
<?php
if(isset($_POST['submit']))
{
$ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
$videoFile = $_FILES['video']['tmp_name'];
foreach($_FILES as $key =>$value)
{
$param = $value['name'];
}
$tmp = explode('.',$param);
$imgname = $tmp[0];
$folder = 'upload';
if(!file_exists($folder))
{
mkdir($folder);
}
$imageFile = $folder."/".$imgname.".jpg";
$size = "120x90";
$getfromsecond = 5;
$cmd = "$ffmpeg -i $videoFile -an -ss $getfromsecond -s $size $imageFile";
if(!shell_exec($cmd))
{
echo "success";
}
else
{
echo "failed";
}
}
?>
I have tried many things but no luck please help thanks in advance.
-
Best and latest live video streaming soloution [on hold]
3 avril 2015, par FordI have read a few old posts on StackOverflow about live video streamins, but as they are from around 2008, i assume things have moved on from then... and wonder if a current thread will be useful to me and others.
Also looking on google gives lots of stuff, but again i dont know who is best to listen to and who is trying to sell their stuff (not that i am against paying).Basically what are the main points i need to know in order to add/develope a feature to a website in order to offer "1 on 1" and "1 to many" MULTIPLE live streaming webcam, with voice and text chat.
I am quiet competent with PHP, OK with basic JavaScript (of course fine with HTMLL/css), but do not know what code i would need for client side software, or if any "off the shelf" software is suitable.
I have played with ffmpeg and noticed this offers streaming, but i dont know if it would be suitable or the best available option.?
I have a dedicated server with virtualization so can add a dedicated box for streaming if needed/better.Any info that can point me off in the right direction of how to add a live streaming service to a website would be much appreciated !
-
Evolution #2798 : Notification mise à jour SPIP
9 avril 2015, par b bEt hop, voici le patch à jour avec la proposition de Cedric.
Reste à améliorer le lien. Je pense qu’on pourrait mettre en place sur spip.net une page dont le fonctionnement serait similaire à celle des téléchargements avec une url comme http://www.spip.net/fr_update
Pour cela, il faut créer un article en fr (pour commencer) qui reprend les propositions de Nicolas par ici :
http://www.spip.net/ecrire/?exec=rubrique&id_rubrique=151
Puis modifier le squelette pour qu’il prenne en charge l’url /xx_update par ici :
Ça vous semble convenable ? gogogo ?