
Recherche avancée
Autres articles (84)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (18728)
-
Executing ffmpeg from Python
24 mars 2016, par shardulcI’m trying to run
ffmpeg
on all the WAV files in a directory to convert them to mp3. This command works fine when I run it from the command-line, on my Fedora Linux machine :/usr/bin/ffmpeg -i "Name With Spaces.wav" Name_With_Spaces.mp3
where
Name With Spaces.wav
is a file in the current directory. However, in Python 3.2 running in the same directory :import os
files = os.listdir()
os.execl('/usr/bin/ffmpeg', '-i \"' + files[0] + '\"', files[0][:-4].replace(' ', '_') + '.mp3')gives me the error (from
ffmpeg
) : At least one input file must be specified. I don’t see why this isn’t working, because'-i \"' + files[0] + '\"'
evaluates to-i "Name With Spaces.wav"
andfiles[0][:-4].replace(' ', '_') + '.mp3'
evaluates toName_With_Spaces.mp3
.I’ve tried escaping spaces, using different quotation marks, using the full path (like
/home/.../music/Name\ With\ Spaces.wav
), and actually replacing the arguments with the real text, but nothing works. How can I get this to work ? -
doc/filters/crop : drop unmatched quote in example
11 mai 2023, par Andriy Utkindoc/filters/crop : drop unmatched quote in example
Commit 55b81528a991 ("doc/filters : itemize crop examples") dropped the
quotation marks from these examples, but this one remained. Quotes are
actually needed to put the example into a command line or a program, but
removing it here makes the example consistent with the document. -
Correct way to dump yuv values after avcodec_decode_video2
27 juin 2017, par PeterI am decoding H.265 raw data :
avcodec_decode_video2(decoderCtx, pictYUV, &gotPicture, &packet)
After the call, the value for
pictYUV->format
is AV_PIX_FMT_YUV420P as expected.I dump raw yuv values to a file as follows :
fwrite(pictYUV->data[0], 1, w*h, f);
fwrite(pictYUV->data[2], 1, w*h/4, f);
fwrite(pictYUV->data[1], 1, w*h/4, f);For an input size of 640x480, when the file is viewed (using ImageMagick display utility), the image is what was expected.
However, for an input size of 864x480, the image appears to be corrupted.
What is interesting is if I run pictYUV through sws_scale, and dump the resulting yuv output, the image appears to be fine.
sws_scale(swsCtx, pictYUV->data, pictYUV->linesize, 0, pictYUV->height,
pictNewYUV->data, pictNewYUV->linesize);All I need is yuv data. I am hoping I can avoid the extra call to sws_scale. Wondering what is it that I am missing. Regards.