Help - Search - Members - Calendar
Full Version: Which MPEG-4 Video codec is your choice?
Hydrogenaudio Forums > Digital Audio/Video > General A/V
Pages: 1, 2
yong
Which MPEG-4 video codec you consider it is the best?
My choice is XviD. smile.gif
Tommy Carrot
QUOTE(yong @ Jul 19 2004, 08:03 AM)
Which MPEG-4 video codec you consider it is the best?
My choice is XviD. smile.gif
*



Wmv9 is not compatible with the mpeg4 standard. From the current crop xvid is my choice, but i'm waiting for a good h.264 implementation (that's also mpeg-4).
QuantumKnot
Currently I use DivX 5.
stephanV
this is not a simply straightforward question; first has to defined what best really is wink.gif

i guess somewhere between ffvfw (why is it not in the options and WMV9 is??? mad.gif )/DivX/XviD
yong
QUOTE(Tommy Carrot @ Jul 19 2004, 06:56 PM)
QUOTE(yong @ Jul 19 2004, 08:03 AM)
Which MPEG-4 video codec you consider it is the best?
My choice is XviD. smile.gif
*



Wmv9 is not compatible with the mpeg4 standard. From the current crop xvid is my choice, but i'm waiting for a good h.264 implementation (that's also mpeg-4).
*



I am stupid becuase i saw an encoding option "ISO-MPEG4" unsure.gif at Windows media encoder 9...
dev0
Fixed: WMV9 -> libavcodec
yong
I choose xvid because it easy to use(?) wink.gif , Dual pass first pass video analyzing is very fast (GMC off, VHQ mode: 1 Mode decision), second pass also(~12fps), help me to reduce some monster-size video(1 minute 43 second = 99MB) to 18MB, nearly keep all quality...
But it have bug dry.gif (most recent build), the encoding option "interlaced encoding", anybody try it before?
t.g.deck
QUOTE(yong @ Jul 20 2004, 09:48 PM)
But it have bug dry.gif (most recent build), the encoding option "interlaced encoding", anybody try it before?
*


What bug have you found? You do know that this option is not for deinterlacing but just makes for encoding interlaced video properly?
rohangc
I may be the only one to think so, but a video I encoded with XviD had more visual artifacts than the same one encoded in DivX. I wonder why that is so.
yong
QUOTE(t.g.deck @ Jul 25 2004, 10:03 PM)
QUOTE(yong @ Jul 20 2004, 09:48 PM)
But it have bug dry.gif (most recent build), the encoding option "interlaced encoding", anybody try it before?
*


What bug have you found? You do know that this option is not for deinterlacing but just makes for encoding interlaced video properly?
*



I don't know how describe the problem, it's a visual artifact, but i'm sure the source video i use is interlaced. Let's say a single red color line in the picture, if i use the option "interlaced encoding", the line will become blur, or blocky.
Busemann
Xvid is best IMHO. I will switch to H.264 when a good implementation appear sometime next year though.

The current H.263 is sadly not very good..
t.g.deck
QUOTE(yong @ Jul 29 2004, 03:19 AM)
I don't know how describe the problem, it's a visual artifact, but i'm sure the source video i use is interlaced. Let's say a single red color line in the picture, if i use the option "interlaced encoding", the line will become blur, or blocky.
*


Hummm, is the artefact visible if you load the video into VDub, too?
And the source is DVD?
In that case, please post a snapshot of the source-frame and XviD-frame.
yong
QUOTE(rohangc @ Jul 25 2004, 11:19 PM)
I may be the only one to think so, but a video I encoded with XviD had more visual artifacts than the same one encoded in DivX. I wonder why that is so.
*


Can you post the xvid encoder setting and the video source information at this forum? smile.gif
May be somebody can solve your problem...

QUOTE(t.g.deck @ Jul 30 2004, 06:53 PM)
Hummm, is the artefact visible if you load the video into VDub, too?
And the source is DVD?
In that case, please post a snapshot of the source-frame and XviD-frame.

