Solved

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

Posted on 2003-10-27
4
1,403 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

730 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