
Recherche avancée
Autres articles (83)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (11623)
-
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 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 command does not work when run from .sh file
19 novembre 2020, par Felipe HurtadoI am trying to run an ffmpeg command from a shell file but I am getting the following error :


'NULL @ 0x343e9c0] Unable to find a suitable output format for '



: Invalid argument


Below the ffmpeg commnad


ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 



and this is the content of the shell file :


#!/bin/bash
#script streaming
ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 
 



the command works if I run it manually in a terminal