View Full Version : divxenc for Linux
microchip8
20th March 2008, 23:58
Just started a new small project. It's basically the same as h264enc and xvidenc, except it uses lavc's MPEG-4 video format and no longer supports manual codec configuration, only presets... 7 of them for now.
http://divxenc.sourceforge.net
divxenc is also available from my openSUSE build service repo:
http://download.opensuse.org/repositories/home:/microchip8/
microchip8
23rd March 2008, 10:47
ChangeLog for version 0.0.2
* Changed qns=3 to qns=2 for the ihq preset
* Set precmp, cmp and subcmp to RD for the ihq preset
* Set the fullpel comparison function of the vhq preset to SATD
* Set the macroblock decision to 2 for the hq preset
* Small modifications to threads auto-detection
* -ffourcc DX50 is now hard coded into the mencoder_opts() function. Same goes for the turbo option for the first pass
* Be silent when doing FPS conversion
microchip8
26th March 2008, 14:31
ChangeLog for version 1.0.0
* Use awk to get the current device when exporting DVD chapters information
* Bumped version to 1.0.0 as the script is pretty complete and the low versioning doesn't really suite it
* When encoding specific chapters, append the chapters info at the end of the output file
* Set the luminance and chrominance coefficient thresholding to -4 and 9 respectively
* Added normalize adaptive quantization (naq) for the NQ preset since it uses luminance and
darkness masking. With naq we can restore the average per-MB quantizer
* Added support for 3-pass encodings
* Removed support for MP3 high- and lowpass frequency settings. I'm sure many people dont
use those settings and accept the default
buzzqw
26th March 2008, 15:04
just some comment
i like mpeg4 codec from lavc, has several options that xvid lack, and for me is much more "scalabily"
I like the *mask (lumi/dark/tcplx/scplx) among other, correctly tuned could bring astonishing results!
thanks for this app!
BHH
microchip8
26th March 2008, 15:14
just some comment
i like mpeg4 codec from lavc, has several options that xvid lack, and for me is much more "scalabily"
I like the *mask (lumi/dark/tcplx/scplx) among other, correctly tuned could bring astonishing results!
thanks for this app!
BHH
indeed, lavc's mpeg-4 delivers higher quality than Xvid, imho :)
microchip8
7th April 2008, 11:10
ChangeLog for version 1.0.1
* Integrated the exit command into the rmconf() function
* Bug fix for the target file size calcualtion. Variable vbitrate should use the vbitrate options instead of bitrate
buzzqw
7th April 2008, 11:24
thanks froggy1 for your great work!
(arghh.. givme my next pc.. i want move to linux.. and btw i am thinking starting a gui to...ffmpeg or handbrakecli.exe;) ... but i'll start a new thread when TUX is here)
BHH
microchip8
8th April 2008, 17:20
ChangeLog for version 1.0.2
* Fixed color output in the target file size calculation
* Updated the cropping code to support the latest SVN version of MEncoder
microchip8
10th April 2008, 13:44
ChangeLog for version 1.0.3
* Replace underscores from DVD title names with spaces
* EHQ and UHQ preset optimizations
WalterK
11th April 2008, 15:10
Great encoder script, esp the batch encoding and HQ settings, thank you.
Never had much use for the lavc mpeg4 encoding, in the days of having to save space and get quality xvid was always the way to go but now that its been improved and storage is not so much an issue anymore its a good way to transcode.
microchip8
11th April 2008, 22:03
Great encoder script, esp the batch encoding and HQ settings, thank you.
Never had much use for the lavc mpeg4 encoding, in the days of having to save space and get quality xvid was always the way to go but now that its been improved and storage is not so much an issue anymore its a good way to transcode.
:) thanks for using divxenc. I basically started this small project because I found out that IMO lavc's mpeg-4 delivers higher quality than Xvid nowadays.
microchip8
15th April 2008, 02:31
ChangeLog for version 1.0.4
* Added support for NTSC Double @ 60 fps
* Fixed the cropping code. NTSC content was problematic
blaz
19th April 2008, 14:55
I know the PS3 is a hassle, but if there's anyway you can get mencoder's DivX to work with it...
Something like the special PS3 quality options for h264enc ...
Currently, I'm getting "The data type is not supported (880288Bf)" error with divxenc (DivX5). With transcode & dvd::rip (DivX4, OpenDivx), the file is supported and will play if less than 2GB.
Thanks for these scripts. They're very helpful, especially the subtitle burning stuff.
microchip8
19th April 2008, 15:38
I know the PS3 is a hassle, but if there's anyway you can get mencoder's DivX to work with it...
Something like the special PS3 quality options for h264enc ...
Currently, I'm getting "The data type is not supported (880288Bf)" error with divxenc (DivX5). With transcode & dvd::rip (DivX4, OpenDivx), the file is supported and will play if less than 2GB.
Thanks for these scripts. They're very helpful, especially the subtitle burning stuff.
hi,
I don't know much about the PS3 MPEG-4 Part 2 support. Is there a possibility that you can save the transcode or dvd::rip options and post them here so I can make a few presets?
blaz
19th April 2008, 16:03
hi,
I don't know much about the PS3 MPEG-4 Part 2 support. Is there a possibility that you can save the transcode or dvd::rip options and post them here so I can make a few presets?
Well, the big difference is that dvd::rip is using DivX4 (OpenDivx) versus DivX5 that divxenc uses.
But I'll look into it more and get back to you.
microchip8
19th April 2008, 16:07
Well, the big difference is that dvd::rip is using DivX4 (OpenDivx) versus DivX5 that divxenc uses.
But I'll look into it more and get back to you.
I think it may just be that the PS3 doesn't recognize the DX50 ffourcc. divxenc can use DIVX4 too, it's just a matter of changing the ffourcc, but I'm not sure if there needs to be something extra added for PS3 compatibility, that's why I'm asking if you could provide some output from transcode or dvd::rip
microchip8
19th April 2008, 17:02
Can you try out the PS3 preset on a sample and tell me if it's working? Here's the updated divxenc http://www.mediafire.com/?37gmnbznxzf
run: divxenc -1p -p ps3
blaz
20th April 2008, 18:39
Ahhh, the forum's working again!
>>> Can you try out the PS3 preset on a sample and tell me if it's working?
Definitely will do. It may take a little while though, as I'm in the middle of installing a new 1 TB drive and moving stuff all around.
blaz
20th April 2008, 21:57
No, that doesn't work unfortunately.
Here's a version of the dvd::rip commands that give me an avi of the first chapter of title 1 of a dvd with DivX4 (OpenDivX). Maybe there's something here that will provide a clue. (But these avi's can only go to 2 GB before they stop working on the PS3)
(skipping stuff about thumnails, subtitles, etc.)
...
Start job 'Transcode video - title #1, chapter #1, pass 1'
Executing command: mkdir -m 0775 -p '/home/blaz/media/video/dvdrip/Traffic/tmp' && cd /home/blaz/media/video/dvdrip/Traffic/tmp && mkdir -p /home/blaz/media/video/dvdrip/Traffic/avi/001 && execflow -n 19 transcode -H 10 -a 0 -x vob -i \/home\/blaz\/media\/video\/dvdrip\/Traffic\/vob\/001\-C001\/ -w 1200,50 -F mpeg4 -A -N 0x2000 -f 30,4 -M 2 -Y 10,0,14,0 -B 15,10,8 -R 1 -y ffmpeg,null --psu_mode --nav_seek /home/blaz/media/video/dvdrip/Traffic/tmp/Traffic-001-C001-nav.log --no_split -o /dev/null --print_status 25 -J extsub=0:0:0:0:0 && echo EXECFLOW_OK
...
Transcode video - title #1, chapter #1, pass 1: 100% done.
...
Start job 'Transcode video - title #1, chapter #1, pass 2'
Executing command: mkdir -m 0775 -p '/home/blaz/media/video/dvdrip/Traffic/tmp' && cd /home/blaz/media/video/dvdrip/Traffic/tmp && mkdir -p /home/blaz/media/video/dvdrip/Traffic/avi/001 && execflow -n 19 transcode -H 10 -a 0 -x vob -i \/home\/blaz\/media\/video\/dvdrip\/Traffic\/vob\/001\-C001\/ -w 1200,50 -F mpeg4 -A -N 0x2000 -f 30,4 -M 2 -Y 10,0,14,0 -B 15,10,8 -R 2 -y ffmpeg --psu_mode --nav_seek /home/blaz/media/video/dvdrip/Traffic/tmp/Traffic-001-C001-nav.log --no_split -o /home/blaz/media/video/dvdrip/Traffic/avi/001/Traffic-001-C001.avi --print_status 25 -J extsub=0:0:0:0:0 && echo EXECFLOW_OK
...
Job 'Transcode video - title #1, chapter #1, pass 2' finished
microchip8
20th April 2008, 22:38
grrrr I was hoping for it to work. The log of dvd::rip isn't really helpful, it just shows that it encodes to mpeg4. MEncoder can encode to mpeg4 too, that's what divxenc is using. I really don't know which settings to change so that your PS3 can play it... I've disabled most of the settings for the PS3 preset which may be problematic. Also can you tell me which ffourcc the AVI file is using when you encode with dvd::rip ? Is it DIVX or DIV4 ?
I'm not sure if this update will fix it for you - http://www.mediafire.com/?1xd04utdn2x
blaz
21st April 2008, 01:35
Some info from GSpot.
Container sections:
Both have AVI v1.0 but the working (transcode) avi has:
Interleave: 1 vid frame (33ms)
Audio frames: aligned on interleaves
whereas yours has:
Interleave: 500 ms (12.0 v.frames), preload=512
Audio frames: Split across interleaves
Audio sections are the same in GSpot.
Video sections both have DIVX as codec. Rest is different as I used different resolutions and kbps. Could changing the frame rate from 29.97 to 23.976 be a problem? For some reason I thought I had to do that. I'll try your new code and leave it alone.
blaz
21st April 2008, 04:21
Your last download works! (At least for small files < 2GB.)
Turns out I do need the frame rate conversion or there's lots of errors. But that has no impact on whether the PS3 likes it or not.
I also tried changing the fourcc to DX50 and it worked. So here's the latest batchfile:
mencoder "dvd://1" -o "/home/blaz/TRAFFIC_chapter1-1.avi" -chapter 1-1 -dvd-device /dev/hdc -ffourcc DX50 -fps 30000/1001 -ofps 24000/1001 -vf filmdint=fast=0/io=30:24/dint_thres=256,softskip,harddup -noodml -aid 128 -channels 6 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200:threads=2:vmax_b_frames=0:vme=4:mbd=2:lumi_mask=0:dark_mask=0:precmp=0:cmp=2:subcmp=0:dia=2:trell:cbp:mv0:preme=1:qns=0:autoaspect 2>/dev/null
I'll try a longer one with subtitles over night.
p.s. I didn't change lavcopts, so just ignore the smiley faces
microchip8
21st April 2008, 13:14
That's great to hear, but what caused it to be playable? Was it the frame rate conversion or the fact that it doesn't use b-frames (I doubt the PS3 doesn't support b-frames in DIVX since Sony is working with DivX to certify their PS3's to be compatible). Can you do one small test for me? set the vmax_b_frames to 2 and also add v4mv to the above commands and see if it works
blaz
21st April 2008, 16:26
The bad news is that setting vmax_b_frames to 2 and adding v4mv put things back to "data type is not supported" on the ps3.
The good news is that for the first time ever, I can play an avi file that's > 2GB. That's using your last download without the B frames and a fourcc of DIVX not DX50 (which hopefully will work too).
And the ps3 problems were not related to frame-rate conversion. I tried both ways. Your new code worked both ways, just lots of messages if I didn't convert.
Is there any point in trying two-pass encoding with your latest?
divxenc -2p -p ps3
I might then edit the batch file to use DX50 instead of DIVX.
Any other suggested edits to the batchfile? I'm looking for high quality.
But I think we are getting somewhere.
microchip8
21st April 2008, 16:53
The bad news is that setting vmax_b_frames to 2 and adding v4mv put things back to "data type is not supported" on the ps3.
The good news is that for the first time ever, I can play an avi file that's > 2GB. That's using your last download without the B frames and a fourcc of DIVX not DX50 (which hopefully will work too).
And the ps3 problems were not related to frame-rate conversion. I tried both ways. Your new code worked both ways, just lots of messages if I didn't convert.
Is there any point in trying two-pass encoding with your latest?
divxenc -2p -p ps3
I might then edit the batch file to use DX50 instead of DIVX.
Any other suggested edits to the batchfile? I'm looking for high quality.
But I think we are getting somewhere.
so either b-frames or the v4mv is causing the problem. I'm pushing more for v4mv that it causes problems rather the b-frames option... you can play files > 2 GB because I disabled OpenDML in the PS3 and HW compatible presets. I'm still tweaking the PS3 preset to give it a better quality. If you have some time on your hands, you can do a small sample encode with vmax_b_frames=2 but without the v4mv option and with vmax_b_frames=0 but this time with the v4mv option so we can see which works and which doesn't
as for doing a 2-pass encode, if you set the bitrate high enough there's no real need to do a 2-pass encode, but it's up to you :)
blaz
21st April 2008, 18:44
Setting vmax_b_frames to 2 definitely does not work.
But v4mv is not a problem.
I also switched to DX50 in both cases.
Still single pass, but doubled the bitrate to 2400 as you suggested.
microchip8
21st April 2008, 18:50
Setting vmax_b_frames to 2 definitely does not work.
But v4mv is not a problem.
I also switched to DX50 in both cases.
Still single pass, but doubled the bitrate to 2400 as you suggested.
ok, thanks for testing. It's strange that the PS3 doesn't support b-frames in DivX but supports them in H.264 O.o
microchip8
21st April 2008, 20:19
ChangeLog for version 1.0.5
* Updated the filmdint FPS conversion filter. Added dint_thres=256 to not do any deinterlacing while doing the conversion
* Added one Sony PS3 compatible preset (ps3)
* Small update to the FPS conversion menu
* Updated the audio_channels_func() function
* Updated the --help section
* Made the display_quality_preset_func() function global instead of per preset based
* Updated the audio codecs menu
* Removed delay when exiting from user interrupt
blaz
22nd April 2008, 21:30
First, a dvd I ripped with the latest divxenc to a 2.5GB avi, streamed beautifully to my PS3 via mediatomb last night. Great stuff.
Second, a question about subtitles. Currently I'm burning them into the video and this works fine ... except they can't be turned off or on.
But divxenc has the option of ripping them to separate sub/idx files, and I know there's a windoze program http://userxp.tripod.com/sub2divx.htm that can put these subtitles into an avi container, and, apparently, the PS3 will recognize them, allowing you to turn them off or on. I'm hoping this works when streaming as well.
Is there someway of doing this natively in linux?
microchip8
22nd April 2008, 21:50
First, a dvd I ripped with the latest divxenc to a 2.5GB avi, streamed beautifully to my PS3 via mediatomb last night. Great stuff.
Second, a question about subtitles. Currently I'm burning them into the video and this works fine ... except they can't be turned off or on.
But divxenc has the option of ripping them to separate sub/idx files, and I know there's a windoze program http://userxp.tripod.com/sub2divx.htm that can put these subtitles into an avi container, and, apparently, the PS3 will recognize them, allowing you to turn them off or on. I'm hoping this works when streaming as well.
Is there someway of doing this natively in linux?
about the subtitles, I'm not aware of any Linux tools that can do such things. I'm not really a subtitles guy (hardly ever use any) but I'll try to dig and see if I can find anything that does the same on Linux
blaz
24th April 2008, 15:44
A little problem:
I don't like cropdetect's recommended values for a 2.35:1 dvd, so I enter 720:368:0:56 instead of the default 720:352:0:64.
The preview looks good. I force the frame rate (NTSC video -> Film).
But then the default "desired resolution" is 720x352. ??
And if I change it, I have to choose algorithms for zooming, etc.
IOW it looks like my 720:368:0:56 crop has been ignored in favor of cropdetect's.
I can modify the batch file and it seems to work ok with 720:368:0:56
microchip8
24th April 2008, 16:05
Fixed :) http://www.mediafire.com/?u0z41ytmzdd
microchip8
25th April 2008, 15:33
ChangeLog for version 1.0.6
* Set the field dominance of the yadif deinterlacer to auto-detection. If the
decoder doesn't export the field order, it defaults to TFF (top field first)
* Small menu enhancements to the video_interlace_func() function
* Fixed a problem where the detected resolution based on the crop values favored
the values of the cropdetect filter instead of the user provided values. Reported by blaz
from the Doom9 forum
* Renamed resolution variable 'res' to 'vres'
* Added support for doing 25 -> 50 fps and 29.970 -> 59.940 fps conversion using simple frame duplication
blaz
26th April 2008, 17:22
With one exception so far, divxenc has worked well creating avi files that are streamable to the PS3 from my dvds.
The main exception (King Kong) is converted and plays fine on the pc, but the PS3 gives me the same "data type is not supported (880288Bf)" error as before when you had b-frames enabled. It's weird because of the ten or so other dvds that I've tried so far, there's been no problem with PS3 compatibility.
I tried removing the v4mv option, but that didn't help either.
It's not a major problem for me, as I do not need the sub-titles and vobcopy works fine (although the file IS large). It is curious though.
microchip8
26th April 2008, 17:25
With one exception so far, divxenc has worked well creating avi files that are streamable to the PS3 from my dvds.
The main exception (King Kong) is converted and plays fine on the pc, but the PS3 gives me the same "data type is not supported (880288Bf)" error as before when you had b-frames enabled. It's weird because of the ten or so other dvds that I've tried so far, there's been no problem with PS3 compatibility.
I tried removing the v4mv option, but that didn't help either.
It's not a major problem for me, as I do not need the sub-titles and vobcopy works fine (although the file IS large). It is curious though.
hmmm, this could also be some kind of firmware problem, try updating the firmware. I'm positive that the PS3 will get much better at handling of DivX files as they are working together with DivX Inc to certify their consoles.... I can't really help on this one as I don't really know what the problem is and why it refuses to play this movie but plays the other ones without a problem
microchip8
27th April 2008, 19:01
ChangeLog for version 1.0.7
* Clarify that the aspect ratio is the one for input sources
* Set the field dominance of the frame doubling yadif deinterlacer to auto detection
* Implemented source_fps_func() function to reduce code duplication. This function
automatically detects the FPS of the content and is shared between the deinterlace
and interlace functions
* Added support for applying denoising/deblocking/brightness/contrast on interlaced
content. This is done by deinterleaving the content with the il=d filter, applying the
denoising/deblocking/brightness/contrast on the deinterleaved content and interleaving
it back with the il=i filter. That way we don't break the interlacing
WalterK
29th April 2008, 06:11
A newbie question but how do you use the batch option to say encode a bunch of files in a folder?
just using the argument divxenc -b /home/path/to/batchfile re-encodes the same file over and over again.
microchip8
29th April 2008, 12:09
A newbie question but how do you use the batch option to say encode a bunch of files in a folder?
just using the argument divxenc -b /home/path/to/batchfile re-encodes the same file over and over again.
you configure each file with divxenc and save the options to the same batch file, it appends the commands for each file if you use the same batchfile as output. More into in the FAQ - http://divxenc.sourceforge.net/faq.html#batch
microchip8
2nd May 2008, 14:49
ChangeLog for version 1.0.8
* Fixed the location of the il=i filter which is used to interleave the content after postprocessing
* Color enhancements to the -bpp and -bpb options
* Small menu enhancements to the FPS settings
microchip8
30th May 2008, 13:29
ChangeLog for version 1.0.9
* Fixed wrong explanation for the temporal denoiser
* Removed support for the Sonic and SonicLS audio codecs since they
are experimental and far from complete for daily use
* Updated the man page
microchip8
1st July 2008, 10:52
ChangeLog for version 1.1.3
* Added support for using the neroAacEnc AAC audio encoder with LC, HE and HEv2 profiles
* Function renaming: aacplus_audio_func() -> neroaac_audio_func()
* Variable renaming: aacplusbr -> neroaacbr
* Audio codec renaming: AAC+ -> neroAAC
microchip8
5th July 2008, 11:58
ChangeLog for version 1.1.4
* Bugfix: multi-channel audio was not enabled for the neroAAC codec
* Bugfix: don't leave config files upon none-zero exit status of MEncoder
* Feature request: add the possibility to specify the path to MEncoder.
Useful if the user has two or more versions of MEncoder but wants to use
a specific one for the encoding
* Changed default unsharp mask / gaussian blur matrix to chroma & luma
5x5 as it provides a better balance than the 3x3 matrix
* Check to see if destination directory is writable by writing a small file to it.
* Updated the AUTHORS file
microchip8
12th July 2008, 16:20
ChangeLog for version 1.1.5
* Added Vorbis audio support for the Matroska container
* Feature request: add the possibility to disable MEncoder's A/V sync algorithm when
encoding video files. This can be used to fix input video files with bad A/V sync in them,
however there are no guarantees that this will actually fix the problem
* Enabled back the use of temporary directories based on process ID to store config files
* Do not ask for FPS conversion or pullup/pulldown if the user forces an output frame rate
* Updated the requirements part in the README.divxenc file
* Small clean ups
microchip8
19th October 2008, 15:02
ChangeLog for version 1.1.6
* Small improvement: when using the vorbis audio codec and muxing to the Matroska
container, do not extract the video from the AVI since mkvmerge takes the video directly from
the AVI and we can skip the extraction step. Extraction is only necessary if the user has also
chosen the MP4 container
* Separated the 'normal' deinterlacers from the frame doubling ones
* Removed path specification for MEncoder
* denoise3d & hqdn3d: implemented weak/medium/strong denoising presets
* Removed quantization parameters for the spp, uspp, fspp and pp7 deblockers
* Added Vorbis audio support for the OGM container
* Improved subtitle handling for video file encodings. Now the user can select to hardcode a
given subtitle into the movie or import it into the MP4 and/or MKV container. Only two subtitle
formats are supported and have been tested: VobSub and SRT
* Added support for sample encoding and previewing. When encoding samples, one can specify
the start position and the duration in seconds for the sample. Sample encoding respects encoding
passes meaning if you execute divxenc in two-pass mode and want to encode a sample before the
real encoding starts, then the sample will also be encoded in two-pass mode with all the options
and filters selected by the user. Sample encoding can further be used to encode only specific parts
of a video file or a DVD. In regards to DVDs, sample encoding does not respect selected DVD chapters
meaning the given start position for the sample will overwrite the selected DVD chapter(s). This is a
mencoder problem and there's nothing I can do about it.
* Updated the crop preview code. Instead of sleeping for 15 seconds and then killing the PID value of mplayer,
use the -endpos option
* Updated the man page
microchip8
2nd November 2008, 14:38
ChangeLog for version 1.1.7
* Improved DVD handling. Now there's a menu where the user can select the
input type: ISO image, VIDEO_TS folder or DVD drive
* Added extra strong denoising preset for the denoise3d & hqdn3d filters
* Added neroAAC audio support for the MKV container
* Removed AAC object type complexity menu. AAC (FAAC) is best used in low complexity mode
* Set the field order of the tfields filter to auto detection
* Implemented configuration file support. As of this version, divxenc automatically generates a
config file in its configuration directory. The config file can be used by the user to modify/set the
paths to various programs. This can be useful if the user has multiple executables of the same
program(s) but wants to use a specific one for the job. It can also be used to set the correct path
to a program if the program in question is not located in a standard location and cannot be found
by the system. The configuration file cannot be used to store encoding settings or other parameters!
It is only meant for the tools needed for the correct operation of xvidenc. The config file will be
generated in /home/user_name/.divxenc/config. The config file has its own versioning system and will
be automatically updated in case something changes in future versions of divxenc
* Added -r option to reset the config file in case the user has made any changes to it and wants to restore
the original values of the config file
* Updated the man page
microchip8
24th November 2008, 10:28
ChangeLog for version 1.1.8
* Added support for the aacplusenc AAC+ audio encoder from Matteo Croce
* Updated the MP4 & MKV batch exporting and muxing code to support the aacplusenc encoder
* Rewrote the DVD part of the video_subtitles_func() function. It now supports dumping of three subtitles
* Updated the MKV/MP4 muxing code to support importing of three subtitles
* Dramatically simplified the MKV/MP4/OGM batch exporting code. This reduces a lot of code duplication
* Display elapsed time when encoding samples
* Bugfix in the video_subtitles_func() function for SRT subtitles. Wrong variable used
* When encoding samples, make sure to take care of any subtitles that might have been dumped to disk
* Added support for deinterlacing at half frame rate. Useful for interlaced content that's running at
50 or 59.940 fps (100i/120i)
* Reduced some code duplication in the set_output_filename_func() function by moving path and extension
checking into its own function
* New formula to calculate the video bitrate for a target filesize. The previous formula, which was directly
taken from the ripdvd project, incorrectly calculates the bitrate which often results by missing the target
filesize by as much as 30 MB. The new formula also uses floating point precision and has been tested
against the calculators of MeGUI and Avidemux
* Moved the DVD device detection code into its own function to reduce some code duplication
* Removed neroAacEnc quality-based encoding mode. It is incompatible with video bitrate calculation for
a target size and I cannot find any info on quality -> average bitrate mappings.
* Don't exit if the user provides a floating point value for the Vorbis audio codec. Instead warn and use
the default value
* In some cases it is possible for divxenc to leave its unique temp directory. Find those directories and
remove them if they are 15 or more days old
* Removed support for MPEG-2 AAC and ADPCM audio
* Updated the source_fps_func() function
* Removed the noise filter. No real use for it
* Updated the audio_resample_func() function
* Updated the check_audio_codec_func() function
* Updated the genconfig_func() function
* Updated the man page
* Updated the README.divxenc file
microchip8
25th November 2008, 14:01
ChangeLog for version 1.1.9
* Bugfix: the vobsubout3 variable was not tested in the MKV/MP4 muxing code.
This leads to the third subtitle not being imported into these containers
* Implemented real batch support for files. As of now, one can encode a bunch of video
files in a directory and automatically remux them to MKV/MP4/OGM. The user needs to
configure only one of the files in a given directory and all the settings will apply to the
other files as well
* New formulas to calculate the video bitrate for a target filesize. The user can choose between
MeGUI's formula, divxenc's refactored MeGUI formula and the old divxenc/ripdvd formula
Ranguvar
25th November 2008, 18:34
Fantastic work!! I'm shocked no one has thanked you through all these recent revisions - this project is developing nicely.
I'll have to perform a quality test Xvid CVS + VAQ vs lavc soon. I remember a comparison where Xvid blew apart lavc, but it looks like that may no longer be the case?
microchip8
25th November 2008, 18:50
Thanks for the nice words, Ranguvar. I mostly write these scripts for me but also share it with others so they don't have to go through the pain that is MEncoder ;)
As for Xvid vs lavc's mpeg4, I think lavc beats it since it has some really nice features like QNS (dog slow though), bidir_refine and UMH motion estimation which Xvid lacks . I have not done any tests either so I can't really for sure say which is "better"
microchip8
30th November 2008, 16:52
ChangeLog for version 1.2.0
* Lots of empty variables and code cleanups
* Replaced the --help option with -help for consistency with the other options
* Added support for importing up to three subtitles (VobSub or SRT) into the MKV/MP4
containers when encoding a video file or a directory with files. Also hardcoding a subtitle is
now possible for directory encodings
* Reduced a lot of code duplication in the batch exporting code by using only one variable
to carry the output file
* Optimized the MKV/MP4/OGM muxing code for directory encodings
* Simplified the MKV/MP4 subtitles importing code. The new code is a bit ugly, but is much
smaller and works quite well. It's basically a small loop which tests the subtitle variables for
not being empty, and if so, it appends the values to the MKVSUBS/MP4SUBS variables
* Small bugfix: IVTC/Telecine was still asked if user has selected to do FPS conversion using
frame duplication (25 -> 50 fps, 50 -> 100 fps). This is due to wrong variable being tested: $fpsfilter instead of $frc
* When encoding to neroAAC/AAC+/Vorbis audio and muxing to MKV, take the video directry from
the AVI file instead of dumping it to disk. That way we can skip the dumping process and don't have
to pass the FPS value of the raw video to mkvmerge since it takes it directly from the AVI. This also
makes the code a bit more simple. When also muxing to MP4, MP4Box always dumps the
video so we're safe here
* Added support for detecting the audio codec of the video file/DVD when using audio stream copy.
Based on the detected audio codec, decision is made if we allow or disallow muxing to MKV/MP4/OGM
* Updated the man page
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.