
Recherche avancée
Autres articles (98)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (8270)
-
Find the correct FFmpeg path in php
30 décembre 2014, par Ashraf HefnyI am using FFmpeg with PHP on CentOS server.
the php code is$thumbnail = $this->generateRandomString(25);
$ffmpeg = "/usr/bin/man"; // or /usr/share/ffmpeg {not working}
$videoFile = $_FILES['file']['tmp_name'];
$imageFile = "uploads/images/video_thumbnail/$thumbnail.jpg";
$size = '340x250';
$getFrom = 10;
$cmd = "$ffmpeg -i $videoFile -an -ss $getFrom -s $size $imageFile";
shell_exec($cmd);When running command
$whereis FFmpeg
output is :
ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
So what’s the correct path.
-
Find the correct FFmpeg path in php
10 mai 2023, par Ashraf HefnyI am using FFmpeg with PHP on CentOS server.
the php code is



$thumbnail = $this->generateRandomString(25);
$ffmpeg = "/usr/bin/man"; // or /usr/share/ffmpeg {not working}
$videoFile = $_FILES['file']['tmp_name'];
$imageFile = "uploads/images/video_thumbnail/$thumbnail.jpg";
$size = '340x250';
$getFrom = 10;
$cmd = "$ffmpeg -i $videoFile -an -ss $getFrom -s $size $imageFile";
shell_exec($cmd);




When running command
$whereis FFmpeg



output is :
ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz



So what's the correct path.


-
Relative Path for React-Native-ffmpeg ?
27 juillet 2023, par christen03I'm using react-native-ffmpeg and I'm trying to add some text and an image to my videos. I'm trying to get use a font file through a relative path, but I'm having some issues. Everything is executing correctly, but my video is saved using some default font instead of the font I want it to use.


This is the code I'm trying, these two lines to set the fontDirectory/path,


await FFmpegKitConfig.setFontDirectory("../fonts");
 const fontFilePath = "../fonts/Montserrat-Medium.ttf";




then the command that I execute.

-y -i ${inputFilePath} -i ${randomImage} -filter_complex "[0:v][1:v] overlay=${imgWidthScale * windowWidth}:${imgHeightScale * windowHeight}, drawtext=fontfile=${fontFilePath}:text=@${selfUser.username}:fontsize=${fontSize}:fontcolor=white:x=${textWidthScale * windowWidth}:y=${textHeightScale * windowHeight}" -codec:a copy ${outputPath}


I'm sure my font file is insde the fonts directory and that this path is correct. However, this is the error I'm getting in my terminal :


[AVFilterGraph @ 0x2877c2fa0] Error initializing filter 'drawtext'
 LOG [AVFilterGraph @ 0x2877c2fa0] with args 'fontfile=../fonts/Montserrat-Medium.ttf:text=@chris:fontsize=36:fontcolor=white...



Which I'm not too sure about, but looks like the colon delimiter is not working ? However it seems to be reading all my other arguments fine as my text, fontsize, color, and position work with no issues.


Is there something I'm doing wrong in my command ? Or setting up my font directory ? Or does ffmpeg not work with relative paths ? I appreciate any help :)