PDA

View Full Version : (old: How can I input an avi file?) Autogk limitations?


tuleggi
28th February 2005, 01:12
Hi, i'm new...i cant load an avi file into AutoGK in order to recompress it.
There is anyway to support an avi file? and an ogm?
thanks!

PS: i was a fan of xmpeg, then of vidomi *modified and now? maybe autoGK, I have to try! (it's foundamental that the double audio support works also with my standalone divx player, like Vidomi can do! i'm doing a divx with AutoGK i will see)

len0x
28th February 2005, 11:55
see FAQ Q 5.4

tuleggi
28th February 2005, 13:13
Great!
I hope the new version with the AVI support will be out soon!
What about the ogm and the other formats (mpg1)?
byebye

len0x
28th February 2005, 17:09
I'm sceptical about MPEG1 due to audio synch issues, but as DGIndex might support it at some point then it should be possible.

tuleggi
18th March 2005, 18:50
Hi, i've tried to use autogk and it does only partially it works...probably i missed something... :(
I've tried to make a xvid from a dvd i have and i saw some limitations that i'll explained (and if you could help me to resolve if im wrong, thanks!):

- i have to decript first the dvd... that means that i could not use autogk with my laptop that has only 10GB of HD (and 2 GB free) (vidomi, what i used before, it decripts and compress directly from the dvd, so i just need the amount of free memory for the xvid, i.e. 700MB)

- i had a problem with the double audio, i have selected as first audio the second language on the original dvd (italian) and as second audio the first language on the original cd(english) (so that the cd i'll burn, it will start with my native language in the dvd player). The problem has been that autogk 1.93 hasnt written the first audio (italian) i have choose, but only the second (so the audiotrack1 was without sound, the second, the english one, was ok). :confused:

- i had another problem with the subtitles... i have choosed the external subitiles in order to have a subtitles only for the second track (english) but autogk asked me to install WinRAR. I have done so, even if it is shareware and i usually have the better 7zip. Unfortunately in the final xvid played in bsplayer i have no subtitles (i have vobsub) and i cant see any external subtitles .sub, .srt or whatever in my directory. :confused:

- i cant find an option in autogk to do an xvid (target size) only in one pass, in order to save time if i need it... (vidomi has, sorry if i compare, but it is what i need...maybe you have a solution ;) )

Apart this it does well it job for the final cd dimension, but i cant use autogk with theses limitations...could you help me please?

len0x
18th March 2005, 19:57
Originally posted by tuleggi
- i have to decript first the dvd...


See FAQ Q 1.3

Originally posted by tuleggi
- i cant find an option in autogk to do an xvid (target size) only in one pass, in order to save time if i need it...)


CBR encoding will never be supported. Search the forum for dicussions about it.

For the rest of your problems: :logfile:

tuleggi
18th March 2005, 20:10
Here my log file... as you see the first audio file size is almost nothing (but the two .ac3 files in the temp directory are the same size). I cant see the subtitles chosen only for the second language.. :confused:


