
Recherche avancée
Autres articles (64)
-
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 (6312)
-
Securely using the PHP exec function
19 janvier 2012, par siberiantigerI am writing a PHP script designed to run an executable file (ffmpeg.exe) via the exec() function. The problem is that I have read that using the exec() function can be a security risk and should be avoided if possible. I have been doing some research into how to run the exec() function securely, and the only thing that I keep coming across is to filter the command string with escapeshellcmd or escapeshellarg. What I want to know is if it is possible to further increase security when using the exec() function or if there is a secure alternative to exec(). Any help would be appreciated.
Here is my code ;
define('FFMPEG_LIBRARY', 'c:\\ffmpeg7\\ffmpeg\\bin\\ffmpeg ');
$transcode_string = FFMPEG_LIBRARY." -i " . $srcFile . " -acodec libmp3lame -ab 64k -ar 22050 -ac 1 -vcodec libx264 -b:v 250k -r 30 -f flv -y " . $destFile;
$transcode_string = escapeshellcmd($transcode_string);
exec($transcode_string);$srcFile is basically the video for transcoding while $destFile is the output file I wish to create.
-
ffmpeg how to allow a file extension
21 mai 2020, par JuddyNew ffmpeg version check for file extension due to security issue 
in ffmpeg.org that use
#EXT-X-KEY:METHOD=AES-128



since the key usually doesn't use file extension or use *.key extension
so example



ffmpeg -i "C:\streamingtest.m3u8" -c copy "test.ts"




inside the m3u8 I have :



#EXT-X-KEY:METHOD=AES-128,URI="C:/keytest.key"




And ffmpeg will spew an error





[hls,applehttp @ 0000000000dc6460] Filename extension of
 'C :/keytest.key' is not a common multimedia extension, blocked for
 security reasons. If you wish to override this adjust
 allowed_extensions, you can set it to 'ALL' to allow all Unable to
 open key file c :/keytest.key





But it doesn't explain how to use the ALL options in allowed_extensions



So how do i allow key extension in ffmpeg or allow all extension



Thanks


-
FFmpeg Concatenate multiple videos with crossfade
21 juillet 2018, par JackI’m very new to FFmpeg, so any help is much appreciated.
I’m trying to create a batch file that can take all the videos in a folder and concatenate them with 1 sec crossfade between each video. The amount of videos in the folder isn’t set, nor is the length of these videos, which is where my issue is.
I have gotten as far as importing the videos using
dir /b *.mp4 > list.txt
so that i don’t have to import each file individually.One idea I had was to find a pattern in crossfading videos with ffmpeg, then using python to edit a secondary batch file to fit the amount of videos. However, I haven’t been able to determine any pattern with my lack of ffmpeg experience.