Yes, but the source is MPEG1 video, resolution is 640x480, ~7772kbps.
Snapshot will wait someone to help me. wink.gif
t.g.deck, are you one of the doom9 forum moderator?

Now is DivX 5.2, i encode the same video clip with Preserve interlace, Progressive and De-interlaced, but nothing difference between them. sad.gif
But , Divx Produce some ugly pictures...
Oge_user
I use DivX 5 (with 3 pass encoding)
fwz
lavc via MEncoder on OS X

i use one preferred switch which works great with my divx-player and gives great quality from most DVD
sergelac
i use DivX Pro 5.2.1 and 3ivx D4 4.5.2 fc 2.1
(1-pass quality, quantizer=2, all keyframes, H263 quantization)
they are very good quality and fast

WMV9 VCM is also very good but much too slow
REALmagicMPEG-4VideoCodec is good

i hate xvid
audioflex
xvid smile.gif
yong
QUOTE(sergelac @ Sep 23 2004, 08:57 PM)
i hate xvid
*



Why you hate xvid? Hard to use? Quality problem? huh.gif
Cyberman
I chose DivX 5. IMO, it provides an easy-to-use interface, while having still enough options to customize the encoding according to ones wishes and videos.
MugFunky
QUOTE
i use DivX Pro 5.2.1 and 3ivx D4 4.5.2 fc 2.1
(1-pass quality, quantizer=2, all keyframes, H263 quantization)
they are very good quality and fast


for real? why not just keep the DV files? you're throwing away virtually all the benefits of MPEG-4 in one fell swoop. and your files must be huge.

i put it to you that xvid at Q2, I-frames only will be visually indistinguishible from divx pro at Q2, I-frames only, when played through the same decoder.

i'm an xvid user - my machine simply isn't fast enough for ffdshow/vfw (or i haven't found the right settings), and divx infects my computer, which i'd rather keep as my own. i'll take open over non-open as a matter of principle even if i get less quality (which i believe isn't the case, but i haven't done any video-ABX tests to verify this, and i couldn't be arsed downloading divx pro and getting a bunch of spyware).

i decode everything i can with ffdshow, of course.
stephanV
QUOTE(MugFunky @ Sep 28 2004, 07:48 PM)
and i couldn't be arsed downloading divx pro and getting a bunch of spyware).
*


There is no spyware anymore in DivX 5.2 so go ahead and ABX...
MugFunky
i stand corrected smile.gif
mobius
QUOTE(MugFunky @ Sep 28 2004, 12:48 PM)
[...]and your files must be huge.

Using "all keyframes" must be nice for seeking, but is essentially MJPEG. Also, at 640x480 you're talking about ~10MB/sec. Hatred sure is a powerful force to make a guy resort to that.
sergelac
QUOTE(MugFunky @ Sep 28 2004, 12:48 PM)
why not just keep the DV files?
i don't have DV files, i convert captured videos (huffyuv) from TV
i can't keep the huffyuv files, they are too big (~500 MB for 1 minute 640x480)

QUOTE(MugFunky @ Sep 28 2004, 12:48 PM)
your files must be huge.
no, 30-45 MB for 1 minute 640x480

QUOTE(mobius @ Sep 30 2004, 01:10 PM)
Using "all keyframes" must be nice for seeking
yes, that is why i use all keyframes and play the files with MS ActiveMovie ActiveX Control (copy AMOVIE.OCX from Windows ME CD, in WIN_19.CAB)
i do a lot of seeking and with all keyframes, i can seek very fast, no waiting, seek at the exact frame # i want, seek 1 frame forward or 1 frame back.

QUOTE(mobius @ Sep 30 2004, 01:10 PM)
but is essentially MJPEG
?

QUOTE(mobius @ Sep 30 2004, 01:10 PM)
Also, at 640x480 you're talking about ~10MB/sec.
not 10 MB/sec
0.5 to 0.85 MB/sec
MugFunky
to each their own...

any reason for the activex stuff? i'm a little confused as to why a regular media player isn't enough. is it a sort of home-brewed NLE app you're using? i just run everything through either avisynth or premiere or both, but i don't really do anything except for DVD backup/authoring, filtering experiments and editing student films.

