VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Apr 2005
    Location
    Alaska
    Search Comp PM
    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
    Quote Quote  
  2. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    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.
    Quote Quote  
  3. Member
    Join Date
    Apr 2005
    Location
    Alaska
    Search Comp PM
    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
    Quote Quote  
  4. Member
    Join Date
    Apr 2005
    Location
    Alaska
    Search Comp PM
    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
    Quote Quote  
  5. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    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)
    Quote Quote  
  6. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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/
    Quote Quote  
  7. Member
    Join Date
    Apr 2005
    Location
    Alaska
    Search Comp PM
    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
    Quote Quote  
  8. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Pardon me for statement of the obvious, but is the fact that you've got a # in front of your crop commands contributing to those particular commands "not working" ?

    # means "comment" or "ignore / don't execute" in AVISynth
    If in doubt, Google it.
    Quote Quote  
  9. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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 .
    Quote Quote  
  10. Member
    Join Date
    Apr 2005
    Location
    Alaska
    Search Comp PM
    Originally Posted by jimmalenko
    Pardon me for statement of the obvious, but is the fact that you've got a # in front of your crop commands contributing to those particular commands "not working" ?

    # means "comment" or "ignore / don't execute" in AVISynth
    Doh! I know nada about this stuff! I wish there was a way to mask a portion of the clip not crop it.

    Wolf
    Quote Quote  
  11. Member
    Join Date
    Jun 2004
    Location
    Ferrara-Italia
    Search Comp PM
    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
    Quote Quote  
  12. Member
    Join Date
    Apr 2005
    Location
    Alaska
    Search Comp PM
    It looks like it is a bug in Nero that is causing the grey bar.

    Wolf
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!