Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (6680)

  • Python get Audio/Video frames separately from video file

    3 juillet 2016, par AlvaroAV

    What i’m trying to do :

    Hi !

    I’m trying to store the Video and Audio information from a video file. I would like to store video frames and audio frames separately in different variables.

    My intention is to manage video/files and do some actions with the audio and video frame list, but to do what I’m plannign to do I need to store this audio/video frames separately. I’ve read a lot of questions in StackOverflow about python and audio/video managing.

    Most people recommend to use OpenCV or ffmpeg to manage videos. I saw some scripts using these libraries to get video(only video) frames, but none of them are getting audio, most of them are just getting video frames and save them as RGB images. I also check some scripts where people get audio frames from a mp3 file, but I’m not sure if you can do that in a video file

    Most important thing to me is to know the best way to manage video and audio separately. I’m not looking for people to do my code, just asking to point me in a good direction.

    One of the things I’m trying to do is to send this information via socket, but as I said I need the audio and video frames to be in separated variables (yes, i’m wondering about an stream app, but that’s not the only thing I’m trying to do)

    I know I should give more information, and maybe show some code, but I don’t have any concret code I tried some things, but I’ve never been capable to separate audio and video. I know that each format has his own encryption, and at the end I decided to use "mp4" as video format but I don’t know neither if this is the best format for what I’m trying to do.

    Resume :

    Is openCV the best way to manage video and audio separately ?

    Wich is the easiest way to separate video and audio frames ? Is it possible ?

    Wich is the best documentation I should read to learn about video/audio management ?

    I would like to do the things with my own code, and use in the less way possible openCV or other libraries.

    My "basic" idea is to get a "list" of audio and video frames, and then I would like to do some operations, but right now I can’t find the best way for me to manage a vide using python. I even wonder if could be possible to manage a video as raw data

    I need to know wich is the best library to manage videos using python, for me the best library, will be the one that allows me to manage the videos more "freely"

    I’ve already checked :

    I’ve read too many questions on this theme, the most recent are :

    How to extract audio from video file

    Split audio video separately from given video using MLT

    Embed audio video in python gui

  • Using FFMpeg with Asp .Net Core and video stream

    15 août 2022, par Gaetano Lenoci

    I'm implementing an API that allows the user to send a video stream and generate thumbnails. I'm using asp.net core and Azure Blob Storage. The interface of API is this :

    


        [HttpPost]
    [Route("test_upload")]
    public IActionResult TestUpload( IFormFile mediaFile ) {
        //->store mediaFile
        //->generate thumbnail
        //->save thumbnail
        return Ok();
    }


    


    I need to do two main things :

    


      

    1. Generate a thumbnail
    2. 


    3. Get video information such as the duration
    4. 


    


    I tried to use libraries from Nuget, but all of this needs the file path and I don't have the file path, just the video Stream or the Blob from the Blob Storage after saving. So, my question is, how can I manage video directly from the stream using FFmpeg or another tool ?

    


    I know Azure Media Services provide a lot of tools to manage media files such as videos and audio, but it's too slow for videos that are just 2Mb and 30 seconds long. And I don't need to encode the video, create streams or other things like that. I just need to take video information from a Stream and store the video on the Storage.

    


    Any idea ? Thanks !

    


    Update 1 :
I wrote a workaround by creating a folder for temporary videos, I just save the video in this folder, create the thumbnail and delete the temp file. But I don't know if this practice has some bad side effects.

    


  • Edit audio files on the server with Meteor

    28 décembre 2015, par Mohammed Hussein

    I am building a Meteor application to split uploaded audio files.

    I upload the audio files and store them using GridFS :

    child = Npm.require('child_process');

    var fs = Npm.require('fs');

    storagePath= fs.realpathSync(process.env.PWD+'/audio');

    StaticServer.add('/audio', clipsPath);

    and then using a method I split the audio file using :

    child.exec(command);

    the command is the ffmpeg command used to cut the source audio file and store it on the storagePath.

    The application worked fine locally but when I tried to deploy it to digital ocean I got errors, stating that the file /audio does not exist.
    I use mupx to deploy and the error appears after "verifying deployment".

    Here is the error :

       -----------------------------------STDERR-----------------------------------
       eteor-dev-bundle@0.0.0 No README data
       => Starting meteor app on port:80

       /bundle/bundle/programs/server/node_modules/fibers/future.js:245
                                                       throw(ex);
                                                             ^
       Error: ENOENT, no such file or directory '/bundle/bundle/audio'
           at Object.fs.lstatSync (fs.js:691:18)
           at Object.realpathSync (fs.js:1279:21)
           at server/startup.js:10:20
           at /bundle/bundle/programs/server/boot.js:249:5
       npm WARN package.json meteor-dev-bundle@0.0.0 No description
       npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
       npm WARN package.json meteor-dev-bundle@0.0.0 No README data
       => Starting meteor app on port:80

       /bundle/bundle/programs/server/node_modules/fibers/future.js:245
                                                       throw(ex);
                                                             ^
       Error: ENOENT, no such file or directory '/bundle/bundle/audio'
           at Object.fs.lstatSync (fs.js:691:18)
           at Object.realpathSync (fs.js:1279:21)
           at server/startup.js:10:20
           at /bundle/bundle/programs/server/boot.js:249:5

       => Redeploying previous version of the app

       -----------------------------------STDOUT-----------------------------------

       To see more logs type 'mup logs --tail=50'

       ----------------------------------------------------------------------------

    The main question is how to generate an output file using ffmpeg and store it in a place where I can access it and display it in the browser.