Solved

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

Posted on 2003-10-27
4
1,388 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
Comment Utility
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
Comment Utility
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_
Comment Utility
>> 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
socket programming 8 32
countEvens challenge 2 57
tenRun challenge 28 81
Not needed 13 53
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 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

17 Experts available now in Live!

Get 1:1 Help Now