
Recherche avancée
Autres articles (86)
-
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 -
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 (...) -
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 (11391)
-
php-fpm freeze user session on ffmpeg exec
21 janvier 2014, par ayaI'm have some problem with php-fpm and ffmpeg.
If i'm launching encoding from php just with simple exec, then for this certain user who initiate encoding all other php responses seems like a frozen(timeout or ignored). So for this user site becomes fully unresponsable.
If i'm launching encoding from php but with "&" on the end of command, then all comes fine, encoding still eats cpu but site fully responsible for user.
So maybe there is some docs or info about this behavior so i'm can get why it work this way, so where exactly it gets stuck.
Thank you
-
Google Cloud Platform Storage JSON API upload breaks audio files..?! How to fix ?
13 octobre 2017, par ZolaiI did manage to upload files to Google storage with GCP resumable upload (json api) :
https://cloud.google.com/storage/docs/json_api/v1/how-tos/resumable-uploadUsing jQuery and Plupload http://www.plupload.com
But now it seems that audio files loses their codecs in upload and those won’t play or ffmpeg can’t probe those. More testing showed that actually .flac files are ok to ffmpeg, but for example .m4a files are not.
I need to get most of the audio files uploaded to google storage and be able to probe those with ffmpeg. And must be able upload big files over 100Mb. That’s why I believe JSON API is best or only possible way.
I think I have metadata also added correctly, but now I’m confused how to continue..
Any ideas what could be the problem here ?EDIT (more info) :
I had working software :
- Using regular POST > /temp > Google Cloud Storage Client (php).
- GCP Storage Client uploaded files with perfection.
- Even that I named uploaded files with random unique name like "woeiwehf.tmp", those did work and ffmpeg could probe them fine.
THEN something happened, I guess uploading like this was limited (or something) :
-
What meant that my solution couldn’t upload anymore big files, over 32Mb.
-
Well that wasn’t best solution anyway, so that’s okey, that this changed.
NOW :
- I have changed software so it uses GCP JSON API upload resumable, and this mainly works
- But I had to change files to look like "woeiwehf.flac" or what ever type is. ".tmp" didn’t work anymore.
- For example .flac files work nicely, but .m4a will not.
- I’ve tested uploading many different ways, and it seems that JSON API upload loses at least codecs and bit rate.
—
I would be very grateful if I could get help how to resolve this.
I guess one solution may could be to fork ffmpeg client and manually set audio codec, but I’m saving that for the last solution. -
avfilter/zoompan : add in_time variable
19 juin 2020, par exwmavfilter/zoompan : add in_time variable
Currently, the zoompan filter exposes a 'time' variable (missing from docs) for use in
the 'zoom', 'x', and 'y' expressions. This variable is perhaps better named
'out_time' as it represents the timestamp in seconds of each output frame
produced by zoompan. This patch adds aliases 'out_time' and 'ot' for 'time'.This patch also adds an 'in_time' (alias 'it') variable that provides access
to the timestamp in seconds of each input frame to the zoompan filter.
This helps to design zoompan filters that depend on the input video timestamps.
For example, it makes it easy to zoom in instantly for only some portion of a video.
Both the 'out_time' and 'in_time' variables have been added in the documentation
for zoompan.Example usage of 'in_time' in the zoompan filter to zoom in 2x for the
first second of the input video and 1x for the rest :
zoompan=z='if(between(in_time,0,1),2,1):d=1'V2 : Fix zoompan filter documentation stating that the time variable
would be NAN if the input timestamp is unknown.V3 : Add 'it' alias for 'in_time. Add 'out_time' and 'ot' aliases for 'time'.
Minor corrections to zoompan docs.Signed-off-by : exwm <thighsman@protonmail.com>