
Recherche avancée
Autres articles (39)
-
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 -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
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 (...)
Sur d’autres sites (6063)
-
FFMPEG lossless simple & efficient format
30 octobre 2016, par AdminyI took a sample video and ran this code for each image format like this :
ffmpeg -i test.mkv png/%d.png
ffmpeg -i test.mkv bmp/%d.bmpWhat I noted is that BMP at 1080P has a fixed size of 5.97 MB (6,266,934 bytes)
!6,220,800
Then I did some maths :
1 byte = 2^8 == 256 possible combinations
r + g + b form a color (0-255,0-255,0-255)
bmp = 3 * 1920 * 1080 = 6,220,800 bytesSo extra is just the file headers ?! (46134 bytes for just headers ?)
Next thing I noted that PNG size is dynamic and when the image has a lot of repetition is somewhere 2.5mb. Usually its between 10mb and 12mb.
Also decoding BMP seemed a lot quicker compared to PNG. So there is no point in even looking at PNG. I would like to know why is it so huge over BMP if it has (zlib) compression factor.
What is the best format to export to in terms of speed and size, preferred if its as simple as reading the file of color bytes ?
-
Play playlist of audio on website using node to create a jukebox / radio app
1er juillet 2022, par neffSo I have some time on my hands and thought I would make myself a little jukebox / radio type app.



It would be fairly simple, just a collection of MP3's on the server, one is chosen at random, it plays, on completion, the next one is chosen and plays. The front of this would just be a super simple page that has a player and displays the metadata.



I don't really have any experience with server programming but I'm going to look in to Node, seems like it would be good for this. I've already written a little script in Python that chooses a song from a selection and plays it (using VLC at the moment) so it should be simple to port it to Node / js.



Just wondering if someone could point me in the right direction for how to link the "player" with the "playlist".



Looking in to it, I can only find solutions involving a client and server using shoutCast or ICEcast or similar - so the playlist streams audio to a shoutcast server, and the website is just a player looking at the shoutCast URL - that seems unnecessary for me, as the streaming and the site would be the same thing.



New to a lot of this :) but I have time at the moment so happy to get stuck in !



Thanks in advance


-
Virtual host compared to multiple servers
9 septembre 2011, par josiecatThis may be dumb but has me wondering why and I know how to setup the virtual host but need to know the why or what it is good for.
Why do you setup virtual host for local development and why not just put sub directories ?
What are the real world uses and how do you use virtual host ?
(my normal set up as of now)
I use Mamp and just put more folders (speaking dummy terms here) in the htdocs folder. Is that ok what am I missing ?The reason why I would like to use virtual hosting is because I would like to have a few servers to try different technologies (e.g. adding ffmpeg support for streaming video and many others ) but do I use virtual hosting to be able to have more than one server or do I need to use something like virtual machine to have multiple servers with different versions of PHP, Mysql etc...?
I understand how to set this stuff up just don't understand the difference from virtual host to multiple servers ? could I actually set up one with php just the basic and another for php with ffmpeg-php and other stuff like zend or what ever just to have different server environments to basically mock the actual server that the project will land when done ?