
Recherche avancée
Autres articles (93)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (8238)
-
Python, grab frame number from FFMPEG
22 janvier 2021, par PyrometheousI'm using a script to compile an image sequence into a video.


def ffmpeg_image_sequence(image_sequence, video, fps, encoder):
 global task
 task = False
 path = os.path.dirname(os.path.realpath(image_sequence))
 image_format = {
 'png': '\%06d.png',
 'iff': '\%06d.tiff',
 'tif': '\%06d.tif',
 'jpg': '\%06d.jpg'
 }
 sequence = path + image_format[image_sequence[-3:]]
 output_options = {
 'crf': 20,
 'preset': 'slow',
 'movflags': 'faststart',
 'pix_fmt': 'yuv420p',
 'c:v': encoder,
 'b:v': '20M'
 }
 try:
 (
 ffmpeg
 .input(sequence, framerate=fps)
 .output(video, **output_options)
 ).run()
 except ffmpeg.Error as e:
 warning(str(e))
 task = True



I'm using wxPython for the GUI and ffmpeg for compiling the frames :


import wx
import ffmpeg



I'm running the above function in its own class so that it can be run in a different thread, allowing the statusbar to be updated with how much time has passed.


def wait(start, text):
 time.sleep(.05)
 time_running = round(time.time() - start)
 update_status_bar(main_window, text + ' (Time Elapsed: ' + seconds_to_str(time_running) + ')')



I'd like to replace this with ETA and percentage completed. The window that pops up when running the ffmpeg_image_sequence function displays the following information :


frame=1234 fps= 16 q=13.0 size= 56789kB time=00:38:48.36 bitrate=12345.6kbits/sec speed=0.681x



From what's printed to that window, I'd like to get the current frame= value to determine what percentage of the process is completed, then display something more like :


def wait(text, frame, number_of_frames):
 time.sleep(.05)
 current_frame = frame
 number_of_frames = number_of_files_in_dir - 1
 percentage = round(current_frame / number_of_frames, 1)
 update_status_bar(main_window, text + ' ' + percentage + '% ' + Completed)



With some math to calculate an ETA for completion as well.


So, is there a way to grab that output text from the ffmpeg and turn just that frame= number into a variable ?


-
avformat/tls : add new option use_srtp to control whether enable it
9 août, par Jack Lauavformat/tls : add new option use_srtp to control whether enable it
The SRTP profile string "SRTP_AES128_CM_SHA1_80" is only used when
use_srtp is enabled. Move its declaration inside the "if (s->use_srtp)"
block to limit scopeSigned-off-by : Jack Lau <jacklau1222@qq.com>
-
Cannot control looping when converting video to gif in FFMPEG
28 mai 2019, par friendlygiraffeI am trying to create a gif that loops twice from a movie, but whatever I try it loops continuously :
ffmpeg -i animation.mov -loop 2 animation.gif
Using ffmpeg version 4.1.3 on Mac