Recherche avancée

Médias (91)

Autres articles (61)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3956)

  • How do i use libavfilter to deinterlace frames in my video player software

    19 juin 2014, par justanothercoder

    I’m using libavformat/libavcodec/libswscale/libavutil/libavfilter (ffmpeg related libraries) to make a video player.

    I’v gotten into issues with interlaced videos, it just pairs them incorrectly... It always draws the previous bottom frame with the current top frame. Which results in things I don’t want. And i’v tried messing about with the variables around this, it just won’t work. (I haven’t found a player which would play the videos I have correctly, no you can’t have them, i’m sorry)

    I managed to find a way around this, by re-encoding the video with the following command :

    ffmpeg -i video.mp4 -filter:v yadif -vcodec mpeg4 out.avi

    Now what i’d need is directions on how to do this with c++ code, inside my video player.

    I haven’t found any tutorials on the matter and the ffmpeg.c source code is just too alien to me.

    A link to a tutorial would be fine, i just haven’t found it..

    Edit :

    Also this example was worth checking out :

    https://github.com/krieger-od/imgs2video/blob/master/imgs2video.c

    It’s by a gentleman named Andrey Utkin

  • Piping to FFMPEG with Python subprocess freezes

    5 décembre 2016, par Simon Streicher

    With the following code, I am able to pipe frames of a video to FFMPEG using Python, Numpy and the FFMPEG binaries :

    from __future__ import print_function
    import subprocess
    import numpy as np
    import sys

    npshape = [480, 480]
    cmd_out = ['ffmpeg',
              '-y', # (optional) overwrite output file if it exists
              '-f', 'rawvideo',
              '-vcodec','rawvideo',
              '-s', '%dx%d'%(npshape[1], npshape[0]), # size of one frame
              '-pix_fmt', 'rgb24',
              '-r', '24', # frames per second
              '-i', '-', # The input comes from a pipe
              '-an', # Tells FFMPEG not to expect any audio
              '-vcodec', 'mpeg4',
              'output.mp4']

    fout = subprocess.Popen(cmd_out, stdin=subprocess.PIPE, stderr=subprocess.PIPE).stdin

    for i in range(24*40):
       if i%(24)==0:
           print('%d'%(i/24), end=' ')
           sys.stdout.flush()

       fout.write((np.random.random(npshape[0]*npshape[1]*3)*128).astype('uint8').tostring())

    fout.close()

    This works fine if I write anything less than 37 seconds worth of frames, but if I try to write anything more, the code just hangs. What is the underlying cause for this behaviour ? How can I fix it ?

  • Piping to FFMPEG with Python subprocess freezes

    23 septembre 2023, par Simon Streicher

    With the following code, I am able to pipe frames of a video to FFMPEG using Python, Numpy and the FFMPEG binaries :

    



    from __future__ import print_function
import subprocess
import numpy as np
import sys

npshape = [480, 480]
cmd_out = ['ffmpeg',
           '-y', # (optional) overwrite output file if it exists
           '-f', 'rawvideo',
           '-vcodec','rawvideo',
           '-s', '%dx%d'%(npshape[1], npshape[0]), # size of one frame
           '-pix_fmt', 'rgb24',
           '-r', '24', # frames per second
           '-i', '-', # The input comes from a pipe
           '-an', # Tells FFMPEG not to expect any audio
           '-vcodec', 'mpeg4',
           'output.mp4']

fout = subprocess.Popen(cmd_out, stdin=subprocess.PIPE, stderr=subprocess.PIPE).stdin

for i in range(24*40):
    if i%(24)==0: 
        print('%d'%(i/24), end=' ')
        sys.stdout.flush()

    fout.write((np.random.random(npshape[0]*npshape[1]*3)*128).astype('uint8').tostring())

fout.close()


    



    This works fine if I write anything less than 37 seconds worth of frames, but if I try to write anything more, the code just hangs. What is the underlying cause for this behaviour ? How can I fix it ?