Recherche avancée

Médias (91)

Autres articles (79)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7675)

  • Call ffmpeg command from matlab (ubuntu 12.04)

    30 novembre 2014, par bigpig245

    I’m trying to call ffmpeg function to get duration of video from matlab. In command line, it returns ok :

    ntrang@ubuntu:~$ ffmpeg -i /home/ntrang/projects/dataset/hmdb51/01_test/a1.avi 2>&1 | sed -n "s/.*Duration: \([^,]*\), .*/\1/p"

    it returns 00:00:18.03

    But when I call it from matlab by system command :

    >> system('ffmpeg -i /home/ntrang/projects/dataset/hmdb51/01_test/a1.avi 2>&1 | sed -n "s/.*Duration: \([^,]*\), .*/\1/p"');

    it returns empty.

    This is my env setting in Matlab

    LD_LIBRARY_PATH='/usr/local/MATLAB/R2013a/sys/os/glnxa64:/usr/local/MATLAB/R2013a/bin/glnxa64:/usr/local/MATLAB/R2013a/extern/lib/glnxa64:/usr/local/MATLAB/R2013a/runtime/glnxa64:/usr/local/MATLAB/R2013a/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/R2013a/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/R2013a/sys/java/jre/glnxa64/jre/lib/amd64'

    PATH='/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.7.0_51/bin'

    I also create symbolic link for libstdc but it can help nothing...

    I have looking around on Internet for solution but not so good so far... What should I do ?

    I’m using Matlab R2013a on Ubuntu 12.04.5 LTS 64bit...

    Thanks in advance.

  • How to encode with ffmpeg PCM to AAC with different sample formats ?

    1er août 2014, par user2212461

    I’m using the following code to encode PCM to AAC using libav. It works with sample_fmt = AV_SAMPLE_FMT_S16 ; and a newer release of liabv. In older versions, only sample_fmt = AV_SAMPLE_FMT_FLT is allowed, but then the decoder always returns 0 (nothing decoded). What in the code do I need to adapt in order to make it work with sample_fmt = AV_SAMPLE_FMT_S16 ? Is sample_fmt the input or output format ?

    avcodec_register_all();
    codec = avcodec_find_encoder(CODEC_ID_AAC);
    c = avcodec_alloc_context3(codec);

    c->bit_rate   = 64000;
    c->sample_rate= 44100;
    c->channels   = 1;
    c->frame_size = 86000;
    c->sample_fmt = AV_SAMPLE_FMT_FLT;//---> this works with AV_SAMPLE_FMT_S16

    buf = (uint8_t *)malloc(bufSize);
    audioData = (uint8_t *)malloc(size);

    //fill audioData

    int packetSize = avcodec_encode_audio(c, buf, bufSize,
            (short *)audioData);//------>returns 0 when using AV_SAMPLE_FMT_FLT
  • avformat/unix : fix handling of EOF in case of SOCK_STREAM.

    20 mars 2018, par Bela Bodecs
    avformat/unix : fix handling of EOF in case of SOCK_STREAM.
    

    When recv() returns 0 in case of SOCK_STREAM type, it means EOF and with
    this patch returns value accordingly.

    Signed-off-by : Bela Bodecs <bodecsb@vivanet.hu>

    • [DH] libavformat/unix.c