mercredi, 18 décembre 2019 08:49

Extraire l'ensemble des valeurs d'un fichier audio

Écrit par
Évaluer cet élément
(0 Votes)

Nous allons extraire ici l'ensemble des valeurs d'un fichier audio :

ffprobe -f lavfi -i amovie=input.aac,astats=metadata=1:reset=1 -show_entries frame=pkt_pts_time:frame_tags=lavfi.astats.Overall.RMS_level,lavfi.astats.1.RMS_level,lavfi.astats.2.RMS_level -of csv=p=0

Le (début de ) résultat est le suivant :

0.000000,-94.242176,-90.695028,-92.116095
0.026122,-88.683110,-89.800561,-89.205994
0.052245,-87.455818,-79.692913,-82.031082
0.078367,-47.230359,-37.537861,-40.105362
0.104490,-33.559114,-29.881830,-31.342365
0.130612,-29.359294,-29.174521,-29.265925
...
[VALEURS TRONQUEES PAR L'AUTEUR POUR GAIN DE PLACE]
...
29.622857,-27.450844,-31.811669,-29.105467
29.648980,-27.679600,-32.001942,-29.323871
29.675102,-28.605567,-29.807081,-29.164905
29.701224,-29.630424,-31.652050,-30.524651
29.727347,-29.469117,-30.119318,-29.782061
29.753469,-29.750756,-29.006272,-29.362581
29.779592,-29.663210,-30.199643,-29.923150
29.805714,-31.010380,-30.278244,-30.628902
29.831837,-29.716978,-27.809792,-28.659524
29.857959,-28.315882,-25.996002,-27.002848
29.884082,-28.654132,-26.654333,-27.540130
29.910204,-28.777370,-26.461379,-27.466787
29.936327,-30.244250,-27.341183,-28.554531
29.962449,-30.606389,-27.901449,-29.046646
29.988571,-30.912115,-26.968966,-28.507597
30.014694,-30.799260,-27.086664,-28.557767
30.040816,-31.738044,-27.939312,-29.435940
30.066939,-32.126610,-27.851268,-29.482805
30.093061,-30.121199,-26.558994,-27.984670
30.119184,-26.573242,-29.513186,-27.799051
Lu 252 fois Dernière modification le vendredi, 20 décembre 2019 07:14