Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, March 18, 2009 4:25:28 AM(UTC)

uk15  
uk15

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.

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, March 19, 2009 6:18:34 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.088 seconds.