Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Display Modes
Old 28th January 2003, 19:48   #1  |  Link
int 21h
Still Laughing
 
int 21h's Avatar
 
Join Date: Oct 2001
Location: Around
Posts: 1,312
Proposal for Open Source Compressed Domain Mpeg-2 Transcoder

Most of us have heard of DVD2One. Basically it uses a process called Compressed Domain Mpeg-2 transcoding to reduce the size of a MPEG-2 stream so that you can author that stream later. I was unfamiliar with this process until the tool came out, but have now found a wealth of information about it.

Is anyone interested in a project, perhaps modifying an existing application (like DVD2AVI) to preform this process? It doesn't seem to be exceedingly complicated. Here are the links I've found so far:


http://www.cs.cornell.edu/zeno/paper.../transcode.pdf
http://www.hpl.hp.com/personal/Susie...7/hpidc97.html
http://www.ee.princeton.edu/~minwu/p...00_transcd.pdf
int 21h is offline   Reply With Quote
Old 28th January 2003, 20:21   #2  |  Link
mpucoder
Moderator
 
Join Date: Oct 2001
Posts: 3,398
Judging from what I've seen and heard, DVD2one gets excellent results. We all knew there was an easier way than decoding and encoding to reduce the bitrate, now someone has done it.
I don't know about modifying an existing program, unless it was designed for mpeg in and out. I think a standalone app along the lines of ReMPEG2 (which this would replace) would be more acceptable.
I'm in. First thing to do is get webspace. SourceForge is a good place for this, as long as the project is open source, it will be welcome there. I can also supply webspace if that's not enough (we're upgrading the mpucoder servers now to be co-located, and IfoEdit interest is tapering off, so there's plenty of bandwidth)
mpucoder is offline   Reply With Quote
Old 28th January 2003, 20:25   #3  |  Link
Olebrumm71
Registered User
 
Join Date: Feb 2002
Posts: 13
Interesting reading

Here is another interesting web-page on the subject of transcoding of MPEG2 videostreams:

http://www.bbc.co.uk/atlantic/transcoding.html
Olebrumm71 is offline   Reply With Quote
Old 28th January 2003, 21:29   #4  |  Link
int 21h
Still Laughing
 
int 21h's Avatar
 
Join Date: Oct 2001
Location: Around
Posts: 1,312
Well, I can code C/C++, I just get lost in some of the more complex MPEG operations that go on (DCT, etc.). I will look into getting some space at Sourceforge a little later today. I would definitely want this to stay opensource and free as in beer, otherwise there's no point
int 21h is offline   Reply With Quote
Old 30th January 2003, 17:06   #5  |  Link
IdentDee
Registered User
 
Join Date: Aug 2002
Location: Germany
Posts: 7
Code we can build on ...

Quote:
Originally posted by int 21h
Well, I can code C/C++, I just get lost in some of the more complex MPEG operations that go on (DCT, etc.). I will look into getting some space at Sourceforge a little later today. I would definitely want this to stay opensource and free as in beer, otherwise there's no point
Perhaps we can use libvideocoding as far as i know it has everything but the bit allocation at transrating what we need.

rate control is the main problem. The activity in the macroblock must be derived from the dct coefficents. DVD2one seems to use a bitrate reduction factor on the quantization leading to lower perceived quality since it gives a damn on the activity in the macroblock.

http://rachmaninoff.informatik.uni-m...ing/index.html
IdentDee is offline   Reply With Quote
Old 30th January 2003, 17:20   #6  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
Id love to help in this, but I just dont think ill have the time at present But -h is finishing his MS-MPEG-4 -> MPEG-4 converter, so maybe you can rope him in (sorry -h )

Ill pay close attention and help when ever I can

Cheers,
-Nic
Nic is offline   Reply With Quote
Old 30th January 2003, 18:00   #7  |  Link
-h
Kilted Yaksman
 
-h's Avatar
 
Join Date: Oct 2001
Location: South Carolina
Posts: 1,303
Yeah, not too surprisingly I've had my days off chewed up by other activities, so the convertor will have to wait until next Tuesday.

But yes I've been mulling over creating an MPEG-1/MPEG-2 encoder/decoder, and a side-effect of that would be creating some transcoding modes. There are a few ways it can be done, the fastest looking the worst of course, but that's what trial and error is for.

I've no idea when I can start working on it, so I may not be much use to this project

-h
-h is offline   Reply With Quote
Old 31st January 2003, 14:45   #8  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
Aren't there two moderators, here, who worked (work?) on a free MPEG 1/2 encoder? Maybe they could/would help?

*cough* *cough*

As for alpha/beta testers, I think that should really be no problem .

Good luck and hopefully it will succeed.

Cheers,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 24th February 2003, 05:56   #9  |  Link
int 21h
Still Laughing
 
int 21h's Avatar
 
Join Date: Oct 2001
Location: Around
Posts: 1,312
What if we could take bbMpeg and modify/optimize it? It already accepts Mpeg-2 input.. all we would need to do is make it smarter (& faster), to intelligently reduce our streams....
int 21h is offline   Reply With Quote
Old 24th February 2003, 10:48   #10  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
bbmpeg's code is a bit of a nightmare, decoding the mpeg-2 parts won't be a problem as the standard MSSG code or dvd2avi's code can be used to decode the bits we'd need, the writing of the bistream back out could be a bit fiddly. Then theres all the bits inbetween. Its not really everso hard, the main thing is its no minor task.

