[FFmpeg-devel] Filters

JULIAN GARDNER joolzg at btinternet.com
Fri Jul 18 23:33:40 CEST 2014








>________________________________
> From: Clément Bœsch <u at pkh.me>
>To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org> 
>Sent: Friday, 18 July 2014, 14:55
>Subject: Re: [FFmpeg-devel] Filters
> 
>
>On Fri, Jul 18, 2014 at 01:14:25PM +0100, JULIAN GARDNER wrote:
>[...]
>> > You do exactly that and that's all. Then ffmpeg -i foo -vf bar -f null -
>> > 
>> > There are a lot of detection only filters. volumedetect, signalstats,
>> > blackdetect, ... just copy their behaviour
>> > 
>> 
>> Yes but this is my problem, an example command line I need at the moment
>> 
>> fmpeg -i xxxx.ts -vcodec libx264 -b:v 1000k -acodec libfaac -async 1 -vf
>>  'split [mark], detection [dontneed];delay=5, markregion 
>> [vid];[dontneed][vid] overlay' -y -f mpegts processed.ts
>> 
>> What I would like
>> 
>> fmpeg -i xxxx.ts -vcodec libx264 -b:v 1000k -acodec libfaac -async 1 -vf
>>  'split [mark], detection; delay=5, markregion' -y -f mpegts processed.ts
>> 
>
>Use -filter_complex and map only the output of markregion. Or maybe
>just explicit [out0] after markregion with your -vf version, that might
>work, I don't remember the details, but since I'm missing detection, delay
>and markregion filter I have no idea how to test.
>
>[...]
>
>-- 
>Clément B.
>
>_______________________________________________
>ffmpeg-devel mailing list
>ffmpeg-devel at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


fmpeg -i xxxx.ts -vcodec libx264 -b:v 1000k -acodec libfaac -async 1 -vf 'split [mark], drawbox=10:10:100:100:color=green [dontneed];[mark] drawbox=100:100:100;100:color=red [vid];[dontneed][vid] overlay' -y -f mpegts processed.ts

If you can get rid of the overlay and end up with a video with a RED box on screen you have cracked it, should end up with this and your changes

fmpeg -i xxxx.ts -vcodec libx264 -b:v 1000k -acodec libfaac -async 1 -vf
 'split [mark], drawbox=10:10:100:100:color=green;[mark] 
drawbox=100:100:100;100:color=red' -y -f 
mpegts processed.ts

joolz


More information about the ffmpeg-devel mailing list