
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (99)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
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 (10009)
-
Capture FFMPEG output
2 mai 2017, par AndrewI need to read the output from ffmpeg in order to even try the solution to my question from yesterday. This is a separate issue from my problem there, so I made a new question.
How the heck do I get the output from an
ffmpeg -i
command in PHP ?This is what I’ve been trying :
<?PHP
error_reporting(E_ALL);
$src = "/var/videos/video1.wmv";
$command = "/usr/bin/ffmpeg -i " . $src;
echo "<b>",$command,"</b><br />";
$command = escapeshellcmd($command);
echo "backtick:<br /><pre>";
`$command`;
echo "</pre><br />system:<br /><pre>";
echo system($command);
echo "</pre><br />shell_exec:<br /><pre>";
echo shell_exec($command);
echo "</pre><br />passthru:<br /><pre>";
passthru($command);
echo "</pre><br />exec:<br /><pre>";
$output = array();
exec($command,$output,$status);
foreach($output AS $o)
{
echo $o , "<br />";
}
echo "</pre><br />popen:<br /><pre>";
$handle = popen($command,'r');
echo fread($handle,1048576);
pclose($handle);
echo "</pre><br />";
?>This is my output :
<b>/usr/bin/ffmpeg -i /var/videos/video1.wmv</b><br />
backtick:<br />
<pre></pre><br />
system:<br />
<pre></pre><br />
shell_exec:<br />
<pre></pre><br />
passthru:<br />
<pre></pre><br />
exec:<br />
<pre></pre><br />
popen:<br />
<pre></pre><br />I don’t get it.
safe_mode
is off. There’s nothing indisable_functions
. The directory is owned bywww-data
(the apache user on my Ubuntu system). I get a valid status back fromexec()
andsystem()
and running the same command from the command line give me tons of output. I feel like I must be missing something obvious but I have no idea what it is. -
Capture FFMPEG output in PHP
22 novembre 2012, par AndrewI need to read the output from ffmpeg in order to even try the solution to my question from yesterday. This is a separate issue from my problem there, so I made a new question.
How the heck do I get the output from an
ffmpeg -i
command in PHP ?This is what I've been trying :
<?PHP
error_reporting(E_ALL);
$src = "/var/videos/video1.wmv";
$command = "/usr/bin/ffmpeg -i " . $src;
echo "<b>",$command,"</b><br />";
$command = escapeshellcmd($command);
echo "backtick:<br /><pre>";
`$command`;
echo "</pre><br />system:<br /><pre>";
echo system($command);
echo "</pre><br />shell_exec:<br /><pre>";
echo shell_exec($command);
echo "</pre><br />passthru:<br /><pre>";
passthru($command);
echo "</pre><br />exec:<br /><pre>";
$output = array();
exec($command,$output,$status);
foreach($output AS $o)
{
echo $o , "<br />";
}
echo "</pre><br />popen:<br /><pre>";
$handle = popen($command,'r');
echo fread($handle,1048576);
pclose($handle);
echo "</pre><br />";
?>This is my output :
<b>/usr/bin/ffmpeg -i /var/videos/video1.wmv</b><br />
backtick:<br />
<pre></pre><br />
system:<br />
<pre></pre><br />
shell_exec:<br />
<pre></pre><br />
passthru:<br />
<pre></pre><br />
exec:<br />
<pre></pre><br />
popen:<br />
<pre></pre><br />I don't get it.
safe_mode
is off. There's nothing indisable_functions
. The directory is owned bywww-data
(the apache user on my Ubuntu system). I get a valid status back fromexec()
andsystem()
and running the same command from the command line give me tons of output. I feel like I must be missing something obvious but I have no idea what it is.Help. Please.
-
FFMPEG Command in Android Failing to Execute
15 janvier 2015, par ZoeI’m trying to execute ffmpeg commands through an android app I’m developing.
I found this post which has been somewhat useful :
Problems with ffmpeg command line on androidand I downloaded a static build of ffmpeg from here : http://ffmpeg.gusari.org/static/
The problem is, when this code runs
public void merge_video(){
String[] ffmpegCommand = new String[5];
ffmpegCommand[0] = "/data/data/com.example.zovideo/ffmpeg";
ffmpegCommand[1] = "-i";
ffmpegCommand[2] = "concat:storage/emulated/0/DCIM/Camera/VID30141106_211509.mp4|storage/emulated/0/DCIM/Camera/VID30141106_211509.mp4";
ffmpegCommand[3] = "copy";
ffmpegCommand[4] = "storage/emulated/0/DCIM/ZoVideo/Output.mp4";
try {
Process ffmpegProcess = new ProcessBuilder(ffmpegCommand).redirectErrorStream(true).start();
String line;
BufferedReader reader = new BufferedReader(new InputStreamReader(ffmpegProcess.getInputStream()));
Log.d(null, "*******Starting FFMPEG");
while((line = reader.readLine())!=null){
Log.d(null, "***"+line+"***");
}
Log.d(null,"****ending FFMPEG****");
} catch (IOException e) {
e.printStackTrace();
}
}It fails when trying to start the process with
Java.io.IOException: Error running exec(). Command: [/data/data/com.example.zovideo/ffmpeg, -i, concat:storage/emulated/0/DCIM/Camera/VID30141106_211509.mp4|storage/emulated/0/DCIM/Camera/VID30141106_211509.mp4, copy, storage/emulated/0/DCIM/ZoVideo/Output.mp4] Working Directory: null Environment: [ANDROID_ROOT=/system, EMULATED_STORAGE_SOURCE=/mnt/shell/emulated, LOOP_MOUNTPOINT=/mnt/obb, LD_PRELOAD=libsigchain.so, ANDROID_BOOTLOGO=1, EMULATED_STORAGE_TARGET=/storage/emulated, EXTERNAL_STORAGE=/storage/emulated/legacy, SYSTEMSERVERCLASSPATH=/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar, ANDROID_SOCKET_zygote=10, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ANDROID_DATA=/data, ANDROID_ASSETS=/system/app, ASEC_MOUNTPOINT=/mnt/asec, BOOTCLASSPATH=/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/apache-xml.jar, ANDROID_PROPERTY_WORKSPACE=9,0, ANDROID_STORAGE=/storage]
I understand from the stackoverflow post I mentioned above that the ffmpeg static build needs to be on my device otherwise my app cannot use it.
However I’m unsure how to get it in the /data/data/com.example.zovideo folder as needed.
I have done is download the latest static ffmpeg build from http://ffmpeg.gusari.org/static/ and copied it into my libs/armeabi and libs/armeabi-v7a folders but this obviously hasn’t succeeded in getting into the data/data folder when my app is installed onto my device.
(I feel like I’m being an idiot by copy/pasting the files but I don’t know what else to do. I don’t know how to compile it myself - I have compiled ffmpeg using a Roman10 tutorial but this produces .so files which from which I understand is not what I need)So I’m a little stuck.
Any advice is greatly appreciated. Thanks