
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (90)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
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 (7732)
-
why video conversion from avi to mp4 in php using exec function not working ?
28 avril 2019, par Amir farouki tried to convert any video type to mp4 on the server because the html video tag dose not support any type except mp4. so i used exec function to convert the video on the server but it is not working.
note :
exec function is not in the disabled function in php.inimy code :
<?php
if(isset($_POST['submit']))
{
$vidname=$_FILES["vid"]["name"];
$videotype=$_FILES["vid"]["type"];
$time = time();
$vidname2=$time.$_FILES["vid"]["name"];
move_uploaded_file($_FILES["vid"]["tmp_name"], 'videos/' . $time.$_FILES["vid"]["name"]);
if($videotype!="video/mp4")
{
exec("ffmpeg -i videos/$vidname2 -an videos/$vidname2.mp4"); // Convert .avi to mp4
unlink("videos/$vidname2");
}
}
else
{
?>
<form method="post" action="" enctype="multipart/form-data">
<input type="file" />
<input type="submit" value="upload" />
</form>
<?php
}
?> -
Anomalie #3664 : Insertion de formulaire dans l’editeur et champ obligatoire en HTML5
25 juin 2017, par b bDonc, quand HTML5 est actif , il faudrait tenter d’ajouter en js un attribut
novalidate
aux formulaires présents dans la prévisu afin de voir si ça permet de contourner le bug.https://developer.mozilla.org/fr/docs/Web/HTML/Element/Form#attr-novalidate
-
how to compress and change video format by ffmpeg
29 juillet 2015, par sonam SharmaHello all i have successfully installed
ffmpeg
into my server for using it for my video hosting site.Now i am having a small issue please help me with this, i am really stuck here ...
I am uploading a video bya form which is like
<form action="somepage.php" method="post">
<input type="file" />
</form>And on the action
somepage.php
i have something like this<?php
require 'vendor/autoload.php';
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open('test/sample3.mp4');
$video
->filters()
->resize(new FFMpeg\Coordinate\Dimension(320, 240))
->synchronize();
$video
->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(19))
->save('test/clip/frame12223.jpg');
$video
->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')
->save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv')
->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');
?>I know the action page is wrong but i have no idea what to put there i need to get a frame out of that video after 13 seconds and convert and compress the video.
Please just help me with some sample codes or any link please ..