mpeg-4 I-frame only will be pretty similar to MJPEG, though the huff coding will be much more efficient.

hmm... would divx/xvid be fast enough to capture to? I-frame only takes a huge load off the encoding process - there's no motion search needed, no scenechange detection, and no GOP management. i'd imagine you'd get good capping speeds with Xvid (don't know about divx as i stopped using it long ago).
sergelac
QUOTE(MugFunky @ Oct 6 2004, 12:42 AM)
any reason for the activex stuff?  i'm a little confused as to why a regular media player isn't enough.
ActiveMovie is the best player
fastest : no playlist or web things
can display frame # instead of time
has buttons for seeking 1 frame forward and 1 frame back
can display the list of codecs and directshow filters used and set their properties
can set the starting and end frame if i want to repeat only a section of the video

i found no other player that has all these features.

QUOTE(MugFunky @ Oct 6 2004, 12:42 AM)
hmm... would divx/xvid be fast enough to capture to?
yes, 3ivx and divx are fast enough for capture.
but i can't capture with them because i need to do deinterlacing and sharpen
cheerow
For a long time I used DivX5. I believed all their commercial hype. But when XviD went final I gave it a try. There's no going back.
MugFunky
why not cap interlaced? if you're going CQ2 all the way, I-frames only, then interlacing isn't much of a problem.

also, it's best to keep interlacing unless you absolutely have to get rid of it. modern GPUs will bob-deinterlace on the fly, as will progressive TVs. the only real concern is with bitrate, and if you're going I-frame only, you're obviously not worried about bitrate, so why not go the extra %20 or so?

