Quantcast KVCD: Creation of a New Encoder? - digitalFAQ.com Forums [Archives]
  #1  
06-25-2002, 04:16 PM
jaiguru jaiguru is offline
Free Member
 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hi All,

This night, after trying to encode and re-encode one of my video samples to test some of the quant. matrix I've found on the net, one idea appears on my brain :

Make my own MPEG encoder with buit-il optimisations for our purpose (120min film on 1CD). But, it's obvious that it's not possible for me to start from scratch.

So, I wanna know if some of you have ever find a good (near TMPGEnc) MPEG encoder with source code available (if possible for linux or other Unices)
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
06-25-2002, 05:50 PM
Rookie Rookie is offline
Free Member
 
Join Date: Jun 2002
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Try here:

http://www.theorie.physik.uni-goetti...ich/transcode/

I dont have firsthand experience with the mpeg1/2 part of transcode right now but Ive once seen an SVCD encoding an colleague made which was quite good.
Reply With Quote
  #3  
06-26-2002, 03:05 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jaiguru
Hi All,

This night, after trying to encode and re-encode one of my video samples to test some of the quant. matrix I've found on the net, one idea appears on my brain :

Make my own MPEG encoder with buit-il optimisations for our purpose (120min film on 1CD). But, it's obvious that it's not possible for me to start from scratch.

So, I wanna know if some of you have ever find a good (near TMPGEnc) MPEG encoder with source code available (if possible for linux or other Unices)
Hi jaiguru:

That idea has been in my head for months
Because I am a developer ( on Unix systems ), I've been looking at different sources, trying to find the correct starting point. I've been looking at the source for the standard Test model 5 ( aka TM5 ) at www.mpeg.org. I've also looked at DVDx's source. Too much spagetti code there, and very badly documented. But it's a good starting point, maybe by removing a lot of unnecessary code. So take a look at mpeg.org or the DVDx sources. One thing I have in my mind is "The KVCD encoder"

I'll keep studying the code. Maybe some day the dream will come true still have a long way to go, because even though I program mostly in "C", my experience is in Unix based systems. Not on Windows systems. So I have some learning to do. Maybe Borland Builder. I hate VC++ ( and MSCraps )

kwag
Reply With Quote
  #4  
06-27-2002, 03:25 AM
Rookie Rookie is offline
Free Member
 
Join Date: Jun 2002
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Developing under Windows when you can under Unix? *gulp*
Why not start with an Unix command line tool. Its easily portable and imho you can easily add an click-o-rama frontend for all kinds of operating systems afterwards.
Reply With Quote
  #5  
