Recherche avancée

Médias (91)

Autres articles (67)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

  • How to read AVOptions from HTTPContext ?

    27 août 2013, par Jona

    How can I read HTTPContext::icy_metadata_packet and HTTPContext::icy_metadata_headers ? I see mentioned on the http.c file that those fields should be read from AVOptions but I don't know how to do that.

    I have tried the following but it just doesn't return anything.

    const AVOption *optFound = av_opt_find(pFormatCtx->priv_data, "icy_metadata_packet", NULL, 0, 0);

    if (optFound)
    {
       LOGD("############### META='%s'",optFound->name);
    }
  • Cannot use pydub.AudioSegment on audio files downloaded by youtube-dl library

    26 octobre 2018, par Han M

    After I download a audio clip from a youtube link by the youtube-dl library, I cannot use pydub.AudioSegment to slice the audio file. The following is the information about my code.

    import youtube_dl
    options = {
           'format': 'bestaudio/best',
           'extractaudio': True,  # only keep the audio
           'audio-format': "wav",  # convert to wav
           'outtmpl': whole_path,  # name the file the ID of the video
           'noplaylist': True,  # only download single song, not playlist
           'audioquality': 1
    }
    with youtube_dl.YoutubeDL(options) as ydl:
       print('url is:', web_url)
       ydl.download([web_url])

    from pydub import AudioSegment
    audio_data = AudioSegment.from_wav(path_to_downloaded_file)

    Then, I got an error as follows first on Mac and second on Linux :

    b'avconv version 12.3, Copyright (c) 2000-2018 the Libav developers\n  built on Jul 26 2018 18:08:50 with Apple LLVM version 9.1.0 (clang-902.0.39.2)\n/Users/***/random17560390.wav: Invalid data found when processing input\n'

    b'ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers\n  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609\n  configuration: --prefix=/usr --e
    xtra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-
    shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-li
    bbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmod
    plug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-li
    bspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --e
    nable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv\n  libavutil      54. 31.100 / 54.
    31.100\n  libavcodec     56. 60.100 / 56. 60.100\n  libavformat    56. 40.101 / 56. 40.101\n  libavdevice    56.  4.100 / 56.  4.100\n  libavfilter     5. 40.101 /  5. 40.101\n  libavresa
    mple   2.  1.  0 /  2.  1.  0\n  libswscale      3.  1.101 /  3.  1.101\n  libswresample   1.  2.101 /  1.  2.101\n  libpostproc    53.  3.100 / 53.  3.100\n[wav @ 0x20854c0] invalid start
    code [0][0][0][28] in RIFF header\n/home/users/test_download/random10485395.wav: Invalid data found when processing input\n'

    I think the problem might be about the encoding on the downloaded files by youtube-dl. I can use pydub.AudioSegment on other normal .wav files. After checking the details of the downloaded file by youtube-dl, I found the following feature :

    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)

    It is different from other normal .wav files, which have the following :

    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
  • Lost connection to youtube ffmpeg

    18 juin 2020, par SorveO

    When playing ffmpeg loses connection, reconnection is not recommended because there is unwanted overdrive/lag. I am looking for an option that will allow me to save a few seconds in the (live) cache, then play the audio with a delay.

    



    As I currently enable ffmpeg

    



    ffmpeg -nostats -threads 1 -i https://r1---sn-25glene6.googlevideo.com/videoplayback?... -ac 2 -ar 48000 -f s16le -acodec pcm_s16le pipe:1


    



    In conclusion, I would like to limit interruption to a minimum (preferably completely).