Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (108)

Sur d’autres sites (16123)

  • Encoding - wrong display aspect ratio output

    5 août 2020, par Giammy

    By encoding different inputs with the line below, the display aspect ratio of the output is wrong when the input has not the same proportional relationship, also the logo that the command adds seems to effected by the gap between input width/height relationship and output one.
How to get an output that respest the input proportion, since the "cinema scope" could change, but keep 1080*1920 output resolution ?

    


    ffmpeg -f concat -safe 0 -y -i list.txt -loop 1 -i ../logo/logo.png -c:a copy -c:v libx264 -x264opts keyint=$GOP:min-keyint=$GOP:no-scenecut -bf 0 -r $FPSC -b:v 4800k -maxrate 9600k -bufsize 19200k -profile:v main -crf 22 -filter_complex "[0:v][1:v]overlay=main_w-overlay_w-10:10,scale=1920:1080,setsar=1" -t $TOTDUR 1080set.mp4 


    


    Please if you need any other infos just say, thank you !

    


  • Display formatted date and time over frames using ffmpeg

    28 août 2020, par marcman

    I've gone through a handful of questions on here (this, this, this, etc) concerning overlaying the date and time on videos using ffmpeg, but I haven't been able to figure out the solution.

    


    I personally have found the ffmpeg documentation difficult to parse as well regarding drawing text that updates every (N) frame(s).

    


    I have the exif data from a movie specifying when it was created. I'd like to be able to emblazen that over the movie (as though it were a home video from some old VHS tape). For example, let's say I have a video from January 2, 2012 at 10:33:53. I'd like to be able to show "Jan 2, 2012 10:33:53am" on the lower right in white text. The spatial positioning and color are clear to me, but just how to go from the timestamp information I have to the formatted expansion is proving to be quite difficult for me. I have succeeded in getting a clock starting from 00:00:00.00 and counting up (using timecode and timecode_rate), but unfortunately I can't get much more than that.

    


    My question is : what is the proper datetext command that will allow me to both (a) provide the start time, and (b) format it with the proper expansion.

    



    


    As a bonus, if you can also point me to how to do this using the wonderful ffmpeg-python library, it would be even better. That library is quite good, but it does not appear to be actively maintained anymore.

    


  • avcodec/exr : add support data windows larger or outside display window

    7 septembre 2020, par Mark Reid
    avcodec/exr : add support data windows larger or outside display window
    
    • [DH] libavcodec/exr.c
    • [DH] tests/fate/image.mak
    • [DH] tests/ref/fate/exr-rgb-scanline-float-zip-dw-large
    • [DH] tests/ref/fate/exr-rgb-scanline-half-piz-dw-large
    • [DH] tests/ref/fate/exr-rgb-scanline-half-zip-dw-large
    • [DH] tests/ref/fate/exr-rgb-scanline-half-zip-dw-outside
    • [DH] tests/ref/fate/exr-rgb-scanline-uint32-piz-dw-large
    • [DH] tests/ref/fate/exr-rgb-tile-half-piz-dw-large
    • [DH] tests/ref/fate/exr-rgb-tile-half-zip
    • [DH] tests/ref/fate/exr-rgb-tile-half-zip-dw-outside
    • [DH] tests/ref/fate/exr-rgb-tile-uint32-piz-dw-large
    • [DH] tests/ref/fate/exr-ya-scanline-zip-half-12x8