Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (111)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (7367)

  • Using NReco ConvertLiveMedia with FFMPEG

    2 juillet 2020, par Alex

    I'm working with video files in my .net application using NReco's ffmpeg wrapper. I can easily convert videos if I point the ConvertMedia to an existing file with a path, but I really want to convert the file via a stream and not a path (before even saving it).

    


    Next to the ConvertMedia method, there's also a ConvertLiveMediaTask method that accepts a stream instead of a path, but that's for streaming videos or something ?

    


    It says I can create a task for live stream conversion (real-time) that reads data from stream and writes conversion result to the file, but I can't get it to work and I can't find a working example of it on the Internet.

    


    Does anyone have any experience with this ?

    


    I always get an exception with error code 1 when I call convertLiveMediaTask.Wait() or when I call convertLiveMediaTask.Write(). The inputStream that I provide the ConvertLiveMedia method starts at position 0 and ends up at position 113654 so SOMETHING is happening, but the new MemoryStream that I provide never gets anything written into it.

    


    Am I supposed to provide it with something specific in the ConvertSettings parameter ?

    


    private MemoryStream ConvertVideo(HttpPostedFileWrapper file)
        {
            if (file == null || file.ContentLength == 0)
            {
                return null;
            }

            var ffMpeg = new FFMpegConverter();
            var s = new MemoryStream();
            var convertLiveMediaTask = ffMpeg.ConvertLiveMedia(file.InputStream, Format.avi, s, Format.mp4, new ConvertSettings());            
            convertLiveMediaTask.Start();                
            convertLiveMediaTask.Wait(); // Throws Exception
            return s;
}
            


    


    Someone please help. I've been told this can work, but I haven't been able to get it to work at all.

    


  • Adding subtitles to video using Laravel FFMpeg

    13 juin 2024, par Pieter van der Mullen

    I've been trying to convert my console command to work with the Laravel FFMpeg package. The issue that I've been running into is that the available Filters are not really well documented.


    This is the Laravel code that is not working. The only part that does not work is the last addFilter part with the srt and font file.

    


                FFMpeg::fromDisk('local')
            ->open([$backgroundImage, $audioFile])
            ->export()
            ->toDisk('local')
            ->addFilter(function (FrameFilters $filters) {
                $filters->custom('scale=1920:1080');
            })
            ->addFormatOutputMapping(
                new X264,
                Media::make('local', $newVideoPath),
                ['0:v', '1:a']
            )
            ->addFilter(function ($filters) use ($srtFile, $fontFile) {
                $filter = "pad=1920:1080:0:0:color=black,subtitles={$srtFile}:force_style='Fontname={$fontFile},Alignment=10,Fontsize=36,BorderStyle=3,Outline=1,OutlineColour=&HFFFFFF&,PrimaryColour=&H008d7f00&'";
                $filters->custom('0:v', '0:v', $filter);
            })
            ->save();


    


    The command which I used to use in the console using Symphony Process was :

    


    '-vf', "pad=1920:1080:0:0:color=black,subtitles=$srtFile:si=0:force_style='Fontname=$fontFile,Alignment=10,Fontsize=36,BorderStyle=3,Outline=1,OutlineColour=&HFFFFFF&,PrimaryColour=&H008d7f00&'"


    


    Is there anyone who has experience doing this ?

    


  • Scheduling an RTMP stream remotely - using an intermediary server for storing + sending video stream packets before deploying to streaming service

    25 février 2020, par hedgehog90

    This is more of a curiosity than something I really need, but I thought I’d ask anyway.

    If I just want setup a normal livestream, I would use something like OBS, capture my input, encode it into something manageable for my network and send it to a remote rtmp server.

    But I’d like to know if it’s possible to put an intermediary remote server between myself and the streaming service’s server. Basically so I can manage the stream (if it’s a playlist) and schedule when to send it to broadcast on the streaming service.

    It’s also worth noting that there may be limited bandwidth on the client-side (my computer), assuming the intermediary has greater bandwidth, this method should eliminate the common issue of dropping frames while streaming.

    Now for an example :

    To make it simpler, instead of using OBS + capture hardware, I’m using a video file.
    I want to encode that video in the same way that OBS does when streaming to a remote server via an rtmp protocol using ffmpeg.

    Now I upload that data, at my own rate, to a remote server that I control (running Ubuntu) for storage and eventual deployment. Importantly, I do not want or require any video-processing done on the intermediary server, as we have already encoded the data for deployment on the client-side. This is just simply managing and storing the data.

    A day later, I want to run a script on my intermediary server that will then send the processed stream data, packet by packet, to the targeted streaming server.


    I’m an experienced coder, with lots of experience with data handling and video encoding. It should be simple, but I’m not all that clued up on the way video streaming via RTMP works.