Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


Finding the scene change, minus 1 frame?

Discussions about problems encountered using ffprobe.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

Finding the scene change, minus 1 frame?

Postby jsykes » Thu May 12, 2016 7:33 pm

Can anyone tell me how I can use ffprobe to produce a list of timestamps of each frame of a new scene change but the frame before the scene change if you get me ....the last shot of the last scene.

Eventiually I want to use ffmpeg to create thumbs of these frames.

I found the code below here http://stackoverflow.com/questions/34962426/how-to-get-screenshots-of-the-middle-of-each-scene-using-ffmpeg but I can't get it to work.

Code: Select all
ffprobe -show_frames -of compact=p=0 -f lavfi
"movie=$F,select=gt(scene\,.4)" | gsed -r
's/.*pkt_pts_time=([0-9.]{8,})\|.*/\1/' >> scenes-0.4


Many thanks,
jsykes
 
Posts: 7
Joined: Tue May 10, 2016 10:26 pm

Return to ffprobe

Who is online

Users browsing this forum: No registered users and 1 guest