OS: Windows 10 64bit Professional
Library Version: Media SDK 2019 R1
Compiler Version: Visual Studio 2019 16.5.5
CPU: Core i7-6700K
In the above environment, MPEG-2 video could not be hardware decoded even with the MediaSDK sample.
How do I decode MPEG-2 video?
Me too I have problems decode to MPEG2. After installed the oneAPI ToolKits 2021.1.1113.beta06, I run the simple_encode sample, changing the bitstream output to MPEG2, directly from visual studio professional 2017. Encode file end out to be h264
The tested source is MPEG-2 demultiplexed from the following download.
The command line inputs are as follows.
sample_decode mpeg2 -hw -i demuxed_file
I could not reproduce the bug. What exactly doesn’t work? Does the decoder produce something or is there a problem in the output stream?
I checked the following sequence for demultiplexing and decoding:
ffmpeg -i TE3demo_kishin6Mbps.mpg stream.m2v
sample_decode mpeg2 -hw -i stream.m2v -o out.yuv
I am very sorry.
The problem is that we have modified the sample to process the input stream into smaller fragments, which is why the It was occurring due to.
It is now possible to decode normally by feeding more than one frame of MPEG-2 data.