Solved

Create an MPEG2 I-Frame (sample.m2v) from an image.

Posted on 2003-10-27
4
1,393 Views
Last Modified: 2010-05-18
Does anyone know how to encode an MPEG2 I-Frame ("sample.m2v") from a simple image?

I need to do it from within Java so preferably Java code and source-code available.

I searched the internet for a Java MPEG2 software encoder, but could not find anything.

Kind regards,
Filip Hoeven
0
Comment
Question by:filip_hoeven
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
_nn_ earned 500 total points
ID: 9626568
FWIW, the only MPEG2 encoding software with source code I know of is bbMPEG :
http://members.cox.net/beyeler/bbmpeg.html

Unfortunately, it's C/C++. The download page seems "blocked" at the moment, but I found some other links :
http://www.divx-digest.com/software/avi2mpg2.html
http://www.divx-digest.tv/software/encode/bbmpg12418_src.zip
http://www.divx-digest.tv/software/encode/bbmpeg_xp.zip

A rewrite in Java looks huge, but you could possibly try to use it as DLL with some JNI...

Good luck.
0
 

Author Comment

by:filip_hoeven
ID: 9626636
Thanks for your comment.

bbMPEG does the job, I know...
I use it to do this manually.

I would like to avoid using JNI to do it however...
I'll have to add some functions to the C/C++ code
if I'm going to use it through JNI...

I would like to keep the application platform-independent however.

Anyone else got a Java MPEG2 encoders?
It does not have to be fancy, just encode one still picture
into a "m2v".

Strange that it seems there's no SW MPEG2 encoder in/for Java.
0
 
LVL 16

Expert Comment

by:_nn_
ID: 9626666
>> I would like to keep the application platform-independent however.

Platform-independancy can (more or less) be achieved with C/C++ too. But the author(s) of bbMPEG do(es)n't seem to have been much interested in that aspect of the development.

>> It does not have to be fancy, just encode one still picture into a "m2v".

"Fancy" or not, it's gonna have to implement a lot to be able to do that...

>> Strange that it seems there's no SW MPEG2 encoder in/for Java.

Think "speed", and you'll know the probable reason why people have prefered to use other languages...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now