
Recherche avancée
Autres articles (77)
-
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (8390)
-
Error : mingw32/bin/ld.exe : cannot find -lbcrypt when compiling goav
18 avril 2018, par nevernewI’m trying to compile goav on Windows and I’ve got quite far I’ve compiled the ffmpeg libraries in MSYS2 and linked the packages with :
set CGO_CFLAGS=-IC:\path\to\FFmpeg\
set PKG_CONFIG_PATH=%~dp0FFmpeg\libavformat;%~dp0FFmpeg\libavcodec;%~dp0FFmpeg\libavutil;%~dp0FFmpeg\libswresample;which has worked !
However, I’m now getting the error
could not determine kind of name for ...
Here’s the whole error list :
# github.com/giorgisio/goav/avcodec
source\src\github.com\giorgisio\goav\avcodec\codecs.go:57:52: could not determine kind of name for C.AV_CODEC_ID_ADPCM_VIMA_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:93:52: could not determine kind of name for C.AV_CODEC_ID_BRENDER_PIX_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:131:52: could not determine kind of name for C.AV_CODEC_ID_ESCAPE130_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:134:52: could not determine kind of name for C.AV_CODEC_ID_EXR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:151:52: could not determine kind of name for C.AV_CODEC_ID_G2M_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:164:52: could not determine kind of name for C.AV_CODEC_ID_HEVC_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:211:52: could not determine kind of name for C.AV_CODEC_ID_MPEG2VIDEO_XVMC
source\src\github.com\giorgisio\goav\avcodec\codecs.go:228:52: could not determine kind of name for C.AV_CODEC_ID_MVC1_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:230:52: could not determine kind of name for C.AV_CODEC_ID_MVC2_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:237:52: could not determine kind of name for C.AV_CODEC_ID_OPUS_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:240:52: could not determine kind of name for C.AV_CODEC_ID_PAF_AUDIO_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:242:52: could not determine kind of name for C.AV_CODEC_ID_PAF_VIDEO_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:262:52: could not determine kind of name for C.AV_CODEC_ID_PCM_S24LE_PLANAR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:266:52: could not determine kind of name for C.AV_CODEC_ID_PCM_S32LE_PLANAR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:311:52: could not determine kind of name for C.AV_CODEC_ID_SANM_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:314:52: could not determine kind of name for C.AV_CODEC_ID_SGIRLE_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:338:52: could not determine kind of name for C.AV_CODEC_ID_TAK_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:373:52: could not determine kind of name for C.AV_CODEC_ID_VIMA
source\src\github.com\giorgisio\goav\avcodec\codecs.go:379:52: could not determine kind of name for C.AV_CODEC_ID_VOXWARE
source\src\github.com\giorgisio\goav\avcodec\codecs.go:386:52: could not determine kind of name for C.AV_CODEC_ID_VP7_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:392:52: could not determine kind of name for C.AV_CODEC_ID_WEBP_DEPRECATED
compilation failed.
exit code 2How can I fix this so it can finish compiling ?
More Errors :
I commented out those lines in the source file to see if I could continue, but now I’m getting all these errors, Obviously I’m missing some step, does anyone have any insight ?
# github.com/giorgisio/goav/avcodec
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavformat
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lbz2
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavcodec
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lz
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lswresample
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavutil
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lbcrypt
collect2.exe: error: ld returned 1 exit status
....A Fix
I added the sub folders of FFmpeg to LDFLAGS and it’s not getting errors for those libraries anymore.
@set CGO_LDFLAGS=-L%~dp0FFmpeg\ -L%~dp0FFmpeg\libavformat -L%~dp0FFmpeg\libavcodec -L%~dp0FFmpeg\libavutil -L%~dp0FFmpeg\libswresample
I also found GNUWindows ports for zlib and bzip2, so their errors have disappeared.
But I’m still getting errors for
-lbcrypt
. anyone know where/how to go about getting this lib ? -
Error : mingw32/bin/ld.exe : cannot find -lavformat when compiling goav
18 avril 2018, par nevernewI’m trying to compile goav on Windows and I’ve got quite far I’ve compiled the ffmpeg libraries in MSYS2 and linked the packages with :
set CGO_CFLAGS=-IC:\path\to\FFmpeg\
set PKG_CONFIG_PATH=%~dp0FFmpeg\libavformat;%~dp0FFmpeg\libavcodec;%~dp0FFmpeg\libavutil;%~dp0FFmpeg\libswresample;which has worked !
However, I’m now getting the error
could not determine kind of name for ...
Here’s the whole error list :
# github.com/giorgisio/goav/avcodec
source\src\github.com\giorgisio\goav\avcodec\codecs.go:57:52: could not determine kind of name for C.AV_CODEC_ID_ADPCM_VIMA_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:93:52: could not determine kind of name for C.AV_CODEC_ID_BRENDER_PIX_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:131:52: could not determine kind of name for C.AV_CODEC_ID_ESCAPE130_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:134:52: could not determine kind of name for C.AV_CODEC_ID_EXR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:151:52: could not determine kind of name for C.AV_CODEC_ID_G2M_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:164:52: could not determine kind of name for C.AV_CODEC_ID_HEVC_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:211:52: could not determine kind of name for C.AV_CODEC_ID_MPEG2VIDEO_XVMC
source\src\github.com\giorgisio\goav\avcodec\codecs.go:228:52: could not determine kind of name for C.AV_CODEC_ID_MVC1_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:230:52: could not determine kind of name for C.AV_CODEC_ID_MVC2_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:237:52: could not determine kind of name for C.AV_CODEC_ID_OPUS_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:240:52: could not determine kind of name for C.AV_CODEC_ID_PAF_AUDIO_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:242:52: could not determine kind of name for C.AV_CODEC_ID_PAF_VIDEO_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:262:52: could not determine kind of name for C.AV_CODEC_ID_PCM_S24LE_PLANAR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:266:52: could not determine kind of name for C.AV_CODEC_ID_PCM_S32LE_PLANAR_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:311:52: could not determine kind of name for C.AV_CODEC_ID_SANM_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:314:52: could not determine kind of name for C.AV_CODEC_ID_SGIRLE_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:338:52: could not determine kind of name for C.AV_CODEC_ID_TAK_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:373:52: could not determine kind of name for C.AV_CODEC_ID_VIMA
source\src\github.com\giorgisio\goav\avcodec\codecs.go:379:52: could not determine kind of name for C.AV_CODEC_ID_VOXWARE
source\src\github.com\giorgisio\goav\avcodec\codecs.go:386:52: could not determine kind of name for C.AV_CODEC_ID_VP7_DEPRECATED
source\src\github.com\giorgisio\goav\avcodec\codecs.go:392:52: could not determine kind of name for C.AV_CODEC_ID_WEBP_DEPRECATED
compilation failed.
exit code 2How can I fix this so it can finish compiling ?
More Errors :
I commented out those lines in the source file to see if I could continue, but now I’m getting all these errors, Obviously I’m missing some step, does anyone have any insight ?
# github.com/giorgisio/goav/avcodec
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavformat
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lbz2
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavcodec
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lz
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lswresample
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lavutil
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot find -lbcrypt
collect2.exe: error: ld returned 1 exit status
# github.com/giorgisio/goav/avcodec
cgo-gcc-prolog: In function '_cgo_3a37b7d41a30_Cfunc_av_codec_get_max_lowres':
cgo-gcc-prolog:40:2: warning: 'av_codec_get_max_lowres' is deprecated [-Wdeprecated-declarations]
In file included from C:\Users\chris\Documents\videoplayer\FFmpeg/libavformat/avformat.h:319:0,
from source\src\github.com\giorgisio\goav\avcodec\avcodec.go:14:
C:\Users\chris\Documents\videoplayer\FFmpeg/libavcodec/avcodec.h:3554:5: note: declared here
int av_codec_get_max_lowres(const AVCodec *codec);
^~~~~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function '_cgo_3a37b7d41a30_Cfunc_av_codec_next':
cgo-gcc-prolog:91:2: warning: 'av_codec_next' is deprecated [-Wdeprecated-declarations]
In file included from C:\Users\chris\Documents\videoplayer\FFmpeg/libavformat/avformat.h:319:0,
from source\src\github.com\giorgisio\goav\avcodec\avcodec.go:14:
C:\Users\chris\Documents\videoplayer\FFmpeg/libavcodec/avcodec.h:4045:10: note: declared here
AVCodec *av_codec_next(const AVCodec *c);
.... -
Python Subprocess with ffmpeg & django file (video) object thumbnail generation error
12 juin 2018, par denbotI am trying to re-write the currently outdated easy-thumbnails-ffmpeg and have made some progress. However, I am currently getting the error "no such file or directory" when attempting to send a stream of bytes (mp4 video) into ffmpeg, a frame at 00:01 to an image and output it as a stream of bytes.
from PIL import Image
from subprocess import Popen, PIPE
from django.utils.six import BytesIO
def ffmpeg_frame(source, frame='00:00:01', **options):
if not source or not source._file:
return
source._file.seek(0)
cmd = ['ffmpeg','-i','-f','h264','-','-ss',frame,'-vframes','1','-f','image2' ,'-']
data = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE).communicate(source.read())
print('Output:', data)
if not data[0]:
return
image = Image.open(BytesIO(data[0]))
image.load()
return imageI’m unsure if the issue is to do with my use of ffmpeg flags or how I am piping in/out byte data.
When placing the flags ’-f’,’h264’ before ’-i’, I also get the following error : Error while opening decoder for input stream #0:0 : Invalid data found when processing input
Removing the -f h264 flag gives the following error :
annot determine format of input stream 0:0 after EOF\nError marking filters as finished\nConversion failed !