Solved

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

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
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.
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

696 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