Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (67)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6535)

  • SNAP : Simulation and Neuroscience Application Platform [closed]

    19 avril 2024, par S_S

    Is there any documentation/help manual on how to use SNAP (Simulation and Neuroscience Application Platform)1.

    



    I wanted to run the Motor Imagery sample scenario with a .avi file for the stimulus instead of the image. How can that be done ?

    



    The following error is obtained when using the AlphaCalibration scenario which gives code to play an avi file.Any help appreciated

    



    :movies:ffmpeg(warning): parser not found for codec indeo4, packets or times may be invalid.
:movies:ffmpeg(warning): max_analyze_duration 5000000 reached at 5000000
:movies(error): Could not open /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
:audio(error): Cannot open file: /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
:audio(error): Could not open audio /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
:movies:ffmpeg(warning): parser not found for codec indeo4, packets or times may be invalid.
:movies:ffmpeg(warning): max_analyze_duration 5000000 reached at 5000000
:movies(error): Could not open /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
:gobj(error): Texture "/e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi" exists but cannot be read.
Traceback (most recent call last):
  File "E:\BCI_Feb2014\SNAP-master\src\framework\latentmodule.py", line 458, in _run_wrap
    self.run()
  File "modules\BCI\AlphaCalibration.py", line 30, in run
Exception during run():
    m = self.movie(self.moviefile, block=False, scale=[0.7,0.4],aspect=1.125,contentoffset=[0,0],volume=0.3,timeoffset=self.begintime+t*self.awake_duration,looping=True)
Could not load texture: bird.avi
  File "E:\BCI_Feb2014\SNAP-master\src\framework\basicstimuli.py", line 348, in movie
    tex = self._engine.base.loader.loadTexture(filename)
  File "E:\BCI_Feb2014\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in loadTexture
    raise IOError, message
IOError: Could not load texture: bird.avi


    


  • SNAP : Simulation and Neuroscience Application Platform

    2 décembre 2014, par Sumit

    Is there any documentation/help manual on how to use SNAP (Simulation and Neuroscience Application Platform)1.

    I wanted to run the Motor Imagery sample scenario with a .avi file for the stimulus instead of the image. How can that be done ?

    The following error is obtained when using the AlphaCalibration scenario which gives code to play an avi file.Any help appreciated

    :movies:ffmpeg(warning): parser not found for codec indeo4, packets or times may be invalid.
    :movies:ffmpeg(warning): max_analyze_duration 5000000 reached at 5000000
    :movies(error): Could not open /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :audio(error): Cannot open file: /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :audio(error): Could not open audio /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :movies:ffmpeg(warning): parser not found for codec indeo4, packets or times may be invalid.
    :movies:ffmpeg(warning): max_analyze_duration 5000000 reached at 5000000
    :movies(error): Could not open /e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi
    :gobj(error): Texture "/e/BCI_Feb2014/SNAP-master/src/studies/SampleStudy/bird.avi" exists but cannot be read.
    Traceback (most recent call last):
     File "E:\BCI_Feb2014\SNAP-master\src\framework\latentmodule.py", line 458, in _run_wrap
       self.run()
     File "modules\BCI\AlphaCalibration.py", line 30, in run
    Exception during run():
       m = self.movie(self.moviefile, block=False, scale=[0.7,0.4],aspect=1.125,contentoffset=[0,0],volume=0.3,timeoffset=self.begintime+t*self.awake_duration,looping=True)
    Could not load texture: bird.avi
     File "E:\BCI_Feb2014\SNAP-master\src\framework\basicstimuli.py", line 348, in movie
       tex = self._engine.base.loader.loadTexture(filename)
     File "E:\BCI_Feb2014\Panda3D-1.8.0\direct\showbase\Loader.py", line 554, in loadTexture
       raise IOError, message
    IOError: Could not load texture: bird.avi
  • FFMPEG zip stream c++

    26 janvier 2018, par Javier Ramírez

    I have the following code at the start to load a video from a file

     SwsContext *img_convert_ctx = NULL;
     AVFormatContext *pFormatCtx = NULL;
     AVCodecContext  *pCodecCtx = NULL;
     AVCodec *pCodec = NULL;
     AVFrame *pFrameRGB = NULL;
     AVFrame *pFrame = NULL;
     uint8_t *buffer = NULL;
     AVPacket packet;

     av_register_all();
     if(avformat_open_input(&pFormatCtx,"video.avi",NULL,NULL) != 0)return GL_FALSE;
     if(avformat_find_stream_info(pFormatCtx,NULL) < 0)return GL_FALSE;
     av_dump_format(pFormatCtx,0,"video.avi",0);

     pCodecCtx = pFormatCtx->streams[0]->codec;
     pCodec = avcodec_find_decoder(pCodecCtx->codec_id);
     if(pCodec == NULL)return GL_FALSE;
     if(avcodec_open2(pCodecCtx,pCodec,NULL) < 0)return GL_FALSE;

     pFrame    = av_frame_alloc();
     pFrameRGB = av_frame_alloc();

     GLint numBytes;
     numBytes  = avpicture_get_size(AV_PIX_FMT_RGB24,pCodecCtx->width,pCodecCtx->height); //obsoleto
     buffer    = (uint8_t *)av_malloc(numBytes*sizeof(uint8_t));
     avpicture_fill((AVPicture *)pFrameRGB,buffer,AV_PIX_FMT_RGB24,pCodecCtx->width,pCodecCtx->height); //obsoleto
     img_convert_ctx = sws_getContext(pCodecCtx->width,pCodecCtx->height,pCodecCtx->pix_fmt,pCodecCtx->width,pCodecCtx->height,AV_PIX_FMT_RGB24,SWS_BICUBIC,NULL,NULL,NULL);

     GLuint fotograma;
     GLuint vboLienzo;
     GLuint vboImagen;
     GLuint CuadroAnc;
     GLuint CuadroAlt;
     double ticks = 0.0;
     int frameFin = 0;

     glGenTextures(1,&fotograma);
     glBindTexture(GL_TEXTURE_RECTANGLE_ARB,fotograma);
     glTexParameteri(GL_TEXTURE_RECTANGLE_ARB,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
     glTexParameteri(GL_TEXTURE_RECTANGLE_ARB,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
     glTexImage2D(GL_TEXTURE_RECTANGLE_ARB,0,GL_RGB,pCodecCtx->width,pCodecCtx->height,0,GL_RGB,GL_UNSIGNED_BYTE,NULL);

     CuadroAnc   = pCodecCtx->width;
     CuadroAlt   = pCodecCtx->height;
     GLfloat anc = (GLfloat)pCodecCtx->width/2;
     GLfloat alt = (GLfloat)pCodecCtx->height/2;
     GLfloat datos[8] = {-anc,alt,-anc,-alt,anc,-alt,anc,alt};
     GLfloat dtext[8]  = {0.0,0.0,0.0,alt*2.0f,anc*2.0f,alt*2.0f,anc*2.0f,0.0};

     glGenBuffers(1,&vboLienzo);
     glBindBuffer(GL_ARRAY_BUFFER,vboLienzo);
     glBufferData(GL_ARRAY_BUFFER,sizeof(datos),datos,GL_STATIC_DRAW);

     glGenBuffers(1,&vboImagen);
     glBindBuffer(GL_ARRAY_BUFFER,vboImagen);
     glBufferData(GL_ARRAY_BUFFER,sizeof(dtext),dtext,GL_STATIC_DRAW);

    But now I want to read the video from a zip file. I already have how to extract the data from the zip file, but I do not know what function of ffmpeg I should use to read the data from the zip file.