
Recherche avancée
Autres articles (61)
-
Submit bugs and patches
13 avril 2011Unfortunately 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, parComme 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, parMediaspip 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 EdenProblem
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 stuhloavcodec/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>
-
Converting mkv files to mp4 with ffmpeg-python
25 octobre 2020, par myth0sI 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.


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 :




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




Here's my code :


import os
import ffmpeg

start_dir = os.getcwd()

def convert_to_mp4(mkv_file):
 no_extension = str(os.path.splitext(mkv_file))
 with_mp4 = no_extension + ".mp4"
 ffmpeg.input(mkv_file).output(with_mp4).run()
 print("Finished converting {}".format(no_extension))

for path, folder, files in os.walk(start_dir):
 for file in files:
 if file.endswith('.mkv'):
 print("Found file: %s" % file)
 convert_to_mp4(file)
 else:
 pass