I have to create component as a command line application or DLL that
would extract the first frame of an MPEG2 to a JPG file and the KLV
(metadata) to a text or XML file.
The files we have to extract have a .ts extension. (if that is any
help)
Anybody have any hints for me. I have been looking at FFmpeg and
libmpeg2. Those 2 libraries are written in standard C. I have to
implement the application/DLL in C# or C++ for Visual Studio 2005 .Net
I have a total of 3 weeks to develop such component.
My superior told me that if we can find a existing component that would
do just that we could buy it.
As a starter, I would imagine ts stands for Transport stream. Check out
the MediaDetector object which will probably do at least the jpg grabbing.
That should get you going!
Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
> As a starter, I would imagine ts stands for Transport
> stream. Check out the MediaDetector object which will
> probably do at least the jpg grabbing.
I don't think MediaDet will be of any use because MPEG2
video is usually described by VIDEOINFOHEADER2, which is not
supported by MediaDet, and also none of the system's MPEG2
parsers supports TS sourced in pull-mode from the stock
async readers.
I would parse the TS myself to gather the metadata and
extract an I-picture from the video ES, which I would push
through an MPEG2 video decoder to get an uncompressed image
which I would then push through a JPEG compressor.
One way to do it is to write a push source filter for
DirectShow that parses the TS, outputs the metadata through
a custom interface and pushes the I-picture downstream to an
MPEG2 video decoder connected to an MJPEG encoder end ending
the filter chain with a sink that saves the MJPEG frame
adding the JFIF header and Huffman table to make it a valid
JPEG file.
--
// Alessandro Angeli
// MVP :: Digital Media
// a dot angeli at psynet dot net
> I have no experiences at all dealing with that kind of files and
> objects in C++ and I am a beginner in C#.
> Would be interested in the implementing such DLL and how much would it
> cost?
There is a filter wizard for VC 7.1 on my site (see sig). It includes a
source filter option. It is for unmanaged C++.
What do you mean cost?
--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
>> Would be interested in the implementing such DLL and how
>> much would it cost?
[CUT]
> What do you mean cost?
I think he was offering me a job, weren't you srochon? :-)
> The March Hare [MVP] wrote:
>
>>> Would be interested in the implementing such DLL and how
>>> much would it cost?
> [CUT]
>> What do you mean cost?
>
> I think he was offering me a job, weren't you srochon? :-)
In that case, I can recommend you :)