06-27-2002, 03:33 AM
jaiguru jaiguru is offline
Free Member
 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Kwag and thanxs for you good job (I tried some equivalent settings on TMPGEnc last year but my time isn't extensible and I stopped... until recently )

I'm also a Unix programmer (a Unix system administrator in fact) and If I can give you one tips : try cygwin (http://www.cygwin.com). With this lib (and enviromnent) I'm almost sure we can recompile a Unix MPEG encoder on windows withouts efforts.

About the original encoder : I search (and try a little) and I think that mpeg2enc from mjpegtools is a good starting point (good mpeg quality, good sources...): have you ever try it ?
Reply With Quote
  #6  
06-27-2002, 05:09 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
@rookie and jaiguru:

I love Unix. Specially FreeBSD, NetBSD, and ( it's cousin ) Linux.
The problem I see with starting an encoder project in U*ix, is the lack of OS hooks and utilities. For example, there's no SmartRipper, DVDDecrypter, AviSynth, DVD2AVI, FitCD, Vdub( for frame serving, etc. ). These are key tools and utilities that are essential to mpeg projects. So in U*ix world, there's very little we can do. I'm aware of one excelent encoder, broadcast2000 I believe it's called, but it can't even read avi files and I think it's discontinued. So for all my servers and firewalls, U*ix is what I use. But for desktop apps and wide user acceptance, it's sad, but it has to be WindooOoOoze

@jaiguru:
I'm currently experimenting with Bloodshed C++ http://www.bloodshed.net/dev/index.html
Take a look, and tell me what you think.

It uses the MingW32 compiler based on GCC, so I'm familiar with the compiler.

kwag
Reply With Quote
  #7  
06-27-2002, 05:44 AM
Rookie Rookie is offline
Free Member
 
Join Date: Jun 2002
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Sure there are! I did several projects purely under Linux. with DVD2AVI and TMPGEnc emulated under wine. I ripped the stream with dvdrip (http://www.exit1.org/dvdrip/).
DVD2AVI, avisynth, Fitcd anf VirtualDub are OpenSource projects.
It would be really cool to integrate all necessary functions from this tools into one programm.
Reply With Quote
  #8  
06-27-2002, 07:05 AM
Latexxx Latexxx is offline
Free Member
 
Join Date: Jun 2002
Location: Tampere, Finland
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Maybe bbmpeg( http://members.cox.net/beyeler/bbmpeg.html ) would do the job. Normally it is used as muxer for svcd, but it also includes encoder. It is also gpl'ed. It is almost as good quality( http://www.tangentsoft.net/video/mpe...ws/bbmpeg.html ) than tmpenc. The only problem is that is is quite slooooowww....
Reply With Quote
  #9  
06-27-2002, 01:03 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
We'll, maybe in a ( not too distant ) future, all our favorite app will run under Linux. I already tried TMPEG under Lindows. It runs!. I haven't tried DVD2AVI or AviSynth yet. What I would do, is start off with a functional command line encoder. Worry about correct functionality and quality, and then put a gui on it. It would be easier to debug and optimize.
So, we'll see. The most difficult parts of the encoder will be making the CQ_VBR encoding stuff. But I would concentrate on CBR for the first PREPREPREPRE ALPHA!. Too many options. But I believe in the KISS principle There's one I'm also looking into, which is AVI2MPG1. It's a very simple encoder, also based on MSSG http://www.mnsi.net/~jschlic1/

kwag
Reply With Quote
  #10  
06-27-2002, 03:00 PM
jaiguru jaiguru is offline
Free Member
 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
The most difficult parts of the encoder will be making the CQ_VBR encoding stuff. But I would concentrate on CBR for the first PREPREPREPRE ALPHA!.
mpeg2enc from the mjpegtools project allready has a CQ_VBR mode
That's why it's seems interressant to me.
Reply With Quote
  #11  
06-27-2002, 05:10 PM
Rookie Rookie is offline
Free Member
 
Join Date: Jun 2002
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
We'll, maybe in a ( not too distant ) future, all our favorite app will run under Linux. I already tried TMPEG under Lindows. It runs!. I haven't tried DVD2AVI or AviSynth yet.
Unfortunately avisynth crashes TMPGEnc after some time. I didnt had time to verify if that is wine specific or also happening under the vmware WIndows98 install(Win XP on my other box is far to bloated for that purpose) I use to create my wine enviroments. DVD2AVI works fine.
Reply With Quote
  #12  
06-27-2002, 06:56 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jaiguru
Quote:
Originally Posted by kwag
The most difficult parts of the encoder will be making the CQ_VBR encoding stuff. But I would concentrate on CBR for the first PREPREPREPRE ALPHA!.
mpeg2enc from the mjpegtools project allready has a CQ_VBR mode
That's why it's seems interressant to me.
That I didn't know
I'll take a look.

kwag
Reply With Quote
  #13  
06-28-2002, 01:26 AM
bman bman is offline
Free Member
 
Join Date: Apr 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
Hi KWAG , All !!!!
Cool , cool idea !!!!
I'm not a pro(AS MANY of members of this forum) or computer guy of any kind but for hobby I like to do some programming .
I thougth abouth this too, even to do it my self but it's probably to much for me . So I'll live it to u , to pro's .
New all in one ecoder like DVDx with all options like TMPGenc will be really cool BUT , BUT....
Plaese , and once more please IF u are developing allready this kind of encoder don't build it based on linux or unix !!!
This limitation(as KWAG mentioned ) will prevent from many of us - AN ORDINAL WINDOWS customers to use it and I'm sure u don't intend to do so .
THX
bman
Reply With Quote
  #14  
06-28-2002, 06:41 AM
GFR GFR is offline
Free Member
 
Join Date: May 2002
Posts: 438
Thanks: 0
Thanked 0 Times in 0 Posts
You could code the processing in C, as a command line tool or as a shared library. Then use Kylix for the bells and whistles . (You could code everything in Kylix, but maybe C is faster and you can use code and expertise that is already available).

If you stick to "standart" C and Kylix CLX components, it would be simple (trivial) to rebuild it to run under Windows with any C compiler and Delphi 6.
Reply With Quote
  #15  
06-28-2002, 11:58 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi GFR:

It would definitively be written in standard ANSI C. The samples from MPEG.org are in C, and almost every encoder made is also written in C. And that's what I also know best . But your point on the command line issue is correct. It's better to get a working command line model, and then wrap it up with whatever GUI

kwag
Reply With Quote
  #16  
06-28-2002, 12:02 PM
jaiguru jaiguru is offline
Free Member
 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I've found some info. on the net of persons who have successfully build mpeg2enc (from mjpegtools) using cygwin.

For some of you who doesn't know, cygwin is a dll which permits us to compile almost any source code, indended for Unix, on Windows. It's distributed with a full set of common unix utilites (shell, compilers, ...) but once compiled, an exe only needs the cygwin DLL.

So, source code from unix is probably usable on windows
And a GUI is simple to build (eg. using TCL/Tk)
Reply With Quote
  #17  
07-10-2003, 12:03 PM
japie japie is offline
Free Member
 
Join Date: Jul 2003
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jaiguru
So, I wanna know if some of you have ever find a good (near TMPGEnc) MPEG encoder with source code available (if possible for linux or other Unices)
The latest releases off ffmpeg are very good, nice quality and 4x faster than tmpgenc.
opensource 4 win/mac/*nix
__________________
Groetjes Japie
Reply With Quote
  #18  
07-10-2003, 12:42 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hey japie,

Give me a link
I didn't know that ffmpeg was already ported to WIN. I thought it would only run on Linux and Unix. I've tested the ffmpegX on Mac OS X, but wasn't aware of a WIN version

-kwag
Reply With Quote
  #19  
07-10-2003, 01:05 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.mpegx.com/view.php?detail=312

http://ffmpeg.sourceforge.net/

ps:
"(Jun 9, 2003) FFMPEG 0.4.6 is now officially obsolete"


Please use a CVS snapshot as it is now stable
and has lots of new features.
http://ffmpeg.sourceforge.net/cvs/ff...3-07-10.tar.gz
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Probleme lors de la creation d'un kvcd lemo Conversion et d'Encodage de Vidéo (Français) 28 10-29-2004 11:34 AM
Création multiple et divers de kvcd artemis Conversion et d'Encodage de Vidéo (Français) 4 08-02-2004 12:46 PM
Aide a la creation de kvcd . Spidey_49 Conversion et d'Encodage de Vidéo (Français) 25 12-24-2003 08:09 AM
Création chapitre kvcd avec vcd easy ? harry Conversion et d'Encodage de Vidéo (Français) 5 08-15-2003 11:43 AM
Guide to automate KVCD creation with DVD2SVCD? Graal_CPM Video Encoding and Conversion 5 06-27-2002 12:35 PM

Thread Tools



 
All times are GMT -5. The time now is 01:32 PM  —  vBulletin © Jelsoft Enterprises Ltd