
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (75)
-
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 ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (8739)
-
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


-
ld : file too small for architecture armv7 mac [closed]
3 avril 2013, par user1500842Ld /Users/IPhoneDev/Library/Developer/Xcode/DerivedData/sqeyes-fmajgifqwrcamzdmsdzkoydwlxsv/Build/Intermediates/sqeyes.build/Debug-iphoneos/sqeyes.build/Objects-normal/armv7/sqeyes normal armv7
cd /Users/IPhoneDev/Project/sqeyes
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/IPhoneDev/Library/Developer/Xcode/DerivedData/sqeyes-fmajgifqwrcamzdmsdzkoydwlxsv/Build/Products/Debug-iphoneos -L/Users/IPhoneDev/Project/sqeyes -F/Users/IPhoneDev/Library/Developer/Xcode/DerivedData/sqeyes-fmajgifqwrcamzdmsdzkoydwlxsv/Build/Products/Debug-iphoneos -filelist /Users/IPhoneDev/Library/Developer/Xcode/DerivedData/sqeyes-fmajgifqwrcamzdmsdzkoydwlxsv/Build/Intermediates/sqeyes.build/Debug-iphoneos/sqeyes.build/Objects-normal/armv7/sqeyes.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=4.3 -framework QuartzCore -framework EventKit -framework EventKitUI -lsqlite3.0 -framework UIKit -framework Foundation -framework CoreGraphics -lavcodec -lswscale -lavutil -o /Users/IPhoneDev/Library/Developer/Xcode/DerivedData/sqeyes-fmajgifqwrcamzdmsdzkoydwlxsv/Build/Intermediates/sqeyes.build/Debug-iphoneos/sqeyes.build/Objects-normal/armv7/sqeyes
ld: file too small for architecture armv7 mac -
How to get animated webp file with transparent background padding after converting from mp4 file with ffmpeg ?
2 mars 2024, par isharth rastogiI need to convert mp4 video(1280×720) to webp file(512x512) such that the resulting webp file maintains aspect ratio and also gets entirely contained in 512x512 and the uncovered areas at the top and bottom should be transparent.


I tried the following ffmpeg command :


ffmpeg -i sample.mp4 
-vcodec libwebp -filter:v fps=fps=20 -lossless 1 -loop 0 -preset default -an -vsync 0 -vf 
scale=512:512:force_original_aspect_ratio=decrease,pad=512:512:-1:-1:color=#00000000 sample.webp



In the above command please note
pad=512:512:-1:-1:color=#00000000

I have given the alpha values 00 but it outputs black color only.

I also referred to this site https://ffmpeg.org/ffmpeg-utils.html#color-syntax It says




It can be the name of a color as defined below (case insensitive match) or a 0xRRGGBB[AA] sequence, possibly followed by @ and a string representing the alpha component.
The alpha component may be a string composed of "0x" followed by a hexadecimal number or a decimal number between 0.0 and 1.0, which represents the opacity value (‘0x00’ or ‘0.0’ means completely transparent, ‘0xff’ or ‘1.0’ completely opaque). If the alpha component is not specified then ‘0xff’ is assumed.




I tried both
color=0x000000@0x00
andcolor=0x000000@0.0
but the result was opaque black.