[17/03/2005 14.14.15] AutoGK 1.93b
[17/03/2005 14.14.15] OS: WinXP (5.1.2600).2
[17/03/2005 14.14.15] Job started.
[17/03/2005 14.14.15] Input dir: C:\2_FAST_2_FURIOUS\VIDEO_TS
[17/03/2005 14.14.15] Output file: C:\2_FAST_2_FURIOUS\pr.avi
[17/03/2005 14.14.15] Audio: Italiano
[17/03/2005 14.14.15] Audio2: English
[17/03/2005 14.14.15] Subtitles: none
[17/03/2005 14.14.15] Subtitles 2: English : Wide/Letterbox
[17/03/2005 14.14.15] Codec: XviD
[17/03/2005 14.14.15] Target size: 700Mb
[17/03/2005 14.14.15] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[17/03/2005 14.14.15] Started encoding.
[17/03/2005 14.14.15] Demuxing and indexing.
[17/03/2005 14.27.04] Processing file: C:\2_FAST_2_FURIOUS\VIDEO_TS\VTS_01_1.VOB
[17/03/2005 14.27.04] Processing file: C:\2_FAST_2_FURIOUS\VIDEO_TS\VTS_01_2.VOB
[17/03/2005 14.27.04] Processing file: C:\2_FAST_2_FURIOUS\VIDEO_TS\VTS_01_3.VOB
[17/03/2005 14.27.04] Processing file: C:\2_FAST_2_FURIOUS\VIDEO_TS\VTS_01_4.VOB
[17/03/2005 14.27.04] Processing file: C:\2_FAST_2_FURIOUS\VIDEO_TS\VTS_01_5.VOB
[17/03/2005 14.27.04] Processing file: C:\2_FAST_2_FURIOUS\VIDEO_TS\VTS_01_6.VOB
[17/03/2005 14.27.04] Source aspect ratio: 16:9
[17/03/2005 14.27.04] Source resolution: 720x576
[17/03/2005 14.27.04] Found PAL source.
[17/03/2005 14.27.04] Analyzing source.
[17/03/2005 14.35.00] Source has percentage of interlacing in motion areas: 0,00
[17/03/2005 14.35.00] Source is considered to be progressive.
[17/03/2005 14.35.01] Output will contain 154756 frames
[17/03/2005 14.35.01] Decoding audio.
[17/03/2005 14.39.09] Normalizing audio.
[17/03/2005 14.43.42] Encoding audio.
[17/03/2005 14.43.45] Decoding audio.
[17/03/2005 14.47.41] Normalizing audio.
[17/03/2005 14.51.19] Encoding audio.
[17/03/2005 14.59.24] Using bitrate spikes control.
[17/03/2005 14.59.24] Audio size: 8,192 bytes (0.01 Mb)
[17/03/2005 14.59.24] Audio 2 size: 99,043,968 bytes (94.46 Mb)
[17/03/2005 14.59.24] Overhead: 3,675,392 bytes (3.51 Mb)
[17/03/2005 14.59.24] Video size: 631,275,648 bytes (602.03 Mb)
[17/03/2005 14.59.24] Running compressibility test.
[17/03/2005 14.59.24] Writing the following script to C:\2_FAST_2_FURIOUS\agk_tmp\pr_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")

