
Recherche avancée
Autres articles (36)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
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.
Sur d’autres sites (5854)
-
Where to place the fontfile for the FFmpeg Android drawtext-Filter ?
13 juin 2018, par jpGerhardI’m using the precompiled FFmpeg-Android by Bravobit (via gradle :
implementation 'nl.bravobit:android-ffmpeg:1.1.5'
; based on WritingMind’s) with the intention of drawing the current timestamp/location onto a .mp4 file. I am completely new to FFmpeg and have started with Android Studio a few months ago.Information :
- IDE : Android Studio
- OS : OSX 10.13.5
My problem :
I don’t know whether the fontfile needs to be in the Application path on my Phone, in the Android Studio directory or just on a location on my MacBook (so it gets compiled when running the application).
Basic FFmpeg commands (-version, ...) are working, but I can’t seem to figure out where I have to place my fontfile.
My current command is as follows :
-i /path/to/video.mp4 -vf drawtext=fontfile=/users/shared/fonts/arial.ttf :text='Hello World' /path/to/output.mp4
I’ve tried a lot of variations and always received to following errors :
Fontconfig error : Cannot load default config file
[Parsed_drawtext_0 @ 0xecbfd420] impossible to init fontconfig
[AVFilterGraph @ 0xec9cc140] Error initializing filter ’drawtext’ with args ’fontfile=/users/shared/fonts/arial.ttf:text=Hello World’
Error reinitializing filters !
Failed to inject frame into filter network : Unknown error occurred
Error while processing the decoded data for stream #0:0
Conversion failed !Does anyone have a suggestion on how to get this to work ?
-
Where to place the fontfile for the FFmpeg drawtext-Filter ?
18 juin 2018, par jpGerhardI’m using the precompiled FFmpeg-Android by Bravobit (via gradle :
implementation 'nl.bravobit:android-ffmpeg:1.1.5'
; based on WritingMind’s) with the intention of drawing the current timestamp/location onto a .mp4 file. I am completely new to FFmpeg and have started with Android Studio a few months ago.Information :
- IDE : Android Studio
- OS : OSX 10.13.5
My problem :
I don’t know whether the fontfile needs to be in the Application path on my Phone, in the Android Studio directory or just on a location on my MacBook (so it gets compiled when running the application).
Basic FFmpeg commands (-version, ...) are working, but I can’t seem to figure out where I have to place my fontfile.
My current command is as follows :
-i /path/to/video.mp4 -vf drawtext=fontfile=/users/shared/fonts/arial.ttf:text='Hello World' /path/to/output.mp4
I’ve tried a lot of variations and always received to following errors :
Fontconfig error : Cannot load default config file
[Parsed_drawtext_0 @ 0xecbfd420] impossible to init fontconfig
[AVFilterGraph @ 0xec9cc140] Error initializing filter ’drawtext’ with args ’fontfile=/users/shared/fonts/arial.ttf:text=Hello World’
Error reinitializing filters !
Failed to inject frame into filter network : Unknown error occurred
Error while processing the decoded data for stream #0:0
Conversion failed !Does anyone have a suggestion on how to get this to work ?
-
FFMPEG Concat Videos with audio on some and not others
8 novembre 2022, par JacobI am rendering video from a camcorder with its perspective audio. I am then concatenating several of the rendered video files together to make one video file. The problem I am having is that some videos will need audio and some will not, depending on the user's preference. If all of the videos need audio or all of the videos do not need audio, all works well. However, if audio is selected on some and not others, I have problems. For example, if I have three videos that need to be concatenated, the first has audio, the second does not have audio and third does have audio, then the final rendered file plays the audio of the third video on the second video and no audio on the third.


Below is the parameters for rendering each video file with audio :


parameters = "-y -i " + frames[0].VideoPath + " -f lavfi -t " + frames[1].TimeCode.TotalSeconds + @" -i anullsrc -filter_complex " + '"' + "[0:v]trim=" + frames[0].TimeCode.TotalSeconds + ":" + frames[1].TimeCode.TotalSeconds +
 @", setpts=PTS-STARTPTS[trimedv0];[0:a]atrim=" + frames[0].TimeCode.TotalSeconds + ":" + frames[1].TimeCode.TotalSeconds + @", asetpts=PTS-STARTPTS[a];[trimedv0]yadif," + orientation + @"setsar=1/1, eq=contrast=1:brightness=0, drawtext=text=\'%{pts\:localtime\:" + ToUnixTimestamp(frames[0].FrameTime) +
 @"\:'" + CurrentDisplayDateFormat.DateOutputFormat + @"'}\'" + @":fontfile=\'Fonts/" + font.FirstOrDefault() + @"\':fontcolor=" + fontColor + ":x=" + DATEXOFF +
 ":y=" + DATEYOFF + " -th:fontsize=" + tempFont +
 @":box=1:boxcolor=" + boxColor + @"@" + opacity + @", drawtext=text=\'%{pts\:localtime\:" + ToUnixTimestamp(frames[0].FrameTime) + @"\:'" + CurrentDisplayDateFormat.TimeOutputFormat + @"'}\'" + @":fontfile=\'Fonts/" + font.FirstOrDefault() + @"\':fontcolor=" + fontColor +
 ":x=" + TIMEXOFF + ":y=" + TIMEYOFF +
 " -th:fontsize=" + tempFont + @":box=1:boxcolor=" + boxColor + @"@" + opacity + '"' + " -sn -map [a] -shortest -ac 2 -c:v libx264 -preset ultrafast -profile:v baseline -level 3.0 -pix_fmt yuv420p -f mpegts -c:a aac " +
 vidPath + @"\v" + outputFile.ToString() + ".TMP";



Below is the parameters without audio :


parameters = "-y -i " + frames[0].VideoPath + " -filter_complex " + '"' + "[0:v] trim=" + frames[0].TimeCode.TotalSeconds + ":" + frames[1].TimeCode.TotalSeconds +
 @", setpts=PTS-STARTPTS[trimedv0];[trimedv0]yadif," + orientation + @"setsar=1/1, eq=contrast=1:brightness=0, drawtext=text=\'%{pts\:localtime\:" + ToUnixTimestamp(frames[0].FrameTime) +
 @"\:'" + CurrentDisplayDateFormat.DateOutputFormat + @"'}\'" + @":fontfile =\'Fonts/" + font.FirstOrDefault() + @"\':fontcolor=" + fontColor + ":x=" + DATEXOFF +
 ":y=" + DATEYOFF + " -th:fontsize=" + tempFont +
 @":box=1:boxcolor=" + boxColor + @"@" + opacity + @", drawtext=text=\'%{pts\:localtime\:" + ToUnixTimestamp(frames[0].FrameTime) + @"\:'" + CurrentDisplayDateFormat.TimeOutputFormat + @"'}\'" + @":fontfile =\'Fonts/" + font.FirstOrDefault() + @"\':fontcolor=" + fontColor +
 ":x=" + TIMEXOFF + ":y=" + TIMEYOFF +
 " -th:fontsize=" + tempFont + @":box=1:boxcolor=" + boxColor + @"@" + opacity + '"' + " -sn -an -c:v libx264 -preset ultrafast -profile:v baseline -level 3.0 " +
 @"-pix_fmt yuv420p -f mpegts " + vidPath + @"\v" + outputFile.ToString() + ".TMP";



Below is the parameters to concatenate the video files to one file :


string parameters = "-probesize 100M -analyzeduration 100M -i concat:" + '"' + concatString + '"' + @" -c:v copy " + ExportOptions.CompleteDestinationPath;