Skip to content
Advertisement

Tag: ffmpeg

How to escape all special characters for ffmpeg drawtext filter in java

Does anyone have a good recipe for escaping all of the special characters (‘,%,,:,{,}) from a String in java, that will be used in an ffmpeg drawtext filter chain? Trying to use replaceAll with different combinations of escaping has been an exercise in frustration! String myTextString = “Bob’s specialcool mix:stuff @ 40% off”; Runtime.getRuntime().exec(new String[] { “ffmpeg”,…., “filter_complex”, “drawtext=enable=’between(t,0,10)’:x=10:y=10:fontfile=Roboto-Black.ttf:text='” +

Find Percentage of difference between two Videos Using FFMPEG

I am working with Video comparison using FFmpeg on Java. I have videos name “video1 and Video2”. I can find the difference between two video using FFmpeg. It shows the result Video with difference. But here I want to find how many percent (IE: 20%) Video1 different from Video2. How to achieve this? Answer If just file comparison, lots of

Advertisement