
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (37)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (3319)
-
Error in Splitting Educational Videos into Segments Using Python (ffmpeg issue) [closed]
28 décembre 2024, par Yahia Mohamed HanbalI created a Python project to split long educational videos into smaller segments, each focused on a single question. The program uses OCR to detect text on video frames, identifies the word "Question," extracts the number following it, and splits the video whenever the number increases.


here is the video i am tring to split ((video))


Here’s an example of the program’s output :


Video loaded: 14071 frames at 60 FPS, duration: 234.52s 
Frame 480, Time 8.00s, Question: 6 
... 
Frame 12360, Time 206.00s, Question: 7 
Creating segment 1: 8.00s to 206.00s 
Error: module 'ffmpeg' has no attribute 'Error'



I’ve shared the full code in a GitHub repository for reference : Automated Video Scene Cutting.


What the Program Does


- 

- Input : A long educational video.
- Processing :

- 

- Detects text in each frame using OCR.
- Searches for the word "Question" followed by a number.
- Monitors when the number increases to identify segment boundaries.








- Output : Creates video segments corresponding to individual questions.








The Problem


The program detects the questions and timestamps correctly, but when it tries to create the segments, I encounter the following error :


Error: module 'ffmpeg' has no attribute 'Error'



What I’ve Tried


- 

- Verified the
ffmpeg-python
library is installed (pip show ffmpeg-python
confirms the installation). - Ensured the
ffmpeg
binary is accessible from the command line. - Reviewed the library documentation to ensure the correct usage of
ffmpeg
. - Tested with different video files to rule out input-specific issues.










Environment Details


- 

- OS : Windows 11
- Python Version : 3.9.13
- Key Libraries :
ffmpeg-python








If anyone has insights into resolving this issue or suggestions for alternative approaches to handle this use case, I’d greatly appreciate your help.


Thank you !


-
The proper way to limit framerate when recording screen on macOS
5 juillet 2024, par jsxmacOS 14.5, FFmpeg 7.0.1. To record the screen, if I use the code from Wiki, that is,


ffmpeg -f avfoundation -i 1 output.mp4



the frame rate seems to be so high that when I press
q
to stop recording, the following message persists until my MacBook Pro starts to noise by its cooler : "[q] command received. Exiting."

My current solution is to add
-r
after-i
:

ffmpeg -f avfoundation -i 1 -r 24 output.mp4



But I heard that a more correct solution is to replace
-r
with-framerate
and to put it before instead of after-i
:



ffmpeg -f avfoundation -framerate 24 -i 1 output.mp4



Note that I used
-framerate
as an input option instead of-r 24
as an output option, so I'm telling avfoundation to record at 24fps instead of recording at the default fps and then forcing FFmpeg to drop or duplicate frames to give you the desired 24.



This doesn't work for me currently, and appears to be the same as I don't use
-r
at all.

And so, what is the proper way to fix the "too high framerate" issue when recording the screen on macOS ? Do we need
-r
or instead-framerate
, and where to put it, before or after-i
?

Just in case, here is the log of
ffmpeg -f avfoundation -i 1 output.mp4 -v verbose
:

https://github.com/jsx97/test/blob/main/ffmpeg.log


-
Evolution #4573 (Nouveau) : Enlever Jquery UI du Core
13 octobre 2020Jquery UI (https://jqueryui.com/) n’a plus d’activité maintenue (en tout cas aucune release depuis 4 ans maintenant).
Il serait opportun de supprimer jQuery_UI du core, et de le remplacer par des librairies spécifiques pour les besoins identifiés.
Tout d’abord l’usage dans le Core.¶
Je crois que l’on utilise :
le dateur
À remplacer par https://duetds.github.io/date-picker/ ?
Voir également la discussion sur Saisies : https://git.spip.net/spip-contrib-extensions/saisies/issues/43le sortable
À remplacer par https://sortablejs.github.io/sortablejs/ ?
D’autres plugins s’appuient sur d’autres éléments le jQuery-UI :¶
- Accordéons et Tabs (Fabrique)
- Une extension picker multidate (Agenda)
- ...Dans un premier temps, il « suffit » qu’ils mettent le plugin jQueryUi actuel en dépendance...
Dans un second temps... trouver des alternatives adaptées... et faire en sorte qu’elles soient partageables entre différents plugins si besoin.Sur le partageables¶
Il pourrait y avoir un plugin du core regroupant des librairies js utilisées régulièrement, comme le faisait le plugin jquery-ui, mais avec différentes librairies plus indépendantes.
Pourquoi pas. Plutôt que de faire N petits plugins JS.