Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (36)

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

  • 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

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

  • How to open file name contain special characters in FFmpeg ?

    28 janvier 2015, par Alen Lee

    my project process the video by FFmpeg libarary, I test the my code with file which the file name contains special characters(like ’()+,-.09@A[]^_`a{} ®,Ѐ,ऄ, ఆ, Ⴀ,ᐁ,ᣀ,ᴀ,₠,⓪,⭙,ⶀ,㈀,啊.mp4’), but it failed to open the video stream at avformat_open_input().

    I test it via ffmpeg.exe with command line, it can open the file successfully.

    This is my code snippet :

       AVFormatContext *pFormatCtx = NULL;
       AVCodecContext  *pCodecCtx = NULL;
       AVFrame         *pFrameRGB = NULL;
       unsigned int    i, videoStream;
       AVCodec         *pCodec;
       AVFrame         *pFrame;
       AVPacket        packet;
       int             frameFinished;
       int             numBytes;
       uint8_t         *buffer;
       AVPixelFormat   ImgFmt = AV_PIX_FMT_YUV420P;

       // Register all formats and codecs
       av_register_all();

       // Open video file
       if (avformat_open_input(&pFormatCtx, inputFilePath, NULL, NULL) != 0)
       {
           printf("Couldn't open file.");
           return -1;
       }

    it occur error at the avformat_open_input(), I think it failed because of the Unicode file name string

    Anybody can help me ?

    Thanks

  • 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();
    }
  • Looking for a multimedia SDK (open source or paid) which can play audio (.mp3, .aac) and video (.mp4 etc.)

    8 avril 2022, par AhmadH

    I would like to embed audio (and video) files in my cross platform application.
Searching for an SDK with below functionality :

    


      

    1. Play audio - .mp3,.aac (are must) & other common formats
    2. 


    3. Play video - .mp4 & other common formats
    4. 


    5. Audio recording would be an added advantage.
    6. 


    7. Open source or affordable price
    8. 


    


    [ Note : FFmpeg is not an option due to some License restriction]

    


    **Anything that has all FFmpeg properties would be ideal.

    


    Looking online but haven't found any suitable option.
Please help.