Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (55)

  • 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 (8874)

  • How to host a react.js ssr on vercel ?

    2 janvier 2024, par UltimateSheepConfusedAtCode

    I want to host a react.js server side rendering because of ffmpeg killing me with SharedArrayBuffer is not defined

    


    I've tried so many hosting service provider like firebase but now I want to host it to Vercel but I don't know how to make it works with react ssr. Can anyone help me ?

    


    When I run 'ssr' command in my machine it's work and ffmpeg is not throwing 'bad memory' or 'SharedArrayBuffer is not defined' but when I run it in vercel build command it stucks but the index.js/server.js is running I know because the main script is running and won't stop so the build is stuck but any solution ? I've search the problem but I guess nobody haven't asked this yet

    


    A picture of directory

    


    and this a code of package.json

    


    {
  "name": "ultimatesheep-vidreverse",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@babel/preset-env": "^7.18.10",
    "@babel/preset-react": "^7.18.6",
    "@babel/register": "^7.18.9",
    "@ffmpeg/core": "^0.11.0",
    "@ffmpeg/ffmpeg": "^0.11.0",
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "^13.3.0",
    "@testing-library/user-event": "^13.5.0",
    "bootstrap": "^5.2.0",
    "cors": "^2.8.5",
    "ignore-styles": "^5.0.1",
    "react": "^18.2.0",
    "react-bootstrap": "^2.5.0",
    "react-dom": "^18.2.0",
    "react-scripts": "5.0.1",
    "uuid": "^8.3.2",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "ssr": "npm run build && node backend/index.js",
    "deploy": "npm run build && firebase deploy",
    "git" : "git add . && git commit -m 'ahawdaw' && git push -u origin main"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "externals": {
    "react": "React"
  },
  "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
  "main": "backend/index.js",
  "keywords": [],
  "author": "",
  "license": "ISC"
}


    


    my vercel settings

    


  • mmaldec : Add mpeg2 decoding support

    14 avril 2016, par Julian Scheel
    mmaldec : Add mpeg2 decoding support
    

    Register mmaldec as mpeg2 decoder. Supporting mpeg2 in mmaldec is just a
    matter of setting the correct MMAL_ENCODING on the input port. To ease the
    addition of further supported mmal codecs a macro is introduced to generate
    the decoder and decoder class structs.

    Signed-off-by : Julian Scheel <julian@jusst.de>
    Signed-off-by : wm4 <nfxjfg@googlemail.com>
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DBH] Changelog
    • [DBH] configure
    • [DBH] libavcodec/Makefile
    • [DBH] libavcodec/allcodecs.c
    • [DBH] libavcodec/mmaldec.c
    • [DBH] libavcodec/version.h
  • Out-of-range channels being referenced when decoding AAC AUs

    3 février 2017, par SoxInCincy

    As part of a proprietary data stream, I have variable length AUs of raw AAC encoded data. The data is single channel and I have the configuration information on how the data was encoded. I need to decode this data to PCM for playback. Right now, I am trying to do so using ffmpeg’s libavcodec, but to no avail. The error I get from ffmpeg(libavcodec) when trying to decode is "channel element 3.7 is not allocated." As I am trying to decode single channel data, have the context set as single channel and channel layout of mono, I am not entirely sure why the decoder is looking for channels beyond 1.

    Can anyone point me in the right direction ? I appreciate any help !

    Prototype Code :

    //Initialize the decoder before sending AUs
    bool AAC_Decoder::initialize()
    {
       //register codecs
       avcodec_register_all();
       c=NULL;
       //attempt to find AAC decoder
       codec = avcodec_find_decoder(AV_CODEC_ID_AAC);
       if (codec==NULL)
       {
           std::cout&lt;&lt;"Could Not Find Codec"&lt;/setup codec context using known information about the stream
       c=avcodec_alloc_context3(codec);
       c->bit_rate=32000;
       c->channels=1;
       c->channel_layout=AV_CH_LAYOUT_MONO;
       c->sample_rate=16000;

       //attempt to open the codec using the prescribed context and no options
       if (avcodec_open2(c,codec,NULL)&lt;0)
       {
           std::cout&lt;&lt;"Could Not Open Codec"&lt;/decode a single AU sent in a buffer
    bool AAC_Decoder::decode(uint8_t *sampleBuffer, uint32_t size)
    {
       //setup single AU packet
       AVPacket avPacket;
       av_init_packet(&amp;avPacket);
       AVFrame * frame;
       pkt.size = size;
       pkt.data = sampleBuffer;

       //attempt to setup a frame
       frame = av_frame_alloc();
       if (!frame)
       {
           std::cout&lt;&lt;"Could not Allocate Frame"&lt;/attempt to decode the frame
       int gotFrame =0;
       int len = 0;
       len = avcodec_decode_audio4(c,frame,&amp;gotFrame,&amp;pkt);

       if (len &lt; 0)//could not decode frame.  Currently getting -22 as response
       {
           std::cout&lt;&lt;"decoding error"&lt;/verify the frame was decoded.  
       {
           std::cout&lt;&lt;"don't have frame"&lt;/successfully decoded.  for now, cout the size as verification.
       {
           int data_size = av_samples_get_buffer_size(NULL, c->channels, frame->nb_samples, c->sample_fmt, 1);
           std::cout&lt;/free frame and return
       av_frame_free(&amp;frame);
       return true;
    }