
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (42)
-
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 -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (9212)
-
How can I decrypt this m3u8 and key file to mp4, Maybe its use javascript to decryptdata
23 décembre 2020, par lionkinglkTHIS is the video website :
the video website link


From this video link, I download the m3u8, key.key and ts video files, and use FFMPEG to transform these files to mp4.
but Error :


ffmpeg -allowed_extensions ALL -i a.m3u8 -c copy 01.mp4
ffmpeg version N-94813-g85386c36e3-ffmpeg-for-N_m3u8DL-CLI Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.2.0 (GCC)
 libavutil 56. 35.100 / 56. 35.100
 libavcodec 58. 56.101 / 58. 56.101
 libavformat 58. 32.104 / 58. 32.104
 libavfilter 7. 58.102 / 7. 58.102
 libavresample 4. 0. 0 / 4. 0. 0
 libswresample 3. 6.100 / 3. 6.100
[hls @ 007e3000] Skip ('#EXT-X-VERSION:3')
[hls @ 007e3000] Skip ('#EXT-X-ALLOW-CACHE:YES')
[hls @ 007e3000] Opening 'a.key' for reading
[hls @ 007e3000] Opening 'crypto:43924590506ad94e644d0bfac89e14b9_2_0.ts' for reading
[hls @ 007e3000] Opening 'crypto:43924590506ad94e644d0bfac89e14b9_2_1.ts' for reading
[hls @ 007e3000] Error when loading first segment '43924590506ad94e644d0bfac89e14b9_2_0.ts'
a.m3u8: Invalid data found when processing input



The key file is


00000000h: 46 F5 50 A3 7A 46 85 B5 8C 17 5B 0E 4B 8D F5 49 ; F鮌F叺?[.K嶕I
00000010h: F1 02 79 41 58 C7 A3 D3 17 90 0D D6 27 67 D6 D0 ; ?yAX牵???g中



and the IV value in the m3u8 file is


IV=0x786d9270e353d8758b621c1f775491f2



Too long bytes to FFMPEG.



In my limited experience with html and javascript, I found the Chrome blob a random named javascript file when the website page freshed.


Chrome - Network log :


XHR:43924590506ad94e644d0bfac89e14b9_2.m3u8?pid=1608691204584X1511260&device=desktop
XHR:43924590506ad94e644d0bfac89e14b9_2.key?token=1df110e5-ff1d-42de-bd39-b63304bb3062-53648385
XHR:43924590506ad94e644d0bfac89e14b9_2_0.ts?pid=1608691204584X1511260&device=desktop
Other:blob:https://www.sciconf.cn/93ebcbe3-0211-4ec0-94df-421024e8b505




Some codes in the javascript file (
blob:https://www.sciconf.cn/93ebcbe3-0211-4ec0-94df-421024e8b505
)like :

o = function() {
 function t(t, e, i, n) {
 this.decryptdata = i,
 this.discardEPB = n,
 this.decrypter = new v.a(t,e,{
 removePKCS7Padding: !1
 })
 }
 var e = t.prototype;
 return e.decryptBuffer = function(t, e) {
 this.decrypter.decrypt(t, this.decryptdata.key.buffer, this.decryptdata.iv.buffer, e)
 }



I think the website use this js file to decrypt the key file and the IV value, but I can't add breakpoint to the random named js file.



I am studying this for a long time, but no use.


Please help or try to give some ideas how to achieve the decrypted key and IV ?


Thanks in advance.


-
confused about lhls in ffmpeg
27 décembre 2020, par JohnLI am more than a little confused about trying to use the experimental lhls option in ffmpeg.


I have built ffmpeg from source (which takes a while), and currently have version 4.1.6 running.


Reading other threads here, and the ffmpeg docs, it appears that the lhls option is available only in the Dash muxer.


I gravitated to HLS because of its support in Apple devices, and I thought that lhls was related (and Apple was drafting the spec).


Then there is the comment in the ffmpeg docs that states that the hls.js folks are working on supporting lhls in their library, which I also use to support browsers like Chrome.


Should I be using dash instead of hls for my prototype ? I want to try and get very low latency for a construction inspection app I am considering building. Right now, the latency I am seeing is 10-15 seconds.


Any insights would be appreciated. TIA


See my comment below. I have many of the dash format flags working, but can't get -lhls to work. Here are some of the build flags used :


conversion : avcodec configuration : —prefix=/usr —extra-version='1 deb10u1+rpt1' —toolchain=hardened —incdir=/usr/include/arm-linux-gnueabihf —enable-gpl —disable-stripping —enable-avresample —disable-filter=resample —enable-avisynth —enable-gnutls —enable-ladspa —enable-libaom —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libcdio —enable-libcodec2 —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable-libjack —enable-libmp3lame —enable-libmysofa —enable-libopenjpeg —enable-libopenmpt —enable-libopus —enable-libpulse —enable-librsvg —enable-librubberband —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx265 —enable-libxml2 —enable-libxvid —enable-libzmq —enable-libzvbi —enable-lv2 —enable-omx —enable-openal —enable-opengl —enable-sdl2 —enable-omx-rpi —enable-mmal —enable-neon —enable-rpi —enable-libdc1394 —enable-libdrm —enable-libiec61883 —enable-chromaprint —enable-frei0r —enable-libx264 —libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp —cpu=cortex-a7 —arch=armv6t2 —disable-thumb —enable-shared —disable-doc —disable-programs


-
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