
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (79)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (12928)
-
Dynamically generate list of arguments for ffmpeg in C
5 mars 2013, par OregonTrailI'm currently writing a video conversion daemon in C. It calls ffmpeg using execvp.
I've created a struct called "ffmpeg_job" that represents a conversion job to be completed. I'd like to dynamically allocate the arguments to ffmpeg for each job, so that I can free one of these structs and its list of arguments after the job is completed.
I started writing the function that dynamically allocates the list of arguments, but I feel like the way I'm going about it is quite naive. The code is below.
Is there a better way to do this ?
EDIT : I'm thinking now that I will have a static string list of arguments for each level of quality, then sprintf into it and strtok it into a char **
char ** generate_arguments(
char *filepath,
ph5v_format format,
ph5v_quality quality)
{
char ** arguments;
if (format == ph5v_MP4) {
mp4_arguments = {
"-i", "%%INPUT FILEPATH 1",
"-vcodec", "libx264",
"-preset", "%%X264 PRESET 5",
"-b:v", "%%VIDEO BITRATE 7",
"-strict", "-2",
"-acodec", "aac",
"-b:a", "%%AUDIO BITRATE 13",
"-ar", "%%AUDIO SAMPLERATE 15",
"-ac", "2",
"-y", "%%OUTPUT FILEPATH 19"
}
arguments = malloc(sizeof(char*) * 20);
int i;
for (i = 0; i < 20; i++) {
if (i == 1) {
char *argument = malloc(strlen(filepath) + 1);
strcpy(argument, filepath);
arguments[1] = argument;
} else if (i == 5) {
if (quality == ph5v_LOW || quality == ph5v_MEDIUM) {
char *argument = malloc(strlen("fast") + 1);
strcpy(argument, "fast");
arguments[5] = argument;
} else if (quality == ph5v_HIGH || quality == ph5v_ULTRA ) {
char *argument = malloc(strlen("medium") + 1);
strcpy(argument, "medium");
arguments[5] = argument;
}
} else if (i == 7) {
if (quality ==
.
.
. -
setTimeout() fix for onfinish()-related issue where subsequent play() calls fail when Flash Player 11.6.602.171 is installed, and using soundManager with flashVersion = 8 (which is the default).
3 mars 2013, par scottschillerm script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2-nodebug.js m script/soundmanager2.js
setTimeout() fix for onfinish()-related issue where subsequent play() calls fail when Flash Player 11.6.602.171 is installed, and using soundManager with flashVersion = 8 (which is the default). Not sure of exact cause. Suspect race condition resulting in an invalid (NaN-style) position argument trickling down to the next JS -> Flash _start() call. Fix : setTimeout() to yield, plus safer null / NaN checking on position argument provided to Flash. https://getsatisfaction.com/schillmania/topics/recent_chrome_update_seems_to_have_broken_my_sm2_audio_player
-
avcodec/tdsc : use ff_codec_open2_recursive()
13 mars 2015, par Michael Niedermayer