
Recherche avancée
Autres articles (107)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (18885)
-
How is better to use ffmpeg with the ASP.NET Core, on Linux ?
26 mars, par user8245660I've got the project (ASP.NET Core, on Linux) where are the several tasks, which relate to the video converting and extracting frames from the video file.



I thought about the two possible options :



- 

- using
ffmpeg
console utility - using
P/Invoke
with thelibavcodec
library and others, whichffmpeg
uses







The second option is miles harder and may be very impractical, because it reminds me developing the new wrapper/library, instead of using the ready products.



I've done googling, but there aren't well-done projects for the C#/ASP.NET Core on Linux platform. There are some good for C++ and Python, but NOT for the C# on Linux/.NET Core.



I decided to look at the first option, which I suppose would be more easier and practical. But, there are some weak places, which can produce many problems. We understand (I suppose), that using the 1st option, the end-developer shall use the process forking. So, there could be possible problems with the process idle and other possible issues...



I'm asking about your practice, because it's my first experience on Linux platform with the video converting/sampling using C#. I've used the Expression Encoder .NET library on Windows platform, but it's other story and it makes no sense, right now.



May be, there are other options, which I can't see right at the moment. I dislike the 1st option because of possible unhandled exceptions, because
ffmpeg
with such role becomes the black box for the ASP.NET Core backend.

- using
-
FFmpeg fails to build : pocketsphinx (implicit declaration of function 'ps_get_in_speech' is invalid in C99)
12 janvier 2020, par Joy JinI’m building FFmpeg version 4.2.2 on macOS High Sierra 10.13.6. The configuration is :
configure --enable-gpl --enable-version3 --enable-nonfree --enable-gray --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-gmp --enable-ladspa --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcelt --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libjack --enable-libklvanc --enable-libkvazaar --enable-liblensfun --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencv --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-librtmp --enable-libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtensorflow --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxavs2 --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-libxcb-shape --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-decklink --enable-libmysofa --enable-openal --enable-opencl --enable-opengl --enable-openssl --enable-pocketsphinx --enable-vapoursynth
Make gives me the following error :
CC libavfilter/af_asr.o
libavfilter/af_asr.c:72:19: error: implicit declaration of function
'ps_get_in_speech' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
have_speech = ps_get_in_speech(s->ps);
^
libavfilter/af_asr.c:72:19: warning: this function declaration is not a
prototype [-Wstrict-prototypes]
libavfilter/af_asr.c:77:40: error: too few arguments to function call, expected
3, have 2
speech = ps_get_hyp(s->ps, NULL);
~~~~~~~~~~ ^
/opt/local/include/pocketsphinx/pocketsphinx.h:449:1: note: 'ps_get_hyp'
declared here
char const *ps_get_hyp(ps_decoder_t *ps, int32 *out_best_score,
^
libavfilter/af_asr.c:80:27: error: too few arguments to function call, expected
2, have 1
ps_start_utt(s->ps);
~~~~~~~~~~~~ ^
/opt/local/include/pocketsphinx/pocketsphinx.h:363:1: note: 'ps_start_utt'
declared here
int ps_start_utt(ps_decoder_t *ps, char const *uttid);
^
libavfilter/af_asr.c:92:23: error: too few arguments to function call, expected
2, have 1
ps_start_utt(s->ps);
~~~~~~~~~~~~ ^
/opt/local/include/pocketsphinx/pocketsphinx.h:363:1: note: 'ps_start_utt'
declared here
int ps_start_utt(ps_decoder_t *ps, char const *uttid);
^
libavfilter/af_asr.c:116:5: error: implicit declaration of function
'ps_default_search_args' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
ps_default_search_args(s->config);
^
libavfilter/af_asr.c:116:5: warning: this function declaration is not a
prototype [-Wstrict-prototypes]
2 warnings and 5 errors generated.
make: *** [libavfilter/af_asr.o] Error 1This issue does not appear if I remove —enable-pocketsphinx from the configure argument.
I built and installed sphinxbase from the source, and I used macport’s pocketsphinx version because building from source failed. These two issues might be related.
acmod.c:1037:34: error: too many arguments provided to function-like macro
invocation
acmod->senscr_frame, acmod->n_senone_active);
^
/usr/local/include/sphinxbase/err.h:144:9: note: macro 'E_DEBUG' defined here
#define E_DEBUG(level,x)
^
acmod.c:1036:5: error: use of undeclared identifier 'E_DEBUG'; did you mean
'ERR_DEBUG'?
E_DEBUG("Frame %d has %d active states\n",
^~~~~~~
ERR_DEBUG
/usr/local/include/sphinxbase/err.h:149:5: note: 'ERR_DEBUG' declared here
ERR_DEBUG,
^
acmod.c:1036:5: warning: expression result unused [-Wunused-value]
E_DEBUG("Frame %d has %d active states\n",
^~~~~~~
acmod.c:1161:17: error: too many arguments provided to function-like macro
invocation
acmod->n_senone_active);
^
/usr/local/include/sphinxbase/err.h:144:9: note: macro 'E_DEBUG' defined here
#define E_DEBUG(level,x)
^
acmod.c:1160:9: error: use of undeclared identifier 'E_DEBUG'; did you mean
'ERR_DEBUG'?
E_DEBUG("Frame %d has %d active states\n", frame_idx,
^~~~~~~
ERR_DEBUG
/usr/local/include/sphinxbase/err.h:149:5: note: 'ERR_DEBUG' declared here
ERR_DEBUG,
^
acmod.c:1160:9: warning: expression result unused [-Wunused-value]
E_DEBUG("Frame %d has %d active states\n", frame_idx,
^~~~~~~
acmod.c:1303:37: error: too many arguments provided to function-like macro
invocation
acmod->n_senone_active, acmod->output_frame);
^
/usr/local/include/sphinxbase/err.h:144:9: note: macro 'E_DEBUG' defined here
#define E_DEBUG(level,x)
^
acmod.c:1302:5: error: use of undeclared identifier 'E_DEBUG'; did you mean
'ERR_DEBUG'?
E_DEBUG("acmod_flags2list: %d active in frame %d\n",
^~~~~~~
ERR_DEBUG
/usr/local/include/sphinxbase/err.h:149:5: note: 'ERR_DEBUG' declared here
ERR_DEBUG,
^
acmod.c:1302:5: warning: expression result unused [-Wunused-value]
E_DEBUG("acmod_flags2list: %d active in frame %d\n",
^~~~~~~
3 warnings and 6 errors generated.
make[2]: *** [acmod.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1 -
avfilter/blend : use a per-thread AVExpr
8 mai 2024, par Marton Balint