btw, VirtualDub does all those things... media player classic does most of them (not sure about frame # display, but why would you want that for playback?), zoom player will do that stuff too (and has exceptionally good filter configuration tools in it, allowing you to really get stuck into the innards of DirectShow).
sergelac
QUOTE(MugFunky @ Oct 6 2004, 10:39 AM)
why not cap interlaced?  if you're going CQ2 all the way, I-frames only, then interlacing isn't much of a problem.
also, it's best to keep interlacing unless you absolutely have to get rid of it.
best, only if you play it on tv.
interlaced is awful, i can see the horizontal lines.

interlaced image 1
deinterlaced image 1

interlaced image 2
deinterlaced image 2

QUOTE(MugFunky @ Oct 6 2004, 10:39 AM)
modern GPUs will bob-deinterlace on the fly.
modern ?
i have GeForce FX 5600 and it never deinterlace by itself.

QUOTE(MugFunky @ Oct 6 2004, 10:39 AM)
btw, VirtualDub does all those things... media player classic does most of them (not sure about frame # display, but why would you want that for playback?), zoom player will do that stuff too (and has exceptionally good filter configuration tools in it, allowing you to really get stuck into the innards of DirectShow).
VirtualDub is not a player, can play video but not fullscreen.
media player classic has no frame # display, no 1 frame back button and no settting for the starting and end frame.
zoom player pro is not free and is ugly.
yong
QUOTE(sergelac @ Oct 6 2004, 12:19 PM)
no, 30-45 MB for 1 minute 640x480
Your video file is huge, i have some xvid encoded 640X480 or 800x600 video clips which is 1 minutes at around 5MB to 10MB, still can preserve the quality.

QUOTE(sergelacPosted Oct 7 2004 @ 01:42 AM)
media player classic has no frame # display, no 1 frame back button and no settting for the starting and end frame.

You can try to open the video file with Media Player Classic, play it, and press the left key or right key on the keyboard. rolleyes.gif
echo
libavcodec through latest mencoder (also works in windows now!). Masking works miracles and nothing compares to lavc in terms of speed.
Latexxx
QUOTE(echo @ Oct 15 2004, 03:58 PM)
libavcodec through latest mencoder (also works in windows now!). Masking works miracles and nothing compares to lavc in terms of speed.
*


Masking?
echo
QUOTE(Latexxx @ Oct 15 2004, 06:02 AM)
QUOTE(echo @ Oct 15 2004, 03:58 PM)
libavcodec through latest mencoder (also works in windows now!). Masking works miracles and nothing compares to lavc in terms of speed.
*


Masking?
*


If you are familiar with XviD its called adaptive quantization there. But it's much more efficient IMO and can be extremely tweaked with lavc. Much more efficient than B-frames I think. You get separate options for darkness, luminance, spacial complexity, temporal complexity and P block masking! And best of all is that the performance hit is relatively small. tongue.gif

EDIT: seperate -> separate (aaaargh!)
Latexxx
So it is the good-old lumi masking. smile.gif It appears that I need to do some testing.
bond
afaik the correct expression of this in the mpeg-4 standard is indeed "adaptive quantisation"

its a psychovisual tool and therefore the implementations can heavily differ qualitywise in different codecs (depending on what devs think, the human eye cant see or see not so good and how they implement it)
yong
I found the ISO MPEG-4 Video V1(Windows Media Encoder 9's video codec) video clip can decode by ffvfw DivX4, GPAC player and mplayer ffodivx, their fourCC is MP4S, but still not sure it is ISO-MPEG4 complian or not...
Still don't konw how to transmuxing to AVI, MKV or MP4 container...
MugFunky
i've started playing with mencoder/lavc recently. not enough to give up on xvid (it's a pain to have to wrap all my avs scripts in avi files), but i'm getting there. when i learn compilers and stuff i'll start going it hardcore.

x264 is looking good. already equal/better than xvid at the same bitrates, and there's still heaps of features that aren't implemented yet. h-264 is a very promising standard to say the least.

btw, for the record:

interlacing is NOT an artefact. i find the information at 100fps.com to be a tad misleading, slightly outdated and not all that helpful. certainly it's a good explanation as to what interlacing actually is, but it seems to give the impression that it's something to be removed, rather than worked with. a good codec should be able to handle interlace, especially if it's aimed at DVD backup, as a great many DVDs are interlaced (TV series, for instance. or standards-converted titles). deinterlacing is a compromise. double-rate deinterlacing (bobbing) is of course necessary for progressive screens, but it should be done at playback, not encoding.

GPUs will deinterlace if they're told to. directshow does this by taking flags from the decoder. xvid is doing this, but it's at an early stage and doesn't seem to be working yet (there was a test version that this worked on, but even it seems not to work. i might have messed up my directshow). try play a DV file through directshow and you'll see it bobbed. also, most DVD software will bob on playback if it has to (except on a mac for some reason...).

i'm running an Asus GeForce DDR 32MB and it does bobbing. that's a very, very old card. my newer one (still only a GF2 MX400) exploded and splatters crap all over my screen, so much so that windows became unusable. good thing i kept the old one around :|
yong
Finally i found an easy way to transmuxing ASF/WMV container to avi wink.gif .
Using mencoder with the -oac copy -ovc copy switch.
I only can transmuxing ISO-MPEG4 Video v1 WMV to avi with the mencoder only, but can't re-transmuxing the avi to ogm and mkv using the VirtualdubMOD...
it will produce br0k3d video(but not the AVI warpped WMA/V stream)...
Still searching the info about advantage of ASF/WMV container...

EDIT: found it, disadvantages is more than benefit, should be aviod unless want to mux ISO MPEG4 Video v1/wmv with windows media audio...
Now we should be able to mux WMV with the common audio codec like ac3, aac, vorbis ,mp3 and .... Hurray!!! biggrin.gif

EDIT: Oh, sorry, the VDMod didn't produce br0k3d video, it's the ffdshow can't decode the ISO MPEG4 Video v1 MKV(avi don't have this probelm, it's kinda wired, but the mkv can decode by mplayer) for unknown reason, it will decode by MS MPEG4(???) DSHOW decoder without error. tongue.gif

EDIT: Sorry, too many edit here, i'll make a conclusion:

For transmuxing iso mpeg4/WMV to avi, should be using mencoder, but the avi file size may be larger(larger 2 or 3 MB @ 100 second video clip) than original ASF/WMV(Don't know why, avi overhead???, the AVI muxer can handler the wmv, it will produce 30fps only, broked; but 1000fps with mencoder, normal.)

For transmuxing to MKV, using the Matroska muxer with graphedit will be faster.
yong
@MugFunky:

QUOTE
interlacing is NOT an artefact

It's seem you are reply me.(not sure tongue.gif )

it seems like artefact, it cause some bright color like red, yellow, green and so on, become jagged(???) image.
I have some interlaced MPEG1 video, ffdshow libavcodec or libmpeg2 automatically deinterlace it, but the Micro$oft MPEG1 video decoder doesn't deinterlace, very ugly(it will disappear when display at TV).

I'm not sure this is a good reply...
[to be continue...]
stephanV
heh?

IIRC MPEG1 cant be interlaced (?)... encoding interlaced material with MPEG1 is messy

but Mug Funky is right, interlacing is not an artifact... its just a case of showing the wrong material on the wrong monitor.
yong
@stephanV:

Ok, i ask you a "dumb" question:
How the interlaced video look like when display on the CRT monitor, and the video decoder doesn't deinterlaced* it automatically?
I don't have dvd drive installed, so no chance to watching the MPEG-2 interlaced video in my computer...
I also not sure, why my video clip look (some part)jagged when decode by MS mpeg video decoder, but ffdshow doesn't?

* = edit
stephanV
QUOTE(yong @ Nov 14 2004, 01:53 PM)
@stephanV:

Ok, i ask you a "dumb" question:
How the interlaced video look like when display on the CRT monitor, and the video decoder doesn't interlaced it automatically?

Then it will look jagged, striped or whatever term one uses to describe the phenomana, as interlaced material is not intended for a computer monitor, but for a TV... that does not make interlacing an artifact. An artifact is something that shouldnt be there, like blocking or ringing. You could argue that TVs as they are now are stupid and shouldnt be there like they are now... but yeah, they are what they are intended to be and so is the video material provided for it. smile.gif

QUOTE
I also not sure, why my video clip look (some part)jagged when decode by MS mpeg video decoder, but ffdshow doesn't?

ffdshow deinterlaces automatically but MS decoder doesnt? unsure.gif
DickxLaurent
I'm using XviD, and I'm curious to play with H.264. I'll probably use whatever implementation len0x supports in AutoGK, hoping that he will do so. smile.gif
p0wder
I'm not very good at video encoding so I use XviD + AutoGK. smile.gif
yong
@stephanV:

thanks for the answer. smile.gif

QUOTE
ffdshow deinterlaces automatically but MS decoder doesnt?

Comfirmed, for interlaced MPEG1 video.
Gabriel
QUOTE
Comfirmed, for interlaced MPEG1 video.

Perhaps it is because MPEG1 DOES NOT SUPPORT interlaced mode.
yong
QUOTE(Gabriel @ Nov 23 2004, 09:21 PM)
QUOTE
Comfirmed, for interlaced MPEG1 video.

Perhaps it is because MPEG1 DOES NOT SUPPORT interlaced mode.
*


Can you please tell me why?
And why the freeware TMPGEnc or [ffvfw MPEG2 mpeg1] encoder have interlace encoding options for encoding?
Gabriel
Well, there is nothing preventing you to encode interlaced content in mpeg1, but it will be encoded as progressive.
There are no provisions for interlaced content in mpeg1. Interlaced content support was added in mpeg2 only.
slippyC
XViD

It may be different now, but xvid use to encode quicker and qua IMO was better than Divx. I hadn't done alot of vid encoding lately, so things could have changed.

Also kind of makes me angry about the way Divx use to have spyware for Pro edition(actually didn't know they didn't anymore til reading this thread).
NeOnCoDEr
i use xvid but sometimes wm9 video because that is good.But man H.264 i have tested like 4 different encoders and xvid is still better.H.264 has macroblocks
and has anybody noticed how much detail H.264 looses it spatially blurs it for high compression.Therefore WM9 & xvid is one of the bester compression methods.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.