LEADTOOLS Support
Multimedia
Multimedia SDK Questions
converting buffer with jpeg file to mpeg2 using memory without file writing
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, March 18, 2009 4:25:28 AM(UTC)
Groups: Registered
Posts: 40
I want to develop application where I want to convert jpeg file to mpeg2 transport stream using memory.I am getting byte array buffer containing jpeg data.I want to convert it to mpeg2 stream in memory and stream it.Can you give me the direcion on this.code snippet will be more helpful.Please help.This is urgent.
Thanks.
#2
Posted
:
Thursday, March 19, 2009 6:18:34 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Here are the steps that need to be done:
1. De-compress the JPEG image and convert it to uncompressed RGB image.
2. Use the RGB data to create a video stream
3. Compress the video stream using MPEG2 compressor
4. Feed the MPEG2 video to our LEAD MPEG Transport Multiplexer.
For the first part, our multimedia toolkit does not have a function that de-compresses the JPEG image in memory. If you don't have your own function to do that, you can use LEADTOOLS imaging toolkit functions.
If you don't any of our imaging toolkits, you can download the free evaluation edition from our site.
For step number 2, see the GenAVI sample project which converts memory bitmaps to video stream. However, that demo generates an AVI on disk, so you will need to modify it.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Multimedia
Multimedia SDK Questions
converting buffer with jpeg file to mpeg2 using memory without file writing
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.