
Recherche avancée
Autres articles (64)
-
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 ) (...) -
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
Sur d’autres sites (12784)
-
Normalizing audio of several wav snippets with ffmpeg
17 mai 2023, par dick_kickemI searched the site and I figured that maybe
ffmpeg-normalize
could be part of my solution but I'm really not sure.

In my free time me and my friends create quizzes for people to solve. One of these is a music quiz, where you hear audio snippets and have to guess the artist and song title. A few years back I did most of them using Audacity, which means recording snippets from existing videos, inserting fade in and fade out to every snippet, putting announcements like "Number x" before the x-th song and also making sure that all songs are fairly of equal loudeness (-6.0 dB).


The result in Audacity looked like this.




Lazy as I am, I learned about
ffmpeg
and wrote a script, which does all these steps for me. The script is mostly written in bash. I use some audio files where I extract the audio in wav-format, add a fade in and fade out and then I try to set the volume to -6.0 dB as with Audacity. The part where this happens looks like this :

...[some code before]...

# write the audio details of temmp.wav into the "info" file
ffmpeg -i temp.wav -filter:a volumedetect -f null - 2> info

#check out the max volume of temp.wav
max_vol=$(grep "max_volume" info | cut -d ' ' -f5)

# determine the difference between the max volume and -6
vol_diff=$(expr "-6-($max_vol)" | bc -l)

# change temp.wav loudness by the determined difference
ffmpeg -y -i temp.wav -filter:a "volume=$vol_diff$db" $count.wav

...[some code after]...



I do this with all snippets, leaving me with usually ten snippets in the format
1.wav
,2.wav
and so on. Lastly, I concatenate them all with announcements in the formnr1.wav
,1.wav
,nr2.wav
,2.wav
and so on. Overall this works really great for me. Yet, the loudness is not quite as equal as in Audacity. Here is a screenshot of a generated music quiz using the described script (not the same music snippets as the example before) :



You can see some peaks pointing out. It's not bad and in fact, it works for me in most cases, but it's not like what I used to have with Audacity. Does anyone have any idea how to fix that to make it more equal ?


Thank you in advance and kind regards


-
ffmpeg convert from WMV to AVC1 instead of "official" H264 [on hold]
26 mars 2014, par thipetoI searched google for an answer, but I can't find the solution. It's for professional use.
I'm trying to convert some wmv files (WMV3) to MP4 (H.264). It should take the format h.264, and instead of it, it's taken the H.264 (AVC1) format.
It seems like the AVC is a format used in Apple, and I don't want to convert to this format, only to h264 "official", the one who fourcc shows me.
I'm using the last version of ffmpeg, following is the basic command that I'm using :ffmpeg -i input.wmv -c:v libx264 -q:v 0 output.mp4
I'm trying to understand the reason that some PCs here convert to h264, and other to AVC1.
Someone can help me ? What should I do to make the other PCs convert to the real h.264 without install a pack of codecs ? I just want to convert to mp4, there's a way to install only codecs to convert to mp4 ?Many thanks,
Thiago. -
ffmpeg convert from WMV to AVC1 instead of "official" H264 [closed]
26 mars 2014, par thipetoI searched google for an answer, but I can’t find the solution. It’s for professional use.
I’m trying to convert some wmv files (WMV3) to MP4 (H.264). It should take the format h.264, and instead of it, it’s taken the H.264 (AVC1) format.
It seems like the AVC is a format used in Apple, and I don’t want to convert to this format, only to h264 "official", the one who fourcc shows me.
I’m using the last version of ffmpeg, following is the basic command that I’m using :ffmpeg -i input.wmv -c:v libx264 -q:v 0 output.mp4
I’m trying to understand the reason that some PCs here convert to h264, and other to AVC1.
Someone can help me ? What should I do to make the other PCs convert to the real h.264 without install a pack of codecs ? I just want to convert to mp4, there’s a way to install only codecs to convert to mp4 ?Many thanks,
Thiago.