Recherche avancée

Médias (91)

Autres articles (50)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (8390)

  • OpenFaas. Write python function with FFmpeg using

    11 août 2021, par Валентин Никин

    I need to write OpenFaas function which can accept binary file as parameter. This function will extract some data from that binary file. Based on that data function will generate ffmpeg command. And finally function must be call ffmpeg to process generated command and return file as output.

    


    Function language must be python, because I need to use some python modules to process input binary file.

    


    The main questions :

    


      

    1. Can I accept binary a file as function parameter (in python function) ?
    2. 


    3. Can I call ffmpeg from python function, and return binary file as output ?
    4. 


    


    I have already met with alexellis official example (https://github.com/alexellis/openfaas-streaming-templates) but that example used bash language.

    


    I have one idea, but I don't know is it correct.
Maybe I can use example with bash, to accept binary file as parameter, then I call python script, after that I call ffmpeg, and return file as output as described in the example.
But I need some python modules available with pip. So, I don't know how I can got this.

    


    I'm newest in OpenFaas, so any idea would be appriciated

    


  • FFMPEG Command failing in script

    12 octobre 2016, par Jerry

    I have a nodejs script/server that is running an ffmpeg screenshot command every 30 seconds. I have a list of files that I want to screenshot every loop, and I simply feed it into the command like so :

    exec("ffmpeg -ss 00:00:01 -i /secondary/videos/"+file+" -y -vframes 1 -q:v 2 /secondary/snapshots/"+camera_id+".jpg && scp /secondary/snapshots/"+camera_id+".jpg user@host:/path/to/site/img/snapshots/ && rm /secondary/snapshots/"+camera_id+".jpg", function(err,stdo,stde){
    });

    file is an absolute path to an flv file such as "vid123.flv". camera_id is an id from a local database of my home security cameras, so they’re numbered 1-100. An example command I’m trying to run is this :

    exec("ffmpeg -ss 00:00:01 -i /secondary/videos/vid123.flv -y -vframes 1 -q:v 2 /secondary/snapshots/1.jpg && scp /secondary/snapshots/1.jpg user@host:/path/to/site/img/snapshots/ && rm /secondary/snapshots/1.jpg", function(err,stdo,stde){
    });

    However, when I run this in node, I get an ffmpeg error saying "/secondary/videos/vid123.flv : No such file or directory". If I run the same command in the terminal, I get the correct/expected results - a snapshot/frame at 00:00:01 is taken, saved to a jpg in /secondary/snapshots/, scp’d to another server, and removed from the /secondary/snapshots directory.

    I’m raking my brain right now and I can’t figure out why the different results for the same command.

    Any help/tips are appreciated !

  • publish chromium rendered view to ffmpeg/libav

    21 février 2014, par user3337537

    I would like to publish chromium rendered view to ffmpeg/libav stream instead of showing it on the operating window system.
    Also plugins like flash should be included in the stream. I don't know much about chromium rendering yet.

    I know there are command like "ffmpeg -f x11grab -s 1280x720" ... But i would like to do this right from chrome to publish mutliple tabs at the same time.

    How would you estimate the development effort for that ?