INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
How to add permanent subtitles with AutoGK and convert to AVI DivX or XviD

Forum Index -> Video -> Subtitle Printer-friendly version
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Reply to topic
Author Message
reez
Member


Joined: 01 Dec 2007
Location: United States

Post Posted: Apr 22, 2008 17:53 Posts Comp View users profile Send private message Reply with quote

damnit all. i can't believe there isn't a sure fix for the sync problem after so many users having the same problem. My dilemma is that the permanent subtitles are CORRECT with the AUDIO!..PERFECT! BUT the video is early. With this problem I can't MOVE ANYTHING without UNsyncing the subs and audio....because the subs are part of the video now. Early in this topic someone said that uninstalling and re-installing AutoGK and Avisynth help..but can anyone confirm this. My pc is a bit weak and un/r-installing will screw w/ it too much.
Thanks to those who help


manono
Member


Joined: 28 Aug 2003

Post Posted: Apr 22, 2008 18:35 Posts View users profile Send private message Reply with quote

Do you have the log?

I don't think the uninstall/reinstall thing is going to do much, unless you're using one of the borked AutoGKs. Ordinarily your problem is caused by decrypting incorrectly a recent DVD with newfangled copy protections. Perhaps you can explain your decrypting procedure and how you then got the files into AutoGK. However, if worse comes to worst you can fix the delay in both the audio (remux with the correct delay) and subs (fix the delay before reencoding with the fixed subs) and try again.


reez
Member


Joined: 01 Dec 2007
Location: United States

Post Posted: Apr 22, 2008 18:53 Posts Comp View users profile Send private message Reply with quote

I downloaded AutoGK 2.45
i used DivX once and Xvid the next but same problem.
it's a 700mb avi movie.

thanks for the help man...ano

Code:

movie = DirectShowSource("C:\Rez Music\Naissance.Des.Pieuvres.FRENCH.DVDRiP.XViD-NTK\Naissance des pieuvres.AVI",25).KillAudio()
movie = isRGB(movie) ? ConvertToYV12(movie) : movie
movie = isYUY2(movie) ? ConvertToYV12(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 < 1.25) ? input_par : (4.0/3.0)
out_width = 576
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)
TextSub("C:\Rez Music\Naissance.Des.Pieuvres.FRENCH.DVDRiP.XViD-NTK\Naissance des pieuvres.srt")
SelectRangeEvery(300,15)
===========================================================
[4/22/2008 12:05:41 PM] Duration was: 10 minutes 4 seconds
[4/22/2008 12:05:41 PM] Speed was: 9.94 fps.
[4/22/2008 12:05:43 PM] Compressibility percentage is: 122.22
[4/22/2008 12:05:43 PM] Using sharper matrix
[4/22/2008 12:05:43 PM] Chosen resolution is: 576x304 ( AR: 1.89 )
[4/22/2008 12:05:43 PM] Predicted comptest value is: 91.79%
[4/22/2008 12:05:43 PM] Running first pass.
[4/22/2008 12:05:43 PM] Writing the following script to C:\Rez Music\Naissance.Des.Pieuvres.FRENCH.DVDRiP.XViD-NTK\agk_tmp\Naissance des pieuvres_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\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = DirectShowSource("C:\Rez Music\Naissance.Des.Pieuvres.FRENCH.DVDRiP.XViD-NTK\Naissance des pieuvres.AVI",25).KillAudio()
movie = isRGB(movie) ? ConvertToYV12(movie) : movie
movie = isYUY2(movie) ? ConvertToYV12(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 < 1.25) ? input_par : (4.0/3.0)
out_width = 576
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)
TextSub("C:\Rez Music\Naissance.Des.Pieuvres.FRENCH.DVDRiP.XViD-NTK\Naissance des pieuvres.srt")
===========================================================
[4/22/2008 12:54:56 PM] Duration was: 49 minutes 11 seconds
[4/22/2008 12:54:56 PM] Speed was: 40.74 fps.
[4/22/2008 12:54:57 PM] Expected quality of first pass size: 94.42%
[4/22/2008 12:54:57 PM] Running second pass.
[4/22/2008 2:47:39 PM] Duration was: 1 hour, 52 minutes 40 seconds
[4/22/2008 2:47:39 PM] Speed was: 17.79 fps.
[4/22/2008 2:47:39 PM] Job finished. Total time: 3 hours 22 minutes 1 second.


manono
Member


Joined: 28 Aug 2003

Post Posted: Apr 22, 2008 23:22 Posts View users profile Send private message Reply with quote

Hi,

Version 2.48 is the latest, and fixed a couple of problems the one you're using had, but nothing to do with your problem, though. So, the source AVI plays fine, with both the audio and subs in synch? And the AutoGK reencoded one has both the audio and subs out-of-synch? Pretty strange, eh?

