Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (59)

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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

Sur d’autres sites (3146)

  • avcodec/bsf : Fix segfault when freeing half-allocated BSF

    2 avril 2021, par Andreas Rheinhardt
    avcodec/bsf : Fix segfault when freeing half-allocated BSF
    

    When allocating a BSF fails, it could happen that the BSF's close
    function has been called despite a failure to allocate the private data.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/bsf.c
  • Extracted .wav file from .mp4 video with ffmpeg only has half of the duration

    16 mars 2021, par TheSprinter

    I've been using ffmpeg to extract .wav files from .mp4 videos to then generate waveforms and spectrograms for it, but I stumbled upon a file for which ffmpeg does not generate the full audio file. The video duration is 25:25 (25 minutes and 25 seconds), but the .wav file is 12:28 (12 minutes and 28 seconds).

    &#xA;

    This is what I've been doing :

    &#xA;

    C:\Users\<user>> ffmpeg -i video.mp4 -ab 160k -ac 1 -ar 44100 -vn audio.wav&#xA;</user>

    &#xA;

    I tried with -ac 2 only to see if I get something different, but the result is the same. In fact, I can't generate the plots I need with a stereo audio file.

    &#xA;

    This is what I get in the terminal when I run the command :

    &#xA;

    C:\Users\<user>>ffmpeg -i video.mp4 -ab 160k -ac 1 -ar 44100 -vn audio.wav&#xA;ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200621&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;audio.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    creation_time   : 2021-03-09T05:00:00.000000Z&#xA;  Duration: 00:25:25.29, start: 0.000000, bitrate: 2308 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 4410 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-03-09T05:00:00.000000Z&#xA;      handler_name    : ?Mainconcept Video Media Handler&#xA;      encoder         : AVC Coding&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 253 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-03-09T05:00:00.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (aac (native) -> pcm_s16le (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, wav, to &#x27;audio.wav&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    ISFT            : Lavf58.45.100&#xA;    Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-03-09T05:00:00.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;      encoder         : Lavc58.91.100 pcm_s16le&#xA;size=   64463kB time=00:12:28.41 bitrate= 705.6kbits/s speed= 156x&#xA;video:0kB audio:64463kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000118%&#xA;</user>

    &#xA;

    If this information on the video is not enough to troubleshoot, the video says the following (when it starts, for the first few seconds) :

    &#xA;

    &#xA;EP TRT (23.976): 01:24:53:18&#xA;EP TRT (29.976): 01:24:55:06&#xA;&#xA;AUDIO LAYOUT&#xA;&#xA;Channel 1: Left Front (L)&#xA;Channel 2: Right Front (R)&#xA;Channel 3: Center (C)&#xA;Channel 4: Low Frequency/Effects (LFE)&#xA;Channel 5: Left Surround (Ls)&#xA;Channel 6: Right Surround (Rs)&#xA;Channel 7: Mono Mix (L)&#xA;Channel 8: Mono Mix (R)&#xA;

    &#xA;

    This is for TV, that's why you see that longer duration. I don't know if all this is relevant, actually.

    &#xA;

    Some additional info

    &#xA;

    Something curious is that I'm doing this for manual tests, but I'm actually creating an app with python and, for that, I'm using python-ffmpeg module, and I with that I'm getting the correct .wav file (with the correct duration). The python lines for this are the following :

    &#xA;

    (&#xA;                        ffmpeg&#xA;                        .input(&#xA;                            &#xA;                        )&#xA;                        .output(&#xA;                            ,&#xA;                            audio_bitrate=316000,&#xA;                            ac=1,&#xA;                            ar=48000&#xA;                        )&#xA;                        .run()&#xA;)&#xA;

    &#xA;

  • avcodec/exr : add lut oriented half to float conversion code

    28 février 2021, par Paul B Mahol
    avcodec/exr : add lut oriented half to float conversion code
    
    • [DH] libavcodec/exr.c
    • [DH] libavcodec/half2float.h