Recherche avancée

Médias (91)

Autres articles (81)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (11536)

  • Why do I catch the "AccessViolationException" exception in av_hwframe_transfer_data () when I run it as a windows service ?

    5 décembre 2024, par vakym

    I write Windows service witch decodig video stream from camera.
I write it on c# with FFMPEG.Autogen wrapper.

    



    My problem is "AccessViolationException" when i run it as service. 
If i run application as Console Application i have no exceptions.

    



    In Stacktrace i see this :

    



    в FFmpeg.AutoGen.ffmpeg+<>c.<.cctor>b__5_572(FFmpeg.AutoGen.AVFrame*, FFmpeg.AutoGen.AVFrame*, Int32)
в FFmpeg.AutoGen.ffmpeg.av_hwframe_transfer_data(FFmpeg.AutoGen.AVFrame*, FFmpeg.AutoGen.AVFrame*,Int32)
в VideoProviderService.VideoSources.RTSPVideoSource.TryDecodeNextFrame(Boolean ByRef)


    



    Code of TryDecodeNextFrame method :

    



    public IntPtr TryDecodeNextFrame(out bool state)
{
    try
    {
        ffmpeg.av_frame_unref(pFrame);
        ffmpeg.av_frame_unref(cpuFrame);
        int error;
        do
        {
            try
            {
                do
                {
                    timeout = DateTime.Now.AddSeconds(2);
                    error = ffmpeg.av_read_frame(_pFormatContext, pPacket);
                    if (error == ffmpeg.AVERROR_EOF)
                    {
                        state = false;
                        return IntPtr.Zero;
                    }
                    error.ThrowExceptionIfError();
                } while (pPacket->stream_index != _streamIndex);
                ffmpeg.avcodec_send_packet(pCodecContext, pPacket).ThrowExceptionIfError();
            }
            finally
            {
                ffmpeg.av_packet_unref(pPacket);
            }
            error = ffmpeg.avcodec_receive_frame(pCodecContext, pFrame);
        } while (error == ffmpeg.AVERROR(ffmpeg.EAGAIN));
        error.ThrowExceptionIfError();
        ffmpeg.av_hwframe_transfer_data(cpuFrame, pFrame, 0).ThrowExceptionIfError();
        ptrToFrame = (IntPtr)vfc.Convert(*cpuFrame).data[0];  
    }
    catch
    {
        state = false;
        return IntPtr.Zero;
    }
    state = true;
    return ptrToFrame;
}


    



    What i tried to do :

    



      

    1. I checked arguments of av_hwframe_transfer_data.
    2. 


    3. I changed the user for the service.
    4. 


    5. I tried compile as x86 or x64 configuration.
    6. 


    



    I have no idea how to solve this.
Does anyone have any thoughts ?

    


  • aacdec_ac : fix signed overflow in ff_aac_ac_update_context()

    22 mai, par Lynne
    aacdec_ac : fix signed overflow in ff_aac_ac_update_context()
    

    The issue is that state->cur[] is 8-bits, but a+b+1 can overflow
    before being clipped to 0xF in the following line, causing an incorrect
    state to be saved for the next symbol.

    This solves numerous bitstream desyncs, particularly when coefficients
    with magnitude greater than 127 are sent.

    • [DH] libavcodec/aac/aacdec_ac.c
  • OpenCV3 returning float FRAME_COUNT

    15 mars 2016, par mprat

    I am using OpenCV3 on OSX with Python 2.7 bindings. However, when I try to read the frame count of my video (a .mp4 video), it returns a float - I am expecting an int. Do I need to compile OpenCV3 with some special flags ? Am I missing some codecs ?

    import cv2
    vid = cv2.VideoCapture("vid.mp4")
    print vid.get(cv2.CAP_PROP_FRAME_WIDTH)

    And it returns a float.

    Installation details :

    • ffmpeg : brew install ffmpeg --with-dcadec --with-openh264 --with-openjpeg --with-openssl --with-tools --with-x265  --with-zimg --with-libvidstab --with-libvpx
    • opencv3 : brew install opencv3 --with-ffmpeg --with-contrib