Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (68)

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

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

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (11310)

  • How to force an input frame rate on libav for mjpeg

    20 février 2023, par Christoph

    I am using libav to parsing a MJPEG Stream to get the packet data for resending it over an websocket, now I am facing the issue that ffmpeg use only 25 FPS. I know the Stream has 60FPS for 100%

    


    These are the values after open and read the stream Informations :

    


    avg_frame_rate = 0, r_frame_rate = 25/1, time_base = 1/25

    


    I tried to set all of them to a setting for 60FPS, but this looks has no effect.
I have set time_base to 1/60 and also frame rates to 60 but none of them are making any difference.

    


    Because its an MJPEG Stream libav needs to guess the framerate, but I don't know why setting time_base or framerate does not have any effect.

    


    Maybe someone could help me how I could force 60 FPS for parsing an MJEPG Stream, this would be great.

    


    Thank u

    


    This is just an Illustration of my code

    


    #include &#xA;#include &#xA;#include &#xA;#include &#xA;#include <libavutil></libavutil>avutil.h>&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;&#xA;int main(int argc, char *argv[]) {&#xA;    AVFormatContext *fmt_ctx = NULL;&#xA;    AVCodecContext *codec_ctx = NULL;&#xA;    AVCodec *codec = NULL;&#xA;    AVPacket pkt;&#xA;&#xA;    if (argc &lt; 2) {&#xA;        fprintf(stderr, "Usage: %s \n", argv[0]);&#xA;        exit(1);&#xA;    }&#xA;&#xA;    av_register_all();&#xA;&#xA;    if (avformat_open_input(&amp;fmt_ctx, argv[1], NULL, NULL) &lt; 0) {&#xA;        fprintf(stderr, "Could not open stream &#x27;%s&#x27;\n", argv[1]);&#xA;        exit(1);&#xA;    }&#xA;&#xA;    if (avformat_find_stream_info(fmt_ctx, NULL) &lt; 0) {&#xA;        fprintf(stderr, "Could not find stream information\n");&#xA;        exit(1);&#xA;    }&#xA;&#xA;    int video_stream_index = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_VIDEO, -1, -1, &amp;codec, 0);&#xA;&#xA;    if (video_stream_index &lt; 0) {&#xA;        fprintf(stderr, "Could not find video stream\n");&#xA;        exit(1);&#xA;    }&#xA;&#xA;    AVStream *video_stream = fmt_ctx->streams[video_stream_index];&#xA;    stream->time_base = (AVRational) { 1, 60};&#xA;    stream->avg_frame_rate = (AVRational) { 60, 1 };&#xA;    stream->r_frame_rate = (AVRational) { 60, 1 };&#xA;&#xA;    av_init_packet(&amp;pkt);&#xA;&#xA;    while (av_read_frame(fmt_ctx, &amp;pkt) >= 0) {&#xA;        if (pkt.stream_index == video_stream_index) {&#xA;            // Sending it to an websocket ....&#xA;        }&#xA;        av_packet_unref(&amp;pkt);&#xA;    }&#xA;&#xA;    avformat_close_input(&amp;fmt_ctx);&#xA;    avformat_free_context(fmt_ctx);&#xA;&#xA;    return 0;&#xA;}&#xA;

    &#xA;

  • Revision 65b93c7e52 : Improved auto_partition_range. The code now takes into account temporal and spa

    27 septembre 2013, par Paul Wilkins

    Changed Paths :
     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_onyx_if.c


     Modify /vp9/encoder/vp9_onyx_int.h



    Improved auto_partition_range.

    The code now takes into account temporal and spatial
    information to determine the partition size range, but the
    frequency counts have been removed.

    The net effect is similar in quality but about 10% faster.

    Change-Id : I39a513fb79cec9177b73b2a7218f0da70963ae95

  • ffmpeg : zoom over a squared image

    23 février 2017, par Sulli

    I am using this command to create a zoom effect over a square image :

    ffmpeg -r 25 -i image.jpg -filter_complex "scale=-1:10*ih,zoompan=z='min(zoom+0.0015,1.5)':d=125:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)',scale=-1:720"  -y -shortest -c:v libx264 -pix_fmt yuv420p output.mp4

    it works great, except the video is not squared at the end, it’s a regular 16/9. I tried to play with the scale parameter but the video becomes stuttered every time I change something.