ffmpeg watermarking processing is very slow

眉间皱痕 提交于 2019-12-11 03:46:53

问题


I am working on a video processing project and using ffmpeg for watermarking. I achieve exactly what i want but the problem is that the process is very very slow.

I am using a Intel Smart 2nd gen family Core-i5 Processor with 4GB RAM on a 32 bit operating system Microsoft Windows-8 on a 64-bit CPU.

I tried watermarking a video [mp4] of length 1:30 Min. size of file is 1.5GB

Whole process accomplish in 3 Hrs to watermark my video file and what i noticed while process is that ffmpeg was processing 28 frames per sec first and then later it slow down up to 20 frames per second. a normal human watch video with frame rate of 30 frame per second and process was even slower then this that's why it took more time [3 Hrs] then the actual length of video itself [1:33]

What i think to make process efficient is to use ffmpeg Watermarking Source Code and modify it somewhat...

I want to ask if someone have achieve fast watermarking before by any other way or have modified this code to achieve faster process in order to save my time...


回答1:


To speed up you might try to skip middle frames like apply watermark on next 5th frame if that number dont create flickr



来源:https://stackoverflow.com/questions/16907050/ffmpeg-watermarking-processing-is-very-slow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!