Recherche avancée

Médias (91)

Autres articles (63)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (10540)

  • Split a movie so that each GIF is under a certain file size

    9 novembre 2014, par Terence Eden

    Problem

    I want to convert a long movie into a series on animated GIFs.

    Each GIF needs to be <5MB.

    Is there any way to determine how large a GIF will be while it is being encoded ?

    Progress So Far

    I can split the movie into individual frames :

    ffmpeg -i movie.ogv -r 25 frameTemp.%05d.gif

    I can then use convert from ImageMagick to create GIFs. However, I can’t find a way to determine the likely file size before running the command.

    Alternatively, I can split the movie into chunks :

    ffmpeg -i movie.ogv -vcodec copy -ss 00:00:00 -t 00:20:00 output1.ogv

    But I’ve no way of knowing if, when I convert the file to a GIF it will be under 5MB.

    A 10 second scene with a lot of action may be over 5MB (bad !) and a static scene could be under 5MB (not a problem, but not very efficient).

    Ideas

    I think that what I want to do is convert the entire movie into a GIF, then find a way to split it by file size.

    Looking at ImageMagick, I can split a GIF into frames, but I don’t see a way to split it into animated GIFs of a certain size / length.

    So, is this possible ?

  • avcodec/cuviddec : correctly set key_frame with interlaced content

    11 juin 2021, par stuhlo
    avcodec/cuviddec : correctly set key_frame with interlaced content
    

    Fixes #9283

    This fixes setting of 'key_frame' flag in AVFrame when input h264 packets represents individual fields of interlaced video.
    In this case, pairs of two consecutive fields represents a single decoded picture and have identical 'CurrPicIdx', however, only
    the first field is entirely intra-coded and has the flag 'intra_pic_flag' set and the second field was resetting the flag before
    it was even read in the function 'cuvid_output_frame'.

    Signed-off-by : Timo Rothenpieler <timo@rothenpieler.org>

    • [DH] libavcodec/cuviddec.c
  • Converting mkv files to mp4 with ffmpeg-python

    16 mai, par myth0s

    I have a lot of .mkv files that I'm trying to convert to .mp4, so I decided to try and program a solution in python. After a few hours, trying to figure out how to copy the subfolders too, I gave up on it and decided to stick with converting individual subfolders, and then copying them over to another directory.

    &#xA;

    I've made a simple script, that should convert .mkv files that are in the same folder as the script. However, I keep getting this error :

    &#xA;

    &#xA;

    FileNotFoundError : [WinError 2] The system cannot find the file specified

    &#xA;

    &#xA;

    Here's my code :

    &#xA;

    import os&#xA;import ffmpeg&#xA;&#xA;start_dir = os.getcwd()&#xA;&#xA;def convert_to_mp4(mkv_file):&#xA;    no_extension = str(os.path.splitext(mkv_file))&#xA;    with_mp4 = no_extension &#x2B; ".mp4"&#xA;    ffmpeg.input(mkv_file).output(with_mp4).run()&#xA;    print("Finished converting {}".format(no_extension))&#xA;&#xA;for path, folder, files in os.walk(start_dir):&#xA;    for file in files:&#xA;        if file.endswith(&#x27;.mkv&#x27;):&#xA;            print("Found file: %s" % file)&#xA;            convert_to_mp4(file)&#xA;        else:&#xA;            pass&#xA;&#xA;

    &#xA;