This job consists of one task: build DirectShow demo application that takes collection of BitMaps and encode them into MPEG1 or MPEG2 PS (Program Stream) and finally save encoded video stream (without audio) to the file on the disk.
The sample shall be written in C# (VS2010) and with [url removed, login to view] library (v 2.1). The Windows 7 system environment shall be used. The open source [url removed, login to view] project includes sample (Samples/misc/GSSF) GenericSampleSourceFilter provides the Generic Source DirectShow filter that reads the bitmaps as source filter for graph. That example (GSSF) is good base to add MPEG2 encoder and writing the output to the file with FileWriterFilter.
Our current approach is to use Microsoft MPEG2 Encoder Filter (Video Encoder part).
The sample shall also provide Media Type Pin configuration & codec configuration capabilities to control at least:
• Input Pin Media Types and Output Pin Media Types:
(MEDIATYPE_Stream, MEDIASUBTYPE_MPEG2_PROGRAM Or MEDIATYPE_Video, MEDIASUBTYPE_MPEG2_VIDEO)
• Codec Properties: AVEncCodecType, AVEncCommonFormatConstraint, AVEncMPVProfile …
If you have better solution on how to encode bitmaps to MPEG-2 PS, please propose.
[url removed, login to view] v 2.1 - Upgrade with support for W7 interfaces (2010-02-21) :
[url removed, login to view]
Microsoft MPEG-2 Encoder: [url removed, login to view](v=[url removed, login to view]).aspx and
Microsoft MPEG-2 Video Encoder: [url removed, login to view](v=[url removed, login to view]).aspx