
Recherche avancée
Autres articles (10)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (2807)
-
Detect scene change on part of the frame
16 juin 2021, par user18130814200115I have a video file of an online lecture cosisting of a slideshow with audio in the background.

I want to save images of each slide as well as the timestamp of that slide.
I do this using the scene and metadata filters :

ffmpeg -i week-01.mp4 -filter_complex "select='gt(scene,0.011)',metadata=print:file=frames/time.txt" -vsync vfr frames/img%03d.jpg



This works fine exept for one thing, there is a timer onscreen on the right in the video file.
If i set the thershold small enough to pick up all the slide changes, it also picks up the timer changes.


So here is my question, Can I ask ffmpeg to :


- 

- analize part of the frame (only the right side till roughly 75% to the left).
- Then, on detecting a scene change in this area, save the entire frame and the timestamp.






I though of making a script that


- 

- crops the video and saves it alongside the origional
- analize the cropped video for scene changes and save the timestamps
- extract the frames from the origional video using the timestamps








Is there a better/faster/shorter way to do this ?
Thanks in advance !


-
Importing PIL images into FFMPY/FFMPEG to save as GIF/video
24 mai 2023, par Tricky DevilI would like to know how I can transfer PIL images to FFMPY to save it as video, or gif, since the PIL library's quantization method has strong quality losses in certain cases. I first do some modifications with PIL, and then want to export and save the result.


I did not find any information on the topic online, beside one post with PIL to FFMPEG :
Pipe PIL images to ffmpeg stdin - Python
How could I implement something similar in FFMPY ?


If I have for example this setup to begin with :


import ffmpy
import PIL
from PIL import Image as Img

images = [Img.open('frame 1.png'),Img.open('frame 2.png')]#How do I convert them to FFMPEG?

#Here I modify the images using PIL

#Save with FFMPEG:
ff = ffmpy.FFmpeg(
 inputs={images ?: None},#How do I insert PIL images here?
 outputs={'output.gif': None},
 executable='ffmpeg\\bin\\ffmpeg.exe')
ff.run()



How would I proceed to convert and save the images as a video using FFMPY ?
Is it possible by adding some steps inbetween ? I wouldn't want to have to save all PIL images first as images, and then import them and save them with FFMPY a second time, since that would be very time consuming with larger files.


-
Today we celebrate Data Privacy Day 2019
28 janvier 2019, par Jake Thornton — Privacy