Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (36)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (3217)

  • FFMpeg muxing h264 to mp4 resultant file is not running

    11 mars 2016, par M.Taha

    I am writing code to mux h264 file into mp4 by using latest FFMPEG 3.0. Muxing is working but the resultant mp4 file is not showing vedio, only the time is running when i play the resultant mp4 file. Kindly try to help to solve this. Please tell me what i am missing. Here is my code :

    int main()
    {  
       avcodec_register_all();

       av_register_all();

       // define AVOutputFormat
       AVOutputFormat *avoutputFormat = NULL;
       avoutputFormat = av_guess_format("mp4", NULL, NULL);
       if (!avoutputFormat) {
       fprintf(stderr, "Could not find suitable output format\n");
       return 1;
       }

       AVFormatContext *avoutFmtCtx = NULL;
       /*Below initialize AVFormatContext.*/
       avformat_alloc_output_context2(&avoutFmtCtx, avoutputFormat, NULL, NULL);

       avoutFmtCtx->oformat = avoutputFormat;
       sprintf_s(avoutFmtCtx->filename, "%s", "Out.mp4");  /*Filling output file name..*/

       if (avoutputFormat->video_codec == AV_CODEC_ID_NONE)
       printf("\n Unsupported format...");

       AVStream * avoutStrm = avformat_new_stream(avoutFmtCtx, 0);

       if (!avoutStrm) {
       _tcprintf(_T("FFMPEG: Could not alloc video stream\n"));        
       }

       AVCodecContext *c = avoutStrm->codec;
       c->codec_id     = avoutputFormat->video_codec;
       c->codec_type   = AVMEDIA_TYPE_VIDEO;
       c->bit_rate     = 2000*1000;
       c->width        = 1920;
       c->height       = 1080;
       AVRational avr;
       avr.den = 30;
       avr.num = 1;

       avoutStrm->time_base = c->time_base = av_add_q(avoutStrm->codec->time_base, avr);

       // Some formats want stream headers to be separate
       if(avoutFmtCtx->oformat->flags & AVFMT_GLOBALHEADER)
       c->flags |= CODEC_FLAG_GLOBAL_HEADER;

       // Open the output container file
       if (avio_open(&avoutFmtCtx->pb, avoutFmtCtx->filename, AVIO_FLAG_WRITE) < 0)
       {
       _tcprintf(_T("FFMPEG: Could not open '%s'\n"), avoutFmtCtx->filename);      
       }

       m_pExtDataBuffer = (uint8_t*)av_malloc(1000 + 1000);
       if(!m_pExtDataBuffer) {
       _tcprintf(_T("FFMPEG: could not allocate required buffer\n"));

       }

       uint8_t SPSbuf[1000];
       uint8_t PPSbuf[1000];
       memcpy(m_pExtDataBuffer, SPSbuf, 1000);            
       memcpy(m_pExtDataBuffer + 1000, PPSbuf, 1000);  

       /* Codec "extradata" conveys the H.264 stream SPS and PPS info (MPEG2: sequence header is housed in SPS buffer, PPS buffer is empty)*/
       c->extradata        = m_pExtDataBuffer;
       c->extradata_size   = 1000 + 1000;

       if(avformat_write_header(avoutFmtCtx,NULL)) {
       _tcprintf(_T("FFMPEG: avformat_write_header error!\n"));

       }

       /* Here do writing data in loop...*/
       int m_nProcessedFramesNum = 0;

       while(1)
       {
       ++m_nProcessedFramesNum;
       AVPacket pkt;
       av_init_packet(&pkt);

       AVCodecContext *c = avoutStrm->codec;
       avoutStrm->pts.val = m_nProcessedFramesNum;
       pkt.stream_index    = avoutStrm->index;

       pkt.data            = /*Filling h.264 data from here... This is valid h264 data*/
       pkt.size            = /*Filling valid h264 data size here...*/
       av_new_packet(&pkt,pkt.size);
       pkt.pts = m_nProcessedFramesNum*512;
       pkt.dts = m_nProcessedFramesNum*512;
       pkt.duration = 512;

       // Write the compressed frame in the media file
       if (av_interleaved_write_frame(avoutFmtCtx, &pkt)) {
       _tcprintf(_T("FFMPEG: Error while writing video frame\n"));        
       }/*End of loop.*/

       av_free_packet(&pkt);      

       }  
       av_write_trailer(avoutFmtCtx);
       avio_close(avoutFmtCtx->pb);
       avformat_free_context(avoutFmtCtx);
    }
  • Error : Package : perl-Git-1.8.2.1-1.el5.x86_64 (epel) Requires : perl(:MODULE_COMPAT_5.8.8)

    23 décembre 2014, par P C SAS3

    error in loading github lib tool

    i have tried to load the following dependencies to load ffmpeg from source when i try to run the following command i am getting errors as below

    yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirrors.viethosting.vn
    * epel: ftp.cuhk.edu.hk
    * extras: mirrors.viethosting.vn
    * updates: mirrors.vinahost.vn
    base                                                     | 3.7 kB     00:00    
    epel                                                     | 3.7 kB     00:00    
    epel/primary_db                                          | 3.7 MB     00:18    
    extras                                                   | 3.4 kB     00:00    
    updates                                                  | 3.4 kB     00:00    
    updates/primary_db                                       | 1.5 MB     00:16    
    vz-base                                                  |  951 B     00:00    
    vz-updates                                               |  951 B     00:00    
    Setting up Install Process
    Package autoconf-2.63-5.1.el6.noarch already installed and latest version
    Package automake-1.11.1-4.el6.noarch already installed and latest version
    Package gcc-4.4.7-11.el6.x86_64 already installed and latest version
    Package gcc-c++-4.4.7-11.el6.x86_64 already installed and latest version
    Package 1:make-3.81-20.el6.x86_64 already installed and latest version
    Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
    Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package git.x86_64 0:1.8.2.1-1.el5 will be installed
    --> Processing Dependency: perl-Git = 1.8.2.1-1.el5 for package: git-1.8.2.1-1.el5.x86_64
    --> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.2.1-1.el5.x86_64
    --> Processing Dependency: perl(Git) for package: git-1.8.2.1-1.el5.x86_64
    --> Processing Dependency: perl(Error) for package: git-1.8.2.1-1.el5.x86_64
    --> Processing Dependency: libssl.so.6()(64bit) for package: git-1.8.2.1-1.el5.x86_64
    --> Processing Dependency: libexpat.so.0()(64bit) for package: git-1.8.2.1-1.el5.x86_64
    --> Processing Dependency: libcurl.so.3()(64bit) for package: git-1.8.2.1-1.el5.x86_64
    --> Processing Dependency: libcrypto.so.6()(64bit) for package: git-1.8.2.1-1.el5.x86_64
    ---> Package libtool.x86_64 0:2.2.6-15.5.el6 will be installed
    ---> Package nasm.x86_64 0:2.07-7.el6 will be installed
    --> Running transaction check
    ---> Package compat-expat1.x86_64 0:1.95.8-8.el6 will be installed
    ---> Package git.x86_64 0:1.8.2.1-1.el5 will be installed
    --> Processing Dependency: libcurl.so.3()(64bit) for package: git-1.8.2.1-1.el5.x86_64
    ---> Package openssl098e.x86_64 0:0.9.8e-18.el6_5.2 will be installed
    ---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
    ---> Package perl-Git.x86_64 0:1.8.2.1-1.el5 will be installed
    --> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-Git-1.8.2.1-1.el5.x86_64
    ---> Package perl-TermReadKey.x86_64 0:2.30-13.el6 will be installed
    --> Finished Dependency Resolution
    Error: Package: perl-Git-1.8.2.1-1.el5.x86_64 (epel)
              Requires: perl(:MODULE_COMPAT_5.8.8)
    Error: Package: git-1.8.2.1-1.el5.x86_64 (epel)
              Requires: libcurl.so.3()(64bit)
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    now i went into some solution on net which asked to check with disablerepo to rpmforge it also throw the following error

    # yum --disablerepo=rpmforge install git
    Loaded plugins: fastestmirror


    Error getting repository data for rpmforge, repository not found

    kindly help so that i can install all the dependencies so that i may not face any problem while configuring ffmpge

  • ffmpeg joinnig videos in php linux

    28 octobre 2013, par user2226181

    I am trying to add joining videos with no audio in ffmpeg php using linux operating system. My code is this :

    cat output_1.mp4 output_2.mp4 output_3.mp4 output_4.mp4 > final.mp4

    It is giving me an output of final.mp4 in result but there is a problem in the final.mp4 there is only first video which is output_1.mp4 in final video, the other videos are not being concatenate. Please help me in this case.

    Thanks