Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (83)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (11745)

  • When second time to do video processing using FFmpeg in JNI in Android, the app crashes with fatal signal 11

    25 septembre 2013, par user1914692

    (1)
    This is an Android application, perform video processing using FFmpeg in JNI in Android.
    When the app is installed in the device, and run the first time to process one video file, the app runs very well.
    After the first video file is processed, I proceed to choose the second video file to start processing. The app immediately crashes.

    Log error is :

    > 09-25 10:53:52.801: I/native-activity(2339): begin: open_input_file
    > .mov .
    >     09-25 10:53:52.801: I/native-activity(2339): open_input_file
    >     09-25 10:53:52.801: I/native-activity(2339): begin: avformat_open_input .
    >     09-25 10:53:52.811: I/native-activity(2339): avformat_open_input ret: 0
    >     09-25 10:53:52.811: I/native-activity(2339): begin: avformat_find_stream_info .
    >     09-25 10:53:52.811: A/libc(2339): Fatal signal 11 (SIGSEGV) at 0x00000028 (code=1), thread 2569 (IntentService[V)

    The app crashes in "ret = avformat_find_stream_info(inVStruct.inFormatContext, NULL"
    See the snippet below :

    LOGI("begin: avformat_find_stream_info .\n");
    if ((ret = avformat_find_stream_info(inVStruct.inFormatContext, NULL)) < 0) {
       LOGI("Cannot find stream information\n");
       av_log(NULL, AV_LOG_ERROR, "Cannot find stream information\n");
       return ret;
    }

    (2)
    Following the FFmpeg tutorial, I have done 5 steps to free memory for related variables in opened input video file and output video file :

    // 1: close CodecContext: avcodec_close(AVCodecContext)
    // 2: free Frame: avcodec_free_frame(AVFrame *): free frame and dynamically allocated objects in it, e.g. extended_data; av_free(AVFrame *)
    // 3: close the file (either AVFormatContext->pb, or FILE *): avio_close(AVFormatContext->pb); fclose(FILE *)
    // 4: free AVFormatContext and all its streams: avformat_free_context(AVFormatContext *)
    // 5: free data:  av_free( * ): Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). av_freep recommended. e.g. av_free(avPicture.data[0]);

    All freeings are fine.

    One minor point : From demuxing.c, it seems it does not do avformat_free_context for the input video file.
    I tried that in the program, and it shows error ; so I remove the two sentences below.

    avformat_free_context(inVStruct.inFormatContext);
    LOGI("finish: inVStruct.inFormatContext");

    09-25 10:49:40.222: A/libc(1915): @@@ ABORTING: LIBC: ARGUMENT IS INVALID HEAP ADDRESS IN dlfree addr=0x7204a0a8
    09-25 10:49:40.222: A/libc(1915): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2107 (IntentService[V)

    (3)
    I suspect the the crash when doing processing the 2nd time is because of something is not freed, so it is out of memory.
    But I do free those variables.

    Any clue ? Thanks !

  • ffmpeg mix audio at specific time

    4 janvier 2017, par Grbe1l

    I want to mix 2 audio files together - one file has a length of 2 mins and the other is a 10 second sound. I want both files to mix so both sounds can still be heard. I want this 10 second clip to come in exactly at 30 seconds for the 10 seconds so it will end at 40 seconds.

    I know how to mix 2 audio files together using ffmpeg

    ffmpeg -i input.mp3 -i input2.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 output.mp3

    However, I do not know how to start this 10 second sound at a specific time.

  • How to parse ffmpeg progress real time in ruby

    7 octobre 2015, par jryancanty

    So I was struggling with this problem a long time last night and finally figured it out so I wanted to post here in case someone ran across the same issue.

    The goal is to parse the output of FFmpeg so that it would run in a Sidekiq worker and save progress and duration to an ActiveRecord model so I could get a progress bar in the UI by polling the database.

    How do I parse ffmpeg duration and time real-time without waiting for the process to finish ?