VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. HCEnc problem: video is not YV12,YUY2,YV16 ot YV24 color space

    AVS script of input file:
    Code:
    Video = AVISource("D:\Filmovi\DTS x264-SilverTorrentHD\aa.avi")
    
    Video = Video.ConvertToYV12()
    Video = Video.AddBorders(0,94,0,94)
    Video = Video.Spline16Resize(720,576)
    MediaInfo of input video:
    Code:
    General
    Complete name                            : D:\Filmovi\DTS x264-SilverTorrentHD\aa.avi
    Format                                   : AVI
    Format/Info                              : Audio Video Interleave
    File size                                : 56.7 MiB
    Duration                                 : 2mn 5s
    Overall bit rate                         : 3 803 Kbps
    Writing library                          : VirtualDub build 35491/release
    
    Video
    ID                                       : 0
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 12 frames
    Codec ID                                 : AVC1
    Duration                                 : 2mn 5s
    Bit rate                                 : 3 798 Kbps
    Nominal bit rate                         : 4 123 Kbps
    Width                                    : 1 280 pixels
    Height                                   : 532 pixels
    Display aspect ratio                     : 2.40:1
    Frame rate                               : 23.976 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.233
    Stream size                              : 56.6 MiB (100%)
    Writing library                          : x264 core 130 r2273 b3065e6
    Encoding settings                        : cabac=1 / ref=12 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=11 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=4123 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00

    SOLUTION:
    Code:
    Video = AVISource("D:\Filmovi\DTS x264-SilverTorrentHD\aa.avi")
    
    Video = Video.ConvertToYV12()
    Video = Video.AddBorders(0,94,0,94)
    Video = Video.Spline16Resize(720,576)
    
    return Video
    Last edited by Mark22; 16th May 2015 at 09:13.
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    "YV12" is a specific ordering of the generic YUV (or more accurately, Y'CbCr) 4:2:0 8bit color space. As you can see from the MediaInfo readout, that AVC file is YUV 4:2:0 8bit.

    Scott
    Quote Quote  
  3. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    Your problem is that you always assign the result to a clip variable named "Video", but you never let the content of this variable return out of the script. If you don't explicitly return anything, then AviSynth returns the implicit clip variable "last", which contains nothing in your case.

    So, either add
    Code:
    return Video
    to your script as the very last line, or substitute "Video" by "last" or nothing (no assignments, only statement-like function calls).

    Code:
    AVISource("D:\Filmovi\DTS x264-SilverTorrentHD\aa.avi")
    ConvertToYV12()
    AddBorders(0,94,0,94)
    Spline16Resize(720,576)
    Quote Quote  
  4. Thank you! You are genius!
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!