
Recherche avancée
Autres articles (97)
-
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (7928)
-
FFMPEG Drag and Drop sh file
29 avril 2021, par WFCDefiOn Windows I have a simple batch file which I drop video files onto to convert to webms, it saves a lot of time as I prefer to just use the same configuration and don't care much about the names.


@echo off 
echo. 
ffmpeg -i %1 -c:v libvpx-vp9 -quality good -cpu-used 2 -b:v 5000k -qmin 15 -qmax 45 -maxrate 500k -bufsize 1500k -framerate 60 -threads 8 -vf scale=-1:1080 -c:a libvorbis -b:a 192k -f webm %1.webm 
pause



I know the .bat file won't really work in Linux (I'm on pop os so pretty much Ubuntu) so with the other lines removed and the
%1
changed to$1
it works. It won't do anything if I try dragging and dropping a video file onto it though.

I can type sudo then drag and drop the .sh file followed by a video into a terminal and press enter and it will have the same effect as dragging a video file onto a bat file in Windows.


Is there a way to recreate dragging and dropping a file directly onto another and it executing in Linux or is the terminal the only way ?


-
retriving video details with ffprobe in php
15 juillet 2014, par Roohbakhsh Masoudi’m using this command for retrieve video information in ubuntu terminal :
ffprobe -show_streams sample.mp4
this command show all information about video in terminal, but when i use this command in php and use exec function to retrieve result , return
string(0) ""
{}how i can retrieve result in php ?
my code :
public function information($ffmpeg,$file)
{
$info = exec("$ffmpeg -show_streams $file");
return $info;
} -
retriving video details with ffprobe in php
16 mai 2023, par Roohbakhsh Masoudi'm using this command for retrieve video information in ubuntu terminal :



ffprobe -show_streams sample.mp4




this command show all information about video in terminal, but when i use this command in php and use exec function to retrieve result , return



string(0) ""
{}




how i can retrieve result in php ?



my code :



public function information($ffmpeg,$file)
 {
 $info = exec("$ffmpeg -show_streams $file");
 return $info;
 }