Recherche avancée

Médias (0)

Mot : - Tags -/xml-rpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (70)

Sur d’autres sites (9190)

  • avcodec/roqvideodec : Move transient GetByteContext to the stack

    30 août 2020, par Andreas Rheinhardt
    avcodec/roqvideodec : Move transient GetByteContext to the stack
    

    This avoids keeping potentially dangling pointers in the context,
    beautifies the code (by replacing "&ri->gb" by gb for every access to
    the GetByteContext) and also highlights the GetByteContext's short-lived
    nature better.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/roqvideo.h
    • [DH] libavcodec/roqvideodec.c
  • Vertically stack two images, draw a box on the bottom image then write multiline text in that box

    31 août 2020, par Sarmad S.

    I am trying to make a video from two images, where the two images should be vertically stacked. This is easy and can be done with the vstack command. I also managed to write text on the bottom image with the drawtext command. However I want to draw a blue box that covers half of the bottom image (the bottom part of the image) and write the text in that blue box.

    &#xA;

    How do I go about doing so ?

    &#xA;

    My code so far :

    &#xA;

    ffmpeg -loop 1 -i image1 -i image2 -c:v libx264 -t 3 -pix_fmt yuv420p -filter_complex "[1]drawtext=my-font.otf: text=&#x27;some multiline text&#x27;: fontcolor=white: fontsize=50: x=(w-text_w)/2: y=(h-text_h)/2[v1], drawbox; [0][v1]vstack" -s 1080:1920 output.mp4"&#xA;

    &#xA;

    I also want to zoom slowly in the images (not the box or the text). Anyone can help me connect things ?

    &#xA;

    I am able to zoom, drawbox, write text etc, but not able to combine them together.

    &#xA;

  • avformat/movenc : Fix stack overflow when remuxing timecode tracks

    30 septembre 2020, par Andreas Rheinhardt
    avformat/movenc : Fix stack overflow when remuxing timecode tracks
    

    There are two possible kinds of timecode tracks (with tag "tmcd") in the
    mov muxer : Tracks created internally by the muxer and timecode tracks
    sent by the user. If any of the latter exists, the former are
    deactivated. The former all belong to another track, the source
    track ; the latter don't have a source track set, but the index of the
    source track is initially zeroed by av_mallocz_array(). This is a
    problem since 3d894db700cc1e360a7a75ab9ac8bf67ac6670a3 : Said commit added
    a function that calculates the duration of tracks and the duration of
    timecode tracks is calculated by rescaling the duration (calculated by
    the very same function) of the source track. This gives an infinite
    recursion if the first track (the one that will be treated as source
    track for all timecode tracks) is a timecode track itself, leading to a
    stack overflow.

    This commit fixes this by not using the nonexistent source track
    when calculating the duration of timecode tracks not created internally
    by the mov muxer.

    Reviewed-by : Martin Storsjö <martin@martin.st>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/movenc.c