
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (53)
-
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 (...) -
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 (7538)
-
About image opacity
23 octobre 2013, par Mikko Koppanen — ImagickThere is a common misconception that Imagick::setImageOpacity() would work to reduce the opacity of the image. However, as the name says the method actually sets the opacity throughout the image and thus affects also transparent areas.
To demonstrate let’s first look at this image of a red circle on a transparent background :
Now, let’s apply setImageOpacity on the image :
-
< ?php
-
$im = new Imagick (’red-circle.png’) ;
-
$im->setImageOpacity (0.5) ;
-
$im->writeImage (’red-circle-setopacity.png’) ;
-
?>
As we can see from the resulting image the transparent background is affected as well.
In order to actually reduce the opacity of the opaque parts Imagick::evaluateImage can be used instead :
-
< ?php
-
$im = new Imagick (’red-circle.png’) ;
-
-
/* Divide the alpha channel value by 2 */
-
$im->evaluateImage(Imagick: :EVALUATE_DIVIDE, 2, Imagick: :CHANNEL_ALPHA) ;
-
$im->writeImage (’red-circle-divide.png’) ;
-
?>
And here are the results :
As the background is already fully transparent so the divide operation causes no changes to it.
Similar example is available in the PHP manual http://php.net/imagick.evaluateimage and I added a note to setImageOpacity page as well (at the time of writing it has not synced to documentation mirrors yet).
-
-
Can I use a text file's content to create a filtered list for ffmpeg ?
20 octobre 2022, par Angel Lopez JrI am attempting to make a CMD script that will


- 

- Create a text file that lists file names followed by video codec (using ffprobe)
- Create a new text from the list so that any file with x265 codec is removed from the list (and formated as

file "*filepath*"
- Run ffmpeg on the edited list to transcode remaining files to x265.








I have a script that does #1


for /R %%f IN (*.mkv,*.avi,*.mp4,*.m2ts,*.mts,*.rm,*.m4v) do echo "%%f" >>Probe.txt & ffprobe -v error -hide_banner -of default=noprint_wrappers=0 -print_format flat -select_streams v:0 -show_entries stream=codec_name "%%f" >>Probe.txt & echo. >>Probe.txt



which outputs




"filepath"

streams.stream.0.codec_name="codec"

"filepath"

streams.stream.0.codec_name="codec"



and I have a script that will do #3


for /R %%f IN (*.mkv,*.avi,*.mp4,*.m2ts,*.mts,*.rm,*.m4v) do ffmpeg -hide_banner -hwaccel_output_format qsv -i "%%f" -c:v libx265 -c:a ac3 -x265-params crf=25 "%%f.mkv"



I am not sure if #2 is even possible though.


End result of task 2 should be that in probe.txt, any line that has a

streams.stream.0.codec_name
value of anything besideshevc
will have the line immediately above it written to a new txt file with the word file in front.

final goal is getting all three tasks to run under one batch file (each task running sequentially)


Is there any help on what I am missing to be able to unify these and get #2 to happen


-
lavu/pixdesc : handle xv30be in av_[read|write]_image_line
4 décembre 2022, par Philip Langdalelavu/pixdesc : handle xv30be in av_read_image_line
xv30be is an obnoxious format that I shouldn't have included in the
first place. xv30 packs 3 10bit channels into 32bits and while our
byte-oriented logic can handle Little Endian correctly, it cannot
handle Big Endian. To avoid that, I marked xv30be as a bitstream
format, but while that didn't produce FATE errors, it turns out that
the existing read/write code silently produces incorrect results, which
can be revealed via ubsan.In all likelyhood, the correct fix here is to remove the format. As
this format is only used by Intel vaapi, it's only going to show up
in LE form, so we could just drop the BE version. But I don't want to
deal with creating a hole in the pixfmt list and all the weirdness that
comes from that. Instead, I decided to write the correct read/write
code for it.And that code isn't too bad, as long as it's specialised for this
format, as the channels are all bit-aligned inside a 32bit word.