Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (48)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (9430)

  • Passing pointer to thread via message_loop

    21 août 2016, par Mohammad Abu Musa

    I am using FFMPEG to encode a video, I got a green screen for the packets which I think it means I am getting empty buffer. I suspect I am passing the parameters wrong. I want help in getting the parameters passed correctly.

       vpx_codec_iter_t iter = NULL;
       const vpx_codec_cx_pkt_t *pkt;
       // copy the pixels into our "raw input" container.
       int bytes_filled = avpicture_fill(&pic_raw, data, AV_PIX_FMT_YUV420P, out_width, out_height);
       if(!bytes_filled) {
           Logger::Log("Cannot fill the raw input buffer");
           return;
       }

       if(vpx_codec_encode(&codec, &raw, frame_cnt, 1, flags, VPX_DL_REALTIME))
             die_codec(&codec, "Failed to encode frame");

       while( (pkt = vpx_codec_get_cx_data(&codec, &iter)) ) {
           switch(pkt->kind) {
               case VPX_CODEC_CX_FRAME_PKT:
                   glb_app_thread.message_loop().PostWork(callback_factory_.NewCallback(&EncoderInstance::write_ivf_frame_header, pkt));
                   glb_app_thread.message_loop().PostWork(callback_factory_.NewCallback(&EncoderInstance::WriteFile, pkt));
                   break;
               default:break;
           }
       }

    for the event handler

    void EncoderInstance::WriteFile(int32_t result, const vpx_codec_cx_pkt_t *pkt){
       lock_file_.Acquire();
       (void) fwrite(pkt->data.frame.buf, 1, pkt->data.frame.sz, outfile);
       Logger::Log("Packet written");
       lock_file_.Release();

    }

    My question is, am I passing the argument pkt correctly ? or should I put these packets into a queue then let the writeFile function work on the queue.

  • FFMPEG Green Screen from raw pictures

    21 août 2016, par Mohammad Abu Musa

    I am writing a screen recorder, I get raw data from Chrome and I want to covert it to webm files. I manged successfully to export the videos with the correct periods but the issue that I get a green screen instead of the screen capture. I am not sure what could be wrong.

    Is it writing to file ? or passing the parameters to fwrite function ?

    void EncoderInstance::OnGetFrame(int32_t result, pp::VideoFrame frame) {
       if (result != PP_OK)
           return;

       const uint8_t* data = static_cast<const>(frame.GetDataBuffer());
       pp::Size size;
       frame.GetSize(&amp;size);
       uint32_t buffersize = frame.GetDataBufferSize();


       if (is_recording_) {
           vpx_codec_iter_t iter = NULL;
           const vpx_codec_cx_pkt_t *pkt;
           // copy the pixels into our "raw input" container.
           int bytes_filled = avpicture_fill(&amp;pic_raw, data, AV_PIX_FMT_YUV420P, out_width, out_height);
           if(!bytes_filled) {
               Logger::Log("Cannot fill the raw input buffer");
               return;
           }

           if(vpx_codec_encode(&amp;codec, &amp;raw, frame_cnt, 1, flags, VPX_DL_REALTIME))
                 die_codec(&amp;codec, "Failed to encode frame");

           while( (pkt = vpx_codec_get_cx_data(&amp;codec, &amp;iter)) ) {
               switch(pkt->kind) {
                   case VPX_CODEC_CX_FRAME_PKT:
                       glb_app_thread.message_loop().PostWork(callback_factory_.NewCallback(&amp;EncoderInstance::write_ivf_frame_header, pkt));
                       glb_app_thread.message_loop().PostWork(callback_factory_.NewCallback(&amp;EncoderInstance::WriteFile, pkt));
                       break;
                   default:break;
               }
           }

           frame_cnt++;
       }

       video_track_.RecycleFrame(frame);
       if (need_config_) {
           ConfigureTrack();
           need_config_ = false;
       } else {
           video_track_.GetFrame(
                   callback_factory_.NewCallbackWithOutput(
                           &amp;EncoderInstance::OnGetFrame));
       }
    }
    </const>
  • html5 video wont play ANY mp4 encodes on ipad

    9 septembre 2016, par nickg

    Im trying to embed a mp4 on a page with the HTML5 video tag. Everything works fine on Desktop but nothing will work on an iPad Version 9.3.4.
    I have the mime types in an .htaccess file. I’ve tried various encodes with handbrake, Miro and FFmpeg conversions.

    Even sample videos like at w3schools and videojs don’t play.
    The video will play if i actually sync it to the iPad, but nothing works over the web. An older iPad actually plays mp4s through the HTML5 video player.
    I’m ready to throw this POS iPad through a window.

    <video autoplay="false" width="320" height="240" controls="true">
     <source src="http://webnamehere.com/video/bunny.mp4" type="video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;">

    Your browser does not support the video tag.
    </source></video>

    Has anyone found a way to fix this ? Is there ANY encoding that this thing will actually play ? Thank you in advance for any help.