
Recherche avancée
Autres articles (61)
-
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 -
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 (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (6924)
-
Revision f297504f2d : Re-work configure interface for encoding based on external mi This commit refin
14 juillet 2014, par Jingning HanChanged Paths :
Modify /vp9/encoder/vp9_encoder.c
Modify /vp9/vp9_cx_iface.c
Modify /vpx/vpx_encoder.h
Modify /vpxenc.c
Re-work configure interface for encoding based on external miThis commit refines the configuration interface for encoding
process based on external mode info. It allows the vpxenc to read
the external file name from command line, and to produce warning
message when necessary.Change-Id : I109d02ea9e6e418d00378d512ed9ab9bb0770dbd
-
How to convert raw video formats to mp4/mov with CLI based tool something like ffmpeg ?
29 octobre 2022, par A_MishraWant to convert raw video formats like braw, redcode and canon raw format into mp4/mov videos with command line tool such as ffmpeg. There are dedicated softwares for conversion like DaVinci Resolve for braw format, but I am looking for something to use as service and use it within my code thus looking for CLI based solution.


-
Extracting frame out of video based on time in seconds
20 avril 2024, par VickyI'm developing a web-based video editing tool where users can pause a video and draw circles or lines on it using canvas. When a user pauses the video, I retrieve the current playback time in seconds using the HTML5 video.currentTime property. I then send this time value along with the shape details to the server. On the server-side, we use FFmpeg to extract the specific paused frame from the video. The issue I'm encountering is a frame mismatch between the one displayed in the browser and the one generated in the backend using FFmpeg.


I've experimented with various approaches for this process.


Extracting frame based on time. Example : in this case time is 3.360 second.




ffmpeg -i input.mp4 -ss 00:00:03.360 -frames:v 1 frame.jpg




Converting time to frame number using the following logic : Math.round(video.currentTime * fps)




ffmpeg -i input.mp4 -vf "select=eq(n,101)" -vsync vfr frame.jpg






ffmpeg -i input .mp4 -vf "select='lt(t,3.360)lt(3.360-t,1/31.019)',setpts=N/(31.019TB)" -vsync 0 frame.jpg




The challenge I'm facing is that sometimes the frame I see in the browser at the pause time doesn't match the one generated in the backend using FFmpeg. How can I solve this problem ? If it's an issue with currentTime, are there any other approaches I can try ?