
Recherche avancée
Autres articles (37)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (6473)
-
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.


-
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> -
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 ==
.
.
.