Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (53)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

Sur d’autres sites (6608)

  • ffMpeg crashes on conversion from Powershell

    2 mars 2018, par Ahhhhhhhhhhhhhdfgbv

    I’m trying to create a Powershell that will loop through all the audio on a selected folder and add a jpg to the audio, outputting it as a video file.

    This is what I have so far :

    function mbAudioConvert {
       [Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
       [System.Windows.Forms.Application]::EnableVisualStyles()
       $browse = New-Object System.Windows.Forms.FolderBrowserDialog
       $browse.SelectedPath = "B:\testaudio"
       $browse.ShowNewFolderButton = $false
       $browse.Description = "Select the folder with the audio"

       $loop = $true
       while( $loop ) {
           if( $browse.ShowDialog() -eq "OK" ) {
               $loop = $false
               $folder = $browse.SelectedPath
               $counter = 0001
               $image = (Get-Item -Path ".\lib\AudioOnly.jpg")
               $ffmpeg = (Get-Item -Path ".\lib\ffmpeg.exe")

               Foreach( $item in (ls $folder\* -Include *.mp3, *.MP3, *.wav, *.WAV, *.ogg, *.OGG) ) {
                   $ffstring = " -loop 1 -i $image -i $item -shortest -c:v dnxhd -b:v 120M -s 1920x1080 -pix_fmt yuv422p -r 25 -c:a pcm_s16le -ar 48000 $item.mov"

                   echo "$counter. $item"
                   Start-Process -FilePath $ffmpeg -ArgumentList $ffstring -Wait -PassThru;
                   $counter++
               }
           } else {
               return
           }
       }

       $browse.SelectedPath
       $browse.Dispose()
    }
    mbAudioConvert

    Which works, only after each convert, ffMpeg crashes. I’m not sure if its the FFmpeg.exe or the Powershell itself that is the issue - but I have been going crazy trying to debug this.

    error image

  • Compressing video in flutter using ffmpeg

    30 octobre 2019, par kunaljosh369

    I want to compress video before uploaing i am already using FFmpeg in my project.Currently i am using below code but not working.

    var arguments = ["-i", file.path, "-c:v", "mpeg4", "file2.mp4"];
      _flutterFFmpeg
          .executeWithArguments(arguments)
          .then((rc) => print("FFmpeg process exited with rc $rc"));
  • Video Trimming Using FFMPEG(ANDROID)

    16 juin 2016, par user3669034

    I am using Video Triming code for trim videos using FFMPEG. I used below code first, but the app crashed when I add second video.

    #include
    #include "include/net_video_trimmer_natives_VideoTrimmer.h"
    #include "libswscale/swscale.h"
    #include "libavcodec/avcodec.h"
    #include "libavformat/avformat.h"
    #include "ffmpeg.h"
    #include
    #include
    #include <android></android>log.h>

    void log_message(char* message) {
       __android_log_write(ANDROID_LOG_ERROR, "VideoTrimmer", message);
    }

    void reverse(char s[])
    {
        int i, j;
        char c;

        for (i = 0, j = strlen(s)-1; i* itoa:  convert n to characters in s */
    void itoa(int n, char s[])
    {
       int i, sign;

       if ((sign = n) &lt; 0)  /* record sign */
           n = -n;          /* make n positive */
       i = 0;
       do {       /* generate digits in reverse order */
           s[i++] = n % 10 + '0';   /* get next digit */
       } while ((n /= 10) > 0);     /* delete it */
       if (sign &lt; 0)
           s[i++] = '-';
       s[i] = '\0';
       reverse(s);
    }

    JNIEXPORT jint JNICALL Java_net_video_trimmer_natives_VideoTrimmer_trim(JNIEnv *env,
           jclass someclass, jstring inputFile, jstring outFile, jint startTime,
           jint length) {
       log_message("Starting to cut");

       int numberOfArgs = 12;
       char** arguments = calloc(numberOfArgs, sizeof(char*));
       char start[5], duration[5];
       const char *in, *out;
       itoa(startTime, start);
       itoa(length, duration);

       in = (*env)->GetStringUTFChars(env, inputFile, 0);
       out = (*env)->GetStringUTFChars(env, outFile, 0);

       arguments[0] = "ffmpeg";
       arguments[1] = "-i";
       arguments[2] = in;
       arguments[3] = "-ss";
       arguments[4] = start;
       arguments[5] = "-t";
       arguments[6] = duration;
       arguments[7] = "-vcodec";
       arguments[8] = "copy";
       arguments[9] = "-acodec";
       arguments[10] = "copy";
    //  arguments[11] = "-strict";
    //  arguments[12] = "experimental";
    //  arguments[13] = "-ab";
    //  arguments[14] = "12k";
       arguments[11] = out;

       int i;
       for (i = 0; i &lt; numberOfArgs; i++) {
           log_message(arguments[i]);
       }
       log_message("Printed all");

       ffmpeg_main(numberOfArgs, arguments);
       log_message("Finished cutting");
       free(arguments);
       (*env)->ReleaseStringUTFChars(env, inputFile, in);
       (*env)->ReleaseStringUTFChars(env, outFile, out);
       return 0;
    }

    I searched over the internet for this problem and try to close it when the Trimming operation is done and add
    handle = dlopen("/data/data/my.package.com/lib/libffmpeg.so", RTLD_LAZY),
    ffmpeg_main= (func)dlsym(handle, "Java_net_video_trimmer_natives_VideoTrimmer_trim") ;
    dlclose(handle) ;
    But right now it doesn’t even make the first trim and crash when start to trimming.

    #include
    #include "include/net_video_trimmer_natives_VideoTrimmer.h"
    #include "libswscale/swscale.h"
    #include "libavcodec/avcodec.h"
    #include "libavformat/avformat.h"
    #include "ffmpeg.h"
    #include
    #include
    #include <android></android>log.h>
    #include
    void log_message(char* message) {
       __android_log_write(ANDROID_LOG_ERROR, "VideoTrimmer", message);
    }

    void reverse(char s[])
    {
        int i, j;
        char c;

        for (i = 0, j = strlen(s)-1; i* itoa:  convert n to characters in s */
    void itoa(int n, char s[])
    {
       int i, sign;

       if ((sign = n) &lt; 0)  /* record sign */
           n = -n;          /* make n positive */
       i = 0;
       do {       /* generate digits in reverse order */
           s[i++] = n % 10 + '0';   /* get next digit */
       } while ((n /= 10) > 0);     /* delete it */
       if (sign &lt; 0)
           s[i++] = '-';
       s[i] = '\0';
       reverse(s);
    }



    JNIEXPORT jint JNICALL Java_net_video_trimmer_natives_VideoTrimmer_trim(JNIEnv *env,
           jclass someclass, jstring inputFile, jstring outFile, jint startTime,
           jint length) {



    log_message("Starting to cut");
    void* handle;
    int (*ffmpeg_main)(int,char **); // define function prototype



       int numberOfArgs = 12;
       char** arguments = calloc(numberOfArgs, sizeof(char*));
       char start[5], duration[5];
       const char *in, *out;
       itoa(startTime, start);
       itoa(length, duration);

       in = (*env)->GetStringUTFChars(env, inputFile, 0);
       out = (*env)->GetStringUTFChars(env, outFile, 0);
    handle = dlopen("/data/data/package_name/lib/libffmpeg.so", RTLD_LAZY);
       arguments[0] = "ffmpeg";
       arguments[1] = "-i";
       arguments[2] = in;
       arguments[3] = "-ss";
       arguments[4] = start;
       arguments[5] = "-t";
       arguments[6] = duration;
       arguments[7] = "-vcodec";
       arguments[8] = "copy";
       arguments[9] = "-acodec";
       arguments[10] = "copy";
    //  arguments[11] = "-strict";
    //  arguments[12] = "experimental";
    //  arguments[13] = "-ab";
    //  arguments[14] = "12k";
       arguments[11] = out;

       int i;
       for (i = 0; i &lt; numberOfArgs; i++) {
           log_message(arguments[i]);
       }
       log_message("Printed all");





       (*env)->ReleaseStringUTFChars(env, inputFile, in);
       (*env)->ReleaseStringUTFChars(env, outFile, out);

    ffmpeg_main= dlsym(handle, "Java_net_video_trimmer_natives_VideoTrimmer_trim");  
    ffmpeg_main(numberOfArgs, arguments);

       log_message("Finished cutting");



    dlclose(handle);



    return 0;
    }

    Please help me with your advice and let me know where I have to change the code.
    Thanks