
Recherche avancée
Autres articles (72)
-
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 ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (9360)
-
Python librosa NoBackendError even though ffmpeg is installed
11 avril 2020, par Slavko KovačevićI recently installed librosa (package I've been using for a while on different PC) on my new PC with Windows 10 running. After that I've downloaded latest static version of ffmpeg and copied it to
C:
and added it to the Path. Tested ffmpeg and it works like a charm ! For python I am using Anaconda environment and after starting Jupyter Notebook and runninglibrosa.load(path, sr = None)
I've got


in <module>
----> 1 audio = librosa.load(pathToJson)

~\anaconda3\envs\tf_gpu\lib\site-packages\librosa\core\audio.py in load(path, sr, mono, offset, duration, dtype, res_type)
 117 
 118 y = []
--> 119 with audioread.audio_open(os.path.realpath(path)) as input_file:
 120 sr_native = input_file.samplerate
 121 n_channels = input_file.channels

~\anaconda3\envs\tf_gpu\lib\site-packages\audioread\__init__.py in audio_open(path, backends)
 114 
 115 # All backends failed!
--> 116 raise NoBackendError()

NoBackendError:
</module>



strange isn't it ? Then I went all over the internet, doing whatnot trying to fix it and then I've got an idea to run my line of code inside anaconda command interface and it WORKS ?? How is this possible ? It is the same environment.



python
Python 3.7.7 (default, Mar 23 2020, 23:19:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import librosa
>>> librosa.load('test.wav')
(array([-0.00027 , -0.00039953, -0.0003659 , ..., -0.16393574,
 -0.17814247, 0. ], dtype=float32), 22050)




I did a lot of testing and I really prefer my Jupyter so any help would be appreciated. I tried the following : I've added
C:\ffmpeg\bin
andC:\ffmpeg
to my Path for both User and System Variables. After that I've made specific variables for ffmpeg and ffmpeg_bin for both User and System Variables. No luck. After that I've tried installing ffmpeg using conda, without success. The last thing I've tested is this :


import audioread
audioread.ffdec.FFmpegAudioFile('test.wav')




and that works. Thanks


-
dcadec : simplify decoding of VQ high frequencies
14 février 2014, par Christophe Gisquetdcadec : simplify decoding of VQ high frequencies
The vector dequantization has a test in a loop preventing effective SIMD
implementation. By moving it out of the loop, this loop can be DSPized.Therefore, modify the current DSP implementation. In particular, the
DSP implementation no longer has to handle null loop sizes.The decode_hf implementations have following timings :
For x86 Arrandale :
C SSE SSE2 SSE4
win32 : 260 162 119 104
win64 : 242 N/A 89 72The arm NEON optimizations follow in a later patch as external asm. The
now unused check for the y modifier in arm inline asm is removed from
configure. -
Cannot use ffmpeg in qt on windows
10 septembre 2016, par JohnnylinIn my source file, I have the following include :
#define __STDC_CONSTANT_MACROS
extern "C" {
#include "libavcodec/avcodec.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libswscale/swscale.h"
}and in .pro file, I have :
INCLUDEPATH += Z:\new_project\ffmpeg\include
LIBS += -L"Z:/new_project/ffmpeg/lib" \
-lavformat \
-lavcodec \
-lswscale \
-lavutilIn a function I call this :
QImage YV12ToRGB24_FFmpeg(unsigned char* pYUV, int width, int height)
{
if (width < 1 || height < 1 || pYUV == NULL)
return QImage();
int length = height * width * 3;
uchar* pRGB24 = new uchar[length];
AVFrame pFrameYUV, pFrameRGB;
av_image_fill_arrays(pFrameYUV.data, pFrameYUV.linesize, pYUV, AV_PIX_FMT_YUV420P, width, height, 1);
//.......other operations.....//
}when I run build in QtCreator, I got this error :
undefined reference to 'av_image_fill_arrays'
Can any one help ?
BTW, I use
ffmpeg-3.0-windows64-dev
, and My qt useQt5.7
, QtCreator build usemingw32-make
.EDIT :
Compilation output :
C:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe -spec win32-g++ -o Makefile ..\new_project.pro
C:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'Z:/new_project/build'
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\new_project.exe object_script.new_project.Release -lmingw32 -LC:\Qt\Qt5.7.0\5.7\mingw53_32\lib C:\Qt\Qt5.7.0\5.7\mingw53_32\lib\libqtmain.a -LC:\utils\postgresql\pgsql\lib -LC:\utils\my_sql\my_sql\lib -lshell32 -LZ:\new_project\ffmpeg\lib -lavformat -lavcodec -lswscale -lavutil -LZ:\new_project\opencv_3.0\x86\mingw\bin -lopencv_core300 -lopencv_imgproc300 -lopencv_highgui300 -lopencv_imgcodecs300 C:\Qt\Qt5.7.0\5.7\mingw53_32\lib\libQt5Widgets.a C:\Qt\Qt5.7.0\5.7\mingw53_32\lib\libQt5Gui.a C:\Qt\Qt5.7.0\5.7\mingw53_32\lib\libQt5Core.a release\icon_res.o
./release\camera_node.o:camera_node.cpp:(.text+0x464): undefined reference to `av_image_fill_arrays'
collect2.exe: error: ld returned 1 exit status