Video thumbnail sometimes all black #1167
Unanswered
ChuckSavage
asked this question in
Help
Replies: 1 comment
-
You will need to use an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So, I'm using something relatively simple to get a thumbnail for a video file. At the moment, if a video uses fade in from black, the thumb is black. Is there a way to advance frame by frame to find a frame that isn't black?
I'm thinking before the
image.Write
, to resize the thumb to a 1x1 and check for blackness, if too black advance a frame and try again. Though I'm not sure how to step through the movie using MagickImage. I'm not seeing anything likeimage.AdvanceFrame()
or some construct. The only Frame I see is for geometry stuff.A
image.SeekFrame(frame_number)
method and aimage.FrameCount
property might help to create a for loop. Then a call toimage.Thumbnail
would use the current frame.Beta Was this translation helpful? Give feedback.
All reactions