Recherche avancée

Médias (91)

Autres articles (77)

  • 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

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

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (9040)

  • avcodec/assenc : Return more specific error codes for ass_encode_frame()

    31 décembre 2018, par Michael Niedermayer
    avcodec/assenc : Return more specific error codes for ass_encode_frame()
    

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/assenc.c
  • FFmpeg : avcodec_open2 returns "Permission denied" (-13)

    24 avril 2019, par maxest

    I wanted to open an encoder, H264, C++, Android. This :

    encoderH264 = avcodec_find_encoder(AV_CODEC_ID_H264);

    works. This one :

    codecContext = avcodec_alloc_context3(encoderH264);

    also works. But I get error "Permission denied" (-13) on that :

    avcodec_open2(codecContext, encoderH264, NULL);

    I’d suppose that my FFmpeg lib does support H264 encoding as avcodec_find_encoder returns valid value (when I used some other FFmpeg lib this function returned null).

    Any ideas ?

  • avio_open() function returns -138

    8 avril 2024, par checkright

    When I use ffmpeg4.4.1 to push rtmp to the desktop, the program returns -138 when running avio_open().I use dshow's screen-capture-recorder on the input side. My purpose is to capture the desktop in real time and use rtmp to push the stream.

    &#xA;

        avdevice_register_all();&#xA;    avformat_network_init();&#xA;&#xA;    AVFormatContext* pFmtCtx_In = nullptr;&#xA;    AVFormatContext* pFmtCtx_Out = nullptr;&#xA;    AVInputFormat*   pInFmt  = nullptr;&#xA;    AVDictionary* options = nullptr;&#xA;    int nVideoIndex          = -1;&#xA;    int              ret     = 0;&#xA;&#xA;    AVCodecParameters* pCodecParam = nullptr;&#xA;    AVCodecContext   * pCodecCtx   = nullptr;&#xA;    AVCodec          * pCodec      = nullptr;&#xA;&#xA;    AVFrame* pFrame    = av_frame_alloc();&#xA;    AVFrame* pFrameRGB = av_frame_alloc();&#xA;    AVPacket* pkt      = nullptr;&#xA;&#xA;    pFrame    = av_frame_alloc();&#xA;    pFrameRGB = av_frame_alloc();&#xA;    pkt       = nullptr;&#xA;    img_convert_ctx = nullptr;&#xA;&#xA;    pFmtCtx_In = avformat_alloc_context();&#xA;    if(!pFmtCtx_In)&#xA;    {&#xA;        qDebug() &lt;&lt; "create AVFormatContext failed." ;&#xA;        return;&#xA;    }&#xA;&#xA;    QString urlString = QString("video=screen-capture-recorder");&#xA;    const char* rtmpAddress = "rtmp://192.168.0.136:8554/myapp/test";&#xA;    &#xA;    if(1){&#xA;        pInFmt = const_cast(av_find_input_format("dshow"));&#xA;        ret = avformat_open_input(&amp;pFmtCtx_In, urlString.toStdString().c_str(), pInFmt, nullptr);&#xA;    }else{&#xA;        pInFmt = const_cast(av_find_input_format("gdigrab"));&#xA;        av_dict_set(&amp;options, "video_device_index", "1", 0);  &#xA;        av_dict_set(&amp;options, "offset_x", "1920", 0);&#xA;        av_dict_set(&amp;options, "offset_y", "0", 0);&#xA;        av_dict_set(&amp;options, "draw_mouse", "1", 0);&#xA;        av_dict_set(&amp;options, "video_size", "1920x1080", 0);&#xA;        ret = avformat_open_input(&amp;pFmtCtx_In, "desktop", pInFmt, &amp;options);&#xA;    }&#xA;&#xA;    if(!pInFmt)&#xA;    {&#xA;        qDebug() &lt;&lt; "find AVInputFormat failed." ;&#xA;        return;&#xA;    }&#xA;&#xA;    if(ret &lt; 0)&#xA;    {&#xA;        qDebug() &lt;&lt; "open camera failed."&lt;nb_streams; i&#x2B;&#x2B;){&#xA;        if(pFmtCtx_In->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO){&#xA;            nVideoIndex = i;&#xA;            continue;&#xA;        }&#xA;    }&#xA;&#xA;    if(nVideoIndex == -1){&#xA;        qDebug() &lt;&lt; "cannot find video stream." ;&#xA;        return;&#xA;    }&#xA;&#xA;&#xA;    pCodecParam = pFmtCtx_In->streams[nVideoIndex]->codecpar;&#xA;    pCodec = avcodec_find_decoder(pCodecParam->codec_id);&#xA;    if(!pCodec)&#xA;    {&#xA;        qDebug() &lt;&lt; "cannot find codec." ;&#xA;        return;&#xA;    }&#xA;&#xA;    ret = avformat_alloc_output_context2(&amp;pFmtCtx_Out, NULL, "flv", rtmpAddress);&#xA;    //    ret = avformat_alloc_output_context2(&amp;pFmtCtx_Out, NULL, "rtsp", rtmpAddress);&#xA;    if (ret &lt; 0) {&#xA;        qDebug() &lt;&lt; "cannot avformat_alloc_output_context2." ;&#xA;        return ;&#xA;    }&#xA;&#xA;    for (int i = 0; i &lt; pFmtCtx_In->nb_streams; i&#x2B;&#x2B;) {&#xA;        AVStream *outStream = avformat_new_stream(pFmtCtx_Out, pFmtCtx_In->streams[i]->codec->codec);&#xA;        if (!outStream) {&#xA;            qDebug() &lt;&lt; "cannot outStream." ;&#xA;&#xA;            return ;&#xA;        }&#xA;&#xA;        ret = avcodec_parameters_copy(outStream->codecpar, pFmtCtx_In->streams[i]->codecpar);&#xA;        if (ret &lt; 0) {&#xA;             qDebug() &lt;&lt; "cannot avcodec_parameters_copy." ;&#xA;            return ;&#xA;        }&#xA;        outStream->codec->codec_tag = 0;&#xA;    }&#xA;  &#xA;    av_dump_format(pFmtCtx_Out, 0, rtmpAddress, 1);&#xA;&#xA;    ret = avio_open(&amp;pFmtCtx_Out->pb, rtmpAddress, AVIO_FLAG_WRITE);&#xA;    if (ret &lt; 0) {&#xA;        qDebug() &lt;&lt; "cannot avio_open." &lt;code>

    &#xA;

    An error occurs here.According to the data, the problem occurs at the input end, and the input end can display the desktop normally. How can I make it run successfully ? How do I need to modify the above code ?

    &#xA;