Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (66)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

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

  • What's the reason of failed to read from input stream while playing in ffmpeg

    5 février 2016, par Long Bai

    I’m using ffmpeg library in qt compiled with mingw.
    I’m going to read from rtmp stream, process video frame and write to another rtmp stream.
    I refered ffmpeg examples and developed it.
    It works well with local video stream.
    But on the internet stream, it is failed to read from input stream after a few seconds playing.
    What’s the reason of this problem ?
    Thanks for your answer.

    Here is my code.
    as you can see the following, on the line "ret=av_read_frame(m_pInContext,&inPacket)" return negative value.

    while (!m_bAborted)

    // read stream.
    int64_t tstart = av_gettime_relative() ;
    ret = av_read_frame(m_pInContext, &inPacket) ;
    if (ret < 0)
    SetError("Failed to read input stream.") ;
    break ;
    //continue ;

       if (inPacket.stream_index == m_nVideoStreamIdx)
       {
           do
           {
               // decode frame.
               int decodedLen = DecodePacket(m_pInFrame, &amp;inPacket, &amp;got_frame, 1);
               if (decodedLen &lt; 0)
                   break;

               if (got_frame)
               {
                   // convert frame from yuv420 to rgb24.
                   if (sws_ctx1)
                   {
                       sws_scale(sws_ctx1, m_pInFrame->data, m_pInFrame->linesize, 0, m_nHeight, pRawData, arrRawDataLineSize);
                   }

                   // image processing to remove the code and ads on video.
                   if (m_pListener)
                       m_pListener->OnFrame(pRawData[0], m_nWidth, m_nHeight, arrRawDataLineSize[0], AV_PIX_FMT_RGB24, 24);

                   // convert from rgb24 to yuv420 to write to the output stream.
                   if (sws_ctx2)
                   {
                       sws_scale(sws_ctx2, pRawData, arrRawDataLineSize, 0, m_nHeight, m_dst_picture.data, m_dst_picture.linesize);
                   }

                   // increase frame number.
                   frameCount ++;

                   // write to the output stream.
                   ret = WriteVideoFrame(m_pOutContext, m_pOutVideoStream, &amp;frameCount);
                   if (ret &lt; 0) {
                       if (sws_ctx2)
                           sws_freeContext(sws_ctx2);
                       sws_ctx2 = NULL;
                       CloseOutputStream();

                       SetError("Failed to write video stream.");
                   }

                   // estimate frame time and sleep.
                   //clock_t tend = clock();
                   int64_t tend = av_gettime_relative();
                   frameDuration = tend-tstart;//(long)(1000 * (tend - tstart) / CLOCKS_PER_SEC);
                   if (1000*frameTime - frameDuration > 0)
                       av_usleep(1000*frameTime - frameDuration);
                       //QThread::msleep(frameTime - frameDuration);
                   tstart = tend;
               }

               // if there is another frame in the packet, then loop.
               inPacket.size -= decodedLen;
               inPacket.data += decodedLen;
           }while(inPacket.size > 0);
       }

       else if (m_pOutContext)
       {

       }

       av_packet_unref(&amp;inPacket);
    }
  • Getting ffmpeg error ‘Ignoring unsupported var reason rtmp :// : I/O error’

    6 septembre 2022, par Lectos Lacious

    Same setting worked normally for months, suddenly start to receive ffmpeg errors about ‘unsupported var’ related to rtmp and streaming stop working. Is this error about unavailable server or bad url ? Can someone enlighten me about meaning of unsupported var ?

    &#xA;

    NOTE : replaced actual url with ‘someurl’

    &#xA;

    LOG :&#xA;Input #0, rtsp, from 'rtsp ://192.168.40.44:554/1' :
    &#xA;Metadata :
    &#xA;title : 10
    &#xA;Duration : N/A, start : 0.000000, bitrate : N/A
    &#xA;Stream #0:0 : Video : h264, yuvj420p(pc, bt709), 1280x720, 15 tbr, 90k tbn, 180k tbc
    &#xA;Stream #0:1 : Audio : aac, 48000 Hz, stereo, fltp
    &#xA;[rtmp @ 0x7f9fdd58c5e0] Ignoring unsupported var reason
    &#xA;rtmp ://someurl : I/O error
    &#xA;Exiting normally, received signal 2.
    &#xA;Input #0, rtsp, from 'rtsp ://192.168.40.44:554/1' :
    &#xA;Metadata :
    &#xA;title : 10
    &#xA;Duration : N/A, start : 0.000000, bitrate : N/A
    &#xA;Stream #0:0 : Video : h264, yuvj420p(pc, bt709), 1280x720, 15 fps, 15 tbr, 90k tbn, 180k tbc
    &#xA;Stream #0:1 : Audio : aac, 48000 Hz, stereo, fltp
    &#xA;[rtmp @ 0x7f62a5869b20] Ignoring unsupported var reason
    &#xA;rtmp ://someurl : I/O error
    &#xA;Exiting normally, received signal 2.
    &#xA;[rtsp @ 0x7f0b4add32a0] max delay reached. need to consume packet
    &#xA;[rtsp @ 0x7f0b4add32a0] RTP : missed 2 packets
    &#xA;Input #0, rtsp, from 'rtsp ://192.168.40.44:554/1' :
    &#xA;Metadata :
    &#xA;title : 10
    &#xA;Duration : N/A, start : 0.000000, bitrate : N/A
    &#xA;Stream #0:0 : Video : h264, yuvj420p(pc, bt709), 1280x720, 15 fps, 15 tbr, 90k tbn, 180k tbc
    &#xA;Stream #0:1 : Audio : aac, 48000 Hz, stereo, fltp
    &#xA;[rtmp @ 0x7f0b4af13840] Ignoring unsupported var reason
    &#xA;rtmp ://someurl : I/O error
    &#xA;Exiting normally, received signal 2.
    &#xA;Input #0, rtsp, from 'rtsp ://192.168.40.44:554/1' :
    &#xA;Metadata :
    &#xA;title : 10
    &#xA;Duration : N/A, start : 0.000000, bitrate : N/A
    &#xA;Stream #0:0 : Video : h264, yuvj420p(pc, bt709), 1280x720, 15 fps, 15 tbr, 90k tbn, 180k tbc
    &#xA;Stream #0:1 : Audio : aac, 48000 Hz, stereo, fltp
    &#xA;[rtmp @ 0x7fc61ef8b880] Ignoring unsupported var reason

    &#xA;

  • Creating an image slideshow with FFMPEG, but images have different durations for no reason

    3 décembre 2019, par Robbe

    I’m trying to create a slideshow from images using FFMPEG. It works properly, but although every image is encoded only once (Every image for one frame), they appear with different length.

    I have tried to add the duration tag to the images, but as I have no idea how it works, I stopped using it.

    This is my FFMPEG command :
    ...ffmpeg.exe -y -r 50/10 -f concat -safe 0 -i ...imagepaths.txt -stream_loop -1 -i ..sound.mp3 -c:v libx264 -vf "fps=5,format=yuv420p" -shortest ...out.mp4.

    Contents of imagepaths.txt :

    file 'C:...\SYVZ2985.JPG'
    file 'C:...\SYWI0733.JPG'
    file 'C:...\T01.JPG'
    file 'C:...\T02.JPG'
    file 'C:...\XUNN2429.JPG'
    file 'C:...\XWQO2446 (1).JPG'
    file 'C:...\XWQO2446.JPG'
    file 'C:...\XWZJ8821.JPG'
    file 'C:...\YCAR2389.JPG'
    file 'C:...\YEPG3338.JPG'
    file 'C:...\YEYG4122.JPG'
    file 'C:...\YGHO2303.JPG'
    file 'C:...\YIHI6617.JPG'
    file 'C:...\UPIW7297.GIF'

    This is not the entire imagepaths.txt, but it should be enough. If not, just ask.

    I hope someone can help me, thanks in advance, Robbe.