Recherche avancée

Médias (91)

Autres articles (87)

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

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

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (9702)

  • FFmpeg / libmp3lame crash while converting from .wav to .mp3 with vibrato

    1er juillet 2020, par Chitrang

    I have integrated mobile-ffmpeg-full-gpl:4.3.1.LTS library in my android app. And trying to convert .wav file to .mp3 format with vibrato option and libmp3lame encoder.

    


    ffmpegCommand = "-i input.wav " +
                "-af vibrato=f=4 " +
                "-c:a libmp3lame " +
                "-b:a 96k " +
                "-ac 1 " +
                "-ar 44100 " +
                "-y output.mp3"


    


    FFmpeg Logs :

    


    a.b.com I/mobile-ffmpeg: Loading mobile-ffmpeg.
a.b.com I/mobile-ffmpeg: Loaded mobile-ffmpeg-full-gpl-arm64-v8a-4.3.1-lts-20200125.
a.b.com D/mobile-ffmpeg: Callback thread started.
a.b.com I/mobile-ffmpeg: ffmpeg version git-2020-01-25-fd11dd500
a.b.com I/mobile-ffmpeg:  Copyright (c) 2000-2020 the FFmpeg developers
a.b.com I/mobile-ffmpeg:   built with Android (5220042 based on r346389c) clang version 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf643d27dbca1bb228957008617) (https://android.googlesource.com/toolchain/llvm 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)
a.b.com I/mobile-ffmpeg:   configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang++ --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disa
a.b.com I/mobile-ffmpeg:   libavutil      56. 38.100 / 56. 38.100
a.b.com I/mobile-ffmpeg:   libavcodec     58. 65.102 / 58. 65.102
a.b.com I/mobile-ffmpeg:   libavformat    58. 35.101 / 58. 35.101
a.b.com I/mobile-ffmpeg:   libavdevice    58.  9.103 / 58.  9.103
a.b.com I/mobile-ffmpeg:   libavfilter     7. 70.101 /  7. 70.101
a.b.com I/mobile-ffmpeg:   libswscale      5.  6.100 /  5.  6.100
a.b.com I/mobile-ffmpeg:   libswresample   3.  6.100 /  3.  6.100
a.b.com W/mobile-ffmpeg: [wav @ 0x7294a86600] Estimating duration from bitrate, this may be inaccurate
a.b.com W/mobile-ffmpeg: Guessed Channel Layout for Input Stream #0.0 : mono
a.b.com I/mobile-ffmpeg: Input #0, wav, from '/data/user/0/a.b.com/cache/creation/input.wav':
a.b.com I/mobile-ffmpeg:   Duration: 
a.b.com I/mobile-ffmpeg: 00:00:07.15
a.b.com I/mobile-ffmpeg: , bitrate: 
a.b.com I/mobile-ffmpeg: 705 kb/s
a.b.com I/mobile-ffmpeg:     Stream #0:0
a.b.com I/mobile-ffmpeg: : Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
a.b.com I/mobile-ffmpeg: Stream mapping:
a.b.com I/mobile-ffmpeg:   Stream #0:0 -> #0:0
a.b.com I/mobile-ffmpeg:  (pcm_s16le (native) -> mp3 (libmp3lame))
a.b.com I/mobile-ffmpeg: Press [q] to stop, [?] for help
a.b.com I/mobile-ffmpeg: Output #0, mp3, to '/data/user/0/a.b.com/cache/creation/output.mp3':
a.b.com I/mobile-ffmpeg:   Metadata:
a.b.com I/mobile-ffmpeg:     TSSE            : 
a.b.com I/mobile-ffmpeg: Lavf58.35.101
a.b.com I/mobile-ffmpeg:     Stream #0:0
a.b.com I/mobile-ffmpeg: : Audio: mp3 (libmp3lame), 44100 Hz, mono, fltp, 96 kb/s
a.b.com I/mobile-ffmpeg:     Metadata:
a.b.com I/mobile-ffmpeg:       encoder         : 
a.b.com I/mobile-ffmpeg: Lavc58.65.102 libmp3lame
a.b.com I/mobile-ffmpeg: --------- beginning of crash
a.b.com A/libc: psymodel.c:576: void calc_energy(const PsyConst_CB2SB_t *, const FLOAT *, FLOAT *, FLOAT *, FLOAT *): assertion "el >= 0" failed
a.b.com A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 25800 (a.b.com), pid 25800 (a.b.com)


    


    Crash :

    


    --------- beginning of crash
 A/libc: psymodel.c:576: void calc_energy(const PsyConst_CB2SB_t *, const FLOAT *, FLOAT *, FLOAT *, FLOAT *): assertion "el >= 0" failed

? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
? A/DEBUG: Build fingerprint: 'samsung/star2qltecs/star2qltecs:10/QP1A.190711.020/G965WVLS7DTE1:user/release-keys'
? A/DEBUG: Revision: '14'
? A/DEBUG: ABI: 'arm64'
? A/DEBUG: Timestamp: 2020-06-29 15:13:17-0400
? A/DEBUG: pid: 1849, tid: 1849, name: a.b.com  >>> a.b.com <<<
? A/DEBUG: uid: 12171
? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
? A/DEBUG: Abort message: 'psymodel.c:576: void calc_energy(const PsyConst_CB2SB_t *, const FLOAT *, FLOAT *, FLOAT *, FLOAT *): assertion "el >= 0" failed'
? A/DEBUG:     x0  0000000000000000  x1  0000000000000739  x2  0000000000000006  x3  0000007fd65f7bb0
? A/DEBUG:     x4  0000000000000000  x5  0000000000000000  x6  0000000000000000  x7  0000000000000008
? A/DEBUG:     x8  00000000000000f0  x9  7f96d7a39856d151  x10 0000000000000001  x11 0000000000000000
? A/DEBUG:     x12 fffffff0fffffbdf  x13 000000005efa3d4c  x14 001c23c1a79207f5  x15 000079d970d48db2
? A/DEBUG:     x16 00000073e009e8c0  x17 00000073e007afe0  x18 00000073e492c000  x19 0000000000000739
? A/DEBUG:     x20 0000000000000739  x21 00000000ffffffff  x22 0000007fd65fc44c  x23 0000007fd65f8640
? A/DEBUG:     x24 0000007fd65fd120  x25 0000007fd65fd3a8  x26 0000007fd65f8240  x27 0000007fd65f9e40
? A/DEBUG:     x28 00000071f9f60900  x29 0000007fd65f7c50
? A/DEBUG:     sp  0000007fd65f7b90  lr  00000073e002c27c  pc  00000073e002c2a8
? A/DEBUG: backtrace:
? A/DEBUG:       #00 pc 00000000000832a8  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 55ce0a7d78144b0290f9746ed1615719)
? A/DEBUG:       #01 pc 00000000000839e8  /apex/com.android.runtime/lib64/bionic/libc.so (__assert2+36) (BuildId: 55ce0a7d78144b0290f9746ed1615719)
? A/DEBUG:       #02 pc 0000000000969c60  /data/app/a.b.com-jXqE8oxytEkfSsn6pcdloQ==/lib/arm64/libavcodec.so


    


    I referred link1, link2 to understand the problem but could not find a solution.

    


  • Calling ffmpeg.c's main twice causes app crash

    21 octobre 2018, par user924

    Using FFmpeg 4.0.2 and call its ffmpeg.c's main function twice causes Android app crash (using FFmpeg shared libs and JNI)

    A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 20153

    Though it works ok for FFmpeg 3.2.5

    FFmpeg 4.0.2 main

    int main(int argc, char **argv) {
       int i, ret;
       int64_t ti;

       init_dynload();

       register_exit(ffmpeg_cleanup);

       setvbuf(stderr,NULL,_IONBF,0); /* win32 runtime needs this */

       av_log_set_flags(AV_LOG_SKIP_REPEATED);
       parse_loglevel(argc, argv, options);

       if(argc>1 && !strcmp(argv[1], "-d")){
           run_as_daemon=1;
           av_log_set_callback(log_callback_null);
           argc--;
           argv++;
       }

    #if CONFIG_AVDEVICE
       avdevice_register_all();
    #endif
       avformat_network_init();

       show_banner(argc, argv, options);

       /* parse options and open all input/output files */
       ret = ffmpeg_parse_options(argc, argv);
       if (ret < 0)
           exit_program(1);

       if (nb_output_files <= 0 && nb_input_files == 0) {
           show_usage();
           av_log(NULL, AV_LOG_WARNING, "Use -h to get full help or, even better, run 'man %s'\n", program_name);
           exit_program(1);
       }

       /* file converter / grab */
       if (nb_output_files <= 0) {
           av_log(NULL, AV_LOG_FATAL, "At least one output file must be specified\n");
           exit_program(1);
       }

    //     if (nb_input_files == 0) {
    //         av_log(NULL, AV_LOG_FATAL, "At least one input file must be specified\n");
    //         exit_program(1);
    //     }

       for (i = 0; i < nb_output_files; i++) {
           if (strcmp(output_files[i]->ctx->oformat->name, "rtp"))
               want_sdp = 0;
       }

       current_time = ti = getutime();
       if (transcode() < 0)
           exit_program(1);
       ti = getutime() - ti;
       if (do_benchmark) {
           av_log(NULL, AV_LOG_INFO, "bench: utime=%0.3fs\n", ti / 1000000.0);
       }
       av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" frames successfully decoded, %"PRIu64" decoding errors\n",
              decode_error_stat[0], decode_error_stat[1]);
       if ((decode_error_stat[0] + decode_error_stat[1]) * max_error_rate < decode_error_stat[1])
           exit_program(69);

       ffmpeg_cleanup(received_nb_signals ? 255 : main_return_code);
       return main_return_code;
    }

    FFmpeg 3.2.5 main

    int main(int argc, char **argv) {
       av_log(NULL, AV_LOG_WARNING, " Command start");

       int i, ret;
       int64_t ti;
       init_dynload();

       register_exit(ffmpeg_cleanup);

       setvbuf(stderr, NULL, _IONBF, 0); /* win32 runtime needs this */

       av_log_set_flags(AV_LOG_SKIP_REPEATED);
       parse_loglevel(argc, argv, options);

       if (argc > 1 && !strcmp(argv[1], "-d")) {
           run_as_daemon = 1;
           av_log_set_callback(log_callback_null);
           argc--;
           argv++;
       }

       avcodec_register_all();
    #if CONFIG_AVDEVICE
       avdevice_register_all();
    #endif
       avfilter_register_all();
       av_register_all();
       avformat_network_init();

       av_log(NULL, AV_LOG_WARNING, " Register to complete the codec");

       show_banner(argc, argv, options);

       /* parse options and open all input/output files */
       ret = ffmpeg_parse_options(argc, argv);
       if (ret < 0)
           exit_program(1);

       if (nb_output_files <= 0 && nb_input_files == 0) {
           show_usage();
           av_log(NULL, AV_LOG_WARNING, "Use -h to get full help or, even better, run 'man %s'\n",
                  program_name);
           exit_program(1);
       }

       /* file converter / grab */
       if (nb_output_files <= 0) {
           av_log(NULL, AV_LOG_FATAL, "At least one output file must be specified\n");
           exit_program(1);
       }

    //     if (nb_input_files == 0) {
    //         av_log(NULL, AV_LOG_FATAL, "At least one input file must be specified\n");
    //         exit_program(1);
    //     }

       for (i = 0; i < nb_output_files; i++) {
           if (strcmp(output_files[i]->ctx->oformat->name, "rtp"))
               want_sdp = 0;
       }

       current_time = ti = getutime();
       if (transcode() < 0)
           exit_program(1);
       ti = getutime() - ti;
       if (do_benchmark) {
           av_log(NULL, AV_LOG_INFO, "bench: utime=%0.3fs\n", ti / 1000000.0);
       }
       av_log(NULL, AV_LOG_DEBUG, "%"PRIu64" frames successfully decoded, %"PRIu64" decoding errors\n",
              decode_error_stat[0], decode_error_stat[1]);
       if ((decode_error_stat[0] + decode_error_stat[1]) * max_error_rate < decode_error_stat[1])
           exit_program(69);

       exit_program(received_nb_signals ? 255 : main_return_code);

       nb_filtergraphs = 0;
       nb_input_streams = 0;
       nb_input_files = 0;
       progress_avio = NULL;


       input_streams = NULL;
       nb_input_streams = 0;
       input_files = NULL;
       nb_input_files = 0;

       output_streams = NULL;
       nb_output_streams = 0;
       output_files = NULL;
       nb_output_files = 0;

       return main_return_code;
    }

    So what could be issue ? It seems FFmpeg 4.0.2 doesn’t release something (resources or its static variables to initial values after the first command)

  • lavc/vaapi_encode_h26x : Fix a crash if "." is not the decimal separator.

    2 août 2016, par Carl Eugen Hoyos
    lavc/vaapi_encode_h26x : Fix a crash if "." is not the decimal separator.
    

    Fixes Debian bugs #831529, #831909, #832964.

    Signed-off-by : Mark Thompson <sw@jkqxz.net>

    • [DH] libavcodec/vaapi_encode_h264.c
    • [DH] libavcodec/vaapi_encode_h265.c