[FFmpeg-user] Use blackdetect info to cut video

Clément Bœsch ubitux at gmail.com
Tue Jun 26 08:57:43 CEST 2012


On Mon, Jun 25, 2012 at 12:18:00PM -0700, cclinus wrote:
> Hi all
> 
> I use the command to detect black screen interval. 
> 
> "ffmpeg -i black.mp4 -vf blackdetect=d=1:pic_th=0.70:pix_th=0.10 -an -f null
> -
> 
> and it gives me output containing this line:
> "[blackdetect @ 0x219a580] black_start:0 black_end:1.44 black_duration:1.44"
> 
> Now I want to cut off black screens in the video from 0-1.44s. Is there
> anyway to do the processes all in one ffmpeg call?
> 

ATM I don't think it's possible. But one could write some code in the
select filter to achieve that (just like it was recently done for the
scene cut feature).

You might want to open a trac issue for this.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120626/10950ae7/attachment.asc>


More information about the ffmpeg-user mailing list