
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (32)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (7593)
-
FFMPEG excute error from C# with "setup factory"setups
15 mars 2012, par Savas Adari am developing an application and i am using ffmpeg in this application for convert audio file "mp3" to "amr".
My application running successfully when i debug it or when if i copy debug folder another computer, it is running.
But, i am create a setup with "Setup Factory" application. When i install application which i create with setup factory, ffmpeg code block is not running, i get "OutputPackage" as null.
here is code ;
Converter converter = new Converter();
//varsa sil
if (File.Exists(PathTargetPre + "_orijinal.amr"))
File.Delete(PathTargetPre + "_orijinal.amr");
//dosyayı convert et ve olustur
OutputPackage oo = converter.ConvertToAMR(PathSource, PathTargetPre + "_orijinal.amr");
if (oo == null)
{
MessageBox.Show("Convert Error!");
return;
}
//dosya hazırlandı
if (oo.AudioStream == null)
{
MessageBox.Show("Convert Error 2!");
return;
}
lblGercekBoyut.Text = Convert.ToString((oo.AudioStream.Length / 1000)) + " KB";
lblSikismisBoyut.Text = Convert.ToString((oo.AudioStream.Length / 1000)) + " KB";
actualBitrate = converter.GetVideoInfo(PathTargetPre + "_orijinal.amr").BitRate;here is "ConvertToAMR" method ;
public OutputPackage ConvertToAMR(string sourcePath, string destPath)
{
OutputPackage ou = new OutputPackage();
string Params = string.Format("-i {0} -ar 8000 -ac 1 {1}", sourcePath, destPath);
//-ab 320k
string output = RunProcess(Params);
if (File.Exists(destPath))
{
ou.AudioStream = LoadMemoryStreamFromFile(destPath);
}
return ou;
} -
ffmpeg converter php script not working as expected
8 juillet 2012, par mintuzI have been looking into a php video converter method and have followed a tutorial on how to get one set up. It can read the source video file fine, my script shows an md5, fps rate, bit rate etc but it does not create the destination file. Any suggestions on why my code is not working.
I have tried both system() ; and exec() ; commands, both do not work and safe_mode is off. I have also tried a more basic command
"/usr/bin/ffmpeg -i /home/mintuz/video.avi /var/www/video.flv"
This command however works through the terminal.
<?php
define('FFMPEG_LIBRARY', '/usr/bin/ffmpeg');
//ALTER STUFF HERE
$srcFile = "/home/mintuz/video.avi"; //source file
$destFile = "/var/www/video.flv"; //destination file
if (strpos($srcFile, '.avi'))
{
$type = "avi";
echo $type;
}
if (strpos($srcFile, '.mp4'))
{
$type = "mp4";
echo $type;
}
if (strpos($srcFile, '.mov'))
{
$type = "mov";
echo $type;
}
//-------------------------------------------------------------------------------------------------------------------
// Create our FFMPEG-PHP class
$ffmpegObj = new ffmpeg_movie($srcFile);
// Save our needed variables
$srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth());
echo "<br />".$srcWidth."<br />";
$srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight());
echo $srcHeight."<br />";
$srcFPS = $ffmpegObj->getFrameRate();
echo $srcFPS."<br />";
$srcAB = intval($ffmpegObj->getAudioBitRate()/1000);
$srcAR = $ffmpegObj->getAudioSampleRate();
// Call our convert using exec()
$cmd = FFMPEG_LIBRARY." -i ".$srcFile." -ar ".$srcAR." -ab ".$srcAB." -f flv -s ".$srcWidth."x".$srcHeight." ".$destFile;
system($cmd);
echo "Source File MD5 : ".md5_file($srcFile)."<br />";
echo "Destination File MD5 : ".md5_file($destFile);
// Make multiples function
function makeMultipleTwo ($value)
{
$sType = gettype($value/2);
if($sType == "integer")
{
return $value;
} else {
return ($value-1);
}
}
?> -
Writing numpy arrays using cv2 VideoWriter
8 juillet 2015, par JustInTimeI have a problem with writing a toy example video using opencv2.3.1 VideoWriter, here is how I do it :
writer = cv2.VideoWriter('test1.avi',cv.CV_FOURCC('P','I','M','1'),25,(640,480))
for i in range(1000):
x = np.random.randint(10,size=(480,640)).astype('uint8')
writer.write(x)
#del writer (with or without tested)I tried every possible combination resulting with a 0 bytes file if the extension was mpg, and 5.5kb if it was avi. I should say that some pointed out that I should build the ffmpeg library from source and not apt-get it. Well I did that on a fresh machine based on the help of this site http://vinayhacks.blogspot.com/2011/11/installing-opencv-231-with-ffmpeg-on-64.html. which also presented an error while compiling opencv(the error was related to ffmpeg). Now I am really out of ideas, How to generate a video using OPENCV ?
Thanks in advance