Add watermark ffmpeg android3/22/2023 I use the following parameters to configure, and then make & make install, so I don’t need to go into details. checkout.sh, the svn version of ffmpeg will be checked out, and the script will be executed at the end Copy the svn source code under libavfilter to the corresponding directory under ffmpeg, and patch the ffmpeg out of checkout. Use svn checkout to exit libavfilter, the address is svn:///soc/libavfilter, enter the libavfilter directory, execute. Let's start the journey of svn version of ffmpeg + libavfilter. After google, I found that there is a vf_overlay.c in the latest version of libavfilter to add watermarks, and also supports transparent watermarks. Maybe the version of libavfilter is different. There is a way to add vf_logo.c to libavfilter on the Internet. The conclusion is that In the latest version of ffmpeg, vhook, which is officially deprecated, is indeed unusable. So compared with the watermark added by the old version of vhook, it is not necessarily the slightest difference. As a result, there was still no improvement after setting a higher bit rate. I thought it was because the video bit rate was not set with the -b parameter. Follow the common commands and parameters on the Internet, namely ffmpeg -i input.flv -vhook'/usr/lib/vhook/watermark.so -f watermark.png- t 222222 -m 1'output.flv, the picture effect is quite poor after the execution, it seems that the sharpening is very excessive. Use the vhook method to add watermark to the video under the 0.5.1 version of ffmpeg. After the compilation is complete, the test results are disappointing. I am very happy that there is also a "-disable-vhook", which means that there is a vhook by default. The current ffmpeg recommends the use of libavfilter, but the development of libavfilter is low and has not been widely used.įirst download the latest FFmpeg version 0.5.1 from the official website, and check the compilation parameters with. As for the effect, I will talk about it later. Most of the methods for adding video watermark to ffmpeg on the Internet still use vhook, which is not recommended in the current ffmpeg, but it can be compiled and used.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |