0

I am new to working with FFmpeg and would like to automate video trimming but can't find a way to do it.

So, what I would like to achieve is this: I want to delete the beginning of a video file until a certain pixel (x,y) is colored gray (0x303030).

I am sure that somewhere in the video, say, pixel (100,50) will be colored gray (0x303030). And I want the video to begin exactly at this point.

Optionally it would be great if I could move a few micro/mili seconds back-and-forth from this exact point so can have some spare time.

Tried many complex commands but nothing works for me :(

For example I've tried:

ffmpeg -i in.mp4 -vf "select='gt(scene,0.01)+eq(pict_type\,I)*eq(r(X,Y)\,128)*eq(g(X,Y)\,128)*eq(b(X,Y)\,128)',setpts=N/FRAME_RATE/TB" output.mp4

The same thing I want to do from the end of the video...

Please help!

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.