Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (61)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

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

  • 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

    25 octobre 2020, 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;