Recherche avancée

Médias (91)

Autres articles (41)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (5726)

  • How to implement Seekbar for a video player playing FFmpeg pipe output in Flutter ?

    19 avril 2022, par Lins Louis

    I was about to create a video player that can play FFmpeg pipe output in flutter. Luckily i found a solution with Github project flutter-ffmpeg, Thanks @tanersener for this amazing project https://github.com/tanersener/flutter-ffmpeg

    


    Below I am mentioning the comment that helped me to achieve the feature i was looking for

    


    https://github.com/tanersener/flutter-ffmpeg/issues/92#issuecomment-606051974

    


    thanks, @reeckset also.

    


    BTW, my current issue is, that I didn't find any solution on how to seek my video player that plays a pipe output of ffmpeg. Is there anything I can do for implementing a Seekbar in my video player

    


  • Receiving multiple files from ffmpeg via subprocesses.PIPE

    11 avril 2022, par Per Plexi

    I am using ffmpeg to convert a video into images. These images are then processed by my Python program. Originally I used ffmpeg to first save the images to disk, then reading them one by one with Python.

    



    This works fine, but in an effort to speed up the program I am trying to skip the storage step and only work with the images in memory.

    



    I use the following ffmpeg and Python subproccesses command to pipe the output from ffmpeg to Python :

    



    command = "ffmpeg.exe -i ADD\\sg1-original.mp4 -r 1 -f image2pipe pipe:1"
pipe = subprocess.Popen(ffmpeg-command, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
image = Image.new(pipe.communicate()[0])


    



    The image variable can then be used by my program. The problem is that if I send more than 1 image from ffmpeg all the data is stored in this variable. I need a way to separate the images. The only way I can think of is splitting on jpeg markers end of file (0xff, 0xd9). This works, but is unreliable.

    



    What have I missed regarding piping files with subproccesses. Is there a way to only read one file at a time from the pipeline ?

    


  • Output video to both file and pipe : simultaneously using FFmpeg Libav

    27 mai 2022, par Hillel Rosensweig

    I have been trying to output video (from my webcam) simultaneously to both a file ('out.mkv') and pipe :
The file gets filtered frames, and the pipe : gets unfiltered rawvideo.
My frame rate is 30 fps. However, I am getting a far lower framerate in my file output.

    


    Attached is the while loop which reads packets and writes them to output :

    


    while (1) {
    av_read_frame(ifmt_ctx, packet);
    stream_index = packet->stream_index;
    StreamContext *stream = &file_stream_ctx[stream_index];
    av_packet_rescale_ts(packet,
                     ifmt_ctx->streams[stream_index]->time_base,
                     stream->dec_ctx->time_base);
    avcodec_send_packet(stream->dec_ctx, packet);

    while (ret >= 0) {
        avcodec_receive_frame(stream->dec_ctx, stream->dec_frame);
        stream->dec_frame->pts = stream->dec_frame->best_effort_timestamp;
        ret = filter_encode_write_frame(stream->dec_frame, stream_index,file_stream_ctx,file_filter_ctx, file_ofmt_ctx);
        ret = av_interleaved_write_frame(pipe_ofmt_ctx, packet);
    }
}


    


    'ifmt_ctx' is the AVFormatContext for the webcam.
'file_ofmt_ctx', is the AVFormatContext for the pipe for the output file, and pipe_ofmt_ctx is the AVFormatContext.
'file_stream_ctx' and 'file_filter_ctx' are the stream and filter contexts used for filtering and encoding the file output.

    


    My guess is that writing to the pipe is taking too long and not allowing the next packet to be read on time - causing a lower frame rate. Does that make sense ? If so - any suggestions on how to fix it ? (I tried using AVFMT_FLAG_NONBLOCK but it doesn't seem to help).

    


    Thanks
Hillel