Xvid Preset

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

tez
Beginner
Beginner
Posts: 5
Joined: Mon Sep 15, 2008 12:23 pm

Re: Xvid Preset

Post by tez » Tue Jul 13, 2010 6:08 pm

meRobs wrote:But, from your results, does this setting give the original frames size, if small, yet 640x480 if larger than this?
Yes. I had 640x480 and 720x480 source and the output source were all 640x480.
meRobs wrote:However, does "do not increase frame rate" actually do this, ie, would decrease a source at 29.97 but keep all frame rates lower than 25?
Yes, I believe it does. Though I have not fully tested it, only downsampled from 29 to 25.
meRobs wrote:But, out of curiosity, does setting Resample at "do not upsample" reduce 48 kHz to 44.1 yet keep the lower rates if less than 44.1?
Yes. No upsampling, no waste. Though I guess I might stick with 48khz.


Though after reading the other comments I think that I might not use 25fps since it would probably not be worth the time and possible artefacts?

I did notice that Xvid 90% quality VBR was nearly half the filesize size of Xvid 91% VBR and 90% was noticably worse looking. Quite a huge jump for 1% setting change. Maybe 91 is equal to 10 and 90 is equal to 9 ?

Also notice the program will crash without error if I use Pause while encoding, or do a lot of minimize/restore window activity.

I use 'Keep Display AR" to maintain the dimensions so that the Pixel AR isn't a problem (I hope).
mixer wrote:Hey tez, what was that link that was bad and I'll go in and either fix it or delete it.
viewtopic.php?p=25806#p25806

ladycoder
Expert
Expert
Posts: 588
Joined: Fri Nov 24, 2006 5:29 am

Re: Xvid Preset

Post by ladycoder » Tue Jul 13, 2010 6:40 pm

If your sources are all NTSC, there is no reason to change the frame rate to 25fps. 25fps is just the default because China is a PAL country. You don't get artifacts with dropped frames you see a visible glitch in movement every second.

640x480 is a correct resolution for 4:3 aspect ratio

In expert interface you can look in Video window and see what the percentage settings, aka VBR, corresponds to in xvid quantizers. they go up about .3 for each percentage point.

In MC 4470, 90% = Q4, 91%=Q3.7; I have not seen the most recent VBR/ABR/CBR business.

Not that many players read the DAR information in an avi. Lots of people think they can keep the anamorphic properties of a dvd converting to xvid avi and not resize, but PAR with square pixels and resizing is still the most dependable way to see the proper aspect ratio of a video converted from a dvd.

meRobs
Expert
Expert
Posts: 3116
Joined: Tue Jun 23, 2009 2:45 pm
Location: Sydney, Australia

Re: Xvid Preset

Post by meRobs » Wed Jul 14, 2010 10:36 am

tez:
From your last post, it looks as if you haven't tested the settings ''don't upscale, increase framerate or upsample", because even without using these the results you got would also have occured. In other words, setting 640x480, 25 fps and 44.1 kHz on the tabs would have given you the results you got regardless of the source.
On the other hand, if the source files had lower values and they had remained at those, then, your "do not ...' settings could be said to have worked.

As I suggested originally, it is in my opinion better to simply force the values to what you want (or leave as 'Original' when needed).
This is particularly so from what Ladycoder has pointed out, that problems may arise when changing frame rate, etc.

Hence, it is better to leave the decision as to frame size, rate and resample to you and not to the vaguaries of a software decision based on 'do not...'.

It is also important to decide whether the player reads PAR/DAR, such as a standalone DVD Player, or whether to set Resize to have FAR = DAR (ie keep square pixels as ladycoder said) and force every software player to give the correct DAR.
FAR, DAR, PAR and Resize values are discussed in viewtopic.php?f=17&t=8197&start=0
Have you checked out the Tips & Guides for MediaCoder? Try: http://forum.mediacoderhq.com/viewtopic.php?f=17&t=8061
Also, get older builds at: http://www.videohelp.com/tools/MediaCoder/old-versions#download

StormChaser
Beginner
Beginner
Posts: 8
Joined: Mon Jun 14, 2010 10:43 pm

Re: Xvid Preset

Post by StormChaser » Wed Jul 14, 2010 9:52 pm

tez wrote:I've been looking around for an xvid preset XML file for a while... My xvid conversion just keeps failing no matter what the settings, so I would like a working xvid.xml to know eliminate some unknowns.
My 'HQ' preset for standalone players giving around 666MB/hr (11.1MB/min) for MediaCoder Version 0.7.3 build 4685...

