Recherche avancée

Médias (91)

Autres articles (32)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • How to specify the audio path for ffmpeg and how to conduct a silence removal using ffmpeg

    15 octobre 2020, par Leo

    I wish to conduct a silence removal for wav files.

    


    import ffmpeg
inPath = "/home/test/Speech/Wang/dataset/testsets/disgust/0_002_00_021_F002_d.wav"
outPath = "/home/test/Speech/Wang/dataset/testsets/disgust/0_002_00_021_F002_d_trimed.wav"
ffmpeg -i inPath -af silenceremove=0:0:-50dB outPath


    


    Error occurred.

    


      File "", line 3
    ffmpeg -i inPath -af silenceremove=0:0:-50dB outPath
                   ^
SyntaxError: invalid syntax


    


    How should I assign the path ?

    


    The question is that why we set the threshold to a negative value ?

    


  • Generating thumbnail from video using php classes

    4 janvier 2014, par user2582858

    I was using the exec command to generate thumbnails via ffmpeg..
    My method was :

    exec("ffmpeg -f image2 -i /home/phedra/imgs/image/img%03d.png -r 12 -s 610x489 /home/phedra/imgs/video/out.avi", $out);

    but my senior team member told me that using exec command is not a good practice because it is a dangerous command and It may harm server.. So find any other technique.. I struggled alot but didnt find any comprehensive method other than this..
    Can anybody tell me anyother way to generate thumbnail from video using php class from scratch (With an example if possible), so that I could understand completely, Moreover also tell me the library link to download and settings for server if any setting needed to be done before using that technque(My server system is based on Ubuntu and the framework for developement is codeignitter)..

    (Third party api tool for generating thumbnail is also welcome but the necessary thing is that it must be free :))

  • FFMPEG : ‘PIX_FMT_BGR24’ was not declared in this scope

    9 août 2016, par msz

    I am building a simple decoding application using FFMPEG API. I know there are solutions available in OpenCV but for specific reason I am refraining myself from using that. Since I am very new to FFMPEG (and to this community as well), I would like to know if there is any mistake that I might have done while building FFMPEG.

    Compiler : I am using gcc 5.3.0 for compilation and building.

    Following are the steps that I followed :

    1. I have build FFMPEG library using following configuration :

      ./configure —prefix=/home/dep/ffmpeg/install/ —pkg-config-flags=—static —enable-gpl —disable-yasm

    2. My compiling command is for the application :

      g++ -std=c++11 -I/home/dep/ffmpeg/install/include/ Queue.cpp Image.cpp CaptureFFMPEGFrame.cpp Object.cpp main.cpp -o main -L/home/dep/ffmpeg/install/lib -lavutil -lavcodec -lavformat -lavdevice -lavfilter -lswscale -lswresample -lpostproc -lpthread -lz -lrt -llzma -lbz2

    The error I am facing is :

    CaptureFFMPEGFrame.cpp:203:169: error: ‘PIX_FMT_BGR24’ was not declared in this scope
        mpFrameSwsContext = sws_getContext(mpAVCodecContext->width, mpAVCodecContext->height, mpAVCodecContext->pix_fmt, mpAVCodecContext->width, mpAVCodecContext->height, PIX_FMT_BGR24, SWS_BICUBIC, NULL, NULL, NULL)

    My effort and understanding :

    1. From my understanding, libavutil/pixfmt.h contains pixel formats which I included along with other includes and the error persists. You can also see libraries I have included along with my application.

    2. Since my program is cpp code, therefore my headers are already included using extern "C", i.e. #include "libavcodec/avcodec.h"

    Anything I might have missed ?

    Many thanks.