
Recherche avancée
Autres articles (66)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (4912)
-
Converting video with ffmpeg from a script not in the root folder
30 octobre 2017, par Daniel OrmerodI am using ffmpeg to convert videos, create thumbnails etc.
I made the below function to convert a video and when I run it in a script in the root folder it converts ok.
However, I am using ajax to upload the video and the script is located /ajax/upload-video.php and when I run it in that folder it fails to convert.
I have tried sending the $src and $dest up with ../ before the filenames to go back a folder but it isn’t working.
Can anybody help ?
Do I need to add something to the $command line to tell it to go back a folder ?
These are the variables being used in the function :
$ffmpegpath = 'ffmpeg.exe';
$src = 'videos/video1.wmv';
$dest = 'videos/video1.mp4';I have tried :
$ffmpegpath = 'ffmpeg.exe';
$src = '../videos/video1.wmv';
$dest = '../videos/video1.mp4';And the function :
function convert_video($src, $dest) {
global $ffmpegpath;
if (!file_exists($src)) {
echo '<p>The file does not exist</p>';
} else {
$command = "$ffmpegpath -i $src $dest";
@exec($command, $ret);
if (!file_exists($dest)) {
echo '<p>The file failed to create</p>';
} else {
if (filesize($dest)==0) {
echo '<p>The file created but has not filesize</p>';
} else {
echo '<p>File Created Successfully</p>';
}
}
}
} -
Better examples/language for supported vs. ok(), onready()/ontimeout()
30 décembre 2010, par Scott Schillerm doc/getstarted/index.html m doc/index.html Better examples/language for supported vs. ok(), onready()/ontimeout()
-
How to convert natural language to structural description like FFmpeg filter graph strings
11 juillet 2022, par 张无敌I'm working on a program that takes natural language as input, and outputs valid FFmpeg filter graph description, for example :


Input string :


rotate 1.mp4 90deg clockwise, downscale to 480p, output 2.mpeg



Output description :


rotate=a=90,scale=640*480



It seems impractical with complete natural language, especially in the case of complex filter graphs, but still doable with slightly formatted input.


I am new to NLP, wondering which areas or methods could help implement this.