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 > Video Encoding > MPEG-4 ASP

Reply
 
Thread Tools Display Modes
Old 7th July 2005, 20:53   #1  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,037
Xvid CLI

I tried to search some info about cli version but without success.
I want to encode Xvid directly to native mp4 container and see if there are some speed improvements or/and additional settings to play with.

I supose Mencoder has xvid codec (version of xvid?). But I didn't find information how to encode via mencoder. Right now investigating Megui.
IgorC is offline   Reply With Quote
Old 7th July 2005, 21:00   #2  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Marseille, France
Posts: 4,399
yep...you can find some infos in MeGUI thread or in mplayer/mencoder guides/FAQ.

Otherwise, you can try avs2avi to encode and mp4box to mux your stream in the mp4 container.
__________________
The problem, of course, is that there are many smart people in the world... Steve Jobs

[my random stuff] | [Please, no MeGUI support via PM]
Kurtnoise is offline   Reply With Quote
Old 7th July 2005, 21:24   #3  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,037
mp4box is alternative way. But is it possible to encode with Xvid like x264 via CLI ? It results very comfortable and without any GUI and/or mp4box. Indeed , GUI helps much when there are too many setings and automized process of multipass,container etc.

Btw , what version of Xvid has last mplayer http://www.aziendeassociate.it/cd.asp?dir=/mplayer (28 of june) ?
IgorC is offline   Reply With Quote
Old 7th July 2005, 21:35   #4  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,275
the closest equivalent to x264.exe is encraw.exe.. you won't find it compiled almost anywhere, and it's like the early x264.exe versions: no avisynth input, only raw output, and feature limited. I'd much appreciate if you could extend it though
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 7th July 2005, 22:21   #5  |  Link
Sirber
Registered User
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,776
I would be interrested by a x264.exe-like xvid CLI with AVS input.
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 7th July 2005, 23:21   #6  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Marseille, France
Posts: 4,399
Quote:
Originally Posted by Doom9
the closest equivalent to x264.exe is encraw.exe...
there is also xvidenc from mpeg4ip tools...Only yuv as input but mp4 as output. The xvid options are also very limited. Unfortunately, I never succeeded to compile myself this tool.

If anybody is interested : http://cvs.sourceforge.net/viewcvs.p.../util/xvidenc/
__________________
The problem, of course, is that there are many smart people in the world... Steve Jobs

[my random stuff] | [Please, no MeGUI support via PM]

Last edited by Kurtnoise; 7th July 2005 at 23:24.
Kurtnoise is offline   Reply With Quote
Old 8th July 2005, 13:43   #7  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 10,818
xvid encraw was updated yesterday with the addition of -vhqmode switch.
still encraw is not on par with VFW...
Sharktooth is offline   Reply With Quote
Old 8th July 2005, 14:49   #8  |  Link
bond
Moderator
 
Join Date: Nov 2001
Posts: 9,780
Quote:
Originally Posted by Kurtnoise13
there is also xvidenc from mpeg4ip tools...Only yuv as input but mp4 as output. The xvid options are also very limited. Unfortunately, I never succeeded to compile myself this tool.

If anybody is interested : http://cvs.sourceforge.net/viewcvs.p.../util/xvidenc/
would be great if someone can try to compile this!
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 8th July 2005, 14:51   #9  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 10,818
uhm...

Last edited by Sharktooth; 8th July 2005 at 14:56.
Sharktooth is offline   Reply With Quote
Old 8th July 2005, 15:25   #10  |  Link
bond
Moderator
 
Join Date: Nov 2001
Posts: 9,780
seems xvidenc is only supposed to output a raw mpeg-4 stream, also its not possible to set any xvid options
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 8th July 2005, 15:37   #11  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,275
as I said.. encraw seems the most promising approach but it takes somebody with serious C knowledge to add the additional input and output types and somebody with good xvid knowledge to expose the additional options. The additional zone types seem especially challenging because you have to check them for each frame and force certain frame type decision (like greyscale, or make the first zone frame an i-frame, etc).

If there was a really good C IDE (akin VS, showing contents of variables not addresses is already a good start), and I had time (which I do not.. MeGUI takes precedence and I have some interesting ideas for the future), I'd do it myself but since I can use mencoder it's not a priority. As a little encouragement I promise to fully support an enhanced encraw in MeGUI.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 8th July 2005, 15:42   #12  |  Link
Sirber
Registered User
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,776
Quote:
Originally Posted by Doom9
As a little encouragement I promise to fully support an enhanced encraw in MeGUI.
Same here.
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 10th July 2005, 14:15   #13  |  Link
madoka
Registered User
 
madoka's Avatar
 
Join Date: Feb 2002
Location: Syracuse, NY
Posts: 179
While a bit round-about, but in theory by using VirutalDub one could encode XviD using just CLI. Basically, some front-end program constructs a job file and pass it to vdub.exe.

VirtualDub's job file format is well documented, so the only sticky bit would be to decipher the opaque portion that's passed to the XviD codec:
Quote:
Code:
void SetCompData(int length, string data);

	Sets the private codec data for the video compressor that is modified
	when you click Configure in the Video Compression dialog.  This data
	is opaque to VirtualDub and is used only by the video codec.  length
	is the length of the data block in bytes, and the data is the data
	block encoded in MIME BASE64.
En/de-coding base64 is not difficult either; command-line tools that do so are readiliy available (e.g. this).

After looking at some job files generated by VirtualDub and referencing XviD's code briefly, it appears that the data passed is simply the CONFIG structure (defined in config.h and vfwext.h).

In summary, with VirtualDub's help, all that's required to encode XviD is a front-end program that:
  1. Reads command-line switches, and generated the appropriate CONFIG structure.
  2. Encodes the data in base64 (possibly using an external helper program).
  3. Writes it into a job file.
  4. Calls vdub.exe, passing the job file as its argument.

Anyone want to volunteer?
__________________
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute--and it’s longer than any hour. That’s relativity.
-- Albert Einstein
madoka is offline   Reply With Quote
Old 10th July 2005, 14:27   #14  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,275
Quote:
but in theory by using VirutalDub one could encode XviD using just CLI. Basically, some front-end program constructs a job file and pass it to vdub.exe.
That's what is being done by tools like GKnot, AutoGK and DVX. The idea here is to have a non VfW dependant solution with direct MP4 output.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 14th July 2005, 14:45   #15  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,037
There is precompiled Mencoder binaries - XviD 1.1.x branch - x264 svn on Sherpya's site. http://oss.netfarm.it/mplayer-win32.php
I Didn't test it yet. Any documentation?
IgorC is offline   Reply With Quote
Old 14th July 2005, 14:49   #16  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,275
IgorC: we've been using that for a long while.. but mencoder's xvid support is limited.. it doesn't offer all the xvid features, and it's a huge app for the task that does a lot more in other areas that is not really needed, and it's mp4 output is worthless.

But that has all been said already..
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 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 14:52.


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