View Full Version : AVI input in AutoGK
len0x
21st March 2005, 17:23
So here we go, its finally here, but we still have a long way to go.
I'm creating this thread specificaly for bug requests/dicussions ONLY for AVI input.
Features so far (as per current 2.xx version):
- no denoising is done for AVI mode
- no cropping is done for AVI mode apart from the one needed to keep AR (if you need it then enable it via hidden options)
- DV sources are detected via "dv" string in 4cc and appropriate AR resizing is performed (AR is 1.095 or 0.909). Original AR option won't work for such sources.
- Analysis step is only performed for DV source (for deinterlacing)
- BFF is assumed for DV sources
- input audio can be PCM(encoded)/MPA(encoded)/MP3(always kept)/AC3(encoded or kept)/DTS(encoded or kept)
- if your DV source is 16:9 then you need to enable this AR in hidden options as AutoGK can't detect that.
- mp3 re-encoding is not possible due to LAME crashing on most mp3 sources
dap_werewolf
22nd March 2005, 02:30
Seeing avi input in AutoGK made me very happy, because although I use GK myself, I help a lot of others with their encodes, and just today I had someone ask me how he could reencode an avi to make it slightly smaller. I tried out the avi input option to see if it will load ok, etc., and started an encode just to test it, but cut it off because I needed the computer. And since it worked for me, I happily told this other user to try AutoGK instead of teaching him how to do it in Vdub. Sorry he didn't keep the logs, this was his first attempt at encoding anything, but when he clicked on Start he got:
EXCEPTION: '29mn' is not a valid integer value
I know the original avi was divx5 and I assume that the error has something to do with the framerate (?)
Just wanted to post that, maybe it will help.
Schrade
22nd March 2005, 07:03
Yay finally! AVI support! I did some tests with my captured DV files and anything that was 4:3 worked fine. My 16:9 captured DV videos didn't come out properly though. (I use a Canon Optura Xi)
I look forward to when this new feature matures some more.
When trying to convert a FRAPS (http://www.fraps.com/) captured video from a game I get the following error:
Avisynth open failure:
AutoCrop: Currently supports YUY2 and YB12 color formats only.
FRAPS uses its own codec called FPS1. I can't seem to find any specs on it, though :-/
niamh
22nd March 2005, 08:20
Does this mean I'm translating an already outdated tutorial? :D
len0x
22nd March 2005, 12:12
Originally posted by dap_werewolf
but when he clicked on Start he got:
EXCEPTION: '29mn' is not a valid integer value
This is happening when AutoGK tries to parse the duration of an AVI file. I need the string that is being shown in video info after input file is selected.
len0x
22nd March 2005, 12:16
Originally posted by Schrade
My 16:9 captured DV videos didn't come out properly though.
Of course :) AVI files do not store DAR/PAR in them, so its impossible to automatically detect 16:9 sources. Can you provide me with a small sample of such AVI please? (it would probably have to be processed using AR hidden option when I support that).
Originally posted by Schrade
Avisynth open failure:
AutoCrop: Currently supports YUY2 and YB12 color formats only.
That can be easily fixed. Can you also provide small sample for me for testing, please?
GizmoDerMokwai
22nd March 2005, 12:16
just wanted to say, that avi to avi convertion works already fine for me. tried converting 2 episodes of king of queens (xvid->xvid/audio direct-stream copy/pal) without any problem! keep it up!
len0x
22nd March 2005, 12:21
Glad to hear that. I was testing AVI-2-AVI conversion on XviD/DivX/MJPEG, so those ones should not have any problems. DV and other codecs might as I don't have enough testing material.
len0x
22nd March 2005, 12:22
Originally posted by niamh
Does this mean I'm translating an already outdated tutorial? :D
No :) I'll be atl east 1-2 months before next stable version is out and tutorial needs to be updated...
Schrade
22nd March 2005, 13:08
Originally posted by len0x
Can you provide me with a small sample of such AVI please? (it would probably have to be processed using AR hidden option when I support that).
URL sent to you via a PM!
That can be easily fixed. Can you also provide small sample for me for testing, please?
Again, check the PM for a URL to the sample.
For the FRAPS capture you MUST have FRAPS installed in order to view the capture. It installs the FPS1 codec to allow you to view the file. You may download FRAPS from here:
http://www.fraps.com/.
Please let me know when you've downloaded the samples so I may remove them!
chilled
22nd March 2005, 13:27
request: mp3 reencode (not just kept as is). useful when >128 kbps or for stereo-to-mono (when we know original audio IS mono even when original AC3 on the dvd was 2.0, which happens with so many before-1990s-movies) conversion.
kilivipin
22nd March 2005, 14:04
Wow! Great feature.
len0x
22nd March 2005, 14:31
Originally posted by Schrade
Please let me know when you've downloaded the samples so I may remove them!
Got them, thanks.
len0x
22nd March 2005, 14:39
Originally posted by chilled
request: mp3 reencode (not just kept as is). useful when >128 kbps or for stereo-to-mono (when we know original audio IS mono even when original AC3 on the dvd was 2.0, which happens with so many before-1990s-movies) conversion.
hm... I don't know where incorporate this feature (as it cannot be automatic). I'll think about it.
Mtz
22nd March 2005, 14:51
Nice feature. Sometime ago I made a request for it. ;)
Some "cosmetics" things for now:
- after installing 2.0, in file mode I can select only AVI. After pressing the DVD Input and back Avi Input I can select all media files.
- when checking "use external subtitles" the warning window still show: " External subtitles cannot be played on standalone players..." AFAIK, now, most of players can play them. I think the warning is better something like this: "On some standalone players external subtitles cannot be played".
I'm a little involved in standalones (firmwares) world and I know that.
For players which still cannot support external subtitles can be added in AVI mode by selecting some subtitle from PC?
enjoy,
Mtz
len0x
22nd March 2005, 14:59
Originally posted by Schrade
My 16:9 captured DV videos didn't come out properly though.
I have a question for ya. How do you resize 16:9 material now? At the moment for 4:3 DV sources I use 1.0925 PAL (0.909 NTSC) PAR. Which is slightly different from DVDs (1.066/0.9). I need some expert advice on how to resize 16:9 DV sources (well I read in sticky thread of DV forumn that actually if not taking into account overscan I can just resize the same way as DVD).
len0x
22nd March 2005, 15:12
@Mtz
Which part of "I'm creating this thread specificaly for bug requests/dicussions ONLY for AVI input." did you miss? :) Please repost in some other thread.
Mtz
22nd March 2005, 15:27
Grr...
I pressed submit to early;(
First test om 3 minutes avi:
Original:
Mpeg4 Modifier info:
Packed bitstream: No
QPel: No
GMC: No
Interlaced: Yes (bottom field first)
Aspect ratio: Square pixels
Quant type: H.263
I-VOPs: 38 (0,87%)
P-VOPs: 4317 (98,90%)
B-VOPs: 0 (0,00%)
S-VOPs: 0 (0,00%)
N-VOPs: 10 (0,23%)
###########
Resulted:
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: MPEG Custom
Custom intra matrix:
8 16 20 23 27 30 32 34
16 16 23 24 29 31 34 38
20 23 27 28 30 35 38 40
23 24 28 29 35 39 40 44
27 29 30 35 39 42 45 50
30 31 35 39 42 46 54 59
32 34 38 40 45 54 62 72
34 38 40 44 50 59 72 84
Custom inter matrix:
17 19 21 23 25 27 29 31
19 21 23 25 27 28 29 33
21 23 25 27 29 30 32 37
23 25 27 30 31 34 40 45
25 27 29 31 38 46 54 60
27 28 30 34 46 58 72 74
29 29 32 40 54 72 90 100
31 33 37 45 60 74 100 124
I-VOPs: 41 (1,17%)
P-VOPs: 1849 (52,95%)
B-VOPs: 1602 (45,88%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
Max consecutive B-VOPs: 1
#########
AutoGK log:
[22.03.2005 15:56:22] AutoGK 2.00b
[22.03.2005 15:56:22] OS: WinXP (5.1.2600).2
[22.03.2005 15:56:22] Job started.
[22.03.2005 15:56:22] Source resolution: 576x304
[22.03.2005 15:56:22] Source fps: 23,976
[22.03.2005 15:56:22] Output will contain 4365 frames
[22.03.2005 15:56:22] Job finished. Total time: 0 seconds
====================================================
[22.03.2005 15:59:15] AutoGK 2.00b
[22.03.2005 15:59:15] OS: WinXP (5.1.2600).2
[22.03.2005 15:59:15] Job started.
[22.03.2005 15:59:15] Input file: cucu.avi
[22.03.2005 15:59:15] Input codec: XviD
[22.03.2005 15:59:15] Output file: G:\New Folder\cucu_agk.avi
[22.03.2005 15:59:15] Output codec: XviD
[22.03.2005 15:59:15] Audio: 131kbps
[22.03.2005 15:59:15] Subtitles: none
[22.03.2005 15:59:15] Format: .AVI
[22.03.2005 15:59:15] Target size: 26Mb
[22.03.2005 15:59:15] Started encoding.
[22.03.2005 15:59:15] Source resolution: 576x304
[22.03.2005 15:59:15] Source fps: 23,976
[22.03.2005 15:59:15] Output will contain 4365 frames
[22.03.2005 15:59:15] Analyzing source.
[22.03.2005 16:02:23] Source is considered to be FILM.
[22.03.2005 16:02:23] Demuxing audio.
[22.03.2005 16:02:28] Audio size: 2,847,024 bytes (2.72 Mb)
[22.03.2005 16:02:28] Overhead: 174,592 bytes (0.17 Mb)
[22.03.2005 16:02:28] Video size: 24,241,360 bytes (23.12 Mb)
[22.03.2005 16:02:28] Running compressibility test.
[22.03.2005 16:06:15] Duration was: 3 minutes 46 seconds
[22.03.2005 16:06:15] Speed was: 8,85 fps.
[22.03.2005 16:06:15] Compressibility percentage is: 73,70
[22.03.2005 16:06:15] Chosen resolution is: 576x304 ( AR: 1,89 )
[22.03.2005 16:06:15] Predicted comptest value is: 73,70
[22.03.2005 16:06:15] Running first pass.
[22.03.2005 16:08:44] Duration was: 2 minutes 29 seconds
[22.03.2005 16:08:44] Speed was: 29,21 fps.
[22.03.2005 16:08:44] Warning! Found different number of frames: 3491
[22.03.2005 16:08:44] Audio size: 2,847,024 bytes (2.72 Mb)
[22.03.2005 16:08:44] Overhead: 139,648 bytes (0.13 Mb)
[22.03.2005 16:08:44] Video size: 24,276,304 bytes (23.15 Mb)
[22.03.2005 16:08:44] Expected quality of first pass size: 87,55
[22.03.2005 16:08:44] Trying to adjust settings.
[22.03.2005 16:08:44] No adjustment is possible
[22.03.2005 16:08:44] Running second pass.
[22.03.2005 16:11:52] Duration was: 3 minutes 7 seconds
[22.03.2005 16:11:52] Speed was: 18,61 fps.
[22.03.2005 16:11:52] Job finished. Total time: 12 minutes 36 seconds
====================================================
The resulted movie has: 19.181 fps (original was 23.976)
Some differences about original movie:
Gspot reported Packed Bistream and Mpeg4 modifier, not.
Mpeg4 modifier reported interlaced but Gspot not.
Regarding matrices, many players don't like custom matrices.
enjoy,
Mtz
len0x
22nd March 2005, 16:45
Originally posted by Mtz
[22.03.2005 15:59:15] Source fps: 23,976
[22.03.2005 15:59:15] Analyzing source.
[22.03.2005 16:02:23] Source is considered to be FILM.
This ain't right :) It causes fps change. Fixed.
P.S. How come its interlaced though? Can you make a small clip available for me?
len0x
22nd March 2005, 18:22
Since I'm not going daily builds these days, but still wanna test the fixes for the problems described in this thread here is the current fix:
http://len0x.shellpower.net/AutoGK.exe
dap_werewolf
22nd March 2005, 18:45
Originally posted by len0x
This is happening when AutoGK tries to parse the duration of an AVI file. I need the string that is being shown in video info after input file is selected.
Video info: DivX 5 - 640x480 - 25fps - 29mn 400ms
Turns out he tried another one after that, and it didn't come up with the error. This is what he wrote:
The one that worked had:
Video info: DivX 5 - 640x480 - 25fps - 28mn 46s 320ms
but sound got bumpy hum in the background after the re-encode
As I mentioned earlier he's a complete newbie. I just tried one and it turned out great, of course I used an avi that I made myself, so I know the original source is fine.
len0x
22nd March 2005, 18:48
Originally posted by dap_werewolf
Video info: DivX 5 - 640x480 - 25fps - 29mn 400ms
Seconds are missing, I need to improve parsing of that.
Originally posted by dap_werewolf
but sound got bumpy hum in the background after the re-encode
what was the original audio?
Taurus
22nd March 2005, 22:23
quote:
--------------------------------------------------------------------------------
Originally posted by len0x
This is happening when AutoGK tries to parse the duration of an AVI file. I need the string that is being shown in video info after input file is selected.
--------------------------------------------------------------------------------
Got the same on a xvid avi file:
[22.03.2005 22:10:53] AutoGK 2.00b
[22.03.2005 22:10:53] OS: WinXP (5.1.2600).2
[22.03.2005 22:10:53] Job started.
[22.03.2005 22:10:53] Source resolution: 720x384
[22.03.2005 22:10:53] Source fps: 25
*************************************
EXCEPTION: '5mn' is not a valid integer value
*************************************
[22.03.2005 22:10:53] Job finished. Total time: 0 seconds
====================================================
The file is 5 min 1 sec long = '5mn' = minutes
The GUI says: Video info: XviD - 720x384 - 25fps - 5mn 1s
Cheers
Taurus
Schrade
22nd March 2005, 22:53
Originally posted by len0x
I have a question for ya. How do you resize 16:9 material now?
Well, I am absolutely no expert on this. I had tried to get a good avs script in the DV forum but all of the resizing part I didn't quit understand everything.
Here's what I currently use for Computers:
# simplest possible scaler, no anti-aliasing, filtering, etc. just blend two
# lines into 1.
PointResize(720,240)
# high quality (slight sharpening) upscale vertical resolution to correct
# aspect ratio for letterboxed 16:9
BicubicResize(720,400)
# you always want width and height evenly divisible by 16 for sake of the
# macroblocks.
#Crop(0,4,720,352)
# voila 720x480.
#AddBorders(0,64,0,64)
This is someone else's code so I don't know if that's what you were looking for or not.
dap_werewolf
22nd March 2005, 22:55
Originally posted by dap_werewolf
but sound got bumpy hum in the background after the re-encode
Originally posted by len0x
what was the original audio?
PCM Audio , 48000Hz 56 kb/s total (2 chnls)
dap_werewolf
22nd March 2005, 22:58
Originally posted by dap_werewolf
PCM Audio , 48000Hz 56 kb/s total (2 chnls)
I just took a look at what the audio was myself, I'm just copying and pasting what he sent me. 56kb/s, well that might have done it right there. Looks like the audio may have been "bumpy" to begin with, just exaggerated by AutoGK during the reencode...lol
len0x
22nd March 2005, 22:59
Originally posted by Taurus
The GUI says: Video info: XviD - 720x384 - 25fps - 5mn 1s
I fixed that already :) will be in 2.01
Exoskeletor
23rd March 2005, 00:43
well done lenox. youre fast and furious
(External subs choice had to be putted a little bit better. its not exacly in the middle)
keep fixing :)
musicnyman
23rd March 2005, 04:09
tried to use 2.00 to convert a divx 3 to divx 5 file and output file is a very low resolution. i know converting an already compressed avi file to another avi file is not the best, but i need to convert these files to be able to play them on a standalone player, thus divx 5 instead of divx 3.
i can try using xvid, but i don't have it installed, i only use divx 5 pro for my encodings...
you can see the source resolution was 640x480 and ended up with a 240x144 file instead, even after telling autogk to make the output file size a little bigger than the source, compensating for encoding an already compressed divx file.
here is the logfile:
[3/22/2005 8:49:27 PM] AutoGK 2.00b
[3/22/2005 8:49:27 PM] OS: WinXP (5.1.2600).2
[3/22/2005 8:49:27 PM] Job started.
[3/22/2005 8:49:27 PM] Input file: 1x01-Children_Of_The_Gods.avi
[3/22/2005 8:49:27 PM] Input codec: DivX 3 Low
[3/22/2005 8:49:27 PM] Output file: D:\StarGate_1\101.avi
[3/22/2005 8:49:27 PM] Output codec: DivX
[3/22/2005 8:49:27 PM] Audio: 192kbps
[3/22/2005 8:49:27 PM] Subtitles: none
[3/22/2005 8:49:27 PM] Format: .AVI
[3/22/2005 8:49:27 PM] Target size: 896Mb
[3/22/2005 8:49:27 PM] Custom audio settings: CBR MP3 with bitrate: 192Kbps
[3/22/2005 8:49:27 PM] Started encoding.
[3/22/2005 8:49:27 PM] Source resolution: 640x360
[3/22/2005 8:49:27 PM] Source fps: 23.976
[3/22/2005 8:49:27 PM] Output will contain 139468 frames
[3/22/2005 8:49:27 PM] Analyzing source.
[3/22/2005 9:05:11 PM] Source has percentage of interlacing in motion areas: 0.00
[3/22/2005 9:05:11 PM] Source has percentage of telecined patterns: 0.00
[3/22/2005 9:05:11 PM] Source has percentage of progressive patterns: 100.00
[3/22/2005 9:05:11 PM] Source has percentage of interlaced patterns: 0.00
[3/22/2005 9:05:11 PM] Source is considered to be progressive.
[3/22/2005 9:05:11 PM] Demuxing audio.
[3/22/2005 9:05:49 PM] Decoding audio.
[3/22/2005 9:07:16 PM] Normalizing audio.
[3/22/2005 9:09:06 PM] Encoding audio.
[3/22/2005 9:15:54 PM] Using bitrate spikes control.
[3/22/2005 9:15:54 PM] Audio size: 139,608,000 bytes (133.14 Mb)
[3/22/2005 9:15:54 PM] Overhead: 5,076,096 bytes (4.84 Mb)
[3/22/2005 9:15:54 PM] Video size: 794,840,000 bytes (758.02 Mb)
[3/22/2005 9:15:54 PM] Target bitrate is: 1093kbps
[3/22/2005 9:15:54 PM] Running compressibility test.
[3/22/2005 9:15:54 PM] Writing the following script to D:\agk_tmp\101_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\fdecimate.dll")
movie = DirectShowSource("D:\StarGate_1\1x01-Children_Of_The_Gods.avi",23.976).KillAudio()
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[3/22/2005 9:28:44 PM] Duration was: 12 minutes 49 seconds
[3/22/2005 9:28:44 PM] Speed was: 9.06 fps.
[3/22/2005 9:28:44 PM] Compressibility percentage is: 8.31
[3/22/2005 9:28:44 PM] Using softer resizer.
[3/22/2005 9:28:44 PM] Chosen resolution is: 240x144 ( AR: 1.67 )
[3/22/2005 9:28:44 PM] Predicted comptest value is: 60.76
[3/22/2005 9:28:44 PM] Running first pass.
[3/22/2005 9:28:44 PM] Writing the following script to D:\StarGate_1\agk_tmp\101_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\fdecimate.dll")
movie = DirectShowSource("D:\StarGate_1\1x01-Children_Of_The_Gods.avi",23.976).KillAudio()
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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 = 240
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[3/22/2005 9:44:34 PM] Duration was: 15 minutes 50 seconds
[3/22/2005 9:44:34 PM] Speed was: 146.76 fps.
[3/22/2005 9:44:34 PM] Running second pass.
[3/22/2005 9:59:08 PM] Duration was: 14 minutes 33 seconds
[3/22/2005 9:59:08 PM] Speed was: 159.64 fps.
[3/22/2005 9:59:08 PM] Job finished. Total time: 1 hour, 9 minutes 40 seconds
len0x
23rd March 2005, 12:23
Originally posted by musicnyman
you can see the source resolution was 640x480 and ended up with a 240x144 file instead, even after telling autogk to make the output file size a little bigger than the source, compensating for encoding an already compressed divx file.
If original source is very blocky and noisy then it can happen. As I said in the first post - atm no denoising is applied for AVI input.
What do you use for decoding divx3 content? You can try using ffdshow and its filters to denoise/deblock the source. Since AutoGK uses dshow input all settings for playback are applied before encoding in the application.
len0x
23rd March 2005, 12:54
So far it should fix all the issues reported here. Please have a go with it.
musicnyman
23rd March 2005, 16:23
first, i upgraded to the lastest beta version before i tried this again, even though i know nothing was changed for my problem..
i tried enconding a xvid file instead of divx and just goes in a loop.
len0x, i don't know how to change to ffdshow like you said... i'll look around on the forums, but if you could let me know, i'd appreciate it and i'll try it out.
opened the divx 3 file in gspot and it tells me it's using the divx decoer filter to decode the file...
[3/23/2005 9:19:36 AM] AutoGK 2.01b
[3/23/2005 9:19:36 AM] OS: WinXP (5.1.2600).2
[3/23/2005 9:19:36 AM] Job started.
[3/23/2005 9:19:36 AM] Input file: 1x02-The_Enemy_Within.avi
[3/23/2005 9:19:36 AM] Input codec: DivX 3 Low
[3/23/2005 9:19:36 AM] Source duration: 44mn 12s
[3/23/2005 9:19:36 AM] Output file: D:\temp\102.avi
[3/23/2005 9:19:36 AM] Output codec: XviD
[3/23/2005 9:19:36 AM] Audio: 192 Kbps
[3/23/2005 9:19:36 AM] Subtitles: none
[3/23/2005 9:19:36 AM] Format: .AVI
[3/23/2005 9:19:36 AM] Target size: 350Mb
[3/23/2005 9:19:36 AM] Custom audio settings: CBR MP3 with bitrate: 192Kbps
[3/23/2005 9:19:36 AM] Started encoding.
[3/23/2005 9:19:36 AM] Source resolution: 640x360
[3/23/2005 9:19:36 AM] Source fps: 23.976
[3/23/2005 9:19:36 AM] Output will contain 63584 frames
[3/23/2005 9:19:36 AM] Demuxing audio.
[3/23/2005 9:19:53 AM] Decoding audio.
[3/23/2005 9:20:34 AM] Normalizing audio.
[3/23/2005 9:21:28 AM] Encoding audio.
[3/23/2005 9:24:27 AM] Using bitrate spikes control.
[3/23/2005 9:24:27 AM] Audio size: 63,668,160 bytes (60.72 Mb)
[3/23/2005 9:24:27 AM] Overhead: 755,072 bytes (0.72 Mb)
[3/23/2005 9:24:27 AM] Video size: 302,578,368 bytes (288.56 Mb)
[3/23/2005 9:24:27 AM] Running compressibility test.
[3/23/2005 9:24:27 AM] Writing the following script to D:\temp\agk_tmp\102_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = DirectShowSource("D:\temp\1x02-The_Enemy_Within.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
SelectRangeEvery(300,15)
===========================================================
[3/23/2005 9:30:21 AM] Duration was: 5 minutes 53 seconds
[3/23/2005 9:30:21 AM] Speed was: 9.01 fps.
[3/23/2005 9:30:21 AM] Compressibility percentage is: 7.32
[3/23/2005 9:30:21 AM] Using softer resizer.
[3/23/2005 9:30:21 AM] Chosen resolution is: 224x128 ( AR: 1.75 )
[3/23/2005 9:30:21 AM] Predicted comptest value is: 64.16
[3/23/2005 9:30:21 AM] Running first pass.
[3/23/2005 9:30:21 AM] Writing the following script to D:\temp\agk_tmp\102_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = DirectShowSource("D:\temp\1x02-The_Enemy_Within.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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 = 224
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[3/23/2005 9:36:39 AM] Duration was: 6 minutes 18 seconds
[3/23/2005 9:36:39 AM] Speed was: 167.91 fps.
[3/23/2005 9:36:39 AM] Warning! Found different number of frames: 63603
[3/23/2005 9:36:39 AM] Audio size: 63,668,160 bytes (60.72 Mb)
[3/23/2005 9:36:39 AM] Overhead: 755,328 bytes (0.72 Mb)
[3/23/2005 9:36:39 AM] Video size: 302,578,112 bytes (288.56 Mb)
[3/23/2005 9:36:39 AM] Expected quality of first pass size: 338.99
[3/23/2005 9:36:39 AM] Trying to adjust settings.
[3/23/2005 9:36:39 AM] Chosen resolution is: 480x272 ( AR: 1.76 )
[3/23/2005 9:36:39 AM] Predicted comptest value is: 74.45
[3/23/2005 9:36:39 AM] Re-running first pass.
[3/23/2005 9:36:39 AM] Writing the following script to D:\temp\agk_tmp\102_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = DirectShowSource("D:\temp\1x02-The_Enemy_Within.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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 = 480
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[3/23/2005 9:49:08 AM] Duration was: 12 minutes 28 seconds
[3/23/2005 9:49:08 AM] Speed was: 84.98 fps.
[3/23/2005 9:49:08 AM] Expected quality of first pass size: 28.50
[3/23/2005 9:49:08 AM] Trying to adjust settings.
[3/23/2005 9:49:08 AM] Chosen resolution is: 288x176 ( AR: 1.64 )
[3/23/2005 9:49:08 AM] Predicted comptest value is: 73.40
[3/23/2005 9:49:08 AM] Re-running first pass.
[3/23/2005 9:49:08 AM] Writing the following script to D:\temp\agk_tmp\102_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = DirectShowSource("D:\temp\1x02-The_Enemy_Within.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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 = 288
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[3/23/2005 9:56:23 AM] Duration was: 7 minutes 15 seconds
[3/23/2005 9:56:23 AM] Speed was: 146.06 fps.
[3/23/2005 9:56:24 AM] Expected quality of first pass size: 228.15
[3/23/2005 9:56:24 AM] Trying to adjust settings.
[3/23/2005 9:56:24 AM] Chosen resolution is: 528x304 ( AR: 1.74 )
[3/23/2005 9:56:24 AM] Predicted comptest value is: 72.05
[3/23/2005 9:56:24 AM] Re-running first pass.
[3/23/2005 9:56:24 AM] Writing the following script to D:\temp\agk_tmp\102_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = DirectShowSource("D:\temp\1x02-The_Enemy_Within.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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 = 528
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[3/23/2005 10:10:22 AM] Duration was: 13 minutes 58 seconds
[3/23/2005 10:10:22 AM] Speed was: 75.89 fps.
[3/23/2005 10:10:22 AM] Expected quality of first pass size: 18.04
[3/23/2005 10:10:22 AM] Trying to adjust settings.
[3/23/2005 10:10:22 AM] Chosen resolution is: 256x144 ( AR: 1.78 )
[3/23/2005 10:10:22 AM] Predicted comptest value is: 78.57
[3/23/2005 10:10:22 AM] Re-running first pass.
[3/23/2005 10:10:22 AM] Writing the following script to D:\temp\agk_tmp\102_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = DirectShowSource("D:\temp\1x02-The_Enemy_Within.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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 = 256
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[3/23/2005 10:17:00 AM] Duration was: 6 minutes 38 seconds
[3/23/2005 10:17:00 AM] Speed was: 159.78 fps.
[3/23/2005 10:17:00 AM] Expected quality of first pass size: 274.90
[3/23/2005 10:17:00 AM] Trying to adjust settings.
[3/23/2005 10:17:00 AM] Chosen resolution is: 496x288 ( AR: 1.72 )
[3/23/2005 10:17:00 AM] Predicted comptest value is: 70.94
[3/23/2005 10:17:00 AM] Re-running first pass.
[3/23/2005 10:17:00 AM] Writing the following script to D:\temp\agk_tmp\102_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")
movie = DirectShowSource("D:\temp\1x02-The_Enemy_Within.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
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 = 496
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
*************************************
EXCEPTION: Job aborted
*************************************
[3/23/2005 10:20:00 AM] Job finished. Total time: 1 hour, 0 minutes 23 seconds
len0x
23rd March 2005, 16:37
lol This is a fantastic log! Its not looping in a sense that it has repeated values. So AutoGK does nothing wrong - its just trying to make a good quality encode. Unfortunately as resolution is changing drasticly compressibility is chaning in non linear was that current AutoGK mechanism cannot deal with. Basically
- you probably have very blocky/noisy source = low compresibility
- when heavily reducing resolution compressibility raises in non-linear way because blocks are removed by resizing algorithm (and details in general)
- when heavily increasing resolution compressibility drops in non-linear way again (and block appear back)
So nothing can be done by AutoGK here (at least I can't think of anything I can do inside to tweak this). Suggestions would be:
- increase target size
- use fixed width (~ 384)
- use ffdshow's denoising/deblocking filters (I personally never used them so I can't help you).
P.S. if you're using DivX filter then try to experiment with decodec settings (i.e. turn post processing to FULL and switch off FILM effect)
Cocophone
23rd March 2005, 20:42
Ok... I downloaded and installed 2.01
Here's the error message I get.
Also, I select 700mb file size and the divx file ended up only 1,988 kb. My source file is 43mn and 19 sec in duration. Not 3mn 26s
Here is my log file
[3/23/2005 7:12:20 AM] AutoGK 2.01b
[3/23/2005 7:12:20 AM] OS: Win2000 (5.0.2195).2
[3/23/2005 7:12:20 AM] Job started.
[3/23/2005 7:12:20 AM] Input file: EDITED 24 8-9pm.avi
[3/23/2005 7:12:20 AM] Input codec: Huffman
[3/23/2005 7:12:20 AM] Source duration: 3mn 26s
[3/23/2005 7:12:20 AM] Output file: D:\EDITED 24 8-9pm_agk.avi
[3/23/2005 7:12:20 AM] Output codec: DivX
[3/23/2005 7:12:20 AM] Audio: 1536 Kbps
[3/23/2005 7:12:20 AM] Subtitles: none
[3/23/2005 7:12:20 AM] Format: .DIVX
[3/23/2005 7:12:20 AM] Target size: 700Mb
[3/23/2005 7:12:20 AM] Custom audio settings: VBR MP3 with average bitrate: 160Kbps
[3/23/2005 7:12:20 AM] Started encoding.
[3/23/2005 7:12:20 AM] Source resolution: 640x480
[3/23/2005 7:12:20 AM] Source fps: 29.97
[3/23/2005 7:12:20 AM] Output will contain 6174 frames
[3/23/2005 7:12:20 AM] Analyzing source.
[3/23/2005 8:09:19 AM] Source is considered to be progressive.
[3/23/2005 8:09:19 AM] Demuxing audio.
[3/23/2005 8:18:46 AM] Normalizing audio.
[3/23/2005 8:18:56 AM] Encoding audio.
[3/23/2005 8:21:57 AM] Audio size: 54,379,392 bytes (51.86 Mb)
[3/23/2005 8:21:57 AM] Overhead: 401,152 bytes (0.38 Mb)
[3/23/2005 8:21:57 AM] Video size: 679,222,656 bytes (647.76 Mb)
[3/23/2005 8:21:57 AM] Target bitrate is: 26377kbps
[3/23/2005 8:21:57 AM] Running compressibility test.
[3/23/2005 9:01:52 AM] Duration was: 39 minutes 54 seconds
[3/23/2005 9:01:52 AM] Speed was: 0.85 fps.
[3/23/2005 9:01:53 AM] Compressibility percentage is: 653.70
[3/23/2005 9:01:53 AM] Switching b-frames off
[3/23/2005 9:01:53 AM] Chosen resolution is: 640x480 ( AR: 1.33 )
[3/23/2005 9:01:53 AM] Predicted comptest value is: 554.34
[3/23/2005 9:01:53 AM] Running first pass.
[3/23/2005 10:13:56 AM] Duration was: 1 hour, 12 minutes 2 seconds
[3/23/2005 10:13:56 AM] Speed was: 1.43 fps.
*************************************
EXCEPTION: Number of frames is very different from expected. Found only 77920 frames.
*************************************
[3/23/2005 10:13:56 AM] Job finished. Total time: 3 hours 1 minute, 35 seconds
====================================================
len0x
23rd March 2005, 21:18
Originally posted by Cocophone
My source file is 43mn and 19 sec in duration. Not 3mn 26s
That is the problem. Does Gspot shows correct length of input AVI? Also take command line utility MediaInfo.exe from tools dir of AutoGK and see which duration does it show?
Cocophone
24th March 2005, 02:43
GSpot had the runtime as a "?" It also said the file had a corrupt avi header. I captured the file using virtualdub with the huffy codec and then edited it and resaved it in virtualdub with huffy codec.
I tried converting the avi file to mpeg using ulead media studio and then I ran that mpeg file thru AutoGk to convert to divx. AutoGk output 2 files. One named "filename.avi" and one named "filename.divx" The filename.avi was 716,304kb and created at 1:43pm. The filename.divx was 716,296kb and created at 1:45pm
I have used previous versions of AutoGK to convert the mpeg file to divx and it only created one output file.
Thanks for the help.
Thomas Davie
24th March 2005, 05:02
Originally posted by Cocophone
I tried converting the avi file to mpeg using ulead media studio and then I ran that mpeg file thru AutoGk to convert to divx. AutoGk output 2 files. One named "filename.avi" and one named "filename.divx" The filename.avi was 716,304kb and created at 1:43pm. The filename.divx was 716,296kb and created at 1:45pm
I have used previous versions of AutoGK to convert the mpeg file to divx and it only created one output file.
Thanks for the help.
I can verify this. As of 2.0, using AutoGK (whether to convert a correctly ripped DVD to avi, or to convert an avi to another format avi) results in the creation of 2 identically named files; one an avi, and the other a divx. I can post logs if desired.
Tom
Filbert
24th March 2005, 09:04
Originally posted by len0x
That is the problem. Does Gspot shows correct length of input AVI? Also take command line utility MediaInfo.exe from tools dir of AutoGK and see which duration does it show?
I have the same problem, capture of TV-material on DV (Sony-DV Codec). The conversion stops after first pass, length is recognized incorrect (should be 1:28:43, not 9mn 31s). Source Size is 18,4GB. Maybe this is the problem as the Huffmann Codec also produces big filesizes, which might be a problem for AGK?
GSpot 252b1 shows the correct length (old stable version didn't)
MediaInfo 0512 doesn't show correct length (shows 9:31 as AGK)
[23.03.2005 23:00:17] AutoGK 2.01b
[23.03.2005 23:00:17] OS: Win2000 (5.0.2195).2
[23.03.2005 23:00:17] Job started.
[23.03.2005 23:00:17] Input file: Attitude.avi
[23.03.2005 23:00:17] Input codec: dvsd
[23.03.2005 23:00:17] Source duration: 9mn 31s
[23.03.2005 23:00:17] Output file: G:\Attitude_agk.avi
[23.03.2005 23:00:17] Output codec: XviD
[23.03.2005 23:00:17] Audio: 1024 Kbps
[23.03.2005 23:00:17] Subtitles: none
[23.03.2005 23:00:17] Format: .AVI
[23.03.2005 23:00:17] Target size: 1493Mb
[23.03.2005 23:00:17] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[23.03.2005 23:00:17] Started encoding.
[23.03.2005 23:00:17] Source resolution: 720x576
[23.03.2005 23:00:17] Source fps: 25
[23.03.2005 23:00:17] Output will contain 14275 frames
[23.03.2005 23:00:17] Analyzing source.
[23.03.2005 23:39:51] Source is considered to be interlaced.
[23.03.2005 23:39:51] Demuxing audio.
[24.03.2005 00:02:57] Normalizing audio.
[24.03.2005 00:03:35] Encoding audio.
[24.03.2005 00:08:24] Using bitrate spikes control.
[24.03.2005 00:08:24] Picking up autocrop parameters.
[24.03.2005 00:08:24] Audio size: 85,182,912 bytes (81.24 Mb)
[24.03.2005 00:08:24] Overhead: 169,472 bytes (0.16 Mb)
[24.03.2005 00:08:24] Video size: 1,480,171,584 bytes (1411.60 Mb)
[24.03.2005 00:08:24] Running compressibility test.
[24.03.2005 00:46:12] Duration was: 37 minutes 47 seconds
[24.03.2005 00:46:12] Speed was: 0,94 fps.
[24.03.2005 00:46:14] Compressibility percentage is: 375,63
[24.03.2005 00:46:14] Switching b-frames off
[24.03.2005 00:46:14] Chosen resolution is: 720x400 ( AR: 1,80 )
[24.03.2005 00:46:14] Predicted comptest value is: 262,68
[24.03.2005 00:46:14] Running first pass.
[24.03.2005 02:31:11] Duration was: 1 hour, 44 minutes 57 seconds
[24.03.2005 02:31:11] Speed was: 2,27 fps.
*************************************
EXCEPTION: Number of frames is very different from expected. Found only 133096 frames.
*************************************
[24.03.2005 02:31:12] Job finished. Total time: 3 hours 30 minutes 54 seconds
====================================================
len0x
24th March 2005, 11:47
Originally posted by Cocophone
AutoGk output 2 files. One named "filename.avi" and one named "filename.divx"
You must have selected .DIVX format? Coz AutoGK is muxing AVI into new DivX media format then. AVI file is not deleted for the time being for debug purposes.
len0x
24th March 2005, 11:49
Originally posted by Filbert
GSpot 252b1 shows the correct length (old stable version didn't)
MediaInfo 0512 doesn't show correct length (shows 9:31 as AGK)
I have a real problem here then. Atm I don't plan to write my own AVI parser, so I have to rely on MediaInfo (of if anyone knows another CLI parser) that has to give me correct length...
Filbert
24th March 2005, 12:07
Originally posted by len0x
I have a real problem here then. Atm I don't plan to write my own AVI parser, so I have to rely on MediaInfo (of if anyone knows another CLI parser) that has to give me correct length...
Just did another test, if I cut the AVI below 9:31 then AGK does correct conversion (which is not a real help ;-) ). I will look if I can find some other parser that gives correct info, and/or report this to MediaInfo...
Thanx for your effort...
Taurus
24th March 2005, 13:56
http://img213.exs.cx/img213/2097/error1cp.png (http://www.imageshack.us)
This is what you get, when using ffdshow (libavcodec) for decoding huffyuv stuff.
So make sure you disable libavcodec in codecs settings before encoding with AutoGk, or you get grey hair, scurvy, etc.....
Cheers
Taurus
Thomas Davie
24th March 2005, 18:59
Originally posted by len0x
You must have selected .DIVX format? Coz AutoGK is muxing AVI into new DivX media format then. AVI file is not deleted for the time being for debug purposes.
This happened to me when selecting AVI.
regards
Tom
len0x
24th March 2005, 19:47
:logfile: then
Frisco
24th March 2005, 21:41
Hi len0x
Thank for AutoGK
When I use File input, AutoGK don't AutoCrop, like in DVD input.
Hi Frisco
4.6 Can I manually crop video?
- Sort of. Starting with version 1.86 its possible via ".autocrop" hidden option (CTRL-F9). Just set threshold to 0 and then use "Force cropping of" option.
OK Frisco
len0x
24th March 2005, 22:48
as I said in the first post of this thread - autocrop is disabled for AVI input by default. YOu can set threshold back to 34 using hidden options and it'll be ok then.
chilled
25th March 2005, 14:13
about the mp3 reencoding feature request, maybe you could make it reencode if the user selects (in advanced mp3 tab) less bitrate than the source has, keeping it as is if user selected same or higher bitrate than the original. If you think this can be a bit confusing you can introduce a typical "keep original audio" tick button...
Taurus
25th March 2005, 18:07
FFDShow terribly burks encoding with AutoGk on my side.
x264, divx3, huffyuv all got messed up with ffdshow enabled.
Xvid works fine with ffdshow enabled. I guess Divx5 too, couldn't test it, no clip available.
For h.264 (x264)the nero decoder works fine, but no sound cos of missing aac decoding.
Divx3 working with it's own decoder and divx5.2, but image vertically flipped. Sound (mp3)ok.
huffyuv ok with systems decoder: AviDecompressor(HFYU) and color space converter.
So make sure ffdshow is disabled for the mentioned Codecs and make sure processing for raw video is disabled too.
Otherwise you will see the warning I posted a few posts above.
Cheers
Taurus
P.S.: Latest FFDShow, tested on two machines.
Installing, uninstalling did not change anything.
So many Codecs, all in the Avi Container, brrrr..
@ len0x, I wish you a golden hand, and maybe mpeg-1 would be a lot easyer to handle...;) :D
Analyzing stage is taking forever(longer as encoding to Xvid) on some Divx3 and H264 clips.
Cocophone
25th March 2005, 19:12
len0x,
I'm having the problem with the time length of my avi file.
Ok... I downloaded and installed 2.01 Here's the error message I get. Also, I select 700mb file size and the divx file ended up only 1,988 kb. My source file is 43mn and 19 sec in duration. Not 3mn 26s
Gspot tells me I have a corrupt header and shows the wrong time length for the avi file. I read elsewhere that GSpot sometime incorrectly does this.
Would it have anything to do with the size of my avi source file? Its usually between 28GB and 32GB and is usually about 42 minutes long.
len0x
25th March 2005, 22:19
Originally posted by Cocophone
I'm having the problem with the time length of my avi file.
We already established that tools that are used to detect that have bugs (yes, it can be size problem indeed) - I have very small chance of parsing AVI correctly myself since tools that are meant to do only that are failing.
forsakenlad
27th March 2005, 10:47
Hey len0x, Just curios. Can AutoGK AVI Input currently process Vfapi Frameserver AVI's? I am at school now, I will check it when I come home and give a detailed report here...
forsakenlad
27th March 2005, 12:36
Let me answer my own question, using Vfapi Converter and a basic avs script I was able to convert high-definiton(wmv) video with AutoGK! Thank you for the great tool, I think these new features will be very useful for newbies in the future... :)
len0x
27th March 2005, 15:05
Can those having problems with duration detection download a utility called AVIMaster from here (http://www.thozie.de/avimaster) and post here parsing log produced by it (only header though, i.e. info about "AVI Header List" and "AVI Stream List #1")
P.S. use command line like this: "AVIMaster.exe aviname.avi > output.txt"
Filbert
27th March 2005, 21:02
Originally posted by len0x
Can those having problems with duration detection download a utility called AVIMaster from here (http://www.thozie.de/avimaster) and post here parsing log produced by it (only header though, i.e. info about "AVI Header List" and "AVI Stream List #1")
Still seems to show wrong length in "'avih' (56): AVI Main Header", but gives correct length in "'strh' (56): AVI StreamHeader":
AVIMaster 1.2.1 (c)2004-2005 by thozie productions, Thomas Ziegler, München
Contact and Bug Reports: www.thozie.de/avimaster, avimaster@thozie.de
P:\Attitude.avi
Reading 'Attitude.avi' (19852003328)
'RIFF' (2130939156) 'AVI ': RIFF AVI Chunk, Segment #1
'LIST' (8816) 'hdrl': AVI Header List
'avih' (56): AVI Main Header
00 microsec/Frame: 40000
04 Max Bytes/sec: 0
08 Padding Granularity: 0
12 Flags: 0x00000110
+ HasIndex
+ IsInterleaved
16 Total Frames: 14285
20 Initial Frames: 0
24 Streams: 2
28 Suggested Buffer Size: 0
32 Height: 576
36 Width: 720
-> Length: 0:09:31:10 (25.00 fps, PAL)
-> Video Frame Size: PAL-DVD 5:4
'LIST' (4244) 'strl': AVI Stream List #1
'strh' (56): AVI StreamHeader
00 Type: 'vids' DV Type 2 (redundant 'auds' stream, VfW compatible)
04 Handler: 0x64737664 'dvsd' (DV Standard Definition 25Mb/s)
08 Flags: 0x00000000
12 Priority: 0
14 Language: 0
16 InitalFrames: 0
20 Scale: 1
24 Rate: 25
28 Start: 0
32 Length: 133096
44 SampleSize: 0 (Variable)
48 Frame (l t r b): 0 0 720 576
-> Length: 1:28:43:21 (25.00 fps, PAL)
*** Warning: AVIMainHeader Length 0:09:31:10 (25.00 fps, PAL)
len0x
27th March 2005, 21:55
We're getting somewhere! If everyone else that has this issue can confirm that stream info always has correct length (as opposed to AVI header) then I know how to fix that in MediaInfo sources. Unfortunately I only have lib sources and not CLI, so I would have to contact the author (who can benefit from my patch anyway).
grindlestone
28th March 2005, 04:09
I hope I did this right and hope it helps
=========================================
E:\UC.avi
Reading 'UC.avi' (15754768384)
'RIFF' (2131046880) 'AVI ': RIFF AVI Chunk, Segment #1
'LIST' (8844) 'hdrl': AVI Header List
'avih' (56): AVI Main Header
00 microsec/Frame: 40000
04 Max Bytes/sec: 0
08 Padding Granularity: 0
12 Flags: 0x00000110
+ HasIndex
+ IsInterleaved
16 Total Frames: 20955
20 Initial Frames: 0
24 Streams: 2
28 Suggested Buffer Size: 0
32 Height: 576
36 Width: 720
-> Length: 0:13:58:05 (25.00 fps, PAL) [[INCORRECT LENGTH]]
-> Video Frame Size: PAL-DVD 5:4
'LIST' (4272) 'strl': AVI Stream List #1
'strh' (56): AVI StreamHeader
00 Type: 'vids'
04 Handler: 0x47504a4d 'MJPG' (Motion JPEG)
08 Flags: 0x00000000
12 Priority: 0
14 Language: 0
16 InitalFrames: 0
20 Scale: 1
24 Rate: 25
28 Start: 3
32 Length: 139564
44 SampleSize: 0 (Variable)
48 Frame (l t r b): 0 0 720 576
-> Length: 1:33:02:14 (25.00 fps, PAL) [[CORRECT LENGTH]]
*** Warning: AVIMainHeader Length 0:13:58:05 (25.00 fps, PAL) !
len0x
28th March 2005, 11:57
So far so good. Anyone else ?
grindlestone
28th March 2005, 13:07
Will you gain any benefit from me testing multiple files in my collection and posting the results?
len0x
28th March 2005, 20:11
Yeah, but the only result I want at this point is a proof that stream info always contains correct length, that's it. I already hacked mediainfo to produce desired info.
woah!
28th March 2005, 22:57
i have an avi which gives this error in the GK log:
Warning! Found different number of frames: 31404
but the end result seems to be playing ok.
AVIMaster 1.2.1 (c)2004-2005 by thozie productions, Thomas Ziegler, München
Contact and Bug Reports: www.thozie.de/avimaster, avimaster@thozie.de
E:\4.avi
Reading '4.avi' (183246848)
'RIFF' (183246712) 'AVI ': RIFF AVI Chunk, Segment #1
'LIST' (8838) 'hdrl': AVI Header List
'avih' (56): AVI Main Header
00 microsec/Frame: 41708
04 Max Bytes/sec: 0
08 Padding Granularity: 0
12 Flags: 0x00000110
+ HasIndex
+ IsInterleaved
16 Total Frames: 31405
20 Initial Frames: 0
24 Streams: 2
28 Suggested Buffer Size: 0
32 Height: 384
36 Width: 512
-> Length: 0:21:49:20 (23.98 fps)
-> Video Frame Size: unknown
'LIST' (4248) 'strl': AVI Stream List #1
'strh' (56): AVI StreamHeader
00 Type: 'vids'
04 Handler: 0x64697678 'xvid'
08 Flags: 0x00000000
12 Priority: 0
14 Language: 0
16 InitalFrames: 0
20 Scale: 1001
24 Rate: 24000
28 Start: 0
32 Length: 31405
44 SampleSize: 0 (Variable)
48 Frame (l t r b): 0 0 512 384
-> Length: 0:21:49:20 (23.98 fps)
'strf' (40): AVI StreamFormat
00 Size: 40
04 Width: 512
08 Height: 384
12 Planes: 1
14 BitCount: 12
16 Compression: 0x44495658 'XVID'
20 SizeImage: 1179648
24 XPelsPerMeter: 0
28 YPelsPerMeter: 0
32 ColorsUsed: 0
36 ColorsImportant: 0
'JUNK' (4124): RIFF Junk
'LIST' (4238) 'strl': AVI Stream List #2
'strh' (56): AVI StreamHeader
00 Type: 'auds'
04 Handler: 0x00000000 ' ' (undefined)
08 Flags: 0x00000000
12 Priority: 0
14 Language: 0
16 InitalFrames: 1
20 Scale: 1152
24 Rate: 48000
28 Start: 0
32 Length: 54576
44 SampleSize: 0 (Variable)
-> Length: 0:21:49:34 (41.67 fps)
'strf' (30): AVI StreamFormat
00 FormatTag: 85 (MP3)
02 Channels: 2
04 Samples/sec (fps): 48000
08 Avg Bytes/sec: 15561
12 BlockAlign: 1152
*** Info: Presumably variable Bitrate MP3.
14 Bits/Sample: 0
16 Size: 12
18 Id: 1 (MPEG)
20 Flags: 0x00000002 (Padding Off)
24 BlockSize: 373
26 FramesPerBlock: 1
28 CodecDelay: 0
'JUNK' (4124): RIFF Junk
'LIST' (260) 'odml': AVI OpenDML 1.02 Header List
'dmlh' (248): AVI ODML Header
Grand Frames: 31405
'LIST' (24) 'INFO': RIFF Info List
'ISFT' (11)
"VirtualDub"
'JUNK' (1342): RIFF Junk
'LIST' (181860768) 'movi': AVI movi List
'01wb' (384): 'movi' Entry #1
'01wb' (384): 'movi' Entry #2
'01wb' (384): 'movi' Entry #3
'01wb' (336): 'movi' Entry #4
'01wb' (384): 'movi' Entry #5
'01wb' (336): 'movi' Entry #6
'01wb' (384): 'movi' Entry #7
'01wb' (336): 'movi' Entry #8
'01wb' (384): 'movi' Entry #9
'01wb' (336): 'movi' Entry #10
'01wb' (336): 'movi' Entry #11
'01wb' (384): 'movi' Entry #12
'01wb' (336): 'movi' Entry #13
'01wb' (384): 'movi' Entry #14
'01wb' (336): 'movi' Entry #15
'00dc' (114): 'movi' Entry #85981
Assign Index to 'movi'-Entries
'idx1' (1375696): AVI Old Index Chunk
'01wb' (16): 'idx1' Entry #1
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 4
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #2
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 396
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #3
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 788
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #4
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 1180
12 ChunkLength: 336
'01wb' (16): 'idx1' Entry #5
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 1524
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #6
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 1916
12 ChunkLength: 336
'01wb' (16): 'idx1' Entry #7
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 2260
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #8
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 2652
12 ChunkLength: 336
'01wb' (16): 'idx1' Entry #9
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 2996
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #10
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 3388
12 ChunkLength: 336
'01wb' (16): 'idx1' Entry #11
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 3732
12 ChunkLength: 336
'01wb' (16): 'idx1' Entry #12
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 4076
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #13
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 4468
12 ChunkLength: 336
'01wb' (16): 'idx1' Entry #14
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 4812
12 ChunkLength: 384
'01wb' (16): 'idx1' Entry #15
00 ckid: '01wb'
04 Flags: 0x00000010
+ KeyFrame
08 ChunkOffset: 5204
12 ChunkLength: 336
'00dc' (16): 'idx1' Entry #85981
00 ckid: '00dc'
04 Flags: 0x00000000
08 ChunkOffset: 181860646
12 ChunkLength: 114
Assign Index to 'movi'-Entries
*** Error: File Size mismatch (8)!
Statistics
----- AVIStreamHeader #0 'vids'
*** Error: Initial Frames detected 20, AVIStreamHeader Initial Frames: 0!
*** Warning: No 'indx'-Entries detected, but ODML-Header found!
*** Info: Chunks detected, 'Idx1'-Index (KeyFrames) and ODML-Index Entries
*** '00dc': 31405 (DF: 0), 'Idx1': 31405 (Key: 318), ODML: 0
----- AVIStreamHeader #1 'auds'
*** Error: Initial Frames detected 0, AVIStreamHeader Initial Frames: 1!
*** Warning: No 'indx'-Entries detected, but ODML-Header found!
*** Info: Chunks detected, 'Idx1'-Index (KeyFrames) and ODML-Index Entries
*** '01wb': 54576 (DF: 0), 'Idx1': 54576 (Key: 54576), ODML: 0
*** Stream Payload Total Size in Bytes: 20382720
*** Error: Mismatching 'strh' Length: 54576 * Scale: 1152 = 62871552!
Total Files processed: 1, Total Size: 183246840 (174MB), Elapsed Time [s]: 4.58
Filbert
29th March 2005, 08:09
Tried another "big" (in terms of AVI-size) DV-AVI (this time encoded from MPEG DVB-S Stream with Panasonic DV-Codec). AGK and Media Info show wrong length, AVI-Master gives correct length in AVI StreamHeader.
[Edit] same with a "big" fresh encoded Huffyuv-AVI, AVI StreamHeader is correct, AVI Main Header is wrong...
AVIMaster 1.2.1 (c)2004-2005 by thozie productions, Thomas Ziegler, München
Contact and Bug Reports: www.thozie.de/avimaster, avimaster@thozie.de
I:\republik_test_avi.avi
Reading 'republik_test_avi.avi' (9771169792)
'RIFF' (2130822580) 'AVI ': RIFF AVI Chunk, Segment #1
'LIST' (8824) 'hdrl': AVI Header List
'avih' (56): AVI Main Header
00 microsec/Frame: 40000
04 Max Bytes/sec: 0
08 Padding Granularity: 0
12 Flags: 0x00000110
+ HasIndex
+ IsInterleaved
16 Total Frames: 14043
20 Initial Frames: 0
24 Streams: 2
28 Suggested Buffer Size: 0
32 Height: 576
36 Width: 720
-> Length: 0:09:21:18 (25.00 fps, PAL)
-> Video Frame Size: PAL-DVD 5:4
'LIST' (4252) 'strl': AVI Stream List #1
'strh' (56): AVI StreamHeader
00 Type: 'vids' DV Type 2 (redundant 'auds' stream, VfW compatible)
04 Handler: 0x64737664 'dvsd' (DV Standard Definition 25Mb/s)
08 Flags: 0x00000000
12 Priority: 0
14 Language: 0
16 InitalFrames: 0
20 Scale: 1
24 Rate: 25
28 Start: 0
32 Length: 64403
44 SampleSize: 0 (Variable)
48 Frame (l t r b): 0 0 720 576
-> Length: 0:42:56:03 (25.00 fps, PAL)
*** Warning: AVIMainHeader Length 0:09:21:18 (25.00 fps, PAL)
!
grindlestone
30th March 2005, 10:11
Conclusion of tests so far:
- Xvids produced from DVD source in Autogk report right in avimaster.
- Xvids produced from mjpeg captures in VDub report right.
- Mjpeg captures (picvideo)(which I'd like to encode in AGK) report wrong.
- Captures straight to Xvid report wrong.
==========================
Test One:
E:\Movie - Broken Journey.avi
**File is Xvid produced in VirtualDub from mgpeg capture**
AVI Header List
-> Length: 1:25:13:17 (25.00 fps, PAL)
AVI StreamHeader
-> Length: 1:25:13:10807 (16000.00 fps)
======================================
Test Two:
E:\Movie - Chariots of Fire.avi
**File is Xvid produced with AutoGK from DVD**
AVI Header List
-> Length: 1:58:07:05 (25.00 fps, PAL)
AVI StreamHeader
-> Length: 1:58:41:07 (25.00 fps, PAL)
======================================
Test Three
E:\Movie - El Dorado.avi
**File is Xvid produced with AutoGK from DVD**
AVI Header List
-> Length: 2:01:17:14 (25.00 fps, PAL)
AVI StreamHeader
-> Length: 2:01:17:14 (25.00 fps, PAL)
======================================
Test Four
E:\Movie - Golden SalamanderUC.avi
**File is a mjpeg capture from analogue input**
AVI Header List
-> Length: 0:13:58:05 (25.00 fps, PAL)
AVI StreamHeader
-> Length: 1:33:02:14 (25.00 fps, PAL)
***Very Wrong***
======================================
Test Five
E:\Movie - Sub Down (TV).avi
**File is an analogue capture captured straight to Xvid **
AVI Header List
-> Length: 1:08:48:05 (25.00 fps, PAL)
AVI StreamHeader
-> Length: 1:22:48:18 (25.00 fps, PAL)
***Quite wrong**
======================================
len0x
5th April 2005, 16:15
Check out new 2.02 version that should solve duration problems.
grindlestone
6th April 2005, 06:14
OK, just tested it on a 65 min avi. Worked great! I'll try some other stuff overnight tonight.
Thanks!
Cocophone
7th April 2005, 06:37
I had success with a file about 45 minutes long.
But a file that was 1 hour 37 minutes ended up without audio.
here is my log file
[4/6/2005 4:06:37 PM] AutoGK 2.02b
[4/6/2005 4:06:37 PM] OS: Win2000 (5.0.2195).2
[4/6/2005 4:06:37 PM] Job started.
[4/6/2005 4:06:37 PM] Input file: EDITED leftofdial.avi
[4/6/2005 4:06:37 PM] Input codec: Huffman Lossless Codec
[4/6/2005 4:06:37 PM] Source duration: 1h 37mn 40s 179ms
[4/6/2005 4:06:37 PM] Output file: D:\EDITED leftofdial_agk.avi
[4/6/2005 4:06:37 PM] Output codec: DivX
[4/6/2005 4:06:37 PM] Audio: 1536 Kbps PCM 2ch
[4/6/2005 4:06:37 PM] Subtitles: none
[4/6/2005 4:06:37 PM] Format: .AVI
[4/6/2005 4:06:37 PM] Target size: 1120Mb
[4/6/2005 4:06:37 PM] Custom audio settings: VBR MP3 with average bitrate: 192Kbps
[4/6/2005 4:06:37 PM] Started encoding.
[4/6/2005 4:06:37 PM] Source resolution: 640x480
[4/6/2005 4:06:37 PM] Source fps: 29.97
[4/6/2005 4:06:37 PM] Output will contain 175630 frames
[4/6/2005 4:06:37 PM] Analyzing source.
[4/6/2005 4:06:42 PM] Source has percentage of interlacing in motion areas: 0.00
[4/6/2005 4:06:42 PM] Source has percentage of telecined patterns: 0.00
[4/6/2005 4:06:42 PM] Source has percentage of progressive patterns: 0.00
[4/6/2005 4:06:42 PM] Source has percentage of interlaced patterns: 0.00
[4/6/2005 4:06:42 PM] Source is considered to be progressive.
[4/6/2005 4:06:42 PM] Demuxing audio.
[4/6/2005 4:06:43 PM] Normalizing audio.
[4/6/2005 4:06:43 PM] Encoding audio.
[4/6/2005 4:06:43 PM] Audio size: 625 bytes (0.00 Mb)
[4/6/2005 4:06:43 PM] Overhead: 11,331,072 bytes (10.81 Mb)
[4/6/2005 4:06:43 PM] Video size: 1,163,073,423 bytes (1109.19 Mb)
[4/6/2005 4:06:43 PM] Target bitrate is: 1588kbps
[4/6/2005 4:06:43 PM] Running compressibility test.
[4/6/2005 4:06:43 PM] Writing the following script to D:\agk_tmp\EDITED leftofdial_agk_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 = DirectShowSource("D:\\EDITED leftofdial.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[4/6/2005 4:19:42 PM] Duration was: 12 minutes 59 seconds
[4/6/2005 4:19:42 PM] Speed was: 11.27 fps.
[4/6/2005 4:19:43 PM] Compressibility percentage is: 24.56
[4/6/2005 4:19:43 PM] Using softer resizer.
[4/6/2005 4:19:43 PM] Chosen resolution is: 416x320 ( AR: 1.30 )
[4/6/2005 4:19:43 PM] Predicted comptest value is: 60.82
[4/6/2005 4:19:43 PM] Running first pass.
[4/6/2005 4:19:43 PM] Writing the following script to D:\agk_tmp\EDITED leftofdial_agk_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 = DirectShowSource("D:\\EDITED leftofdial.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 416
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[4/6/2005 6:20:53 PM] Duration was: 2 hours 1 minute, 10 seconds
[4/6/2005 6:20:53 PM] Speed was: 24.16 fps.
[4/6/2005 6:20:53 PM] Running second pass.
[4/6/2005 8:21:50 PM] Duration was: 2 hours 0 minutes 56 seconds
[4/6/2005 8:21:50 PM] Speed was: 24.20 fps.
[4/6/2005 8:21:50 PM] Job finished. Total time: 4 hours 15 minutes 12 seconds
Filbert
7th April 2005, 07:22
18.4GB DV AVI (1h:28m) converted ok now. Thanx len0x :)
len0x
7th April 2005, 10:41
Originally posted by Cocophone
But a file that was 1 hour 37 minutes ended up without audio.
Try converting audio manually via LAME and see what the error is.
Cocophone
7th April 2005, 16:41
I used Virtualdub to save as a wav and then use this command with lame:
lame --abr 192 d:\leftofdial.wav and d:\leftofdial.mp3
Lame encode the file without any errors.
I'm going to try again with Autogk
thanks for the help
len0x
7th April 2005, 18:30
try this options (that AutoGK is using): -h --alt-preset 192
Cocophone
7th April 2005, 21:00
It was successful using lame -h --alt-preset 192
here's the output, and the mp3 audio plays using zoom player
LAME version 3.96.1 (http://lame.sourceforge.net/)
CPU features: MMX (ASM used), 3DNow! (ASM used), SSE
Using polyphase lowpass filter, transition band: 19548 Hz - 20129 Hz
Encoding d:\leftofdial.wav to d:\leftofdial.mp3
Encoding as 48 kHz average 192 kbps j-stereo MPEG-1 Layer III (8x) qval=2
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
244173/244176(100%)| 6:37/ 6:37| 6:37/ 6:37| 14.754x| 0:00
32 [ 1] *
40 [ 0]
48 [ 0]
56 [ 0]
64 [ 0]
80 [ 0]
96 [ 0]
112 [ 0]
128 [ 82] %
160 [ 13055] %******
192 [142401] %%%***************************************************************
224 [ 72775] %*********************************
256 [ 10930] %*****
320 [ 4932] %**
average: 205.3 kbps LR: 10486 (4.294%) MS: 233690 (95.71%)
Writing LAME Tag...done
ReplayGain: -12.3dB
Cocophone
7th April 2005, 21:03
I'm trying running the file through autogk again.
Its still running, but I looked at the log and it has a file size for the audio approx. the same size as the audio file I created manually. I have to go back to work, but I think Autogk will work this time.
Hi Len0x!
Some time ago I ripped a dvd with AutoGK. I don't remember what version I used. I have 3 standalones with DivX support and chipset MTK. In every player the movies (3 movies) played with big macroblocks.
This is the info for one of them:
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: MPEG Custom
Custom intra matrix:
8 9 10 11 12 14 16 18
9 11 12 13 15 16 18 20
10 12 14 16 17 19 21 22
11 13 16 18 20 22 24 26
12 15 17 20 23 25 28 30
14 16 19 22 25 29 34 38
16 18 21 24 28 34 46 52
18 20 22 26 30 38 52 72
Custom inter matrix:
16 16 17 17 18 19 21 23
16 17 17 18 19 20 22 24
17 17 19 20 21 23 24 27
17 18 20 22 24 25 28 32
18 19 21 24 26 29 36 40
19 20 23 25 29 40 48 52
21 22 24 28 36 48 60 64
23 24 27 32 40 52 64 106
I-VOPs: 1299 (0,79%)
P-VOPs: 81943 (50,07%)
B-VOPs: 80408 (49,13%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
Max consecutive B-VOPs: 1
As you can see, AutoGK used some custom matrice. I supposed that was the reason that my players didn't play OK.
Tonight I reencoded the movie (Avi input) and this is the info:
Packed bitstream: Yes
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
I-VOPs: 1294 (0,79%)
P-VOPs: 81923 (50,06%)
B-VOPs: 80433 (49,15%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
Max consecutive B-VOPs: 1
And this is the log:
[09.04.2005 02:38:07] AutoGK 2.02b
[09.04.2005 02:38:07] OS: WinXP (5.1.2600).2
[09.04.2005 02:38:07] Job started.
[09.04.2005 02:38:07] Input file: Shallow Hal.avi
[09.04.2005 02:38:07] Input codec: XviD
[09.04.2005 02:38:07] Source duration: 1h 49mn 6s
[09.04.2005 02:38:07] Output file: G:\Sherk\Shallow Hal\Shallow Hal_agk.avi
[09.04.2005 02:38:07] Output codec: XviD
[09.04.2005 02:38:07] Audio: 384 Kbps AC3 6ch
[09.04.2005 02:38:07] Subtitles: none
[09.04.2005 02:38:07] Format: .AVI
[09.04.2005 02:38:07] Target size: 1493Mb
[09.04.2005 02:38:07] Custom audio settings: AC3
[09.04.2005 02:38:07] Started encoding.
[09.04.2005 02:38:07] Source resolution: 672x368
[09.04.2005 02:38:07] Source fps: 25
[09.04.2005 02:38:07] Output will contain 163650 frames
[09.04.2005 02:38:07] Analyzing source.
[09.04.2005 03:03:35] Source has percentage of interlacing in motion areas: 0,00
[09.04.2005 03:03:35] Source is considered to be progressive.
[09.04.2005 03:03:35] Demuxing audio.
[09.04.2005 03:04:42] Using bitrate spikes control.
[09.04.2005 03:04:42] Audio size: 314,206,848 bytes (299.65 Mb)
[09.04.2005 03:04:42] Overhead: 1,943,296 bytes (1.85 Mb)
[09.04.2005 03:04:42] Video size: 1,249,373,824 bytes (1191.50 Mb)
[09.04.2005 03:04:42] Running compressibility test.
[09.04.2005 03:04:42] Writing the following script to G:\Sherk\Shallow Hal\agk_tmp\Shallow Hal_agk_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
movie = DirectShowSource("G:\Sherk\Shallow Hal\Shallow Hal.avi",25).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 672
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
ColorMatrix("Rec.709->Rec.601",mmx=false,hints=false)
SelectRangeEvery(300,15)
===========================================================
[09.04.2005 03:19:00] Duration was: 14 minutes 18 seconds
[09.04.2005 03:19:00] Speed was: 9,54 fps.
[09.04.2005 03:19:01] Compressibility percentage is: 80,06
[09.04.2005 03:19:01] Chosen resolution is: 672x368 ( AR: 1,83 )
[09.04.2005 03:19:01] Predicted comptest value is: 80,06
[09.04.2005 03:19:01] Running first pass.
[09.04.2005 03:19:01] Writing the following script to G:\Sherk\Shallow Hal\agk_tmp\Shallow Hal_agk_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
movie = DirectShowSource("G:\Sherk\Shallow Hal\Shallow Hal.avi",25).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 672
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
ColorMatrix("Rec.709->Rec.601",mmx=false,hints=false)
===========================================================
[09.04.2005 04:46:55] Duration was: 1 hour, 27 minutes 54 seconds
[09.04.2005 04:46:55] Speed was: 31,03 fps.
[09.04.2005 04:46:55] Expected quality of first pass size: 80,78
[09.04.2005 04:46:55] Running second pass.
[09.04.2005 06:39:18] Duration was: 1 hour, 52 minutes 22 seconds
[09.04.2005 06:39:18] Speed was: 24,27 fps.
[09.04.2005 06:39:18] Job finished. Total time: 4 hours 1 minute, 11 seconds
As you know, the Packed Bistream is not supported for most of players.
I used the latest XviD codec.
enjoy,
Mtz
Taurus
9th April 2005, 17:57
@Mtz ..a little offtopic:
You can disable packed bitstream with the MPEG4 Modifier v1.3.2 without re-encoding. But maybe you know this already ;)
Download:http://www.moitah.net/download/latest/MPEG4Modifier.zip
Latest XVid Codec: Beta or Stable Version?
Edit: The Matrix you used was the eqm_v2.matrix.
I don't think the blockiness is because of this matrix.
I've done many encodes with this matrix, no sign of blocks at reasonable bitrate.
And reencoding a blocky encode will only give you more blocks and bad quality.....
Taurus
len0x
9th April 2005, 18:16
Originally posted by Mtz
I used the latest XviD codec.
AutoGK does NOT use packed bitstream setting. However if you use latest XviD 1.1 (that you should not be using anyway) then DXN HT profile might turn this automatically on (as according to DXN certification only packed bitstream is supported by the hardware) Feel free to correct me if I'm wrong.
kamehameha
11th April 2005, 05:20
I captured several video files from my DV camera and successfully converted them to xvid. But I got stuck with one of them - for some reason AutoGK tries to open it (on second phase, I think) as a mpeg2 file - using Mpeg2Source() instead of DirectShowSource(). I tried to cut a one minute clip from that file - the convertion went fine. Now what do I do?
len0x
11th April 2005, 10:36
:logfile: from unsuccessful encode, please.
kamehameha
11th April 2005, 17:17
Error pop-up: Avisynth open failure: MPEG2Source: couldn't open source file, or obsolete D2V file (C:\MEDIA\TMP\agk_tmp\_test.avs, line 4)
AutoGK log:
[4/11/2005 8:24:27 AM] AutoGK 2.02b
[4/11/2005 8:24:27 AM] OS: WinXP (5.1.2600).2
[4/11/2005 8:24:27 AM] Job started.
[4/11/2005 8:24:27 AM] Input file: onebigpiece.avi
[4/11/2005 8:24:27 AM] Input codec: dvsd
[4/11/2005 8:24:27 AM] Source duration: 1h 1mn 33s 256ms
[4/11/2005 8:24:27 AM] Output file: C:\MEDIA\TMP\onebigpiece_agk.avi
[4/11/2005 8:24:27 AM] Output codec: XviD
[4/11/2005 8:24:27 AM] Audio: 1024 Kbps PCM 2ch
[4/11/2005 8:24:27 AM] Subtitles: none
[4/11/2005 8:24:27 AM] Format: .AVI
[4/11/2005 8:24:27 AM] Target quality: 90%
[4/11/2005 8:24:27 AM] Custom resolution settings: fixed width of 512 pixels
[4/11/2005 8:24:27 AM] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[4/11/2005 8:24:27 AM] Started encoding.
[4/11/2005 8:24:27 AM] Source resolution: 720x480
[4/11/2005 8:24:27 AM] Source fps: 29.971
[4/11/2005 8:24:27 AM] Output will contain 110691 frames
[4/11/2005 8:24:27 AM] Analyzing source.
[4/11/2005 8:24:27 AM] Writing the following script to C:\MEDIA\TMP\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\MEDIA\\TMP\\agk_tmp\\_.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\MEDIA\\TMP\\agk_tmp\\_.avi");
===========================================================
[4/11/2005 8:45:55 AM] Source has percentage of interlacing in motion areas: 100.00
[4/11/2005 8:45:55 AM] Source has percentage of telecined patterns: 6.73
[4/11/2005 8:45:55 AM] Source has percentage of progressive patterns: 0.00
[4/11/2005 8:45:55 AM] Source has percentage of interlaced patterns: 93.27
[4/11/2005 8:45:55 AM] Source is considered to be hybrid (mostly NTSC).
[4/11/2005 8:45:56 AM] Writing the following script to C:\MEDIA\TMP\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\MEDIA\\TMP\\agk_tmp\\_test.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\MEDIA\\TMP\\agk_tmp\\_test.avi");
===========================================================
[4/11/2005 8:45:56 AM] Looking for optimal hybrid thresholds.
[4/11/2005 9:08:24 AM] Found threshold of: 0.01
[4/11/2005 9:08:24 AM] Demuxing audio.
[4/11/2005 9:08:24 AM] Writing the following script to C:\MEDIA\TMP\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\MEDIA\\TMP\\onebigpiece.avi",0,0);
VirtualDub.video.SetMode(0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SaveWAV("C:\\MEDIA\\TMP\\agk_tmp\\onebigpiece_agk_track1.wav");
===========================================================
*************************************
EXCEPTION: Job aborted
*************************************
[4/11/2005 9:08:30 AM] Job finished. Total time: 44 minutes 2 seconds
_test.avs:
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
mpeg2source("C:\MEDIA\TMP\onebigpiece.avi")
SelectRangeEvery(180,18)
Trim(771,772)+Trim(1048,1049)+Trim(2080,2081)+Trim(2282,2283)+Trim(2716,2717)+Trim(2741,2742)+Trim(3327,3328)+Trim(3380,3381)+Trim(3875,3876)+Trim(3933,3934)+Trim(3958,3959)+Trim(3963,3964)+Trim(4958,4959)+Trim(5082,5083)+Trim(5104,5105)+Trim(5758,5759)+Trim(6424,6425)+Trim(8020,8021)+Trim(8529,8530)+Trim(9166,9167)
Telecide(order=0,guide=0,back=0,post=0).Decimate(cycle=2,debug=true,threshold=0.0)
crop(0,0,4,4)
len0x
11th April 2005, 17:23
Well, you're not supposed to have hybrid AVI input, so obviously that part was not tuned for AVIs. You have to enable "force deinterlace for hybrid sources" in hidden options for the time being.
kamehameha
11th April 2005, 17:26
Well, I tried that - got the same result. mpeg2source() still there :(
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
mpeg2source("C:\MEDIA\TMP\onebigpiece.avi")
SelectRangeEvery(180,18)
Trim(771,772)+Trim(1048,1049)+Trim(2080,2081)+Trim(2282,2283)+Trim(2716,2717)+Trim(2741,2742)+Trim(3327,3328)+Trim(3380,3381)+Trim(3875,3876)+Trim(3933,3934)+Trim(3958,3959)+Trim(3963,3964)+Trim(4958,4959)+Trim(5082,5083)+Trim(5104,5105)+Trim(5758,5759)+Trim(6424,6425)+Trim(8020,8021)+Trim(8529,8530)+Trim(9166,9167)
Telecide(order=0,guide=0,back=0,post=0).Decimate(cycle=2,debug=true,threshold=0.0)
crop(0,0,4,4)
Mtz
13th April 2005, 01:05
Originally posted by len0x
as according to DXN certification only packed bitstream is supported by the hardware. Feel free to correct me if I'm wrong.
The packed bistream from XviD is (was) not supported by the most standalone DivX players with MTK chipset. Only 2 or 3 players support Packed Bistream and because of this many users need to remove packed bistream using Mpeg 4 modifier as said Taurus. Let's say that is simple to remove it.
But if the movie is with Qpel and GMC (more than 1 warp) the movie must to be reencoded to play OK in this players. Because of your AutoGK, now is simple for that users who want to reencode the movies. But, the output must to be OK for their standalones.
The latest test made with the latest 2.05b beta show to me that again AutoGK used an custom matrix:
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: MPEG Custom
Custom intra matrix:
8 16 20 23 27 30 32 34
16 16 23 24 29 31 34 38
20 23 27 28 30 35 38 40
23 24 28 29 35 39 40 44
27 29 30 35 39 42 45 50
30 31 35 39 42 46 54 59
32 34 38 40 45 54 62 72
34 38 40 44 50 59 72 84
Custom inter matrix:
17 19 21 23 25 27 29 31
19 21 23 25 27 28 29 33
21 23 25 27 29 30 32 37
23 25 27 30 31 34 40 45
25 27 29 31 38 46 54 60
27 28 30 34 46 58 72 74
29 29 32 40 54 72 90 100
31 33 37 45 60 74 100 124
I-VOPs: 3 (1,05%)
P-VOPs: 147 (51,22%)
B-VOPs: 137 (47,74%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
Max consecutive B-VOPs: 1
The same movie with same settings but with AutoGK 2.02b gave me this file:
Packed bitstream: Yes
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
I-VOPs: 3 (1,05%)
P-VOPs: 144 (50,17%)
B-VOPs: 140 (48,78%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
Max consecutive B-VOPs: 1
enjoy,
Mtz
len0x
13th April 2005, 10:37
Originally posted by Mtz
The packed bistream from XviD is (was) not supported by the most standalone DivX players with MTK chipset.
Two things:
- have you actually tried encodings of XviD 1.1 beta 2 with DXN HT profile on such players? DXN was working with XviD guys to specifically design those so that its hardware compatible.
- DXN profiles are only used with "bitrate spike control" option enabled, so without it packed stream should not be enabled as AutoGK never sets that option on explicitely.
Mtz
14th April 2005, 17:01
AutoGK 2.05 Beta Video informations from Mpeg4 Modifier:
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: MPEG Custom
Custom intra matrix:
8 9 10 11 12 14 16 18
9 11 12 13 15 16 18 20
10 12 14 16 17 19 21 22
11 13 16 18 20 22 24 26
12 15 17 20 23 25 28 30
14 16 19 22 25 29 34 38
16 18 21 24 28 34 46 52
18 20 22 26 30 38 52 72
Custom inter matrix:
16 16 17 17 18 19 21 23
16 17 17 18 19 20 22 24
17 17 19 20 21 23 24 27
17 18 20 22 24 25 28 32
18 19 21 24 26 29 36 40
19 20 23 25 29 40 48 52
21 22 24 28 36 48 60 64
23 24 27 32 40 52 64 106
I-VOPs: 48 (0,79%)
P-VOPs: 6046 (99,21%)
B-VOPs: 0 (0,00%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
http://img114.echo.cx/img114/7023/autogk4fn.th.jpg (http://img114.echo.cx/my.php?image=autogk4fn.jpg)
XviD default settings DXN Home Theater profile (HT) Video informations from Mpeg4 Modifier:
Packed bitstream: Yes
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
I-VOPs: 47 (0,77%)
P-VOPs: 3054 (50,11%)
B-VOPs: 2993 (49,11%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
Max consecutive B-VOPs: 1
http://img114.echo.cx/img114/1739/xviddxnht8nw.th.jpg (http://img114.echo.cx/my.php?image=xviddxnht8nw.jpg)
Even in XviD the Packed Bistream is present, there was no problems in my player. But I think is not OK the output to contain Packed Bistream because this will confuse people. Many of them before burning CD are removing the Packed Bistream
I think the problem in AutoGK is the Custom Matrix.
enjoy,
Mtz
len0x
14th April 2005, 17:07
Originally posted by Mtz
But I think is not OK the output to contain Packed Bistream because this will confuse people.
How is that?
Originally posted by Mtz
I think the problem in AutoGK is the Custom Matrix.
Why? Custom matrixes are not supported only by ESS chipset, that why you have an option to turn them off.
Mtz
14th April 2005, 17:21
In the latest XviD codec I pressed first "Default settings". Than I choosed DXN-HT profile. After that I unchecked the "Packed Bistream" option. When analizing the output with Gspot and Mpeg4 Modifier, both of them reported "Packed Bistream". But this file played OK in my DivX player.
The test reported in my previous post was made in only one DivX player (which is good for me) and the movie encoded with AutoGK gave me that ugly picture.
If you want I can test the same files in other 6 standalone divx players. But I think many people have players like mine.
enjoy,
Mtz
len0x
14th April 2005, 17:24
What is your player?
Have you tried encoding with ESS option on?
Cocophone
15th April 2005, 19:47
I wanted to make sure I fully understood the process of what AutoGk is doing in the AVI input.
I'm recording the TV program on to my Dish Network PVR. If I want to save the TV show I play the TV show on the PVR capturing in my computer using a happauge capture card using the huffy codec to avi. Then using virtualdub I edit out the commercials. I then save the edited file using direct stream for video and audio. I load the file into AutoGk and it analyses the file and says its progressive.
When I look at the edited file in virtualdub it looks interlaced to me. I see combing.
I'm using AutoGk to convert to divx. Do I need to overide a setting to make AutoGk think the file is interlaced. Or am I worrying about something I should not be worrying about because I'm clueless. :)
Mtz
15th April 2005, 20:36
Originally posted by len0x
What is your player?
Have you tried encoding with ESS option on?
I have this players (all with MTK chipset):
E-Boda 555 (Standard)
E-Boda 555 Ver310FE
E-Boda 555 Ver310FE-CE
Silva Schneider 404
Silva Schneider 735
Elite PV 371X
With ESS option on (I reinstalled AutoGK 2.05b) the info is:
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
I-VOPs: 48 (0,79%)
P-VOPs: 6046 (99,21%)
B-VOPs: 0 (0,00%)
S-VOPs: 0 (0,00%)
N-VOPs: 0 (0,00%)
I think to add in AutoGK installer also the MTK support, or more simple "Support for Standalone DivX Players"
enjoy,
Mtz
len0x
15th April 2005, 21:20
Originally posted by Cocophone
When I look at the edited file in virtualdub it looks interlaced to me. I see combing.
:logfile: Then we'll see what's going on.
len0x
15th April 2005, 21:27
Originally posted by Mtz
I think to add in AutoGK installer also the MTK support, or more simple "Support for Standalone DivX Players"
To be honest its the first time I see a report that custom matrixes used by AutoGK cannot be played properly with player on MTK chipset. Can you try encoding with 1.95 and xvid 1.0.3 without ESS support?
P.S. please don't post info about avi files - its useless to me. Just mention if its working ok in your player or not.
Cocophone
16th April 2005, 00:16
here's my log file for the question above.
Thanks.
[4/14/2005 9:50:17 PM] AutoGK 2.02b
[4/14/2005 9:50:17 PM] OS: Win2000 (5.0.2195).2
[4/14/2005 9:50:17 PM] Job started.
[4/14/2005 9:50:17 PM] Input file: EDITED survivor.avi
[4/14/2005 9:50:17 PM] Input codec: Huffman Lossless Codec
[4/14/2005 9:50:17 PM] Source duration: 43mn 370ms
[4/14/2005 9:50:17 PM] Output file: D:\EDITED survivor_agk.avi
[4/14/2005 9:50:17 PM] Output codec: DivX
[4/14/2005 9:50:17 PM] Audio: 1536 Kbps PCM 2ch
[4/14/2005 9:50:17 PM] Subtitles: none
[4/14/2005 9:50:17 PM] Format: .AVI
[4/14/2005 9:50:17 PM] Target size: 700Mb
[4/14/2005 9:50:17 PM] Custom audio settings: VBR MP3 with average bitrate: 192Kbps
[4/14/2005 9:50:17 PM] Started encoding.
[4/14/2005 9:50:17 PM] Source resolution: 640x480
[4/14/2005 9:50:17 PM] Source fps: 29.97
[4/14/2005 9:50:17 PM] Output will contain 77334 frames
[4/14/2005 9:50:17 PM] Analyzing source.
[4/14/2005 10:06:41 PM] Source has percentage of interlacing in motion areas: 0.00
[4/14/2005 10:06:41 PM] Source has percentage of telecined patterns: 0.00
[4/14/2005 10:06:41 PM] Source has percentage of progressive patterns: 0.00
[4/14/2005 10:06:41 PM] Source has percentage of interlaced patterns: 0.00
[4/14/2005 10:06:41 PM] Source is considered to be progressive.
[4/14/2005 10:06:41 PM] Demuxing audio.
[4/14/2005 10:19:18 PM] Normalizing audio.
[4/14/2005 10:20:00 PM] Encoding audio.
[4/14/2005 10:23:21 PM] Audio size: 59,610,912 bytes (56.85 Mb)
[4/14/2005 10:23:21 PM] Overhead: 4,990,976 bytes (4.76 Mb)
[4/14/2005 10:23:21 PM] Video size: 669,401,312 bytes (638.39 Mb)
[4/14/2005 10:23:21 PM] Target bitrate is: 2075kbps
[4/14/2005 10:23:21 PM] Running compressibility test.
[4/14/2005 10:23:21 PM] Writing the following script to D:\agk_tmp\EDITED survivor_agk_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 = DirectShowSource("D:\\EDITED survivor.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[4/14/2005 10:29:03 PM] Duration was: 5 minutes 41 seconds
[4/14/2005 10:29:03 PM] Speed was: 11.32 fps.
[4/14/2005 10:29:03 PM] Compressibility percentage is: 29.40
[4/14/2005 10:29:03 PM] Using softer resizer.
[4/14/2005 10:29:03 PM] Chosen resolution is: 448x336 ( AR: 1.33 )
[4/14/2005 10:29:03 PM] Predicted comptest value is: 64.38
[4/14/2005 10:29:03 PM] Running first pass.
[4/14/2005 10:29:03 PM] Writing the following script to D:\agk_tmp\EDITED survivor_agk_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 = DirectShowSource("D:\\EDITED survivor.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 448
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=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[4/14/2005 11:26:39 PM] Duration was: 57 minutes 35 seconds
[4/14/2005 11:26:39 PM] Speed was: 22.38 fps.
[4/14/2005 11:26:39 PM] Running second pass.
[4/15/2005 12:22:42 AM] Duration was: 56 minutes 2 seconds
[4/15/2005 12:22:42 AM] Speed was: 23.00 fps.
[4/15/2005 12:22:42 AM] Job finished. Total time: 2 hours 32 minutes 24 seconds
len0x
16th April 2005, 12:01
It doesn't seem to be interlaced. Can you post a screenshot from vdubmod where you see combing?
Cocophone
16th April 2005, 16:01
This is what I think is interlaced
http://img31.echo.cx/img31/2294/interlace5gw.jpg (http://www.imageshack.us)
len0x
17th April 2005, 11:27
I does look interlaced indeed. I will need a small sample of such AVI to examine it close (probably combing threshold detection needs to be tweaked). Can you make it avialable for me, please?
Mtz
17th April 2005, 11:30
Originally posted by len0x
To be honest its the first time I see a report that custom matrixes used by AutoGK cannot be played properly with player on MTK chipset. Can you try encoding with 1.95 and xvid 1.0.3 without ESS support?
P.S. please don't post info about avi files - its useless to me. Just mention if its working ok in your player or not.
Output by AutoGK 1.95 and xvid 1.0.3 without ESS support played OK in my player.
enjoy,
Mtz
len0x
17th April 2005, 13:05
Its XviD 1.1 beta 2 problem then, coz I didn't change XviD settings in AutoGK (I know that beta 2 doesn't signal ASP, but just simple profile and it was fixed in CVS few days after - may be that's the problem - you can try latest celtic_druid build with latest AutoGK).
bourtzovlakas
17th April 2005, 19:56
No problem here, with playing 2.05 beta encodes, in my Philips DVP-720SA(MTK-1389EE)...
Using Xvid, neither ESS compatibility or bitrate spikes control option are enabled...
len0x
18th April 2005, 16:34
The problem may only arise when "bitrate spike control" option is used without ESS option (i.e. DXN HT profile with custom matrixes). In all other cases there shouldn't be any problems.
len0x
18th April 2005, 16:54
Originally posted by Cocophone
This is what I think is interlaced
On my system that sample file of 130 frames was detected as interlaced:
[18/04/2005 16:48:26] Input file: interlaced.avi
[18/04/2005 16:48:26] Input codec: Huffman Lossless Codec
[18/04/2005 16:48:26] Source duration: 4s 337ms
[18/04/2005 16:48:26] Output file: D:\Rrr\dv\interlaced_agk.avi
[18/04/2005 16:48:26] Output codec: XviD
[18/04/2005 16:48:26] Audio1: 1536 Kbps PCM 2ch
[18/04/2005 16:48:26] Subtitles: none
[18/04/2005 16:48:26] Format: .AVI
[18/04/2005 16:48:26] Target quality: 75%
[18/04/2005 16:48:26] Custom audio settings: AC3
[18/04/2005 16:48:26] Started encoding.
[18/04/2005 16:48:26] Source resolution: 640x480
[18/04/2005 16:48:26] Source fps: 29.97
[18/04/2005 16:48:26] Output will contain 130 frames
[18/04/2005 16:48:26] Analyzing source.
[18/04/2005 16:48:40] Source has percentage of interlacing in motion areas: 88.57
[18/04/2005 16:48:40] Source has percentage of telecined patterns: 0.00
[18/04/2005 16:48:40] Source has percentage of progressive patterns: 0.00
[18/04/2005 16:48:40] Source has percentage of interlaced patterns: 100.00
[18/04/2005 16:48:40] Source is considered to be interlaced.
What do you use for decoding huffman codec? On my system its ffdshow. (you can check with GSpot).
Cocophone
18th April 2005, 17:06
Gspot says:
The following codec should be capable of processing this format:
--> {Huffyuv v2.1.1}
DirectShow is apparently able to play the file as well (see "DirectShow Render", below),
I switched it to ffdshow and it says interlaced.... I will try with the longer file.
What setting do I need to use if I would like AutoGk to deinterlace it and save it to avi using divx codec?
Thanks
len0x
18th April 2005, 17:12
Deinterlace is done automatically by AutoGK if the source is found interlaced. You can't force it.
len0x
18th April 2005, 17:35
You can try version 2.06 now that includes newer XviD build.
idanm19
18th April 2005, 21:30
mjpeg encoding
Hello!
I'm tring to encode mjpeg avi file created with my canon a70 digicam.
and VDUBMOD gets stuck in the begining encoding process (after analizing), it also creates mp3 file with 0 size.
thanks!
[18/04/2005 23:24:29] AutoGK 2.06b
[18/04/2005 23:24:29] OS: WinXP (5.1.2600).2
[18/04/2005 23:24:29] Job started.
[18/04/2005 23:24:29] Input file: MJPEG_TEST.AVI
[18/04/2005 23:24:29] Input codec: MJPEG
[18/04/2005 23:24:29] Source duration: 29s 999ms
[18/04/2005 23:24:29] Output file: E:\G\MJPEG_TEST_agk.avi
[18/04/2005 23:24:29] Output codec: XviD
[18/04/2005 23:24:29] Audio1: 88 Kbps PCM 1ch
[18/04/2005 23:24:29] Subtitles: none
[18/04/2005 23:24:29] Format: .AVI
[18/04/2005 23:24:29] Target quality: 75%
[18/04/2005 23:24:29] Started encoding.
[18/04/2005 23:24:29] Source resolution: 640x480
[18/04/2005 23:24:29] Source fps: 15
[18/04/2005 23:24:29] Output will contain 450 frames
[18/04/2005 23:24:29] Analyzing source.
[18/04/2005 23:24:35] Source has percentage of interlacing in motion areas: 0.00
[18/04/2005 23:24:35] Source has percentage of telecined patterns: 0.00
[18/04/2005 23:24:35] Source has percentage of progressive patterns: 0.00
[18/04/2005 23:24:35] Source has percentage of interlaced patterns: 0.00
[18/04/2005 23:24:35] Source is considered to be progressive.
[18/04/2005 23:24:35] Demuxing audio.
[18/04/2005 23:24:36] Normalizing audio.
[18/04/2005 23:24:36] Encoding audio.
[18/04/2005 23:24:36] Running single pass encoding.
[18/04/2005 23:24:36] Writing the following script to E:\G\agk_tmp\MJPEG_TEST_agk_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 = DirectShowSource("E:\G\MJPEG_TEST.AVI",15).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe
=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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=0,samples
tartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
===========================================================
*************************************
EXCEPTION: Job aborted
*************************************
[18/04/2005 23:25:33] Job finished. Total time: 1 minute, 3 seconds
Cocophone
19th April 2005, 15:37
I'm trying the newest version 2.06b and select 700mb file size but Autogk created a file 858mb. Also the log had a warning that a different number of frames was found. See below
[4/18/2005 11:04:26 PM] AutoGK 2.06b
[4/18/2005 11:04:26 PM] OS: Win2000 (5.0.2195).2
[4/18/2005 11:04:26 PM] Job started.
[4/18/2005 11:04:26 PM] Input file: EDITED 24april18.avi
[4/18/2005 11:04:26 PM] Input codec: Huffman Lossless Codec
[4/18/2005 11:04:26 PM] Source duration: 43mn 436ms
[4/18/2005 11:04:26 PM] Output file: D:\EDITED 24april18_agk.avi
[4/18/2005 11:04:26 PM] Output codec: DivX
[4/18/2005 11:04:26 PM] Audio1: 1536 Kbps PCM 2ch
[4/18/2005 11:04:26 PM] Subtitles: none
[4/18/2005 11:04:26 PM] Format: .AVI
[4/18/2005 11:04:26 PM] Target size: 700Mb
[4/18/2005 11:04:26 PM] Custom audio settings: VBR MP3 with average bitrate: 192Kbps
[4/18/2005 11:04:26 PM] Started encoding.
[4/18/2005 11:04:26 PM] Source resolution: 640x480
[4/18/2005 11:04:26 PM] Source fps: 29.97
[4/18/2005 11:04:26 PM] Output will contain 77336 frames
[4/18/2005 11:04:26 PM] Analyzing source.
[4/18/2005 11:12:10 PM] Source has percentage of interlacing in motion areas: 30.69
[4/18/2005 11:12:10 PM] Source has percentage of telecined patterns: 79.41
[4/18/2005 11:12:10 PM] Source has percentage of progressive patterns: 20.33
[4/18/2005 11:12:10 PM] Source has percentage of interlaced patterns: 0.26
[4/18/2005 11:12:10 PM] Source is considered to be hybrid (mostly FILM).
[4/18/2005 11:12:10 PM] Looking for optimal hybrid thresholds.
[4/18/2005 11:16:32 PM] Found threshold of: 2.00
[4/18/2005 11:16:32 PM] Demuxing audio.
[4/18/2005 11:24:52 PM] Normalizing audio.
[4/18/2005 11:25:05 PM] Encoding audio.
[4/18/2005 11:28:14 PM] Audio1 size: 62,377,056 bytes (59.49 Mb)
[4/18/2005 11:28:14 PM] Overhead: 4,991,232 bytes (4.76 Mb)
[4/18/2005 11:28:14 PM] Video size: 666,634,912 bytes (635.75 Mb)
[4/18/2005 11:28:14 PM] Target bitrate is: 2067kbps
[4/18/2005 11:28:14 PM] Running compressibility test.
[4/18/2005 11:28:14 PM] Writing the following script to D:\agk_tmp\EDITED 24april18_agk_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
movie = DirectShowSource("D:\\EDITED 24april18.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
Telecide(movie,order=0,guide=1,post=2).Decimate(mode=3,threshold=2)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
ColorMatrix("Rec.709->Rec.601",mmx=true,hints=false)
SelectRangeEvery(280,14)
===========================================================
[4/18/2005 11:35:00 PM] Duration was: 6 minutes 44 seconds
[4/18/2005 11:35:00 PM] Speed was: 9.55 fps.
[4/18/2005 11:35:00 PM] Compressibility percentage is: 51.48
[4/18/2005 11:35:00 PM] Chosen resolution is: 528x400 ( AR: 1.32 )
[4/18/2005 11:35:00 PM] Predicted comptest value is: 74.87
[4/18/2005 11:35:00 PM] Running first pass.
[4/18/2005 11:35:00 PM] Writing the following script to D:\agk_tmp\EDITED 24april18_agk_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
movie = DirectShowSource("D:\\EDITED 24april18.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 528
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
Telecide(movie,order=0,guide=1,post=2).Decimate(mode=3,threshold=2)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
ColorMatrix("Rec.709->Rec.601",mmx=true,hints=false)
===========================================================
[4/19/2005 12:40:44 AM] Duration was: 1 hour, 5 minutes 44 seconds
[4/19/2005 12:40:44 AM] Speed was: 19.61 fps.
[4/19/2005 12:40:44 AM] Warning! Found different number of frames: 61867
[4/19/2005 12:40:44 AM] Audio1 size: 62,377,056 bytes (59.49 Mb)
[4/19/2005 12:40:44 AM] Overhead: 3,993,472 bytes (3.81 Mb)
[4/19/2005 12:40:44 AM] Video size: 667,632,672 bytes (636.70 Mb)
[4/19/2005 12:40:44 AM] Target bitrate is: 2587kbps
[4/19/2005 12:40:45 AM] Running second pass.
[4/19/2005 1:46:49 AM] Duration was: 1 hour, 6 minutes 4 seconds
[4/19/2005 1:46:49 AM] Speed was: 15.61 fps.
[4/19/2005 1:46:49 AM] Job finished. Total time: 2 hours 42 minutes 22 seconds
len0x
19th April 2005, 21:05
Originally posted by idanm19
I'm tring to encode mjpeg avi file created with my canon a70 digicam.
and VDUBMOD gets stuck in the begining encoding process (after analizing), it also creates mp3 file with 0 size.
I didn't see you waiting enough for it though...
As usual its worth checking what your're using for decoding of mjpeg (and try different decoder). As for mp3 check manual conversion with lame to see if there is any problems.
len0x
19th April 2005, 21:10
Originally posted by Cocophone
I'm trying the newest version 2.06b and select 700mb file size but Autogk created a file 858mb. Also the log had a warning that a different number of frames was found.
Looks like encoding crashed during first pass, so bitrate for the second pass was raised and that caused oversize.
Cocophone
19th April 2005, 21:33
I reran the file through AutoGk. This time I force interlace on hybrid. Also I noticed that before the "correct color if needed" was checked. I cleared that checkbox. The completed file is now the correct size 700mb.
Here is the new log file:
[4/19/2005 7:41:30 AM] AutoGK 2.06b
[4/19/2005 7:41:30 AM] OS: Win2000 (5.0.2195).2
[4/19/2005 7:41:30 AM] Job started.
[4/19/2005 7:41:30 AM] Input file: EDITED 24.avi
[4/19/2005 7:41:30 AM] Input codec: Huffman Lossless Codec
[4/19/2005 7:41:30 AM] Source duration: 43mn 50s 220ms
[4/19/2005 7:41:30 AM] Output file: D:\EDITED 24_agk_HYBRID.avi
[4/19/2005 7:41:30 AM] Output codec: DivX
[4/19/2005 7:41:30 AM] Audio1: 1536 Kbps PCM 2ch
[4/19/2005 7:41:30 AM] Subtitles: none
[4/19/2005 7:41:30 AM] Format: .AVI
[4/19/2005 7:41:30 AM] Target size: 700Mb
[4/19/2005 7:41:30 AM] Custom audio settings: VBR MP3 with average bitrate: 192Kbps
[4/19/2005 7:41:30 AM] Started encoding.
[4/19/2005 7:41:30 AM] Source resolution: 640x480
[4/19/2005 7:41:30 AM] Source fps: 29.97
[4/19/2005 7:41:30 AM] Output will contain 78828 frames
[4/19/2005 7:41:30 AM] Analyzing source.
[4/19/2005 7:49:15 AM] Source has percentage of interlacing in motion areas: 31.50
[4/19/2005 7:49:15 AM] Source has percentage of telecined patterns: 82.86
[4/19/2005 7:49:15 AM] Source has percentage of progressive patterns: 17.14
[4/19/2005 7:49:15 AM] Source has percentage of interlaced patterns: 0.00
[4/19/2005 7:49:15 AM] Source is considered to be hybrid (mostly FILM).
[4/19/2005 7:49:15 AM] Looking for optimal hybrid thresholds.
[4/19/2005 7:54:08 AM] Found threshold of: 2.00
[4/19/2005 7:54:08 AM] Forcing deinterlacing.
[4/19/2005 7:54:08 AM] Demuxing audio.
[4/19/2005 8:04:27 AM] Normalizing audio.
[4/19/2005 8:04:41 AM] Encoding audio.
[4/19/2005 8:08:36 AM] Audio1 size: 66,697,824 bytes (63.61 Mb)
[4/19/2005 8:08:36 AM] Overhead: 5,087,360 bytes (4.85 Mb)
[4/19/2005 8:08:36 AM] Video size: 662,218,016 bytes (631.54 Mb)
[4/19/2005 8:08:36 AM] Target bitrate is: 2014kbps
[4/19/2005 8:08:36 AM] Running compressibility test.
[4/19/2005 8:08:36 AM] Writing the following script to D:\agk_tmp\EDITED 24_agk_HYBRID_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")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
movie = DirectShowSource("D:\\EDITED 24.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[4/19/2005 8:15:13 AM] Duration was: 6 minutes 36 seconds
[4/19/2005 8:15:13 AM] Speed was: 9.94 fps.
[4/19/2005 8:15:13 AM] Compressibility percentage is: 47.30
[4/19/2005 8:15:13 AM] Chosen resolution is: 512x384 ( AR: 1.33 )
[4/19/2005 8:15:13 AM] Predicted comptest value is: 73.90
[4/19/2005 8:15:13 AM] Running first pass.
[4/19/2005 8:15:13 AM] Writing the following script to D:\agk_tmp\EDITED 24_agk_HYBRID_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")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
movie = DirectShowSource("D:\\EDITED 24.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 512
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
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
===========================================================
[4/19/2005 9:16:37 AM] Duration was: 1 hour, 1 minute, 23 seconds
[4/19/2005 9:16:37 AM] Speed was: 21.40 fps.
[4/19/2005 9:16:37 AM] Running second pass.
[4/19/2005 10:16:57 AM] Duration was: 1 hour, 0 minutes 20 seconds
[4/19/2005 10:16:57 AM] Speed was: 21.78 fps.
[4/19/2005 10:16:57 AM] Job finished. Total time: 2 hours 35 minutes 26 seconds
Mtz
20th April 2005, 03:21
Originally posted by len0x
You can try version 2.06 now that includes newer XviD build.
The encoded file with AutoGK 2.06b played OK in my players even if Gspot and Mpeg4 modifier reported Packed Bistream. :confused:
enjoy,
Mtz
Mouse
21st April 2005, 12:43
Originally posted by Mtz
The encoded file with AutoGK 2.06b played OK in my players even if Gspot and Mpeg4 modifier reported Packed Bistream. :confused:
enjoy,
Mtz
Same here. I have a Pioneer dv-575 which has the MediaTek 1389EE chip. I'm 100% sure this chip doesn't allow xvid + packed bitstream. So i have been using MPEG4Modifier to remove packet bitstream in xvids, in order to get the files play correct.
Now, encoding with AutoGK, MPEG4Modifier reports all files containing "packed bistream", but they play OK.
This is really odd.
nixo
21st April 2005, 17:53
My 1389EE based player (Yamakawa 335) doesn't have any problems with packed bitstream in xvid as long as only 1 consecutive b-frame is used. If I use more than 1 the picture starts to stutter. AGK only uses 1, so maybe that's the explanation why PB suddenly works for you...?
len0x
21st April 2005, 21:41
Explanation is simple:
- divx only produces packed bitstream therefore divx certified devices are obliged to support it
- XviD 1.1 beta 2 is the _first_ version of XviD with proper support for DXN profiles
- DXN profiles are desighed for hardware devices
do the math...
Cocophone
4th May 2005, 05:01
I select 700 mb but the file ended up 859 mb and the log showed Warning! Found different number of frames
here's my log file:
[5/3/2005 5:52:32 PM] AutoGK 2.07b
[5/3/2005 5:52:32 PM] OS: Win2000 (5.0.2195).2
[5/3/2005 5:52:32 PM] Job started.
[5/3/2005 5:52:32 PM] Input file: EDITED 24May2.avi
[5/3/2005 5:52:32 PM] Input codec: Huffman Lossless Codec
[5/3/2005 5:52:32 PM] Source duration: 40mn 47s 703ms
[5/3/2005 5:52:32 PM] Output file: D:\EDITED 24May2_agk.avi
[5/3/2005 5:52:32 PM] Output codec: DivX
[5/3/2005 5:52:32 PM] Audio1: 1536 Kbps PCM 2ch
[5/3/2005 5:52:32 PM] Subtitles: none
[5/3/2005 5:52:32 PM] Format: .AVI
[5/3/2005 5:52:32 PM] Target size: 700Mb
[5/3/2005 5:52:32 PM] Custom audio settings: VBR MP3 with average bitrate: 192Kbps
[5/3/2005 5:52:32 PM] Started encoding.
[5/3/2005 5:52:32 PM] Source resolution: 640x480
[5/3/2005 5:52:32 PM] Source fps: 29.97
[5/3/2005 5:52:32 PM] Output will contain 73358 frames
[5/3/2005 5:52:32 PM] Analyzing source.
[5/3/2005 5:59:06 PM] Source has percentage of interlacing in motion areas: 31.96
[5/3/2005 5:59:06 PM] Source has percentage of telecined patterns: 83.09
[5/3/2005 5:59:06 PM] Source has percentage of progressive patterns: 16.91
[5/3/2005 5:59:06 PM] Source has percentage of interlaced patterns: 0.00
[5/3/2005 5:59:06 PM] Source is considered to be hybrid (mostly FILM).
[5/3/2005 5:59:06 PM] Looking for optimal hybrid thresholds.
[5/3/2005 6:03:18 PM] Source seems to be pure FILM.
[5/3/2005 6:03:18 PM] Demuxing audio.
[5/3/2005 6:12:49 PM] Normalizing audio.
[5/3/2005 6:12:59 PM] Encoding audio.
[5/3/2005 6:16:15 PM] Audio1 size: 59,161,488 bytes (56.42 Mb)
[5/3/2005 6:16:15 PM] Overhead: 4,734,464 bytes (4.52 Mb)
[5/3/2005 6:16:15 PM] Video size: 670,107,248 bytes (639.06 Mb)
[5/3/2005 6:16:15 PM] Target bitrate is: 2190kbps
[5/3/2005 6:16:15 PM] Running compressibility test.
[5/3/2005 6:16:15 PM] Writing the following script to D:\agk_tmp\EDITED 24May2_agk_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
movie = DirectShowSource("D:\\EDITED 24May2.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
Telecide(movie,order=0,guide=1,post=2).Decimate(mode=0)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[5/3/2005 6:21:55 PM] Duration was: 5 minutes 38 seconds
[5/3/2005 6:21:55 PM] Speed was: 10.84 fps.
[5/3/2005 6:21:55 PM] Compressibility percentage is: 48.54
[5/3/2005 6:21:55 PM] Chosen resolution is: 528x400 ( AR: 1.32 )
[5/3/2005 6:21:55 PM] Predicted comptest value is: 70.60
[5/3/2005 6:21:55 PM] Running first pass.
[5/3/2005 6:21:55 PM] Writing the following script to D:\agk_tmp\EDITED 24May2_agk_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
movie = DirectShowSource("D:\\EDITED 24May2.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 528
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
Telecide(movie,order=0,guide=1,post=2).Decimate(mode=0)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
===========================================================
[5/3/2005 7:31:46 PM] Duration was: 1 hour, 9 minutes 50 seconds
[5/3/2005 7:31:46 PM] Speed was: 17.51 fps.
[5/3/2005 7:31:46 PM] Warning! Found different number of frames: 58684
[5/3/2005 7:31:46 PM] Audio1 size: 59,161,488 bytes (56.42 Mb)
[5/3/2005 7:31:46 PM] Overhead: 3,788,160 bytes (3.61 Mb)
[5/3/2005 7:31:46 PM] Video size: 671,053,552 bytes (639.97 Mb)
[5/3/2005 7:31:46 PM] Target bitrate is: 2742kbps
[5/3/2005 7:31:46 PM] Running second pass.
[5/3/2005 8:42:37 PM] Duration was: 1 hour, 10 minutes 51 seconds
[5/3/2005 8:42:37 PM] Speed was: 13.80 fps.
[5/3/2005 8:42:37 PM] Job finished. Total time: 2 hours 50 minutes 5 seconds
I see that fps for FILM hybrid sources is calculated incorrectly for AVI input sources (it should be 24 while it is shown as 30). Its a bug.
Cocophone
4th May 2005, 19:59
I captured the tv show with virtualdub (don't remember if any settings would have effected fps). I then edited out commercials and then saved it as an avi (huffy codec) with the virtualdub settings of direct stream copy for video and audio.
Nothing wrong with your file. Its just a bug.
Cocophone
4th May 2005, 20:03
is there something I could do as a work around?
not unless you force deinterlacing for hybrid sources in which case you'd be wasting 20% of bitrate plus probably get shuttering video.
Cocophone
18th May 2005, 05:46
I'm trying to convert to divx an avi file. The length of the file is 1:33 and the file size is 33.6 GB. The audio starts out in sync but when I skip forward towards the file it looks like its about 1/2 a second out of sync. Any suggestions? Here is my log file:
[5/17/2005 2:06:34 PM] AutoGK 2.08b
[5/17/2005 2:06:34 PM] OS: Win2000 (5.0.2195).2
[5/17/2005 2:06:34 PM] Job started.
[5/17/2005 2:06:34 PM] Input file: Final Survivor.avi
[5/17/2005 2:06:34 PM] Input codec: Huffman Lossless Codec
[5/17/2005 2:06:34 PM] Source duration: 1h 33mn 50s 380ms
[5/17/2005 2:06:34 PM] Output file: D:\Final Survivor_agk.avi
[5/17/2005 2:06:34 PM] Output codec: DivX
[5/17/2005 2:06:34 PM] Audio1: 1536 Kbps PCM 2ch
[5/17/2005 2:06:34 PM] Subtitles: none
[5/17/2005 2:06:34 PM] Format: .AVI
[5/17/2005 2:06:34 PM] Target size: 1120Mb
[5/17/2005 2:06:34 PM] Custom audio settings: CBR MP3 with bitrate: 192Kbps
[5/17/2005 2:06:34 PM] Started encoding.
[5/17/2005 2:06:34 PM] Source resolution: 640x480
[5/17/2005 2:06:34 PM] Source fps: 29.97
[5/17/2005 2:06:34 PM] Analyzing source.
[5/17/2005 3:18:20 PM] Source has percentage of interlacing in motion areas: 38.24
[5/17/2005 3:18:20 PM] Source has percentage of telecined patterns: 2.48
[5/17/2005 3:18:20 PM] Source has percentage of progressive patterns: 56.30
[5/17/2005 3:18:20 PM] Source has percentage of interlaced patterns: 41.22
[5/17/2005 3:18:20 PM] Source is considered to be interlaced.
[5/17/2005 3:18:20 PM] Output will contain 168742 frames
[5/17/2005 3:18:20 PM] Demuxing audio.
[5/17/2005 3:44:15 PM] Normalizing audio.
[5/17/2005 3:44:40 PM] Encoding audio.
[5/17/2005 3:51:49 PM] Audio1 size: 135,130,752 bytes (128.87 Mb)
[5/17/2005 3:51:49 PM] Overhead: 6,140,928 bytes (5.86 Mb)
[5/17/2005 3:51:49 PM] Video size: 1,033,133,440 bytes (985.27 Mb)
[5/17/2005 3:51:49 PM] Target bitrate is: 1468kbps
[5/17/2005 3:51:49 PM] Running compressibility test.
[5/17/2005 3:51:49 PM] Writing the following script to D:\agk_tmp\Final Survivor_agk_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")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
movie = DirectShowSource("D:\\Final Survivor.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[5/17/2005 4:02:55 PM] Duration was: 11 minutes 5 seconds
[5/17/2005 4:02:55 PM] Speed was: 12.68 fps.
[5/17/2005 4:02:55 PM] Compressibility percentage is: 27.48
[5/17/2005 4:02:55 PM] Using softer resizer.
[5/17/2005 4:02:55 PM] Chosen resolution is: 448x336 ( AR: 1.33 )
[5/17/2005 4:02:55 PM] Predicted comptest value is: 60.17
[5/17/2005 4:02:55 PM] Running first pass.
[5/17/2005 4:02:55 PM] Writing the following script to D:\agk_tmp\Final Survivor_agk_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")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
movie = DirectShowSource("D:\\Final Survivor.avi",29.97).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 448
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
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[5/17/2005 5:50:27 PM] Duration was: 1 hour, 47 minutes 31 seconds
[5/17/2005 5:50:27 PM] Speed was: 26.15 fps.
[5/17/2005 5:50:27 PM] Running second pass.
[5/17/2005 7:46:49 PM] Duration was: 1 hour, 56 minutes 22 seconds
[5/17/2005 7:46:49 PM] Speed was: 24.17 fps.
[5/17/2005 7:46:49 PM] Job finished. Total time: 5 hours 40 minutes 15 seconds
len0x
21st May 2005, 18:05
Can ppl that had problems with length autodetection check new mediainfo (only GUI so far) from here (http://sourceforge.net/projects/mediainfo) and see if they still have them or not (as developer updated that code). Thanks.
len0x
21st May 2005, 18:08
Originally posted by Cocophone
I'm trying to convert to divx an avi file. The length of the file is 1:33 and the file size is 33.6 GB. The audio starts out in sync but when I skip forward towards the file it looks like its about 1/2 a second out of sync. Any suggestions?
May be your capture has dropped frames that result in asynch. I dunno how to correct that.
Exoskeletor
21st May 2005, 23:40
maybe autogk will have the ability to check all the frames of an avi files to find droped frames and inform the user about it (in order to re-encode his video with a program that sychronize the video with the audio)
Cocophone
21st May 2005, 23:55
I have maybe 2 or 3 dropped frames during capture.
When I play the original avi file the audio is in sync.
Also, if I first convert the file to a mpeg format and then run it through AutoGk then the audio stays in sync.
len0x
22nd May 2005, 13:24
Originally posted by Exoskeletor
maybe autogk will have the ability to check all the frames of an avi files to find droped frames and inform the user about it (in order to re-encode his video with a program that sychronize the video with the audio)
Its impossible as frames are dropped during capture...
len0x
22nd May 2005, 13:26
Originally posted by Cocophone
I have maybe 2 or 3 dropped frames during capture.
this would lead to 80-120ms delay (PAL), not half a second in your case...
Originally posted by Cocophone
Also, if I first convert the file to a mpeg format and then run it through AutoGk then the audio stays in sync.
video is repaired then... Good thing to check is length of audio and video and see if they are the same.
Cocophone
22nd May 2005, 17:40
I checked the length of the capture avi I'm trying to run through AutoGK. The audio and video show the same length 1:24:35.25 when I open it in Virtualdubmod. The codec used is Huffy.
The capture avi has been edited for commercials in virtualdub. I then saved the avi using direct stream copy for both audio and video.
When I watch the avi using Zoom Player the audio stays in sync even when I skip forward to the end. After I have run the file through AutoGk (using divx) then watch it using Zoom Player and skip towards the end of the file the audio is out of sync towards the end of the file. The divx file starts with the audio in sync.
I don't understand why the capture avi stays in sync, but the AutoGk divx file gets out of sync towards the end of the file.
When I do the same process for shorter files (about 40 minutes in length) the audio stays in sync for AutoGk divx.
Exoskeletor
22nd May 2005, 22:07
where do you test the files and you find that there are out of sync? on your pc or in a standalone dvd player?
Cocophone
22nd May 2005, 22:19
on my pc using zoom player.
I haven't watched the file in real time.
But if I skip foward with the divx file the audio is out of sync (audio is behind the video).
If I do the same with the original file (huffy codec) the audio stays in sync when I skip forward in zoom player.
Cocophone
28th May 2005, 01:50
I recompressed the file in virtualdub and then thru autogk and the audio seems in sync.
It's weird, that when I edited the file in virtualdub and saved it using direct stream copy for audio and video the audio was in sync in the avi file, but after running thru autogk the divx went out of sync toward the end of the file.
Hobojobo
28th May 2005, 22:59
@lenox
Is it possible to implement an only_audio_transcoding_option.
I don't want to touch the video and only want to transcode ac3 to mp3 in quite a few avi clips.
Would that be possible?
len0x
31st May 2005, 21:47
it is kinda out of the scope of AutoGK atm as it always processes video...
Hobojobo
31st May 2005, 22:22
Yep, I see your point.
Feel free to extend the scope, when all improvements are done. ;)
Thank you for your answer.
CHerron
27th July 2005, 14:26
for some reason no matter what avi file i choose as input autogk will demux the audio but never encode it
help plz...
oh im using version 2.13b
====================================================
[27/07/2005 13:53:41] AutoGK 2.13b
[27/07/2005 13:53:41] OS: WinXP (5.1.2600).2
[27/07/2005 13:53:41] Job started.
[27/07/2005 13:53:41] Input file: family.guy.408.pdtv-lol.avi
[27/07/2005 13:53:41] Input codec: XviD
[27/07/2005 13:53:41] Source duration: 21mn 42s 175ms
[27/07/2005 13:53:41] Output file: D:\family.guy.408.pdtv-lol_agk.avi
[27/07/2005 13:53:41] Output codec: XviD
[27/07/2005 13:53:41] Audio1: 134 Kbps MPEG1/2 L3 2ch
[27/07/2005 13:53:41] Subtitles: none
[27/07/2005 13:53:41] Format: .AVI
[27/07/2005 13:53:41] Target size: 80Mb
[27/07/2005 13:53:41] Custom resolution settings: fixed width of 400 pixels
[27/07/2005 13:53:41] Custom audio settings: VBR MP3 with average bitrate: 48Kbps
[27/07/2005 13:53:41] Standalone support enabled: ESS
[27/07/2005 13:53:41] Started encoding.
[27/07/2005 13:53:41] Source resolution: 512x384
[27/07/2005 13:53:41] Source fps: 23.976
[27/07/2005 13:53:41] Manual aspect ratio: 4:3
[27/07/2005 13:53:41] Output will contain 31221 frames
[27/07/2005 13:53:41] Demuxing audio.
[27/07/2005 13:53:57] Picking up autocrop parameters.
[27/07/2005 13:53:57] Audio1 size: 21,788,007 bytes (20.78 Mb)
[27/07/2005 13:53:57] Overhead: 1,248,896 bytes (1.19 Mb)
[27/07/2005 13:53:57] Video size: 60,849,177 bytes (58.03 Mb)
[27/07/2005 13:53:57] Running compressibility test.
[27/07/2005 13:57:06] Duration was: 3 minutes 8 seconds
[27/07/2005 13:57:06] Speed was: 11.58 fps.
[27/07/2005 13:57:06] Compressibility percentage is: 54.96
[27/07/2005 13:57:06] Using softer resizer.
[27/07/2005 13:57:06] Chosen resolution is: 400x304 ( AR: 1.32 )
[27/07/2005 13:57:06] Predicted comptest value is: 58.04
[27/07/2005 13:57:06] Running first pass.
[27/07/2005 14:01:56] Duration was: 4 minutes 49 seconds
[27/07/2005 14:01:56] Speed was: 107.89 fps.
[27/07/2005 14:01:56] Expected quality of first pass size: 54.29
[27/07/2005 14:01:56] Running second pass.
[27/07/2005 14:08:28] Duration was: 6 minutes 32 seconds
[27/07/2005 14:08:28] Speed was: 79.54 fps.
[27/07/2005 14:08:28] Job finished. Total time: 14 minutes 47 seconds
====================================================
len0x
29th July 2005, 21:38
its a feature - AutoGK is not able to reencode mp3 audio atm...
Azik
2nd August 2005, 21:16
ver 1.23b doesn't recognise my DV-files recorded with Panasonic camera and captured by Ulead software. it show 0 frames at 0 fps.
any ideas?
thanks and ... great program!
len0x
6th August 2005, 21:12
The problem was that AVI file was DV type 1, so once you switched to type 2 the problem's gone away, right?
Azik
10th August 2005, 20:21
The problem was that AVI file was DV type 1, so once you switched to type 2 the problem's gone away, right?
right!
jikchung
14th September 2005, 19:30
DV AVI source, first time using this program. Getting error "could not find frames.log during encoding. Log follows:
[9/14/2005 12:52:15 PM] AutoGK 2.17b
[9/14/2005 12:52:15 PM] OS: WinXP (5.1.2600).2
[9/14/2005 12:52:15 PM] Job started.
[9/14/2005 12:52:15 PM] Input file: D:\The Green Fairy.avi
[9/14/2005 12:52:15 PM] Input codec: cdvc
[9/14/2005 12:52:15 PM] Source duration: 19mn 42s 681ms
[9/14/2005 12:52:15 PM] Output file: G:\The Green Fairy_agk.avi
[9/14/2005 12:52:15 PM] Output codec: DivX
[9/14/2005 12:52:15 PM] Audio 1: 1536 Kbps PCM 2ch
[9/14/2005 12:52:15 PM] Subtitles: none
[9/14/2005 12:52:15 PM] Format: .AVI
[9/14/2005 12:52:15 PM] Target size: 175Mb
[9/14/2005 12:52:15 PM] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[9/14/2005 12:52:15 PM] Started encoding.
[9/14/2005 12:52:15 PM] Source resolution: 720x480
[9/14/2005 12:52:15 PM] Source fps: 29.971
[9/14/2005 12:52:15 PM] Analyzing source.
[9/14/2005 1:21:38 PM] Source has percentage of interlacing in motion areas: 100.00
[9/14/2005 1:21:38 PM] Source is considered to be interlaced.
[9/14/2005 1:21:38 PM] Output will contain 35446 frames
[9/14/2005 1:21:38 PM] Demuxing audio.
[9/14/2005 1:24:03 PM] Normalizing audio.
[9/14/2005 1:24:20 PM] Encoding audio.
[9/14/2005 1:26:21 PM] Audio1 size: 20,239,296 bytes (19.30 Mb)
[9/14/2005 1:26:21 PM] Overhead: 2,289,280 bytes (2.18 Mb)
[9/14/2005 1:26:21 PM] Video size: 160,972,224 bytes (153.52 Mb)
[9/14/2005 1:26:21 PM] Target bitrate is: 1089kbps
[9/14/2005 1:26:21 PM] Running compressibility test.
[9/14/2005 1:26:21 PM] Writing the following script to G:\agk_tmp\The Green Fairy_agk_comptest.avs
===========================================================
LoadPlugin("G:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("G:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("G:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")
LoadPlugin("G:\PROGRA~1\AutoGK\filters\kerneldeint.dll")
movie = DirectShowSource("D:\The Green Fairy.avi",29.971).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 0.909
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 < 1.25) ? 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
KernelDeInt(movie,order=0,sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(233,14)
===========================================================
[9/14/2005 1:26:52 PM] Duration was: 29 seconds
[9/14/2005 1:26:52 PM] Speed was: 71.30 fps.
*************************************
EXCEPTION: Cannot open file "G:\agk_tmp\frames.log". The system cannot find the file specified
*************************************
[9/14/2005 1:26:52 PM] Job finished. Total time: 34 minutes 37 seconds
len0x
14th September 2005, 20:27
from log file it seems that encoding crashes. which dshow filter is being used for decoding of DV material? (check via GSpot)
Mtz
23rd September 2005, 12:12
Hi len0x !
Request: Can you put in Hidden Options: "Keep Interlaced"?
Reason: input source miniDV. Output for standalone players.
enjoy,
Mtz
len0x
23rd September 2005, 21:19
its hardly a useful feature
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.