Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (65)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7244)

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

    


  • 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();
    }
  • 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