Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (31)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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 (5376)

  • where can one find old patches/curated versions of ffmpeg for qsv (mpeg2_qsv) ?

    10 avril 2023, par CodeCalf

    for the past year or so the mpeg2_qsv encoder in ffmpeg/libmfx has been broken due to a idr interval problem (sends only one idr frame at the start of the video rather than sending idr frames at a certain interval) i have found a solution/workaround by adding the idr-interval option defined in h264_qsv.c to the mpeg2_qsv.c provided in ffmpeg it does work but the quality of the output is subpar even after applying heavy post processing filters and i have been working on this exact platform for the past 4 years so i know for a fact that it used to work way better hence i have been trying to revert the changes made to ffmpeg in the past 1-2 years unsuccessfully as i am not able to find old patches that i could use as reference.

    


    i understand that for this problem a lot of people suggest using ffmpeg 2.8 which apparently is the best for old qsv behaviour but due to mediasdk version mismatches i haven't been able to build it successfully on any new OS after ubuntu 18.04 but i cannot use ubuntu 18.04 or below because of a hardware issue on my platform which messes with the xserver introducing a lot of weird errors if anyone has any suggestions of how i can overcome this then please help as i am all ears

    


    i am new to this website so i apologize in advance if i have made a mistake in asking this question.

    


    thank you for your patience and guidance

    


  • JavaScript Audio Decoder Library or Way to Decode Browser Unsupported Audio Formats ?

    20 mars 2023, par user21338683

    The issue :

    


    I've spent a week trying to figure out how I can play or decode ALAC files in my Electron application.

    


    Libraries I have tried or looked at :

    


      

    • Aurora - Github issues have been stale for years. Last updates were in 2016. It doesn't work when I install it with npm.

      


    • 


    • Audio Decode - Doesn't support ALAC.

      


    • 


    • WASM Audio Decoders - Doesn't support ALAC.

      


    • 


    • Web Audio API from AudioJS - Depends on Aurora. Same issue where it fails to load coffee files.

      


    • 


    • FFmpeg.JS from Kagami - Has a memory leak then crashes.

      


    • 


    • FFmpeg.wasm - I went down a very deep rabbit hole trying to figure out if this was the tool I needed. More on that later.

      


    • 


    • A few backend audio players for NodeJS - I don't remember their names but they're all unmaintained.

      


    • 


    • HowlerJS - I don't know what formats they support, but it looks like it's the same as the browser, which would mean no ALAC. Still unsure.

      


    • 


    


    Things I've tried :

    


    Web Audio API | MSE

    


    I have tried looking into the Web Audio API and MSE and left disappointed in their lack of support for a variety of audio formats.

    


    FFmpeg.wasm

    


    I got it to convert an ALAC file into a format the Electron browser (which is Chrome) would accept, however, it can take several seconds to convert the whole file which is not acceptable to wait that long after you click play.

    


    I tried reading a file stream and converting chunks, however, I was limited by what I could pass through the IPC as it's not possible to pass functions or things that can't be stringified.

    


    Ultimately I would need to coordinate when to fetch the chunks and then play them, which sounded like a job for MSE until I read the formats it supported were even less than the Web Audio API and HTML audio tag.

    


    I tried to set it up anyway by converting chunks in FFmpeg and reading from its memory, then passing that to an AudioContext originally, but it never played as the source was invalid. I then tried converting to a supported MSE format but that required getting the MIME type and codecs. I now needed a library for that or read the bytes myself... I used Google and the only results I get are for video decoding. Not what I need. Mux.JS is ESM based, won't work on Electron aside from its scope looking more like it's used for videos. Same for MP4Box, I just don't know yet if they will work for audio.

    


    I got something to play using MSE by lying and saying the MIME type would be audio/mpeg. That's not scalable, not to mention MP3 is lossy and the audio tag already plays it. I don't want to convert a FLAC (which MSE doesn't support) to an MP3 just to play it when the audio tag already plays FLAC natively. That would also degrade the quality of the audio.

    


    I also tried writing to a specific decode file and reading it while it was being written to (no idea if that could work). I didn't get the results I was looking for. Basically the file wasn't valid when it was accessed and it never got re-queried once it finished being decoded. And again, I can't pass a callback through the IPC to run once it finishes because that doesn't work. IPC doesn't pass functions.

    


    My Next Steps

    


    I'm reaching out here on StackOverflow to see if there is anything I can do, or try, or think of, or use. Something tells me there is a way to get this to work.

    


    If you need extra info I can provide it. If I asked my question wrong I apologize, I'm new here. I have done some searching for existing issues, which is how I found the libraries I listed as well as browser support for different audio formats. However, the ones I found didn't dive deeper into the issue. They issues simply ended with links to browser support specs or giving the author libraries to check out. FFmpeg.wasm seems to be the most promising one, I still have it installed and trying to use it.

    


  • New ffmpeg build issue : libavcodec/aacps_tablegen.h error : expected declaration specifiers or ‘...’ before numeric constant

    16 mars 2023, par gaamaa

    ffmpeg build error :
Raspberry Pi 4 B+,
Raspberry Pi OS Buster 32bit

    


    Two years back I built ffmpeg successfully with same script on the same setup.
Now I try building new version ffmpeg 5.0, I get below error and build fails.

    


    I nearly tried more than 10 times with even many other OS version.
Raspberry Pi OS Buster 32bit
Raspberry Pi OS Bullseys 32bit
Raspberry Pi OS Bullseys 64bit

    


    I even tried many scripts :
https://github.com/NRCHKB/nrchkb-ffmpeg-build
https://github.com/NRCHKB/nrchkb-ffmpeg-build/discussions/11
https://github.com/NRCHKB/nrchkb-ffmpeg-build/discussions/11#discussioncomment-5008967
https://gist.github.com/milankragujevic/bd38d796ea6eea27f229216d75d6c202
https://gist.github.com/wildrun0/86a890585857a36c90110cee275c45fd#file-compile-ffmpeg-sh

    


    Almost all are showing same error at the end.
Should I doubt the latest ffmpeg git source ?
https://github.com/FFmpeg/FFmpeg.git

    


    All showing same error on the files :
libavcodec/aacps_tablegen.h
libavcodec/aacps_tablegen_template.c

    


    No solution found on the internet on my searches
It will be highy appreciated if some ffmpeg experts solve this issue.

    


    ./config.h:594: warning: "CONFIG_HARDCODED_TABLES" redefined
 #define CONFIG_HARDCODED_TABLES 1

In file included from libavcodec/aacps_tablegen.c:24:
libavcodec/aacps_tablegen_template.c:25: note: this is the location of the previous definition
 #define CONFIG_HARDCODED_TABLES 0

In file included from libavcodec/aacps_tablegen_template.c:39,
                 from libavcodec/aacps_tablegen.c:24:
libavcodec/aacps_tablegen.h:46:24: error: expected declaration specifiers or ‘...’ before numeric constant
 static DECLARE_ALIGNED(16, float, f20_0_8) [ 8][8][2];
                        ^~
libavcodec/aacps_tablegen.h:46:35: error: unknown type name ‘f20_0_8’
 static DECLARE_ALIGNED(16, float, f20_0_8) [ 8][8][2];
                                   ^~~~~~~
libavcodec/aacps_tablegen.h:47:24: error: expected declaration specifiers or ‘...’ before numeric constant
 static DECLARE_ALIGNED(16, float, f34_0_12)[12][8][2];
                        ^~
libavcodec/aacps_tablegen.h:47:35: error: unknown type name ‘f34_0_12’
 static DECLARE_ALIGNED(16, float, f34_0_12)[12][8][2];
                                   ^~~~~~~~
libavcodec/aacps_tablegen.h:48:24: error: expected declaration specifiers or ‘...’ before numeric constant
 static DECLARE_ALIGNED(16, float, f34_1_8) [ 8][8][2];
                        ^~
libavcodec/aacps_tablegen.h:48:35: error: unknown type name ‘f34_1_8’
 static DECLARE_ALIGNED(16, float, f34_1_8) [ 8][8][2];
                                   ^~~~~~~
libavcodec/aacps_tablegen.h:49:24: error: expected declaration specifiers or ‘...’ before numeric constant
 static DECLARE_ALIGNED(16, float, f34_2_4) [ 4][8][2];
                        ^~
libavcodec/aacps_tablegen.h:49:35: error: unknown type name ‘f34_2_4’
 static DECLARE_ALIGNED(16, float, f34_2_4) [ 4][8][2];
                                   ^~~~~~~
libavcodec/aacps_tablegen.h:50:36: error: expected declaration specifiers or ‘...’ before numeric constant
 static TABLE_CONST DECLARE_ALIGNED(16, float, Q_fract_allpass)[2][50][3][2];
                                    ^~
libavcodec/aacps_tablegen.h:50:47: error: unknown type name ‘Q_fract_allpass’
 static TABLE_CONST DECLARE_ALIGNED(16, float, Q_fract_allpass)[2][50][3][2];
                                               ^~~~~~~~~~~~~~~
libavcodec/aacps_tablegen.h:51:24: error: expected declaration specifiers or ‘...’ before numeric constant
 static DECLARE_ALIGNED(16, float, phi_fract)[2][50][2];
                        ^~
libavcodec/aacps_tablegen.h:51:35: error: unknown type name ‘phi_fract’
 static DECLARE_ALIGNED(16, float, phi_fract)[2][50][2];
                                   ^~~~~~~~~
libavcodec/aacps_tablegen.h: In function ‘ps_tableinit’:
libavcodec/aacps_tablegen.h:187:13: error: ‘Q_fract_allpass’ undeclared (first use in this function)
             Q_fract_allpass[0][k][m][0] = cos(theta);
             ^~~~~~~~~~~~~~~
libavcodec/aacps_tablegen.h:187:13: note: each undeclared identifier is reported only once for each function it appears in
libavcodec/aacps_tablegen.h:191:9: error: ‘phi_fract’ undeclared (first use in this function)
         phi_fract[0][k][0] = cos(theta);
         ^~~~~~~~~
libavcodec/aacps_tablegen.h:210:29: error: ‘f20_0_8’ undeclared (first use in this function)
     make_filters_from_proto(f20_0_8,  g0_Q8,   8);
                             ^~~~~~~
libavcodec/aacps_tablegen.h:211:29: error: ‘f34_0_12’ undeclared (first use in this function)
     make_filters_from_proto(f34_0_12, g0_Q12, 12);
                             ^~~~~~~~
libavcodec/aacps_tablegen.h:212:29: error: ‘f34_1_8’ undeclared (first use in this function)
     make_filters_from_proto(f34_1_8,  g1_Q8,   8);
                             ^~~~~~~
libavcodec/aacps_tablegen.h:213:29: error: ‘f34_2_4’ undeclared (first use in this function)
     make_filters_from_proto(f34_2_4,  g2_Q4,   4);
                             ^~~~~~~
In file included from libavcodec/aacps_tablegen.c:24:
libavcodec/aacps_tablegen_template.c: In function ‘main’:
libavcodec/aacps_tablegen_template.c:88:28: error: ‘f20_0_8’ undeclared (first use in this function)
     ARRAY_RENAME(3d_array)(f20_0_8, 8, 8, 2);
                            ^~~~~~~
libavcodec/aacps_tablegen_template.c:91:28: error: ‘f34_0_12’ undeclared (first use in this function)
     ARRAY_RENAME(3d_array)(f34_0_12, 12, 8, 2);
                            ^~~~~~~~
libavcodec/aacps_tablegen_template.c:94:28: error: ‘f34_1_8’ undeclared (first use in this function)
     ARRAY_RENAME(3d_array)(f34_1_8, 8, 8, 2);
                            ^~~~~~~
libavcodec/aacps_tablegen_template.c:97:28: error: ‘f34_2_4’ undeclared (first use in this function)
     ARRAY_RENAME(3d_array)(f34_2_4, 4, 8, 2);
                            ^~~~~~~
libavcodec/aacps_tablegen_template.c:101:28: error: ‘Q_fract_allpass’ undeclared (first use in this function)
     ARRAY_RENAME(4d_array)(Q_fract_allpass, 2, 50, 3, 2);
                            ^~~~~~~~~~~~~~~
libavcodec/aacps_tablegen_template.c:104:28: error: ‘phi_fract’ undeclared (first use in this function)
     ARRAY_RENAME(3d_array)(phi_fract, 2, 50, 2);
                            ^~~~~~~~~
make: *** [ffbuild/common.mak:201: libavcodec/aacps_tablegen.o] Error 1
make: *** Waiting for unfinished jobs....