Log in

View Full Version : Really slow encoding with StaxRip opposed to AutoGK - please help


McoreD
9th July 2007, 04:34
Hi Guys,

Not sure what I am missing here. I encoded the same MPG file in both StaxRip and AutoGK

Both: Target file size to 373 MiB in XviD.

StaxRip is taking 06:59:48 hours
AutoGK is taking 02:38:50 hours

I wanna move to StaxRip because there are like 100 HDTV MPGs I need to convert to XviD and I can't afford to click and browse the MPG files 100 times in AutoGK.

The log files are pasted below.



---------- Preparing ----------

Preparer: Extract audio from MPEG-2 using ProjectX
Command line: "C:\Program Files\Java\jdk1.6.0_01\jre\bin\java.exe" -jar "G:\Standalone\StaxRip\Settings\Applications\ProjectX\ProjectX.jar" "G:\MPEG2 TV\What's Good For You\2007-04-09.mpg"
Start time: 22:15:11
End time: 22:20:12
Duration: 00:05:01

---------- Preparing ----------

Preparer: Extract audio and index MPEG-2 using DGIndex
Command line: "G:\Standalone\StaxRip\Settings\Applications\DGIndex\DGIndex.exe" -IF[G:\MPEG2 TV\What's Good For You\2007-04-09.m2v] -IA=2 -FO=0 -YR=1 -TN=1 -OM=2 -DRC=2 -DSD=0 -DSA=0 -OF=[G:\MPEG2 TV\What's Good For You\2007-04-09] -exit
Start time: 22:20:12
End time: 22:21:19
Duration: 00:01:06

---------- AviSynth Script ----------

MPEG2Source("G:\MPEG2 TV\What's Good For You\2007-04-09.d2v")
Crop(4,2,-0,-2)
BicubicResize(688,384,0,0.5)

---------- Audio Encoding ----------

Command Line: "G:\Standalone\StaxRip\Settings\Applications\BeSweet\BeSweet.exe" -core( -input "G:\MPEG2 TV\What's Good For You\2007-04-09.mp2" -output "G:\MPEG2 TV\What's Good For You\2007-04-09_AudioOutput.mp3" ) -azid( -c normal -L -3db ) -ota( -d 0 -hybridgain ) -lame( -v --vbr-new -V 5 -b 32 )

---------- Audio Encoding Statistics ----------

Start time: 22:21:27
End time: 22:26:08
Duration: 00:04:40
Speed: 331 fps
Size: 49.2 MB
Bitrate: 110.84 kbps
Video Bitrate: 699 -> 716

---------- First Pass Codec Parameters ----------

ar_mode: 0
ar_x: 4
ar_y: 3
aspect_ratio: 0
audio_mode: 0
audio_rate: 128
audio_size: 0
audio_type: 0
bitrate: 721
bquant_offset: 100
bquant_ratio: 150
Brightness: 0
chromame: 1
container_type: 1
curve_compression_high: 0
curve_compression_low: 0
Deblock_UV: 0
Deblock_Y: 0
debug: 0
Dering_UV: 0
Dering_Y: 0
desired_quant: 200
desired_size: 327633
discard1pass: 1
display_status: 0
FilmEffect: 0
fourcc_used: 0
fps: 2
frame_drop_ratio: 0
full1pass: 0
gmc: 0
hours: 1
interlacing: 0
keyframe_boost: 10
kfreduction: 20
kfthreshold: 1
lum_masking: 0
max_bframes: 2
max_bquant: 31
max_iquant: 31
max_key_interval: 300
max_pquant: 31
min_bquant: 1
min_iquant: 1
min_pquant: 1
minutes: 30
mode: 1
motion_search: 6
num_zones: 1
overflow_control_strength: 5
packed: 1
par_x: 1
par_y: 1
profile: (unrestricted)
qpel: 0
quality: General purpose
quant_type: 0
rc_averaging_period: 100
rc_buffer: 100
rc_reaction_delay_factor: 16
seconds: 0
stats: G:\MPEG2 TV\What's Good For You\Temporary Files\2007-04-09.pass
subtitle_size: 0
target_size: 665600
tff: 0
trellis_quant: 1
turbo: 0
twopass_max_overflow_degradation: 5
twopass_max_overflow_improvement: 5
use_2pass_bitrate: 0
use_bvop: 1
vhq_bframe: 0
vhq_mode: 1
vop_debug: 0
zone0_bvop_threshold: 0
zone0_cartoon_mode: 0
zone0_chroma_opt: 0
zone0_frame: 0
zone0_greyscale: 0
zone0_mode: 0
zone0_quant: 500
zone0_type: 0
zone0_weight: 100

