blob: 73f1deb8fbb51da29ec094254b7cef04b8a068fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
This tool demonstrates the use of the Media Foundation H.264 decoder as a
standalone Media Foundation Transform (MFT). The H.264 decoder takes sample
objects (IMFSample) containing Annex B streams as input, and outputs decoded
YV12/NV12 video frames as output, contained in a buffer object (if DXVA is not
enabled) or a Direct3D surface (if DXVA is enabled.)
This tool uses ffmpeg's parser and bitstream converter to read a file
containing H.264 video and outputs packets containing Annex B streams which are
then fed into the H.264 decoder. This tool also demonstrates the use of the
H.264 decoder using callbacks.
Requirements: Windows 7
Note1: On some video files, there is a mysterious 1-off decoded frame count
when DXVA is enabled.
Note2: This tool requires the ffmpeg library to have the H.264 codec and Annex
B bitstream filter. You might need build your own, or grab one from
http://ffmpeg.arrozcru.org/autobuilds/
Note3: A single H264Mft instance is only for 1 H.264 video stream only.
Inputting streams consisting of more than 1 video to a single instance
may result in undefined behavior.
|