Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (14)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

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

  • FFmpeg file not found exception

    26 mai 2018, par Sagar Hudge

    I am getting following exception on video trimming.

    video path : /storage/emulated/0/Pictures/Instagram/Fast & Furious 7 - Get Low Extended Version Video.mp4

    file name : Fast & Furious 7 - Get Low Extended Version Video.mp4

    and ffmpeg searching for only Fast in

    /storage/emulated/0/Pictures/Instagram/Fast: No such file or directory

    I have found the issue ,it is causing due to the file name having spaces in between them you can check in above mentioned path and in exception.

    after changing file name its working but changing name of every file from device its not the right way so how can I solve this exception

    FAILED with output : WARNING: linker: /data/user/0/com.example.SeekBarActivity/files/ffmpeg
    has text relocations. This is wasting memory and prevents security hardening.
    Please fix. ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers

    built on Oct  7 2014 15:08:46 with gcc 4.8 (GCC)
    configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-
    android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --
    cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-
    Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264
    --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig
    --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --
    enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --
    enable-yasm --disable-doc --disable-shared --enable-static --pkg-
    config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --
    prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-
    cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -
    U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-
    all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-
    android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-
    lpng -lexpat -lm' --extra-cxxflags=
     libavutil      54.  7.100 / 54.  7.100
     libavcodec     56.  1.100 / 56.  1.100
     libavformat    56.  4.101 / 56.  4.101
     libavdevice    56.  0.100 / 56.  0.100
     libavfilter     5.  1.100 /  5.  1.100
     libswscale      3.  0.100 /  3.  0.100
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  0.100 / 53.  0.100
     /storage/emulated/0/Pictures/Instagram/Fast: No such file or directory
  • How do I set the framerate/FPS in an FFmpeg code (C) ?

    2 juin 2020, par Tobias v. Brevern

    I try to encode single pictures to a .avi video. The goal is to have every picture displayed for a set amount of seconds to create a slide show. I tried my script with 10 pictures and a delay of 1/5 of a second but the output file was not even half a second long (but displayed every picture). For setting the framerate I use the time_base option of the AVCodeContext :

    



    ctx->time_base = (AVRational) {1, 5};

    



    When I use the command ffmpeg -framerate 1/3 -i img%03d.png -codec png output.avi everything works fine and I get the file I want. I use the png codec because it was the only one i tried that is playable with Windows Media Player.

    



    Am I missing anything here ? Is there another option that has impact on the framerate ?

    



    This is my code so far :

    



    Note : I use a couple of self made data structures and methodes from other classes. They are the ones written in Caps Lock. They basicly do what the name suggests but are necessary for my project. The Input Array contains the pictures that i want to encode.

    



    include <libavutil></libavutil>opt.h>&#xA;include <libavutil></libavutil>imgutils.h>&#xA;include <libavutil></libavutil>error.h>&#xA;&#xA;void PixmapsToAVI (ARRAY* arr, String outfile, double secs)&#xA;{&#xA;     if (arr!=nil &amp;&amp; outfile!="" &amp;&amp; secs!=0) {&#xA;         AVCodec* codec = avcodec_find_encoder(AV_CODEC_ID_PNG);&#xA;         if (codec) {&#xA;             int width  = -1;&#xA;             int height = -1;&#xA;             int ret = 0;&#xA;&#xA;             AVCodecContext* ctx = NULL;&#xA;             ctx = avcodec_alloc_context3(codec);&#xA;             AVFrame* frame = av_frame_alloc();&#xA;             AVPacket* pkt  = av_packet_alloc();&#xA;&#xA;             FILE* file = fopen(outfile, "wb");&#xA;&#xA;             ARRAYELEMENT* e;&#xA;             int count = 0;&#xA;             forall (e, *arr) {&#xA;                 BITMAP bitmap (e->value, false);&#xA;                 if (width &lt; 0) {&#xA;                     width  = bitmap.Width();&#xA;                     height = bitmap.Height();&#xA;&#xA;                     ctx->width = width;&#xA;                     ctx->height = height;&#xA;                     ctx->time_base = (AVRational){1, 5};&#xA;                     ctx->framerate = (AVRational){5, 1};&#xA;                     ctx->pix_fmt = AV_PIX_FMT_RGB24;&#xA;                     ret = avcodec_open2(ctx, codec, NULL);&#xA;&#xA;                     frame->width  = width;&#xA;                     frame->height = height;&#xA;                     frame->format = ctx->pix_fmt;&#xA;                     av_opt_set(ctx->priv_data, "preset", "slow", 1);&#xA;&#xA;                 }&#xA;                 ret  = av_frame_get_buffer(frame, 1);&#xA;                 frame->linesize[0] = width*3;&#xA;&#xA;                 bitmap.Convert32();&#xA;                 byte* pixels = bitmap.PixelsRGB();      &#xA;&#xA;//The two methodes above convert the Pixmap into the RGB structure we need&#xA;//They are not needed to get an output file but are needed to get one that makes sense&#xA;&#xA;                     fflush(stdout);&#xA;                     int writeable = av_frame_make_writable(frame);&#xA;                     if (writeable>=0) {&#xA;                         for(int i=0; i&lt;(height*width*3); i&#x2B;&#x2B;){&#xA;                             frame->data[0][i] = pixels[i];&#xA;                         }&#xA;                     }&#xA;                     ret = avcodec_send_frame(ctx, frame);&#xA;                     for(int i=0; i= 0) {&#xA;                       ret = avcodec_receive_packet(ctx, pkt);&#xA;                     }&#xA;                     count&#x2B;&#x2B;;&#xA;                 avcodec_receive_packet(ctx, pkt);&#xA;                 fwrite(pkt->data, 1, pkt->size, file);&#xA;                 fflush(stdout);&#xA;                 av_packet_unref(pkt);&#xA;             }&#xA;             fclose(file);&#xA;             avcodec_free_context(&amp;ctx);&#xA;             av_frame_free(&amp;frame);&#xA;             av_packet_free(&amp;pkt);&#xA;&#xA;         }&#xA;     }&#xA;} &#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;

    &#xA;

  • cbs_h265 : Detect more reference combinations which would overflow the DPB

    3 février 2021, par Mark Thompson
    cbs_h265 : Detect more reference combinations which would overflow the DPB
    

    In total, the number of short term references (from the selected short
    term ref pic set), the number of long term references (combining both the
    used candidates from the SPS and those defined in the slice header) and
    the number of instances of the current picture (usually one, but can be
    two if current picture reference is enabled) must never exceed the size
    of the DPB. This is a generalisation of the condition associated with
    num_long_term_pics in 7.4.7.1.

    We use this to apply tighter bounds to the number of long term pictures
    referred to in the slice header, and also to detect the invalid case where
    the second reference to the current picture would not fit in the DPB (this
    case can't be detected earlier because an STRPS with 15 pictures can still
    be valid in the same stream when used with a different PPS which does not
    require two DPB slots for the current picture).

    Fixes : 24913/clusterfuzz-testcase-minimized-ffmpeg_BSF_HEVC_METADATA_fuzzer-6261760693370880
    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Tested-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/cbs_h265_syntax_template.c