
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (65)
-
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 (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6324)
-
ffmpeg progress percentage in php
9 avril 2018, par Mr.ZZffmpeg.php
$sCmd = "ffmpeg -i ".$image." -i ".$music." video.avi 1> progress.txt";
$proc = popen($sCmd." 2>&1", "r");progress.php
$content = @file_get_contents('progress.txt');
if($content){
preg_match("/Duration: (.*?), start:/", $content, $matches);
$rawDuration = $matches[1];
$ar = array_reverse(explode(":", $rawDuration));
$duration = floatval($ar[0]);
if (!empty($ar[1])) $duration += intval($ar[1]) * 60;
if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60;
preg_match_all("/time=(.*?) bitrate/", $content, $matches);
$rawTime = array_pop($matches);
if (is_array($rawTime)){$rawTime = array_pop($rawTime);}
$ar = array_reverse(explode(":", $rawTime));
$time = floatval($ar[0]);
if (!empty($ar[1])) $time += intval($ar[1]) * 60;
if (!empty($ar[2])) $time += intval($ar[2]) * 60 * 60;
$progress = round(($time/$duration) * 100);
echo $progress;
}progress.php final output was always 100, so it was easy with jquery to hide progress and show download button.
BUT after changing ffmpeg.php with this command :
$sCmd = "ffmpeg -loop 1 -r 1 -i ".$image." -i ".$music." -c:a copy -shortest video.avi 1> progress.txt";
$proc = popen($sCmd." 2>&1", "r");progress.php output is different numbers above 100(thousands) and jquery can’t figure out ffmpeg process finished or not.
How to get 100 when ffmpeg finishs working ? I think i need some changes in progress.php because final result in progress.txt is longer than before.
-
convert video to audio using ffmpeg
5 mai 2024, par shakti goyalI'm trying to convert a video to mp3 using ffmpeg library but ffmpeg command is not working, it is returning the code 1


Video conversion to MP3 failed with return code : 1


try {
 final session = await FFmpegKit.execute('-i $videoFilePath -vn -ar 44100 -ac 2 -b:a 192k -f mp3 $audioFilePath');

 final returnCode = await session.getReturnCode();

 if (ReturnCode.isSuccess(returnCode)) {
 print('Video conversion to MP3 successful!');
 } else {
 print('Video conversion to MP3 failed with return code: $returnCode');
 }
} catch (e) {
 print('Error occurred during video conversion: $e');
}



$videoFilePath - /Users/shaktigoyal/Library/Developer/CoreSimulator/Devices/9D514AC1-E245-4360-B876-745B9527B844/data/Containers/Data/Application/091D48E6-3AE4-4867-B3B2-2034854D27CE/tmp/image_picker_3DA6CDD3-C2F9-4313-98A1-40A7B0AED652-1298-00001B041C9F94E4trim.59BC5143-1EBA-4BB0-955C-EA1942FA56E3.MOV


$audioFilePath - /Users/shaktigoyal/Library/Developer/CoreSimulator/Devices/9D514AC1-E245-4360-B876-745B9527B844/data/Containers/Data/Application/091D48E6-3AE4-4867-B3B2-2034854D27CE/Documents/audio-14.mp3


-
ffmpeg : combine two or three audios into one by lowering the volume of the other
15 juin 2016, par somya bhargavaWant to combine some audio files eg :
1) one long audio file which will act as a background audio
2) some audio files which will be replaced at specific intervals
like at 10 sec of the first oneSo final output required is
audio-1 60 sec
audio-2 starting from 10 sec to 20 sec with audio-1 at 0.1 volume