You have to find out the delay. That's easy enough to do. Let me (us) know if you need any instructions how to do that. I don't see any way to get the audio out of AutoGK with the correct delay (unless it's AC3 audio). That's something you'll have to fix afterwards in VDubMod. If you don't know how to do that, just ask. But the subs are more important, because you can't fix the subs after the encode if they're out of synch and burned into the video. Open the SRT file in SubtitleCreator (File->Open Text Subtitle). Then Synchronize->Set Time Delay (-/+) and set the delay you already figured out. Then File->Save SRT. Use the edited one in AutoGK.

I don't see any easy fix to your problem. Although I've heard of audio coming out of AutoGK out-of-synch when the source is an AVI, that could easily be explained by the source AVI having an audio delay set. The subs being out-of-synch is a new one on me, and one for which I have no easy explanation.


spenny2112
Member


Joined: 01 Jun 2008
Location: United States

Post Posted: Jun 01, 2008 11:55 Posts Comp View users profile Send private message Reply with quote

Hey,
I am trying to hardcode .srt subtitles with my .avi file and have followed all of the instructions. However, after it finished encoding I was left with an agk_tmp folder containing a video clip entitled _ that was the length of the film however the video was just a green screen that fluctuated in brightness with no sound. In addition, I was left with a vCard entitled lastjob, and AviSynth script entitled _ , and lastly a text document entitled interlace.
Here is the log:
[5/31/2008 2:42:24 PM] AutoGK 2.45
[5/31/2008 2:42:24 PM] OS: WinXP (5.1.2600).2
[5/31/2008 2:42:24 PM] Job started.
[5/31/2008 2:42:24 PM] Input file: C:\Documents and Settings\user\Desktop\La Grande Vadrouille\La Grande Vadrouille.avi
[5/31/2008 2:42:24 PM] Input codec: DivX 4
[5/31/2008 2:42:24 PM] Source duration: 1h 58mn 43s
[5/31/2008 2:42:24 PM] Output file: C:\Documents and Settings\user\Desktop\La Grande Vadrouille\La Grande Vadrouille_agk.avi
[5/31/2008 2:42:24 PM] Output codec: DivX
[5/31/2008 2:42:24 PM] Audio 1: 128 Kbps MPEG-1/2 L3 2ch
[5/31/2008 2:42:24 PM] Subtitles: from external file: C:\Documents and Settings\user\My Documents\BitTorrent Downloads\La Grande Vadrouille.srt
[5/31/2008 2:42:24 PM] Format: AVI
[5/31/2008 2:42:24 PM] Target quality: 59%
[5/31/2008 2:42:24 PM] Audio 1 settings: Auto
[5/31/2008 2:42:24 PM] Started encoding.
[5/31/2008 2:42:24 PM] Source resolution: 704x304
[5/31/2008 2:42:24 PM] Source fps: 25
[5/31/2008 2:42:24 PM] Analyzing source.
[5/31/2008 3:55:22 PM] Source has percentage of interlacing in motion areas: 0.01
[5/31/2008 3:55:22 PM] Source is considered to be progressive.
[5/31/2008 3:55:22 PM] Output will contain 178075 frames
[5/31/2008 3:55:22 PM] Demuxing audio.
*************************************
EXCEPTION: Unsupported audio type.
*************************************
[5/31/2008 3:55:22 PM] Job finished. Total time: 1 hour, 12 minutes 58 seconds


manono
Member


Joined: 28 Aug 2003

Post Posted: Jun 02, 2008 01:55 Posts View users profile Send private message Reply with quote

It took over an hour to analyze the source? Anyway, it looks like there's something wrong with the audio, corrupted or something. I would try unchecking the audio track under step 2 and see if it'll make the video without the audio. If it works, you can demux the audio from the source and add it to the new video after it finishes (maybe).

MIGUELCOOL2000
Member


Joined: 03 Jun 2008
Location: Mexico

Post Posted: Jun 03, 2008 16:25 Posts Comp View users profile Send private message Reply with quote

manono wrote:
I have .avi file (video + audio) I just need to add subtitle to it... ?! Any idea?
Quote:
12/27/2006 4:52:37 PM] Audio 1: 56 Kbps MPEG-2 Audio layer 3 2ch

Evidently AutoGK doesn't support MP3 audio at such a low bitrate. Strip the audio from the AVI and feed an audioless AVI to AutoGK. Then remux the audio when done. Either that or reencode the audio to a higher bitrate and try again.


How can I separate the audio and the video to change the format of the audio which is MPEG-2 Audio layer 3 2ch.

Or

If I put the subtitles without the audio, how can I replace the audio again?

SALU2


manono
Member


Joined: 28 Aug 2003

Post Posted: Jun 03, 2008 16:38 Posts View users profile Send private message Reply with quote

To get the audio out of the source AVI:

Open the AVI in VDubMod. If a question pops up about VBR audio answer no. Go Streams->Stream List->Demux, give it a name and save it. When you go to encode in AutoGK, uncheck the box for the audio so it isn't seen. When done, add the audio back in:

Open the new audioless AVI. Set Video to Direct Stream Copy. Go Streams->Stream List->Add, find the audio and add it in. Then go File-Save As, give it a new name and save it.


Reply to topic All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7
Forum Index -> Video -> Subtitle Page 7 of 7





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics