Recherche avancée

Médias (91)

Autres articles (69)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike 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 (4523)

  • ffmpeg : don't truncate getmaxrss value

    11 juillet 2024, par Gyan Doshi
    ffmpeg : don't truncate getmaxrss value
    

    Can lead to printing of nonsensical negative memory usage

    • [DH] fftools/ffmpeg.c
  • Open stream with FFmpeg libavformat exits with I/O error after once in Android Application

    15 février 2015, par miazima

    I am trying to open a video stream in an android application. The first time I open the stream, the stream is opened and everything runs fine. However, if I press back and open the stream again, the app crashes.

    I am a newbie to this, so I used log statements to see if the argument values for the methods could lead me to the issue. I figured out that avformat_open_input(&ic, is->filename, is->iformat, NULL) is returning I/O error. However I can’t figure out where the error lies, the filename and the format is the same but am not sure about the &ic which is from is->ic = (AVFormatContext*) avformat_alloc_context(), I would appreciate any help !

    void get_video_info(int p_debug, const char* path) {

       int flags;
       //VideoState *is;
       int err, i, orig_nb_streams, ret;
       isquit = 0;
       av_log_set_flags(AV_LOG_SKIP_REPEATED);
       int st_index[3];
       st_index[AVMEDIA_TYPE_AUDIO]=-1;
       st_index[AVMEDIA_TYPE_VIDEO]=-1;
       /* register all codecs, demux and protocols */
       avcodec_register_all();
    #if CONFIG_AVDEVICE
       avdevice_register_all();
    #endif
    #if CONFIG_AVFILTER
       avfilter_register_all();
    #endif
       av_register_all();
    #if CONFIG_NETWORK
       ret = avformat_network_init();
    #endif
        if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) {
               fprintf(stderr, "Could not initialize SDL - %s\n", SDL_GetError());
               exit(1);
             }

       av_init_packet(&flush_pkt);
       flush_pkt.data = "FLUSH";

       // open video stream
       is = av_mallocz(sizeof(VideoState));
       if (!is) {
           do_exit(NULL);
           return;
       }

       is->abort_request = 0; // FIXME: abort_request changes when on closing or exit
       is->pictq_mutex = SDL_CreateMutex();
       is->pictq_cond = SDL_CreateCond();
       is->pictq_size = 0;
       is->pictq_rindex = 0;
       is->pictq_windex = 0;
       is->av_sync_type = av_sync_type;//AV_SYNC_AUDIO_MASTER;//

       if(path != NULL)
       {
           av_strlcpy(is->filename, path, sizeof(is->filename));
       }
       else
       {
           if(streamProtocal==0) {
               av_strlcpy(is->filename, "/sdcard/download/sdp_file.sdp", sizeof(is->filename));
           }
           else
           {
               av_strlcpy(is->filename, "udp://@:3001", sizeof(is->filename));
               is->iformat = av_find_input_format("m4v");
           }
       }
       is->ic = (AVFormatContext*) avformat_alloc_context();
       //It is assumed that server always sends m4v data, so that codec search can be avoided
       AVFormatContext *ic = is->ic;

       if ((err = avformat_open_input(&ic, is->filename, is->iformat, NULL))
               != 0) {
           LOGE(1, "Error open video file: %s", is->filename);
           char* error = (char*)malloc(1024);
           av_strerror(err, error, 1024);
           LOGE(1, "Error open video file: %s", error);
           do_exit(is);
       }
       LOGE(1, "entered get_video_info");
       is->ic = ic;

       orig_nb_streams = ic->nb_streams;
       if ((err = avformat_find_stream_info(is->ic, NULL)) < 0) {
           LOGE(1, "Error find stream information: %d", err);
           return;
       }
       LOGE(1, "avformat_find_stream_info");
       if(is->ic->pb)
           is->ic->pb->eof_reached= 0;//FIXME hack, ffplay maybe should not use url_feof() to test for the end
       AVCodec *lvideoCodec;

    int g_audio_file_type = 0;
       // Find the first video stream
           for (i=0; iic->nb_streams; i++) {
               //take video stream only for video file types
               if (g_audio_file_type == 0)  {
                   if (is->ic->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO &&
                           st_index[AVMEDIA_TYPE_VIDEO] < 0)
                   {
                       st_index[AVMEDIA_TYPE_VIDEO]=i;
                   }
               }

               if(is->ic->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO &&
                       st_index[AVMEDIA_TYPE_AUDIO] < 0)
               {
                   st_index[AVMEDIA_TYPE_AUDIO]=i;
               }

           }
       if (st_index[AVMEDIA_TYPE_AUDIO] >= 0) {
           stream_component_open(is, st_index[AVMEDIA_TYPE_AUDIO]);
       }
       if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {
           stream_component_open(is, st_index[AVMEDIA_TYPE_VIDEO]);
       }
       if (is->video_stream < 0) {
           do_exit(is);
           return;
       }
       is->read_tid = SDL_CreateThread(read_thread, is);
       rgb_frame = avcodec_alloc_frame();
    }
  • avformat/mpc8 : fix hang with fuzzed file

    3 février 2015, par wm4
    avformat/mpc8 : fix hang with fuzzed file
    

    This can lead to an endless loop by seeking back a few bytes after each
    attempted chunk read. Assuming negative sizes are always invalid, this
    is easy to fix. Other code in this demuxer treats negative sizes as
    invalid as well.

    Fixes ticket #4262.

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/mpc8.c