Res: 720x400 (DAR - 16:9)
Average bitrate: ~1350kbps (2-pass)
Peak bitrate: ~8Mbps
Audio: MP3 in CBR at 192kbps
Container: AVI
DVD-R capacity: 6 hours 40 minutes

<?xml version="1.0" encoding="UTF-8" ?>
- <MediaCoderPrefs>
<node key="overall.generic.priority">Higher</node>
<node key="overall.generic.ignoredBuild">4682</node>
<node key="overall.ui.mode">Advanced</node>
<node key="overall.ui.expertView">Video Command</node>
<node key="overall.ui.optionTab">1</node>
<node key="overall.ui.param">700,640,159,122</node>
<node key="overall.ui.noWelcome">4677</node>
<node key="overall.task.destdir">E:\Videos\MediaCoder Output\</node>
<node key="overall.task.tempdir">E:\Videos\MediaCoder Output\</node>
<node key="overall.video.mode">2-Pass</node>
<node key="overall.video.bitrate">1356</node>
<node key="overall.video.quality">75</node>
<node key="overall.video.ar">Set DAR</node>
<node key="overall.video.arNum">16</node>
<node key="overall.video.arDen">9</node>
<node key="overall.video.format">XviD</node>
<node key="overall.video.encoder">XviD</node>
<node key="overall.container.format">AVI</node>
<node key="overall.container.muxer">FFmpeg</node>
<node key="overall.playback.render">false</node>
<node key="audioenc.lame.bitrate">192</node>
<node key="audioenc.lame.iso">true</node>
<node key="audioenc.ffmpeg.bitrate">112</node>
<node key="videoenc.xvid.vhq">Wide Search</node>
<node key="videoenc.xvid.bframes">1</node>
<node key="videoenc.xvid.b_ratio">162</node>
<node key="videoenc.xvid.b_offset">0</node>
<node key="videoenc.xvid.closedgop">true</node>
<node key="videoenc.xvid.turbo">false</node>
<node key="videoenc.xvid.dx50">true</node>
<node key="videoenc.xvid.keyint">250</node>
<node key="videoenc.xvid.vbr_curve_high">30</node>
<node key="videoenc.xvid.overflow_control_strength">0</node>
<node key="videoenc.xvid.kfreduction">10</node>
<node key="videoenc.xvid.kfthreshold">3</node>
<node key="audiofilter.resample.samplerate">44100</node>
<node key="audiofilter.resample.method">Polyphase Filterbank (float point)</node>
<node key="audiofilter.channels.output">1</node>
<node key="audiofilter.channels.channel1">2</node>
<node key="audiofilter.volume.clipping">true</node>
<node key="audiofilter.volume.targetAmplitude">0.333333</node>
<node key="videofilter.scale.enabled">true</node>
<node key="videofilter.scale.width">720</node>
<node key="videofilter.scale.height">400</node>
<node key="videofilter.scale.algorithm">Lanczos</node>
<node key="videofilter.crop.mode">Manual</node>
<node key="videofilter.frame.enabled">true</node>
<node key="videofilter.deint.algorithm">Cubic interpolating</node>
<node key="videofilter.deint.yadif">Mode 1</node>
<node key="videofilter.deint.mcdeint">Medium</node>
<node key="videofilter.eq.contrast">49</node>
<node key="videofilter.eq.saturation">98</node>
<node key="videofilter.postproc.hdeblock">true</node>
<node key="videofilter.postproc.vdeblock">true</node>
<node key="videofilter.postproc.dering">true</node>
<node key="videofilter.denoise.mode">High Quality 3D</node>
<node key="videofilter.denoise.strength">5</node>
<node key="videofilter.unsharp.mode">Blur</node>
<node key="videofilter.unsharp.width">3</node>
<node key="videofilter.unsharp.height">5</node>
<node key="videofilter.unsharp.amount">37</node>
</MediaCoderPrefs>

Any help?
Last edited by StormChaser on Thu Jul 15, 2010 3:28 am, edited 1 time in total.

StormChaser
Beginner
Beginner
Posts: 8
Joined: Mon Jun 14, 2010 10:43 pm

Re: Xvid Preset

Post by StormChaser » Thu Jul 15, 2010 3:35 am

Thanks mixer. I'm working on three presets at the moment for converting to XviD/MP3 in AVI for standalone players producing different target MB/hr sizes and I'll post them all together in the presets thread when I'm done tweaking. :)

PS I've made a minor correction to the preset in the post above re the blur value and also included the version of MediaCoder the preset was written under.

Post Reply