Hot answers tagged

2

Since Google Summer of Code 2018, FFMpeg has supported the sr filter for applying super-resolution methods based on convolutional neural networks. However, as you have discovered, few super-resolution tutorials exist, and compiling FFMpeg with proper libraries and preparing models for super-resolution requires expert knowledge. To make super-resolution in ...


2

The msg for gyan.dev downloads is a false alarm. All files are delivered via HTTPS. Select Keep instead of Discard. Chrome shows the same message for Google Earth downloads as well. This is apparently an initiative by Google to ultimately prevent mixed content downloads in Chrome.


1

Create a canvas of output size and use an animated overlay to simulate a scroll. ffmpeg -f lavfi -i color=s=3840x2160 -i UHDimage -filter_complex "[0][1]overlay=x=0:y=H-48*n" -vframes 242 out.mp4 Output duration is clamped to 242 frames = (11568/48)+1.


1

The concat filter uses the frame rate of the first input as the framerate for the output stream. Some MKV/WebM files don't write valid framerates. That can lead ffmpeg to assign a framerate of 1000 (the inverse of default timebase in Matroska), which can lead to huge frame duplication. Set a sane output framerate for such scenarios. ffmpeg -i intro.mkv -i ...


1

x=tw-min(4*(tw\+10)-(abs(4-2*(t-1)))*(tw+10)-tw\,w/3.5) With this script I can animate text from right to left and stay in middle for a second and then go back to right side.


1

The video's color transfer characteristics (trc) and color primaries flags are not being set on the output video, which is causing the video player to use incorrect values for playback, resulting in washed out colors. When encoding, use the following FFmpeg flags to resolve this: -color_trc smpte2084 -color_primaries bt2020 Note that these flags do not ...


1

ffmpeg -loop 1 -i https://thumbs.dreamstime.com/z/cartoon-weather-images-16836392.jpg -t 15 output.mp4 FFprobe result: ffprobe version 3.4.8-0ubuntu0.2 Copyright (c) 2007-2020 the FFmpeg Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 ...


1

Your build doesn't have the image2 muxer enabled, which is required for image sequences.


1

I got it working by adding -fflags nobuffer -flags low_delay -strict experimental before all the inputs. Got helped reading this thread


1

This is an addition to the excellent answer by PTS and an answer for chovy. If you want to place the overlay at the lower right corner, FFMPEG can calculate that for you very easily. Use the modified command: ffmpeg -i input.mp4 -i image.png \ -filter_complex "[0:v][1:v] overlay=W-w:H-h:enable='between(t,0,20)'" \ -pix_fmt yuv420p -c:a copy \ ...


Only top voted, non community-wiki answers of a minimum length are eligible