commit 1361684b0d9c1d4e04ae2bcb81c105d7549e1526 Author: Jean GUIGNARD Date: Mon Dec 30 02:05:04 2024 +0100 Téléverser les fichiers vers "/" diff --git a/conversion.c b/conversion.c new file mode 100644 index 0000000..a85f170 --- /dev/null +++ b/conversion.c @@ -0,0 +1,22 @@ +#include +#include + +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; +} \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..95e5228 --- /dev/null +++ b/dockerfile @@ -0,0 +1,5 @@ +FROM gcc:latest +WORKDIR /conversion +COPY conversion.c . +RUN gcc -o conversion conversion.c +CMD [ "./conversion" ] \ No newline at end of file