?
Solved

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

Posted on 2003-10-27
4
Medium Priority
?
1,418 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
_nn_ earned 1000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

764 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