
Recherche avancée
Médias (2)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (81)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (13273)
-
avfilter/vf_bwdif : Use common yadif frame management logic
4 novembre 2018, par Philip Langdale -
Question about coding design of interface and receivers
14 décembre 2018, par the_real_oneI am trying to create an interface for an FFmpeg conversion scheme where :
- New() should return whatever implements it
- (receiver *interface) Convert() is the only method that should be implemented and the underlying details hidden (source files from : URL, File, etc.)
How would I accomplish the above problem and design the code in such a way that you have various New() methods returning an FFmpegConverer that enforces the implementation of the Convert() method but with the underlying details behind each New() being different ? Or is that just a bad design to begin with ?
My code may be less relevant than my problem statement but this is what I have so far which does not pass any go sanity checks :
// FfmpegConverter is the interface for setting the public facing local
// video files
type FfmpegConverter interface {
Convert() error
}
// localVideo holds the file information for a downloaded video
type localVideo struct {
inputAudioFile * os.File
inputVideoFile * os.File
outputVideoFile * os.File
}
// New initializes a new FfmpegConverter
func New(inputVideoFilePath string, inputAudioFilePath string, outputVideoFilePath string)(ffmpegConverter FfmpegConverter, err error) {
ffmpegConverter = & localVideo {}
// Set input video file
ffmpegConverter.inputVideoFile, err = os.Open(inputVideoFilePath)
if err != nil {
return
}
if err = ffmpegConverter.inputVideoFile.Close();
err != nil {
return
}
// Set input audio file
ffmpegConverter.inputAudioFile, err = os.Open(inputAudioFilePath)
if err != nil {
return
}
if err = ffmpegConverter.inputAudioFile.Close();
err != nil {
return
}
// Set output video file
ffmpegConverter.outputVideoFile, err = os.Create(outputVideoFilePath)
if err != nil {
return
}
if err = ffmpegConverter.outputVideoFile.Close();
err != nil {
return
}
return
}
// Convert will convert the input video and input audio files to an combined
// output video file
func(l * localVideo) Convert()(err error) {
// Do stuff with the internal struct
// ...
} -
ffmpeg strange errors variables/undefined constants & question fonts
21 mars 2019, par RickI was trying to achieve get an animated text overlay. I found this thread :
ffmpeg moving text drawtextWhen I run this code however :
ffmpeg -i VideoInput.mp4 \
-vf "drawtext=enable='between(t,12,15)':fontfile=myfont.otf:text='Test test': \
x='if(lt(t-t2+1\,0)\,x1+(x2-x1)*(t-t1)/(t2-t1-1)\,x)': \
y='if(lt(t-t2+1\,0)\,y1+(y2-y1)*(t-t1)/(t2-t1-1)\,y)':fontsize=65" \
-acodec copy outputVideo.mp4I get the error :
[Parsed_drawtext_0 @ 000002d862595c00][Eval @ 000000e1d79fe300] Undefined constant or missing '(' in 't2-t1-1),x)'
[Parsed_drawtext_0 @ 000002d862595c00] Failed to configure input pad on Parsed_drawtext_0A second strange error, which may be the cause for the problem at the top. Is that I can’t run the arguments on multiple lines. So with the code below I have to remove the slashes and put it on 1 line. I use PHP so this does not work (white screen, no output)
$arguments = "-i out1.mp4 \
-vf \"drawtext=enable='between(t,12,15)':fontfile=myfont.otf:text='Test test': \
x='if(lt(t-t2+1\,0)\,x1+(x2-x1)*(t-t1)/(t2-t1-1)\,x)': \
y='if(lt(t-t2+1\,0)\,y1+(y2-y1)*(t-t1)/(t2-t1-1)\,y)':fontsize=65\" \
-acodec copy outputVideo.mp4 2>&1";
$output = shell_exec('D:/wamp64/www/createslideshow/ffmpeg-20190319-f8075b2-win64-static/bin/ffmpeg.exe '.$arguments);This works but gives the undefined constant error :
$arguments = "-i out1.mp4 -vf \"drawtext=enable='between(t,12,15)':fontfile=myfont.otf:text='Test test': x='if(lt(t-t2+1\,0)\,x1+(x2-x1)*(t-t1)/(t2-t1-1)\,x)': y='if(lt(t-t2+1\,0)\,y1+(y2-y1)*(t-t1)/(t2-t1-1)\,y)':fontsize=65\" -acodec copy outputVideo.mp4 2>&1";
$output = shell_exec('D:/wamp64/www/createslideshow/ffmpeg-20190319-f8075b2-win64-static/bin/ffmpeg.exe '.$arguments);Last thing is that I keep getting the font error :
Fontconfig error : Cannot load default config file
[Parsed_drawtext_0 @ 000001d6ad86f180] Using "C :/WINDOWS/fonts/mingliub.ttc"I have tried :
arial.ttf
/windows/fonts/arial.ttf
\windows\fonts\arial.ttf
\\\windows\\\fonts\\\arial.ttf
c\\:\\\windows\\\fonts\\\arial.ttf