简体   繁体   中英

Mp4 playback in XNA using DirectShow.Net

I am new to DirectShow and I have been trying to get MP4 playback to work properly in XNA. I am using DirectShow.Net to build my graph and use a modified version of this video playback control to render the videos. This works great when using wmv and avi files (I had to modify the VideoPlayer control to use ABGR instead of ARGB (through a pixelshader), and set subType to MediaSubType.RGB32 so I didn't have to add the alpha byte).

However, when running this video player for an mp4 file (using subtype of AVC1 and using VideoInfoHeader2 for header info), I get compressed data coming into BufferCB instead.

What kind of data is coming into BufferCB and how do I render the data?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM