
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (48)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 -
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 (9583)
-
README updates.
28 juin 2014, par Erik de Castro Lopo -
Revision 38950 : Beaucoup de modifs : Un nouvelle tache cron générale qui vérifie : - Que ...
22 juin 2010, par kent1@… — LogBeaucoup de modifs :
Un nouvelle tache cron générale qui vérifie :Que les binaires sont bien accessibles
Qu’il n’y a pas d’erreurs d’encodage (sinon on envoie un mail)
On refait marcher correctement les actions de récupération de logo et d’informations dans le privé
On utilise qt-faststart pour améliorer les fichiers mov et mp4
On passe les encodages en erreur au statut "erreur" pour ne pas bloquer la file d’attente
Quelques autres petites choses
On ajoute les notifications aux admins et users -
FFMPEG FDKAAC and Python
3 avril 2024, par Eric BarkerBeen banging my head against the wall for days on this. I'm writing a python program to take a 48kHz WAV file, convert it to 44.1kHz and encode it to HE-AAC via FDKAAC. FDK cannot convert to sample rates, so I'm using FFMPEG as the wrapper and piping it through FDKAAC. In a perfect world, I'd make a custom build of FFMPEG with FKD, but I've run into loads of issues on our Windows Server 2019 machine trying to build out FFMPEG, so I'm using vanilla FFMPEG with FDK piped in.


I can get the command to work perfectly from a command prompt :


ffmpeg -progress pipe:2 -i -f wav -ar 44100 - | fdkaac -p 5 -b 64000 -o 



But when I try to split it in Python for a Popen, it tries to evaluate the arguments and fails because ffmpeg doesn't have a "-p" argument :


cmd = ['ffmpeg', '-progress', 'pipe:2', '-i', inFile, \
 '-f', 'wav', '-ar', '44100', '-', '|', \
 'fdkaac', '-p', '5', '-b', '64000', '-o', outFile]
fdkProcess = subprocess.Popen(cmd,
 stdout=subprocess.PIPE,
 universal_newlines=True)
for line in fdkProcess.stdout:
 print(line)



RESULT :


Unrecognized option 'p'.
Error splitting the argument list: Option not found



I'll admit, I don't fully understand the pipeline process, and how to split commands via the "|" flag, and have them properly feed into stdout for the subprocess function to work correctly. I'm fairly new to python, and very new to programmatically capturing the output of a process like ffmpeg.