Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (12)

  • 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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

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

  • avcodec/nvdec_av1 : fix setting film grain parameters for frames with update_grain...

    12 novembre 2020, par James Almer
    avcodec/nvdec_av1 : fix setting film grain parameters for frames with update_grain == 0
    

    The spec in section 6.8.20 states the parameters should be loaded from a
    reference frame indexed by film_grain_params_ref_idx.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/nvdec_av1.c
  • ffmpeg hardwareaccleration using —enable-nvenc giving errors in vs 2012

    3 octobre 2020, par user2290878

    am trying to compile ffmpeg with nvenc enabled using msvc toolchain with vs 2012 , its giving error ,

    &#xA;

    ERROR : nvenc requested but not found

    &#xA;

    following error logs is seen in config.log :

    &#xA;

    c99wrap cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -Dsnprintf=avpriv_snprintf -D_snprintf=avpriv_snprintf -Dvsnprintf=avpriv_vsnprintf -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_WIN32_WINNT=0x0502 -nologo -Dstrtoll=_strtoi64 -Dstrtoull=_strtoui64 -Z7 -W4 -wd4244 -wd4127 -wd4018 -wd4389 -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 -wd4152 -wd4324 -we4013 -wd4100 -wd4214 -wd4307 -wd4273 -wd4554 -wd4701 -O2 -Oy- -FIstdlib.h -c -Fo./ffconf.VPz0M2D2.o ./ffconf.hc8dkH6N.c&#xA;ffconf.hc8dkH6N.c&#xA;ffconf.VPz0M2D2.o_converted.c&#xA;./ffconf.hc8dkH6N.c(1) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int&#xA;./ffconf.hc8dkH6N.c(1) : error C2054: expected &#x27;(&#x27; to follow &#x27;inline&#x27;&#xA;./ffconf.hc8dkH6N.c(1) : error C2085: &#x27;foo&#x27; : not in formal parameter list&#xA;./ffconf.hc8dkH6N.c(1) : error C2143: syntax error : missing &#x27;;&#x27; before &#x27;{&#x27;&#xA;check_host_cc&#xA;BEGIN ./ffconf.hc8dkH6N.c&#xA;    1   static inline int foo(int a) { return a; }&#xA;END ./ffconf.hc8dkH6N.c&#xA;c99wrap cl -nologo -W4 -wd4244 -wd4127 -wd4018 -wd4389 -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 -wd4152 -wd4324 -we4013 -wd4100 -wd4214 -wd4307 -wd4273 -wd4554 -wd4701 -O3 -c -Fo./ffconf.VPz0M2D2.o ./ffconf.hc8dkH6N.c&#xA;cl : Command line warning D9002 : ignoring unknown option &#x27;-O3&#x27;&#xA;ffconf.hc8dkH6N.c&#xA;cl : Command line warning D9002 : ignoring unknown option &#x27;-O3&#x27;&#xA;ffconf.VPz0M2D2.o_converted.c&#xA;./ffconf.hc8dkH6N.c(1) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int&#xA;./ffconf.hc8dkH6N.c(1) : error C2054: expected &#x27;(&#x27; to follow &#x27;inline&#x27;&#xA;./ffconf.hc8dkH6N.c(1) : error C2085: &#x27;foo&#x27; : not in formal parameter list&#xA;./ffconf.hc8dkH6N.c(1) : error C2143: syntax error : missing &#x27;;&#x27; before &#x27;{&#x27;&#xA;ERROR: nvenc requested but not found&#xA;

    &#xA;

  • How to save AVPacket if I have input information from online camera

    31 mars 2020, par Orest

    I am new to libav.&#xA;I have a online video camera and want save video from archive to the video file with libav

    &#xA;&#xA;

    Camera provides such data

    &#xA;&#xA;

    uint32_t frameType, // I frame or P frame&#xA;&#xA;void *frame, //pointer to the frame&#xA;&#xA;size_t frameSize, //size of the frame in bytes&#xA;&#xA;uint64_t timeStamp, //time stamp in time_t units&#xA;&#xA;uint32_t width, //frame width&#xA;&#xA;uint32_t height, //frame heigh&#xA;&#xA;uint32_t genTime, //I do not now what is this. allways 0&#xA;&#xA;const char *encodingType //H264 or H265&#xA;

    &#xA;&#xA;

    I tried this

    &#xA;&#xA;

    void writeHeader(){&#xA;mOutputFilePath = outputFilePath;&#xA;    int ret = 0;&#xA;    avformat_alloc_output_context2(&amp;output_format_context, nullptr, nullptr, outputFilePath.c_str());&#xA;&#xA;AVStream *out_stream;&#xA;        out_stream = avformat_new_stream(output_format_context, nullptr);&#xA;&#xA;        out_stream->discard = AVDISCARD_DEFAULT;//не змінювати&#xA;        out_stream->codecpar->level = 42;//не змінювати&#xA;        out_stream->codecpar->profile = FF_PROFILE_H264_HIGH;//не змінювати&#xA;        out_stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;&#xA;&#xA;        if(codecID == "H264") out_stream->codecpar->codec_id = AV_CODEC_ID_H264;&#xA;        else if(codecID == "H265") out_stream->codecpar->codec_id = AV_CODEC_ID_H265;&#xA;&#xA;        out_stream->codecpar->format = AV_PIX_FMT_YUV420P;&#xA;        out_stream->codecpar->height = heightFrame;&#xA;        out_stream->codecpar->width = widthFrame;&#xA;        //        out_stream->codecpar->bit_rate = 2478235;&#xA;        //        out_stream->codecpar->bits_per_coded_sample = 24;&#xA;        //        out_stream->codecpar->bits_per_raw_sample = 8;&#xA;        out_stream->codecpar->sample_aspect_ratio.num = 0;&#xA;        out_stream->codecpar->sample_aspect_ratio.den = 1;&#xA;        out_stream->codecpar->color_primaries = AVCOL_PRI_UNSPECIFIED;//не змінювати&#xA;&#xA;avio_open(&amp;output_format_context->pb, mOutputFilePath.c_str(), AVIO_FLAG_WRITE);&#xA;avformat_write_header(output_format_context, &amp;opt);&#xA;}&#xA;&#xA;void writePacket(){&#xA; AVPacket inputPacket;&#xA;        av_init_packet(&amp;inputPacket);&#xA;        inputPacket.buf = NULL;&#xA;        inputPacket.pts = (int)timeStamp;&#xA;        inputPacket.dts = inputPacket.pts; &#xA;        inputPacket.data = (unsigned char*)frame;&#xA;        inputPacket.size = (int)frameSize;&#xA;&#xA;        if (frameType == KP2P_FRAME_TYPE_IFRAME)&#xA;        {&#xA;            inputPacket.flags = AV_PKT_FLAG_KEY;&#xA;        }&#xA;        inputPacket.duration = 0;&#xA;        inputPacket.pos = -1;&#xA;av_interleaved_write_frame(output_format_context, &amp;inputPacket);&#xA;    av_packet_unref(&amp;inputPacket);&#xA;}&#xA;&#xA;void closeFile()&#xA;{&#xA;av_write_trailer(output_format_context);&#xA;    if (output_format_context &amp;&amp; !(output_format_context->oformat->flags &amp; AVFMT_NOFILE))&#xA;        avio_closep(&amp;output_format_context->pb);&#xA;    avformat_free_context(output_format_context);&#xA;}&#xA;

    &#xA;&#xA;

    in output file I have black vindow and time is not correct (input 30 seconds in out 2 seconds)&#xA;What am I doing wrong ?

    &#xA;