
Recherche avancée
Autres articles (65)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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 -
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 (12652)
-
Use 10 / 50 msec polling interval for high performance mode vs. regular mode.
4 septembre 2011, par Scott Schillerm script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2-nodebug.js m script/soundmanager2.js Use 10 / 50 msec polling interval for high performance mode vs. regular mode.
-
Audio extracted using ffmpeg giving nan and very low/high (2.6283893e-37) values
17 février 2023, par Shreya GuptaI'm extracting raw audio from a
.flac
file(youtube link - https://youtu.be/—BfvyPmVMo , extracting 10sec from this) and storing it as np-array float32. Gettingnan
, and extremely low and high values =[-8.63468980e+30 -9.76911766e+34 -1.93298665e+37 -2.69400132e+38 .... 2.33467619e-38 5.71834450e-39 6.70703932e-38 7.58865403e-36]
.

On this when I try to get melspectrogram then it gives an error -


TypeError: array([nan, nan, nan, ..., nan, nan, nan], dtype=float32) has type numpy.ndarray, but expected one of: int, long, float



To extract raw audio using(this is similar to what is done in dmvr lib, https://github.com/deepmind/dmvr/blob/master/examples/generate_from_file.py)


cmd = (
 ffmpeg
 .input(video_path, ss=start, t=end-start)
 .output("pipe:", ac=1, ar=sampling_rate, format="s32le")
 )

 audio, _ = cmd.run(capture_stdout=True, quiet=True)

 audio = np.frombuffer(audio, np.float32) "



To get melspectrogram -


mel_spec = librosa.feature.melspectrogram(audio,sr=16000,hop_length=10,n_mels=128,window=25)



Errors


C:\Users\Shreya Gupta\IS-Project\generate_from_file.py:142: FutureWarning: Pass y=[-6.5381321e+37 1.5676004e-38 7.2428216e-37 ... 2.6283893e-37
 2.5346798e-36 1.9253581e-37] as keyword args. From version 0.10 passing these as positional arguments will result in an error
 mel_spec = librosa.feature.melspectrogram(audio,sr=16000,hop_length=10,n_mels=128,window=25)
C:\ProgramData\Anaconda3\lib\site-packages\librosa\core\spectrum.py:2563: RuntimeWarning: overflow encountered in absolute
 np.abs(
C:\ProgramData\Anaconda3\lib\site-packages\librosa\core\spectrum.py:2563: RuntimeWarning: overflow encountered in square
 np.abs().....
TypeError: array([nan, nan, nan, ..., nan, nan, nan], dtype=float32) has type numpy.ndarray, but expected one of: int, long, float



Could someone please help, thank you !


-
avdevice/decklink_dec : add support for querying RP188 High Frame Rate timecode
5 septembre 2020, par Marton Balint