
Recherche avancée
Autres articles (67)
-
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)
Sur d’autres sites (5748)
-
copy .wav audio file settings to new .wav file
18 novembre 2020, par Jonascurrently I am working with a speech to text translation model that takes a .wav file and turns the audible speech within the audio into a text transcript. The model worked before on .wav audio recordings that were recorded directly. However now I am trying to do the same with audio that was at first present within a video.


The steps are as follows :


- 

- retrieve a video file from a stream url through ffmpeg
- strip the .aac audio from the video
- convert the .aac audio to .wav
- save the .wav to s3 for later usage










The ffmpeg command I use is listed below for reference :


rm /tmp/jonas/*
 ffmpeg -i {stream_url} -c copy -bsf:a aac_adtstoasc /tmp/jonas/{filename}.aac
 ffmpeg -i /tmp/jonas/{filename}.aac /tmp/jonas/{filename}.wav
 aws s3 cp /tmp/jonas/{filename}.wav {s3_audio_save_location}



The problem now is that my speech to text model does not work on this audio anymore. I use sox to convert the audio but sox does not seem to grab the audio. Also without sox the model does not work. This leads me to believe there is a difference in the .wav audio formatting and therefore I would like to know how I can either format the .wav with the same settings as a .wav that does work or find a way to compare the .wav audio formatting and set the new .wav to the correct format manually through ffmpeg


I tried with PyPy exiftool and found the metadata of the two files :


The metadata of the working .wav file is


The metadata of the .wav file that does not work is


So as can be seen the working .wav file has some different settings that I would like to mimic in the second .wav file presumably that would make my model work again :)


with kind regards,
Jonas


-
How can I save an animation from matplotlib as a mp4 video file ? [duplicate]
19 décembre 2018, par ManzaThis question already has an answer here :
-
How can I overcome this key word error ?
4 answers
I’m trying to render a animation.ArtistAnimation object into a 24 fps video file in format mp4.
I have search about and I reached this. However, even after compiling ffmpeg I get this error message :
C:\Users\trite\OneDrive\Documentos\MusiTex\Python\venv\Scripts\python.exe
"C:/Users/trite/OneDrive/Documentos/MusiTex/Python/venv/Saving Animation.py"
Traceback (most recent call last):
File "C:\Users\trite\OneDrive\Documentos\MusiTex\Python\venv\lib\site-
packages\matplotlib\animation.py", line 161, in __getitem__
return self.avail[name]
KeyError: 'ffmpeg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/trite/OneDrive/Documentos/MusiTex/Python/venv/Saving
Animation.py", line 20, in <module>
FFMpegWriter = manimation.writers['ffmpeg']
File "C:\Users\trite\OneDrive\Documentos\MusiTex\Python\venv\lib\site-
packages\matplotlib\animation.py", line 164, in __getitem__
'Requested MovieWriter ({}) not available'.format(name))
RuntimeError: Requested MovieWriter (ffmpeg) not available
Process finished with exit code 1
</module>What is the problem with ?
I would really appreciate if you can help me. Actually, if there is other ways to saving/render this kind of object into a video file (preferably mp4) I will be delighted to hear them.
Thank you very much
-
How can I overcome this key word error ?
-
Using ffmpeg, extract small part of .m4a audio file and set extract file duration correctly
30 août 2015, par KesI have Linux mint 17.1.
When I use ffmpeg to cut out a section of a 4 hour long .m4a audio file as follows :
ffmpeg -ss 0:10:00 -i in_file.m4a -vn -c copy -t 0:40:00 out_file.m4a
the correct position and duration of extract is extracted and the file plays just fine, but the audio duration meta-tag in the playback player is incorrectly shown as 4 hours.
How can I set the actual extract duration so it is correct, in this case 30mins, or even better get ffmpeg to calculate it and set it properly ?
Thank you