
Recherche avancée
Autres articles (48)
-
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 (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
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
Sur d’autres sites (6856)
-
FFMPEG for Android does not work properly when overlaying picture
12 mars 2020, par Alejandro SanchezWhenever I run this FFMPEG command on Android to overlay a picture on a video using the FFMpeg Android library :
"-i",
realPathVideo,
"-i",
realPathImage
,
"-filter_complex",
"overlay=0:0",
"-codec:a",
"copy",
dest.getAbsolutePath()it never actually works, since it always ends up in "onFinish
" and never "onSuccess". I don’t know why, but somehow this command doesn’t work properly, although it never shows me an error message. To ensure that the parameters are right I will show you how I get them :realpathvideo is :
/storage/emulated/0video.mp4
realpathimage is :/storage/emulated/0/VideoOverlay.jpg
output directory is :/storage/emulated/0/appname/temporaryVideoFileWithOverlay.mp4
realPathVideo is derived from a File which is made by moving the result of a camera activity to external storage with the method :
public static void copyFile(File src, File dst) throws IOException
{
FileChannel inChannel = new FileInputStream(src).getChannel();
FileChannel outChannel = new FileOutputStream(dst).getChannel();
try
{
inChannel.transferTo(0, inChannel.size(), outChannel);
}
finally
{
if (inChannel != null)
inChannel.close();
if (outChannel != null)
outChannel.close();
}
}where src is the video result saved in internal storage and dst the external storage file.
The bitmap image overlay File is saved like this :
realpathImage is derived from a bitmap File saved by using :
private Uri saveOverlay(Bitmap bitmap) {
File file;
// Get the external storage directory path
String path = Environment.getExternalStorageDirectory().toString();
// Create a file to save the image
file = new File(path, "VideoOverlay" + ".jpg");
try {
OutputStream stream = null;
stream = new FileOutputStream(file);
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);
stream.flush();
stream.close();
} catch (IOException e) // Catch the exception
{
e.printStackTrace();
}
// Parse the saved image path to uri
Uri savedImageURI = Uri.parse(file.getAbsolutePath());
return savedImageURI;
} -
ffmpeg dont work like console
27 février 2014, par theroqcoThis works fine at console
ffmpeg -y -i a.mp4 -codec:v libx264 -profile:v high -vf scale=-1:360 -b:v 300k -maxrate 500k -bufsize 500k c.mp4 2> output.txt
then i try this live. didnt get a-log.txt file.
Set WScript = Server.CreateObject("WSCRIPT.SHELL")
WScript.Run("C:\Inetpub\wwwroot\ffmpegfile\bin\ffmpeg.exe -y -i C:\Inetpub\wwwroot\videos\a.mp4 -codec:v libx264 -profile:v high -vf scale=-1:360 -b:v 300k -maxrate 300k -bufsize 500k C:\Inetpub\wwwroot\videos\new\a.mp4 2> C:\Inetpub\wwwroot\videos\new\a-log.txt")
Set WScript = nothingHow can i run this.
thanks. -
FFMPEG works on Console but doesn't work in PHP script on Ubuntu
16 novembre 2016, par Victor FerreiraI have this aplication where I need to convert video files to MP4 and then compress it. I’m trying to use FFMPEG to get this to work. Tried the command lines in the console and it works great
Converting
ffmpeg -i teste.avi teste.mp4
Compressing
ffmpeg -i teste.mp4 -acodec mp2 teste.mp4
But when I do the same within a PHP script, it starts yelling that something called
GLIBCXX
is not installed. This is the error :ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/libjack.so.0)
ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libjack.so.0)
ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/i386-linux-gnu/libjack.so.0)
ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libzmq.so.3)
ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/i386-linux-gnu/libzmq.so.3)
ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)
ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)
ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)This is my script
$r = shell_exec("ffmpeg -i $file_path $output_path 2>&1"); //convert
$r = shell_exec("ffmpeg -i $file_path -acodec mp2 $file_path 2>&1"); //compressI’m running the script on Ubuntu
@edit
I can run, for example, shell_exec(’ls’)