
Recherche avancée
Autres articles (104)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 (11859)
-
How to make a custom Iterator
27 décembre 2022, par Anony MouseI am struggling creating my own custom Iterator. I currently have Class that provides me with Frames
and I have to create an Iterator to get a Stream of Frames which i get by turning Frames -> Spliterator -> Stream


StreamSupport.stream(Spliterators.spliteratorUnknownSize(<iterator>, Spliterator.ORDERED), false);
</iterator>


My Class structure is like this :


public Class Container {

//the custom class FrameProv has a method called nextFrame() which either gives me the next Frame or throws an Exception; 
//FrameProv also uses a FFmpegFrameGrabber to get the next frame with the help of nextFrame() (if this Information is helpful)
 private FrameProv frameprov;
 private Stream frames;

//Contructor
 public Container(FrameProv fp) {
 frameprov = fp;
 FrameItr itr = new FrameItr();
 frames = StreamSupport.stream(Spliterators.spliteratorUnknownSize(itr, Spliterator.ORDERED), false);
 }

 private class FrameItr implements Iterator {

 @Override
 public boolean hasNext() {
 //TODO
 }

 @Override
 public Frame next() {
 //TODO
 }
 }
}



Could anyone help me with the hasNext() methode ? I dont know how I check if there is a next Frame without using the getting the next Frame (which should be returned in next())


I tried using the nextFrame() Methode from FrameProv in hasNext() but hasNext() should never use this methode since it should only check if there is a next Frame.


-
avfilter/af_dynaudnorm : fix another clipping with custom peak value
4 janvier 2020, par Paul B Mahol -
What is the Best Approach for Storing and Displaying Video Files as Base64 in HTML for High Performance and Efficiency ? [closed]
25 août 2023, par BarthezI'm currently working on a project where I need to allow users to upload videos, which will then be converted to Base64 and embedded within an HTML file. I'm reaching out to gain a better understanding of the best practices for accomplishing this task while adhering to Stack Overflow guidelines.Here's my plan so far:Video Upload : Users will be able to upload videos through a web interface.Conversion to Base64 : The uploaded video will be converted to Base64 using [specific library/tool].Embedding in HTML : The Base64 encoded video will be embedded within an HTML file using the tag.Before I proceed, I have a few questions:Are there any particular libraries or tools you recommend for converting videos to Base64 efficiently ?What are the potential performance implications of embedding Base64 videos in HTML files, especially considering large video files ?Are there any security concerns I should be aware of when implementing this process ?How can I ensure cross-browser compatibility when embedding these Base64 videos ?Are there any alternatives to this approach that might be more efficient or manageable ?I want to make sure I'm following best practices and avoiding any pitfalls, so any insights, tips would be greatly appreciated. Thank you for your time and assistance !


I attempted to convert an uploaded video to Base64 and embed it within an HTML file.