Recherche avancée

Médias (91)

Autres articles (40)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6757)

  • Extract number of frames without using shell-True

    26 mars 2022, par petrush

    I have the following code that extract number of frames from video :

    


    filename = "test.mp4"
video_path = os.path.join(os.getcwd(), filename)
with open(video_path, "rb") as file:
    cmd = f'ffmpeg -i {video_path} -r 10 -q:v 3 -s 1x1 -f image2 -update 1 - >/dev/null'
    proc = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.PIPE, shell=True)
    (stdout, stderr) = proc.communicate()

    # i.e: 'frame= 2062 fps=966 q=3.0 Lsize=N/A time=00:10:34.46 bitrate=N/A dup=1049 drop=3563 speed= 297x'
    decoded = stderr.decode('utf-8')
    frame_count_line = decoded.splitlines()[-2]
    m = FRAME_COUNT_REGEX.search(frame_count_line)
    if m:
        print(int(m.groups()[0]))


    


    but because of security reasons I want to remove shell=True parameter.
Unfortunately after that the code above throws :

    


    FileNotFoundError: [Errno 2] No such file or directory


    


    Please help to fix it

    


  • avcodec/mpegvideo_enc : Remove always-true check

    23 mars 2022, par Andreas Rheinhardt
    avcodec/mpegvideo_enc : Remove always-true check
    

    It is a remnant of the old way for user-supplied buffers ;
    it is always-true since 93016f5d1d280f9cb7856883af287fa66affc04c.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mpegvideo_enc.c
  • Is there a way to use ffmpeg for RGB to true YUV (not YCbCr) conversion ?

    16 avril 2022, par haidahaida

    As far as I can see in the documentation, all conversions involving YUV actually use YCbCr. There are slight differences though, and I would like to convert to the actual YUV format. Is there any way at all using ffmpeg ? As an afterthought, is there any other way that is as fast as ffmpeg ?

    &#xA;&#xA;

    charts&#xA;Image source

    &#xA;