---------- First Pass Encoding ----------

VirtualDub.Open("G:\\MPEG2 TV\\What's Good For You\\2007-04-09.avs","",0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.SaveAVI("G:\\MPEG2 TV\\What's Good For You\\Temporary Files\\2007-04-09_FirstPass.avi");

---------- First Pass Encoding Statistics ----------

Start time: 22:26:09
End time: 04:12:51
Duration: 05:46:41
Speed: 4 fps

---------- Single, Second or NTh Pass Codec Parameters ----------

ar_mode: 0
ar_x: 4
ar_y: 3
aspect_ratio: 0
audio_mode: 0
audio_rate: 128
audio_size: 0
audio_type: 0
bitrate: 721
bquant_offset: 100
bquant_ratio: 150
Brightness: 0
chromame: 1
container_type: 1
curve_compression_high: 0
curve_compression_low: 0
Deblock_UV: 0
Deblock_Y: 0
debug: 0
Dering_UV: 0
Dering_Y: 0
desired_quant: 200
desired_size: 327633
discard1pass: 1
display_status: 0
FilmEffect: 0
fourcc_used: 0
fps: 2
frame_drop_ratio: 0
full1pass: 0
gmc: 0
hours: 1
interlacing: 0
keyframe_boost: 10
kfreduction: 20
kfthreshold: 1
lum_masking: 0
max_bframes: 2
max_bquant: 31
max_iquant: 31
max_key_interval: 300
max_pquant: 31
min_bquant: 1
min_iquant: 1
min_pquant: 1
minutes: 30
mode: 2
motion_search: 6
num_zones: 1
overflow_control_strength: 5
packed: 1
par_x: 1
par_y: 1
profile: (unrestricted)
qpel: 0
quality: General purpose
quant_type: 0
rc_averaging_period: 100
rc_buffer: 100
rc_reaction_delay_factor: 16
seconds: 0
stats: G:\MPEG2 TV\What's Good For You\Temporary Files\2007-04-09.pass
subtitle_size: 0
target_size: 665600
tff: 0
trellis_quant: 1
turbo: 0
twopass_max_overflow_degradation: 5
twopass_max_overflow_improvement: 5
use_2pass_bitrate: 1
use_bvop: 1
vhq_bframe: 0
vhq_mode: 1
vop_debug: 0
zone0_bvop_threshold: 0
zone0_cartoon_mode: 0
zone0_chroma_opt: 0
zone0_frame: 0
zone0_greyscale: 0
zone0_mode: 0
zone0_quant: 500
zone0_type: 0
zone0_weight: 100

---------- Single, Second or NTh Pass Encoding ----------

VirtualDub.Open("G:\\MPEG2 TV\\What's Good For You\\2007-04-09.avs","",0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetMode(1);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.stream[0].SetSource("G:\\MPEG2 TV\\What's Good For You\\2007-04-09_AudioOutput.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.SaveAVI("G:\\MPEG2 TV\\What's Good For You\\2007-04-09.avi");

---------- Single, Second or NTh Pass Encoding Statistics ----------

Start time: 04:12:52
End time: 05:15:00
Duration: 01:02:07
Speed: 25 fps

---------- Overall Statistics ----------

Start time: 22:15:11
End time: 05:15:00
Duration: 06:59:48



Versus

[2007-07-09 08:34:42] AutoGK 2.40
[2007-07-09 08:34:42] OS: Windows Vista (6.0.6000).2
[2007-07-09 08:34:42] Job started.
[2007-07-09 08:34:42] Input file: G:\MPEG2 TV\What's Good For You\2007-04-09.mpg
[2007-07-09 08:34:42] Output file: G:\MPEG2 TV\What's Good For You\2007-04-09.avi
[2007-07-09 08:34:42] Output codec: XviD
[2007-07-09 08:34:42] Audio 1: Audio Stream 0 MPEG
[2007-07-09 08:34:42] Subtitles: none
[2007-07-09 08:34:42] Format: AVI
[2007-07-09 08:34:42] Target size: 373Mb
[2007-07-09 08:34:42] Audio 1 settings: Auto
[2007-07-09 08:34:42] Started encoding.
[2007-07-09 08:34:42] Demuxing and indexing.
[2007-07-09 08:36:07] Processing file: G:\MPEG2 TV\What's Good For You\2007-04-09.mpg
[2007-07-09 08:36:07] Source resolution: 720x576
[2007-07-09 08:36:07] Found PAL source.
[2007-07-09 08:36:07] Source aspect ratio: 16:9
[2007-07-09 08:36:07] Color correction enabled.
[2007-07-09 08:36:08] Analyzing source.
[2007-07-09 08:39:53] Source is considered to be interlaced.
[2007-07-09 08:39:53] Output will contain 93085 frames
[2007-07-09 08:39:53] Encoding audio.
[2007-07-09 08:50:22] Audio1 size: 52,880,736 bytes (50.43 Mb)
[2007-07-09 08:50:22] Overhead: 3,723,392 bytes (3.55 Mb)
[2007-07-09 08:50:22] Video size: 334,514,720 bytes (319.02 Mb)
[2007-07-09 08:50:22] Running compressibility test.
[2007-07-09 09:00:53] Duration was: 10 minutes 31 seconds
[2007-07-09 09:00:53] Speed was: 7.37 fps.
[2007-07-09 09:00:53] Compressibility percentage is: 30.43
[2007-07-09 09:00:53] Using softer resizer.
[2007-07-09 09:00:53] Chosen resolution is: 480x272 ( AR: 1.76 )
[2007-07-09 09:00:53] Predicted comptest value is: 56.95%
[2007-07-09 09:00:53] Running first pass.
[2007-07-09 09:59:16] Duration was: 58 minutes 22 seconds
[2007-07-09 09:59:16] Speed was: 26.57 fps.
[2007-07-09 09:59:16] Expected quality of first pass size: 56.79%
[2007-07-09 09:59:16] Running second pass.
[2007-07-09 11:13:33] Duration was: 1 hour, 14 minutes 16 seconds
[2007-07-09 11:13:33] Speed was: 20.89 fps.
[2007-07-09 11:13:33] Job finished. Total time: 2 hours 38 minutes 50 seconds
====================================================


Thanks,
McoreD

stax76
11th July 2007, 19:28
The log shows the first pass was running at 4 fps, second at 25. Maybe you are using the newest XviD version and it's not compatible with the StaxRip XviD defaults. In StaxRip you can try to reset the XviD config dialogs and config them manually.

McoreD
18th July 2007, 03:37
Stax, I am running the XviD_1.1.2.0 that was auto downloaded from StaxRip 1.0.0.1.

I will try DivX 6.6.1 and let you know.

McoreD
21st July 2007, 17:30
This is with DivX 6.6.1.


---------- Preparing ----------

Preparer: Extract audio from MPEG-2 using ProjectX
Command line: "C:\Program Files\Java\jdk1.6.0_01\jre\bin\java.exe" -jar "G:\Standalone\StaxRip\Settings\Applications\ProjectX\ProjectX.jar" "G:\MPEG2 TV\My Wife and Kids\Season 02\My Wife and Kids 2x05 Thru Thick and Thin.mpg"
Start time: 00:13:48
End time: 00:15:45
Duration: 00:01:56

---------- Preparing ----------

Preparer: Extract audio and index MPEG-2 using DGIndex
Command line: "G:\Standalone\StaxRip\Settings\Applications\DGIndex\DGIndex.exe" -IF[G:\MPEG2 TV\My Wife and Kids\Season 02\My Wife and Kids 2x05 Thru Thick and Thin.m2v] -IA=2 -FO=0 -YR=1 -TN=1 -OM=2 -DRC=2 -DSD=0 -DSA=0 -OF=[G:\MPEG2 TV\My Wife and Kids\Season 02\My Wife and Kids 2x05 Thru Thick and Thin] -exit
Start time: 00:15:45
End time: 00:16:23
Duration: 00:00:38

---------- AviSynth Script ----------

MPEG2Source("G:\MPEG2 TV\My Wife and Kids\Season 02\My Wife and Kids 2x05 Thru Thick and Thin.d2v")
Crop(6,0,-2,-0)
BicubicResize(688,384,0,0.5)

---------- Audio Encoding ----------

Command Line: "G:\Standalone\StaxRip\Settings\Applications\BeSweet\BeSweet.exe" -core( -input "G:\MPEG2 TV\My Wife and Kids\Season 02\My Wife and Kids 2x05 Thru Thick and Thin.mp2" -output "G:\MPEG2 TV\My Wife and Kids\Season 02\My Wife and Kids 2x05 Thru Thick and Thin_AudioOutput.mp3" ) -azid( -c normal -L -3db ) -ota( -d 0 -hybridgain ) -lame( -v --vbr-new -V 5 -b 32 )

---------- Audio Encoding Statistics ----------

Start time: 00:16:31
End time: 00:18:30
Duration: 00:01:59
Speed: 282 fps
Size: 16.9 MB
Bitrate: 105.57 kbps
Video Bitrate: 1018 -> 1041

---------- First Pass Codec Parameters ----------

06_06_01_00001_VfWCodec: -bvn1 1041000 -vbv 4854000,3145728,2359296 -dir "H:\Users\Manno\AppData\Roaming\DivX\DivX Codec" -w -b 1 -profile=3 -preset=4

---------- First Pass Encoding ----------

VirtualDub.Open("G:\\MPEG2 TV\\My Wife and Kids\\Season 02\\My Wife and Kids 2x05 Thru Thick and Thin.avs","",0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.SaveAVI("G:\\MPEG2 TV\\My Wife and Kids\\Season 02\\Temporary Files\\My Wife and Kids 2x05 Thru Thick and Thin_FirstPass.avi");

---------- First Pass Encoding Statistics ----------

Start time: 00:18:31
End time: 01:01:14
Duration: 00:42:43
Speed: 13 fps

---------- Single, Second or NTh Pass Codec Parameters ----------

06_06_01_00001_VfWCodec: -bvnn 1041000 -vbv 4854000,3145728,2359296 -dir "H:\Users\Manno\AppData\Roaming\DivX\DivX Codec" -w -b 1 -profile=3 -preset=4

---------- Single, Second or NTh Pass Encoding ----------

VirtualDub.Open("G:\\MPEG2 TV\\My Wife and Kids\\Season 02\\My Wife and Kids 2x05 Thru Thick and Thin.avs","",0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetMode(1);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.stream[0].SetSource("G:\\MPEG2 TV\\My Wife and Kids\\Season 02\\My Wife and Kids 2x05 Thru Thick and Thin_AudioOutput.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.SaveAVI("G:\\MPEG2 TV\\My Wife and Kids\\Season 02\\My Wife and Kids 2x05 Thru Thick and Thin.avi");

---------- Single, Second or NTh Pass Encoding Statistics ----------

Start time: 01:01:15
End time: 08:02:48
Duration: 07:01:33
Speed: 1 fps

---------- Overall Statistics ----------

Start time: 00:13:48
End time: 08:02:48
Duration: 07:49:00


Really strange as to why this happens. I didn't alter any default setting. I will try deleting the Settings folder and retry.

stax76
24th July 2007, 01:09
So for XviD the first pass is badly slow for unknown reason and for DivX the same happens but for the second pass, strange. It's probably not because of the codec settings then but I have no clue what it could be. AutoGK works similar to StaxRip, are you sure it wasn't another process using the cpu?