Recherche avancée

Médias (16)

Mot : - Tags -/mp3

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)

  • Delay, quality and frame drop in rtmp video streaming

    14 mai 2018, par user61455

    I have simple program :

    #include <iostream>                                                          
    #include <opencv2></opencv2>opencv.hpp>                                                
    #include <vector>                                      
    using namespace cv;                                                          
    int main() {                                                                
       VideoCapture cap(0);
       Mat frame;                                                              
       std::ios::sync_with_stdio(false);                                        
       while (cap.read(frame)) {                                                
           for (size_t i = 0; i &lt; frame.dataend - frame.datastart; i++)
              std::cout &lt;&lt; frame.data[i];                                  
       }                                                                        
       return 0;                                                                
    }
    </vector></iostream>

    And I am streaming the images using following command :

    ./a.out | ffmpeg -f rawvideo -pixel_format bgr24 -video_size 1280x720 -re -framerate 10 -i - -b:v 1M -f flv rtmp://127.0.0.1:8080/instream/stream

    In client PC I am seeing the video as follows :

    ffplay rtmp://x.x.x.x:8080/instream/stream

    My aim is to see the live feed from the camera on client PC. But on client PC there is an delay of 3 seconds and the quality of the video is also bad. Also there is frame drop. What could be the reason for the same ?

  • avformat/segment : Don't overwrite AVCodecParameters after init

    6 septembre 2020, par Andreas Rheinhardt
    avformat/segment : Don't overwrite AVCodecParameters after init
    

    The segment muxer copies the user-provided AVCodecParameters to the
    newly created child streams in its init function before initializing the
    child muxer ; and since commit 8e6478b723affe4d44f94d34b98e0c47f6a0b411,
    it does this again before calling avformat_write_header() if that is
    called from seg_write_header(). The reason for this is complicated :

    At that time writing the header was delayed, i.e. it was not triggered
    by avformat_write_header() (unless the AVFMT_FLAG_AUTO_BSF was unset),
    but instead by writing the very first packet. The rationale behind this
    was to allow to run bitstream filters on the packets in the interleavement
    queue in order to generate missing extradata from them before the muxer's
    write_header function is actually called.

    The segment muxer went even further : It initialized the child muxer and
    ran the child muxer's check_bitstream functions on the packets in its
    own muxing queue and stole any bitstream filters that got inserted. The
    reason for this is that the segment muxer has an option to write the
    header to a separate file and for this it is needed to write the child
    muxer's header without delay, but with correct extradata. Unsetting
    AVFMT_FLAG_AUTO_BSF for the child muxer accomplished the first goal and
    stealing the bitstream filters the second ; and in order for the child
    muxer to actually use the updated extradata, the old AVCodecParameters
    (set before avformat_init_output()) were overwritten with the new ones.

    Updating the extradata proceeded as follows : The bitstream filter itself
    simply updated the AVBSFContext's par_out when processing a packet, in
    violation of the new BSF API (where par_out may only be set in the init
    function) ; the muxing code then simply forwarded the updated extradata,
    overwriting the par_in of the next BSF in the BSF chain with the fresh
    par_out of the last one and the AVStream's par with the par_out of the
    last BSF. This was an API violation, too, of course, but it made
    remuxing ADTS AAC into mp4/matroska work.

    But this no longer serves a useful purpose since the aac_adtstoasc BSF
    was updated to propagate new extradata via packet side data in commit
    f63c3516577d605e51cf16358cbdfa0bc97565d8 ; the next commit then removed
    the code in mux.c passing new extradata along the filter chain. This
    alone justifies removing the code for setting the AVCodecParameters a
    second time.

    But there is even another reason to do so : It is harmful. The ogg muxer
    parses the extradata of Theora and Vorbis in its init function and keeps
    pointers to parts of it. Said pointers become dangling when the
    extradata is overwritten by the segment muxer, leading to
    use-after-frees as has happened in ticket #8881 which this commit fixes.

    Ticket #8517 is about another issue caused by this : Immediately after
    having overwritten the old AVCodecParameters the segment muxer checks
    whether the codec_tag is ok (the codec_tag is set generically when
    initializing the child muxer based upon muxer-specific lists). The check
    used is : If the child output format has such a list and if the codec tag
    of the non-child stream does not match the codec id given the list of
    codec tags and if there is a match for the codec id in the codec tag
    list, then set the codec tag to zero (and not to the existing match),
    otherwise set the codec tag of the child stream to the codec tag
    of the corresponding stream of the main AVFormatContext (which is btw
    redundant given that the child AVCodecParameters have just been
    overwritten with the AVCodecParameters of the corresponding stream of
    the main AVFormatContext).

    Reviewed-by : Ridley Combs <rcombs@rcombs.me>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/segment.c
  • _stricoll is unsolved while linking the libmingwex.a with vs2010

    19 septembre 2013, par damantou

    I am tending to build some app which staticly links the ffmpeg libs on windows 8. I have successfully build the static lib of ffmpeg in mingw/msys env on windows 8. Then I use cmake to generate the vs2010 project to start work with my app.

    While I am trying to build the first dead simple main program, I got quite some link errors.

    extern "C" {

    // to work around error:
    // &#39;UINT64_C&#39;: identifier not found
    #ifndef __STDC_CONSTANT_MACROS
    #define __STDC_CONSTANT_MACROS
    #endif


    #include <libavcodec></libavcodec>avcodec.h>
    #include <libavformat></libavformat>avformat.h>
    #include <libswscale></libswscale>swscale.h>

    }


    int main(int argc, char *argv[])
    {
       av_register_all();
       return 0;
    }

    After struggling with a bunch of unresolved symbols, I come up with the following libraries to link with in order :

    c:/MinGW/mingw32/lib/libiconv.a
    libavcodec.a
    libavdevice.a
    libavfilter.a
    libavformat.a
    libavutil.a
    libswresample.a
    libswscale.a
    c:/MinGW/lib/gcc/mingw32/4.8.1/libgcc.a
    c:/MinGW/mingw32/lib/libws2_32.a
    c:/MinGW/mingw32/lib/libmingw32.a
    c:/MinGW/mingw32/lib/libmingwex.a

    Finally there is one unresolved symbol issue not able to fix :

    libmingwex.a(glob.o) : error LNK2019: unresolved external symbol
                          _stricoll referenced in function _glob_match

    I tried to add some a fake function, but still not help :(

    int  __cdecl _stricoll(_In_z_  const char * _Str1, _In_z_  const char * _Str2)
    {
       return 0;
    };

    I googled it the whole morning, but nobody ever mentioned this problem. I guess there should be simple reason and solution for this, maybe because of my ignorance on simple knowledge.