This is the text of a script I have been trying to use to eliminate a grey bar that appears on the bottom of the video. I have no clue how to use the cropbottom script. I've been reading and looking but just don't get it. Please help me with this!
#AVS Script for 1080i or other resolution interlaced source
#Load the DGDecode plugin.
LoadPlugin("c:\avsfilters\DGDecode.dll")
#Load the video and audio files.
video = MPEG2Source("try1.d2v")
audio = DirectShowSource("try1.ac3")
# QuEnc AC3 encoding has LOW volume level, so compensate by amplifying audio
audio = audio.Amplify(16)
#video= CropBottom(80)
#video = video.Crop(0,0,-4,-0)
#Resize the video to make it complient for end product specs.
#For NTSC DVD spec: (640*11/10=704 + 8 pixels/side = 720)
video = video.BicubicResize(704,480)
video = video.AddBorders(8,0,8,0)
#Delay the audio (according to delay given by DVD2AVI)
audio = audio.DelayAudio(0-.43)
#Interleave the video and audio together.
av = AudioDub(video,audio)
#Return the video/audio
return av
+ Reply to Thread
Results 1 to 12 of 12
-
-
Why don't you use this line:
b=8
c= c.crop(0,0,720,480-b).addborders(0,0,0,b)
where c is the movie and b is the border height?
In your script, you are resizing (in fact stretching the frame)
If you want to resize, use this as an example:
bt=70
lr=12
c=c.crop(lr, bt, 720-2*lr,480-2*bt).LanczosResize(720, 480)
where bt are the top/bottom border heights and lr the left/right border widths. -
THANKS for your reply! I'm afraid I'm still lost. What I'm trying to do is eliminate a grey bar that appears on the botton of a captured HDTV clip. In TMPGEnc there is a "mask" option that would work but I want to maintain the 5.1 audio the clip has and use CCE to encode it.
I get lost on the syntax this scripting stuff requires. I keep reading and messing around but I think I picked the wrong year to quit Jack Daniels.
Wolf -
I just don't understand how to write this. I tryed adding the lines but obviously don't have a clue what i'm doing!
#AVS Script for 1080i or other resolution interlaced source
#Load the DGDecode plugin.
LoadPlugin("c:\avsfilters\DGDecode.dll")
#Load the video and audio files.
video = MPEG2Source("try1.d2v")
audio = DirectShowSource("try1.ac3")
# QuEnc AC3 encoding has LOW volume level, so compensate by amplifying audio
audio = audio.Amplify(16)
b=8
#video=.crop(0,0,720,480-b).addborders(0,0,0,b)
#video = video.Crop(0,0,-4,-0)
#Resize the video to make it complient for end product specs.
#For NTSC DVD spec: (640*11/10=704 + 8 pixels/side = 720)
video = video.BicubicResize(704,480)
video = video.AddBorders(8,0,8,0)
#Delay the audio (according to delay given by DVD2AVI)
audio = audio.DelayAudio(0-.43)
#Interleave the video and audio together.
av = AudioDub(video,audio)
#Return the video/audio
return av -
I'd demux the video first and add audio later.
Masking can v\be done with:
c= c.crop(0,0,720,480-8).addborders(0,0,0,8)
this masks the last 8 lines of the frame.
(crop removes 8 lines making the frame smaller and addborders adds 8 black lines making it 8 lines bigger) -
This app will save you a whole lot of time.
FIX1088 - change the vertical_size_value in the MPEG-2 video sequence headers from 1088 to 1080. This will remove the grey bar that you see at the bottom of some 1080i broadcasts. Specify the video PID on the command line.
http://www-personal.engin.umich.edu/%7Ebalazer/atsc/ -
Yippee Skipee YAY!!!! THAT looks like a SOLUTION!
Thanks!
But HOW do I use it?
I wish it weren't 1AM now cause I need to work in the morning so as to be able to afford some RB-75's for my mains...
Wolf -
If you want to try Fix1088, you'll need to give us some information:
1) Name of your original Mpeg file (it DOES have a .TS or .TP extension, right?) that you wish to modify/fix.
2) The Video PID - you determine this by opening the file with DGIndex . Under "Stream"-->DetectPIDs . The video PID will say something like "MPEG2 Video on PID 0X11". The only part you need to know is the "11".
Chances are, if it is a US broadcast, the Video PID will be either 11 or 31.
Post this info, and we'll set up the command syntax to fix your file . -
Originally Posted by jimmalenko
Wolf -
if you look some posts above you'll find:
movie= movie.crop(0,0,720,480-8).addborders(0,0,0,8)
this command masks the 8pixels at the bottom.Sorry, I had to go see about a girl
Similar Threads
-
New AVISynth UI
By tin2tin in forum Latest Video NewsReplies: 23Last Post: 19th Jan 2012, 01:53 -
avisynth
By sportflyer in forum Newbie / General discussionsReplies: 1Last Post: 16th Feb 2010, 04:36 -
Using avisynth
By bsuska in forum Video ConversionReplies: 8Last Post: 16th Jul 2009, 08:32 -
AVIsynth help!
By helper in forum Newbie / General discussionsReplies: 11Last Post: 15th Oct 2008, 03:35 -
Avisynth 3.0
By nbi in forum LinuxReplies: 1Last Post: 30th Oct 2007, 16:50