Recherche avancée

Médias (91)

Autres articles (75)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (8108)

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

  • 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'
  • 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 : &#xA;AssertionError: Cannot find installation of real FFmpeg (which comes with ffprobe).

    &#xA;&#xA;

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

    &#xA;&#xA;

    Here is one of the commands I ran :

    &#xA;&#xA;

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

    &#xA;&#xA;

    pip list also indicates the presence of ffmpeg-1.4

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

    skvideo.setFFmpegPath(&#x27;/usr/local/lib/python3.6/dist-packages/ffmpeg/&#x27;)&#xA;

    &#xA;&#xA;

    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/&#xA;  warnings.warn("ffmpeg/ffprobe not found in path: " &#x2B; str(path), UserWarning)

    &#xA;&#xA;

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

    &#xA;&#xA;

    Get:127 http://archive.ubuntu.com/ubuntu bionic/main amd64 vdpau-driver-all amd64 1.1.1-3ubuntu1 [4,674 B]&#xA;Fetched 60.4 MB in 7s (8,769 kB/s)&#xA;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]&#xA;E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?&#xA;

    &#xA;&#xA;

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

    &#xA;&#xA;

    Is there a solution to this ?

    &#xA;