Advanced Encoding

2 replies [Last post]
DivXMobile
DivXMobile's picture
User offline. Last seen 11 hours 23 min ago. Offline
Joined: 02/12/2007
Posts: 743

So you've tried DivX Converter but you've found you want more control over the encoding process. I'd suggest using software that gives you direct access to the DivX encoder options. I use Dr. DivX but I also recommend StreamClip (OSX) and VirtualDub (XP/Vista). Beware, there is a lot of software out there that claims to make "DivX" files but does not use the authentic, fast, high-quality DivX encoder. We think our encoder is hands-down, the best. Accept no substitute.

For Mobile, I always crop to 4:3 aspect ratio then scale to 320x240 (qVGA) and keep the video bitrate around 300 kbps. Lanczos is the best resize filter. Always crop off any black borders that may appear around the original video. You waste lots of bitrate trying to encode a sharp black frame around your video. Get rid of them.

For all encodings, I take advantage of the optional enhancements offered by DivX Pro. That means, Multipass (fast first pass), Insane Quality, Experimental SSE4 Search, Enhanced Multithreading, Bidirectional coding, Auto Noise Reduction, Optimized Quantization, Shaping Psychovisual Enhancements and Enhanced I-Blocks. For grainy video, I use Masking Psychovisual Enhancements.

Multi-pass can improve the picture quality and provide better control of the average bitrate. For example, if you try 300 kbps with 1 pass, you might get 275 kbps or 325 kbps. With fast first pass, you will usually get within 2 kbps of your target rate. If you really want exactly the target rate, make a slow first pass.

If you don't care about rate, use the "1-pass quality based" setting. It's really the best and fastest method. You let the encoder choose the optimal bit-rate based on the content. I typically use a Quality setting between 3.5 and 5.0 depending on the content. Unfortunately, with this setting, you don't know what average bitrate or peak bitrate you'll end up with and you could easily get something your phone can't handle, so I don't use this setting for Mobile sized videos.

I never mess with the max key frames and keyframe threshold. Theoretically you could optimize those settings based on your content. For example, if you have lots of video of a talking head, use a very high max key frame. If you have lots of panning or short, similar scenes, lower the max or the keyframe threshold. By default, you'll get a key frame at least every 3 seconds and I rarely try to tweak it.

For more detail about what all these settings mean, see the Dr. DivX user guide.

Don't forget about the audio. Many DivX videos have 128 kbps MP3 stereo audio. That's usually what you want for Mobile clips and a converter like VirtualDub will copy the audio stream as-is without re-encoding it. Unfortunately Dr. DivX will always re-encode the audio stream whether you need to or not. Sometimes I will use DivXMux to use the original audio stream and the converted video stream.

If you never use stereo headphones, you can save a few bytes by converting the audio to mono and drop the bitrate to 96 kbps.

jmatt
jmatt's picture
User offline. Last seen 3 years 7 weeks ago. Offline
Definition of Enhance I-blocks

It would be nice to find some updated DivX documentation. The only manual that exists is for version 5. The GUI for version 5 is different than current implementations. Not to mention the alien look and feel is a little juevenile for today's audience.

There is for example no definition anywhere on the web for the tick box "Enhance I-blocks." Honestly, go search right now. You'll find the phrase in a few link farms, a few forum posts recommending it be turned on or off, and a handful of questioning posts "What are 'Enhanced I-blocks'" at videohelp, doom9, and DivX forums. The questions remain unanswered.

As we approach DivX version 7, isn't it about time DivX documentation was updated? Think of how many versions of Windows have gone by with contextual help available yet never used by DivX. This comes off as pretty lame really. Especially compared to other encoders. Heck, I think maybe 50MB of a 1/4 gigabyte Nero Recode install is help files. ;-)

morriset
morriset's picture
User offline. Last seen 1 year 28 weeks ago. Offline
Joined: 07/28/2010
Posts: 1
Groups: None
I-Blocks

Interpolation Blocks helps to enhance poorly connected motion blocks.

If you are using PsychoVisual Enhancements in Variable Bit Rate video, you should enable it.

Check this, it may help, but you need to be a member:
http://ieeexplore.ieee.org/iel5/9248/29345/01326498.pdf?arnumber=1326498

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.