Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6746 Discussions

Raw image data capture from 1080p video file with UMC

9ine
Beginner
316 Views

I'd like to be able to extract several decompressed image frames from HD videoin as less processing time as possiblefor thumbnail creation or other purposes.

1) Is it possible to extract, specifically from HD video file, every Nth frame?
E.g. there are 25 frames in a second and the video file is 30 seconds.
I'd like to extract every 50th frame or every 100th frame which is equal to extraction of only 1 frame in a 2 seconds intervalor only 1 frame in4 seconds.

2) What will be the performance in that case? Similar to continuous extraction of all the frames one by one or much faster, equal to a single frame extraction?

0 Kudos
3 Replies
Chao_Y_Intel
Moderator
316 Views


Hi,

What are the video container ( splitter) you using now? Intel IPP splitter support MP4, MPEG TS, AVI formats.

The SetTimePosition() API in the splitter can be used to set the decode video position, but please note, it does not go to the exact N frame. If that time is I frame, the splitter will go to that frame, Otherwise Splitter will set you on the nearest I frame before the time it sets in SetTimePosition().

Thanks,
Chao

0 Kudos
9ine
Beginner
316 Views
Hello

I use splitter selection as in sample_player application.
How to determine if splitter points to I frame?

Thanks
0 Kudos
Chao_Y_Intel
Moderator
316 Views

Hello,

The splitter puts the data into:

UMC::MediaData

Use the GetFrameType() methord in MediaData.

Thanks,
Chao

0 Kudos
Reply