Recherche avancée

Médias (91)

Autres articles (28)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (5443)

  • Cannot find installation of real FFmpeg (which comes with ffprobe)

    29 mars 2023, par Asm Goni

    I was trying to fit a generator into a model and I got this error : 
AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe).

    



    I have looked over many of the solutions on GitHub and other questions on Stack Overflow but none of them worked for me.

    



    Here is one of the commands I ran :

    



    sudo add-apt-repository ppa:mc3man/trusty-media  
sudo apt-get update  
sudo apt-get install ffmpeg  
sudo apt-get install frei0r-plugins  


    



    pip list also indicates the presence of ffmpeg-1.4

    



    In addition, I tried force reinstalling and updating ffmpeg just in case any dependencies were not installed properly.

    



    I also set the skvideo's path for ffmpeg manually :

    



    skvideo.setFFmpegPath('/usr/local/lib/python3.6/dist-packages/ffmpeg/')


    



    This returns : /usr/local/lib/python3.6/dist-packages/skvideo/__init__.py:306: UserWarning: ffmpeg/ffprobe not found in path: /usr/local/lib/python3.6/dist-packages/ffmpeg/
  warnings.warn("ffmpeg/ffprobe not found in path: " + str(path), UserWarning)

    



    By the way, when I try installing, it also returns this error, I don't know what to do about this :

    



    Get:127 http://archive.ubuntu.com/ubuntu bionic/main amd64 vdpau-driver-all amd64 1.1.1-3ubuntu1 [4,674 B]
Fetched 60.4 MB in 7s (8,769 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/wavpack/libwavpack1_5.1.0-2ubuntu1.1_amd64.deb  404  Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


    



    I ran apt-get update --fix-missing and that didn't make anything better.

    



    Is there a solution to this ?

    


  • Cocaine::CommandNotFoundError

    6 décembre 2018, par Haseeb Ahmad

    Using paperclip-ffmpeg for video uploading.

    When I upload it gives an error

    Cocaine::CommandNotFoundError (Cocaine::CommandNotFoundError):
    app/controllers/ads_controller.rb:27:in `create

    Cannot render console with content type multipart/form-dataAllowed content types: [#, #, #]

    My model is

    has_attached_file :videod, :styles => {
     :medium => { :geometry => "640x480", :format => 'flv' },
     :thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
    }, :processors => [:ffmpeg]
    validates_attachment_size :videod, :less_than => 100.megabytes
    validates_attachment_presence :videod
    validates_attachment_content_type :videod, :content_type => /\Avideo\/.*\Z/

    My Gemfile is

    gem "cocaine"
    gem 'paperclip-ffmpeg'
  • Send MP3 audio extracted from m3u8 stream to IBM Watson Speech To Text

    20 novembre 2018, par Link69

    I’m extracting audio in MP3 format from a M3U8 live url and the final goal is to send the live audio stream to IBM Watson Speech To Text. The m3u8 is obtained by calling an external script via a Process. Then I use FFMPEG script to get the audio in stdout. It works if I save the audio in a file but I don’t want to save the extracted audio, I need to send the datas directly to the STT service. So far I proceeded like this :

    SpeechToTextService speechToTextService = new SpeechToTextService(sttUsername, sttPassword);
    string m3u8Url = "https://something.m3u8";
    char[] buffer = new char[48000];
    Process ffmpeg = new ProcessHelper(@"ffmpeg\ffmpeg.exe", $"-v 0 -i {m3u8Url} -acodec mp3 -ac 2 -ar 48000 -f mp3 -");

    ffmpeg.Start();
    int count;
    while ((count = ffmpeg.StandardOutput.Read(buffer, 0, 48000)) > 0)
    {
       ffmpeg.StandardOutput.Read(buffer, 0, 48000);
       var answer = speechToTextService.RecognizeSessionless(
           audio: buffer.Select(c => (byte)c).ToArray(),
           contentType: "audio/mpeg",
           smartFormatting: true,
           speakerLabels: false,
           model: "en-US_BroadbandModel"
       );
       // Get answer.ResponseJson, deserializing, clean buffer, etc...
    }

    When requesting the transcribed audio I’m getting this error :

    An unhandled exception of type 'System.AggregateException' occurred in IBM.WatsonDeveloperCloud.SpeechToText.v1.dll: 'One or more errors occurred. (The API query failed with status code BadRequest: Bad Request | x-global-transaction-id: bd6cd203720a70d83b9a03451fe28973 | X-DP-Watson-Tran-ID: bd6cd203720a70d83b9a03451fe28973)'
    Inner exceptions found, see $exception in variables window for more details.
    Innermost exception     IBM.WatsonDeveloperCloud.Http.Exceptions.ServiceResponseException : The API query failed with status code BadRequest: Bad Request | x-global-transaction-id: bd6cd203720a70d83b9a03451fe28973 | X-DP-Watson-Tran-ID: bd6cd203720a70d83b9a03451fe28973
      at IBM.WatsonDeveloperCloud.Http.Filters.ErrorFilter.OnResponse(IResponse response, HttpResponseMessage responseMessage)
      at IBM.WatsonDeveloperCloud.Http.Request.<getresponse>d__30.MoveNext()
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at IBM.WatsonDeveloperCloud.Http.Request.<asmessage>d__23.MoveNext()
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at IBM.WatsonDeveloperCloud.Http.Request.<as>d__24`1.MoveNext()
    </as></asmessage></getresponse>

    ProcessHelper is just for convenience :

    class ProcessHelper : Process
    {
       private string command;
       private string arguments;
       public ProcessHelper(string command, string arguments, bool redirectStandardOutput = true)
       {
           this.command = command;
           this.arguments = arguments;
           StartInfo = new ProcessStartInfo()
           {
               FileName = this.command,
               Arguments = this.arguments,
               UseShellExecute = false,
               RedirectStandardOutput = redirectStandardOutput,
               CreateNoWindow = true
           };
       }
    }

    Pretty sure I’m doing it wrong, I’d love someone to shine a light on this. Thanks.