Unfortunatly I dont think any of us want to give up our free time to make a piece of free software which has already been created and making quite a lot of money for those who created it. Its a sad shame

Cheers,
-Nic

ps
mjpeg.sf.net mpeg-2 encoding source is a bit easier to read for me anyway...
Nic is offline   Reply With Quote
Old 24th February 2003, 17:45   #11  |  Link
int 21h
Still Laughing
 
int 21h's Avatar
 
Join Date: Oct 2001
Location: Around
Posts: 1,312
Let's make commercial software then
int 21h is offline   Reply With Quote
Old 24th February 2003, 19:59   #12  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
Isn't this a more promising and interesting project than the n-th automated encoding app etc.? I understand that it is way more complicated, but no one says that it has to be done in a few weeks/months.

I just want to show that this project would be very interesting and wanted. Surely others (who don't read this forum, BTW), would agree.

Just look how VirtualDub has changed in the last few years. From a little and unknown GPL video app, it's now for sure the most important/best freeware application in this area.

If this ever starts (int21h, have you looked in the Sourceforge webspace?), you can count me in for beta testing.

Cheers,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 24th February 2003, 20:56   #13  |  Link
int 21h
Still Laughing
 
int 21h's Avatar
 
Join Date: Oct 2001
Location: Around
Posts: 1,312
The SF space is no problem, We've gotten in the past for other stuff (Save-OE, Nandub, etc.), but no point in getting the space if I have nothing to put up on the space...
int 21h is offline   Reply With Quote
Old 24th February 2003, 21:41   #14  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
Quote:
Isn't this a more promising and interesting project than the n-th automated encoding app etc.? I understand that it is way more complicated, but no one says that it has to be done in a few weeks/months.
Rarely is a truer word said. So you've convinced me, ive started to look into it. I dont know if ill just hit a brick wall, but ill look through and at least put some code down to pass a MPEG-2 and get some of the parts we need out of it

-Nic
Nic is offline   Reply With Quote
Old 24th February 2003, 21:46   #15  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
http://www.cs.wayne.edu/~dil/research/mdc/

Ok some parts of that download might be useful...
from the readme:
ompressed domain feature extraction, such as motion vector extraction,
DCT components extraction.

I think some stuff could be learnt from the code there, but maybe im being too optimistic, ill report back after ive scurried through the code

Cheers,
-Nic

ps
Ahhh, the zip does not contain all the source code, ill email the author

pps
doh! its from 1999, the chances of getting a reply are slim. back to the drawing board.

ppps
On the libmpeg2 dev mailing list someone asked about dvd2one, it will be nice if the mighty walken responds

Last edited by Nic; 24th February 2003 at 23:39.
Nic is offline   Reply With Quote
Old 24th February 2003, 21:46   #16  |  Link
int 21h
Still Laughing
 
int 21h's Avatar
 
Join Date: Oct 2001
Location: Around
Posts: 1,312
int 21h is offline   Reply With Quote
Old 24th February 2003, 21:52   #17  |  Link
int 21h
Still Laughing
 
int 21h's Avatar
 
Join Date: Oct 2001
Location: Around
Posts: 1,312
It contains all of the header files and the MDC.lib.. what else is needed?

A thought occured to me though... Does DVD2One pay the MPEG-LA patent fees?
int 21h is offline   Reply With Quote
Old 24th February 2003, 22:40   #18  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
Yay! Great news, thanks to both of you...

Now, let's see if mpucoder and the others who've already showed interest, will contribute too. Not to mention that many new people could and probably will contribute too.

Can't wait to see the first Sourceforge steps (this will get me to update my programmers corner after a very long time )...

A happy wolf .

Cheers,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Old 26th February 2003, 13:43   #19  |  Link
Nic
Moderator
 
Join Date: Oct 2001
Location: England
Posts: 3,260
Toys 'R' Us

http://nic.dnsalias.com/MPEG2Enc.zip

Just for fun, while im doing "research" into it. Here's a Commandline MPEG-1/2 encoder that encodes from Avisynth AVS files.
(based on mjpegtools)

Tell me how it goes for you,

Cheers,
-Nic
Nic is offline   Reply With Quote
Old 26th February 2003, 18:01   #20  |  Link
Ookami
Xe-Rotaredom
 
Ookami's Avatar
 
Join Date: Oct 2001
Location: Croatia
Posts: 1,029
MPEG2Enc quick test

@Nic regarding MPEG2Enc

Umm, I doesn't work for me at all (at least in the short testings I've done)... What have I done wrong?

OS: Windows XP Pro SP1

Source: 768x576 25 FPS Huffyuv 2.1.1. CCE patch (no audio)

See the attached pix for the error report of the program (when selecting MPEG2 output). After I've selected MPEG1 for output, I've got a 383 KB file wich produces, on playback, just a green screen.

After choosing a Xvid AVI 640x480 (with audio), the program does nothing at all (mpeg1 and 2)...

Same when choosing a DV AVI (720x576).

Thanks for your researching .

Cheers,

Mijo.
__________________
"Only those who attempt the absurd achieve the impossible."
Ookami is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:12.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.