
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (59)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (7765)
-
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 ==
.
.
. -
mov : fix decryption with edit list
12 janvier 2017, par erankormov : fix decryption with edit list
Retain the ranges of frame indexes when applying edit list in
mov_fix_index. The index ranges are then used to keep track of the frame
index of the current sample. In case of a discontinuity in frame indexes
due to edit, update the auxiliary info position accordingly.Reviewed-by : Sasi Inguva <isasi@google.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
How to use data from list of text files for FFMPEG livestream
30 août 2022, par Steve MimshakIs it possible to use a list of text files for FFMPEG livestream, i want to be able to update the data in text files in real time during the stream.