movie = mpeg2source("C:\2_FAST_2_FURIOUS\agk_tmp\pr.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 640
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
===========================================================
[17/03/2005 15.06.43] Duration was: 7 minutes 17 seconds
[17/03/2005 15.06.43] Speed was: 17,67 fps.
[17/03/2005 15.06.43] Compressibility percentage is: 38,74
[17/03/2005 15.06.43] Using softer resizer.
[17/03/2005 15.06.43] Chosen resolution is: 544x240 ( AR: 2,27 )
[17/03/2005 15.06.43] Predicted comptest value is: 55,13
[17/03/2005 15.06.43] Running first pass.
[17/03/2005 15.06.43] Writing the following script to C:\2_FAST_2_FURIOUS\agk_tmp\pr_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")

movie = mpeg2source("C:\2_FAST_2_FURIOUS\agk_tmp\pr.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 544
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
RemoveGrain(mode=2)
===========================================================
[17/03/2005 16.29.57] Duration was: 1 hour, 23 minutes 13 seconds
[17/03/2005 16.29.57] Speed was: 30,99 fps.
[17/03/2005 16.29.57] Expected quality of first pass size: 51,32
[17/03/2005 16.29.57] Running second pass.
[17/03/2005 18.08.04] Duration was: 1 hour, 38 minutes 5 seconds
[17/03/2005 18.08.04] Speed was: 26,29 fps.
[17/03/2005 18.08.04] Job finished. Total time: 3 hours 53 minutes 49 seconds

tuleggi
18th March 2005, 20:15
[QUOTE]Originally posted by len0x
See FAQ Q 1.3


PS: so DVDdecripter is illegal??

len0x
18th March 2005, 20:17
Subs problem is an easy one - you HAVE to select first subs! It doesn't correspond to the audio language at all, so it just ignores it if first subs are not selected...

Audio problem is a tricky one - LAME fails to encode it and without having that AC3 file I can't tell you what's wrong.

len0x
18th March 2005, 20:18
Originally posted by tuleggi
PS: so DVDdecripter is illegal??

In many countries, yes.

tuleggi
18th March 2005, 20:23
Originally posted by len0x
Subs problem is an easy one - you HAVE to select first subs! It doesn't correspond to the audio language at all, so it just ignores it if first subs are not selected...

So you mean that in order to have subtitles for a second language(audio track), i need to integrate subtitles for the first language(audio track)? (that of course i dont need, because the first language is my native language!) :confused:

Originally posted by len0x
In many countries, yes.

ok... :(

len0x
18th March 2005, 20:27
No, subs are *independent* from audio. So just select subs that you want as first ones and that's it. This will not mean that they will be shown only during first audio track. They will always be shown if selected in VobSub during playback.

tuleggi
18th March 2005, 20:32
thanks now its clear, i just need to select in the first language the subtitles for the second language and that's all... but, sorry if i ask you another question, do I have to enable external subtitles in that case? (what the result will be? a .srt/.sub subtitles?)
Thanks

len0x
20th March 2005, 23:55
If you want to have subs always ON, then you don't need external subs. If you do then by selecting extrenal subs in AutoGK you'll get IDX/RAR vobsub files.

tuleggi
21st March 2005, 18:18
Thanks, i've already tried and it works good with the 1.95 stable version.
I have to say that the video quality of autogk is superior than the one of vidomi *modified, unfortunately autogk uses the 2pass mode for the target size cd, that means about 4hours instead of 2hours encoding.
Could i ask you directely why you have not thought to implement a sort of "xvid hybrid" (what is written in vidomi) method for a 1 pass target size?
Reading some 3ds i discovered that it is not because of the quality that autogk use the 2 passes (someone also say that u obtain a better video quality using a single pass), but because of the size calculation... Tell me if i'm wrong but vidomi had discovered a good and fast way to use a size calculation with xvid in just one pass, in that case couldnt you implement it in autogk?
thanks for your work! :)

len0x
21st March 2005, 18:27
Single pass CBR encoding would mean inferior quality, so its not an option. Use quality based encoding instead if you need faster encodings and don't care about file size.

tuleggi
21st March 2005, 18:44
Sorry if i insist, but the "xvid hybrid" method of vidomi is not the same of the "xvid CBR" method in vidomi... the software uses an algorithm to calculate the best bitrate for each scenes!
So the result is a better quality than the CBR method (i've compared both the results for a same movie) and u maintain the target size in a single pass!!
Pls if you can check this, im sure you will be interested! ;)

PS: if im right ur good idea is to make a simple tool for the xvid encoding for a standalone dvd player, maybe linked on a tv. The modified version (only this one) of vidomi has also another interesting option u could implement if u had not already done, a "limiter" options for the colours: it make the final encoded movies to use only the colours of the TV specific's.


EDIT :
here for a better understanding of my words (from the vidomi site):

Normal Mode (what i called "xvid CBR" method):
1 Pass
Fixed Keyframe Interval
User sets bitrate to a constant value.
No Skipped frame prevention
Can't hit a target size unless user does the bitrate math.

Xvid Hybrid:
1 Pass
Variable Keyframe Interval
Xvid Bitrate set per keyframe based on target size and bits remaining.
Has Skipped Frame Prevention
Can Hit Target Size. Accurate to one MB.


(from vidomi modified readme):

- It contains the Avisynth filter "Limiter" that limits the croma and luma signal according to TV specifications. See the avisynth manual (www.avisynth.org) for details.

len0x
21st March 2005, 19:03
Well I can only speculate, but it looks like vidomi uses codec directly from the application that allows it to feed different bitrate for different chunks of the movie on the fly. AutoGK uses VDubMod and therefore only what XviD natively support (i.e. 1 pass CBR, 1 pass quality, 2pass VBR).

P.S. Color correction option that does what limiter is supposed to do is already available in hidden options.

tuleggi
21st March 2005, 19:21
So autogk can't "feed different bitrate for different chunks of the movie on the fly"... that's a pity 'cause i think the better video quality of autogk comes from the new xvid codecs supported.
In vidomi the limit it is that the development is finished, so it does not fully support the new xvid versions in the "hybrid" mode because, like you said, Xvid does natively support only CBR or quality mode in a single pass.
My hope to have a good quality in a single pass it is dead with the vidomi dead? :(

(my hope for this 3d was also that someone like you took the sources and ideas of vidomi in order to enhance the already good autogk for a future VBR single pass target size...sorry again for my comparison, the intent is only to tell you something could help your development and my use, of couse! ;) )

len0x
21st March 2005, 19:29
Better quality comes from 2 pass encoding that cannot be beaten by any single pass encoding (at best you can have the same quality if you find exact average quantizer that gives you the same target size as 2 pass encoding. Hybrid mode would be a little bit better than CBR but not by much as proper first pass is required to gather info about the compressibility of the source. (its just not worth it to try and simulate bitrate control algorithm outside of the codec)