22 lines
No EOL
434 B
C
22 lines
No EOL
434 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main() {
|
|
char input[256];
|
|
char output[256];
|
|
printf("Input file:\n");
|
|
scanf("%s", input);
|
|
printf("Output file:\n");
|
|
scanf("%s", output);
|
|
|
|
char commande[256];
|
|
snprintf(commande, sizeof(commande), "ffmpeg -i %s %s", input, output);
|
|
|
|
int result = system(commande);
|
|
|
|
if (result != 0) {
|
|
printf("Erreur de conversion\n");
|
|
}
|
|
|
|
return result;
|
|
} |