VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. I have several Lagarith intermediate AVI's that I am trying to stitch together. I wrote them all out exactly alike, or so I thought. Now sadly Avisynth video1 ++ video2 is complaining. Here are the mediainfo side by side:

    Video1 looks normal, but I can't for the life of me determine what on earth video2 is. Colorspace Y? I have tried re-exporting from PPro a few times to see if I can re-create the video2 specs, but no luck. Should I just assume these videos are corrupt? Please help!

    Code:
    General
    Complete name               : E:\video1.avi
    Format                      : AVI
    Format/Info                 : Audio Video Interleave
    Format profile              : OpenDML
    File size                   : 13.2 GiB
    Duration                    : 4mn 24s
    Overall bit rate            : 427 Mbps
    
    Video
    ID                          : 0
    Format                      : Lagarith
    Codec ID                    : LAGS
    Duration                    : 4mn 24s
    Bit rate                    : 427 Mbps
    Width                       : 1 920 pixels
    Height                      : 1 080 pixels
    Display aspect ratio        : 16:9
    Frame rate                  : 29.970 fps
    Color space                 : YUV
    Chroma subsampling          : 4:2:2
    Bit depth                   : 8 bits
    Bits/(Pixel*Frame)          : 6.877
    Stream size                 : 13.2 GiB (100%)
    Code:
    General
    Complete name               : E:\video2.avi
    Format                      : AVI
    Format/Info                 : Audio Video Interleave
    Format profile              : OpenDML
    File size                   : 16.9 GiB
    Duration                    : 4mn 22s
    Overall bit rate            : 553 Mbps
    
    Video
    ID                          : 0
    Format                      : Lagarith
    Codec ID                    : LAGS
    Duration                    : 4mn 22s
    Bit rate                    : 553 Mbps
    Width                       : 1 920 pixels
    Height                      : 1 080 pixels
    Display aspect ratio        : 16:9
    Frame rate                  : 29.970 fps
    Color space                 : Y
    Bits/(Pixel*Frame)          : 8.900
    Stream size                 : 16.9 GiB (100%)
    Quote Quote  
  2. If anyone can add some insight into this problem that would be great. For now though, I have figured out a work around with the following code:

    Code:
    video1 = AVISource("E:\VIDEO1.avi", audio=false).AssumeFPS(30000,1001).ConvertToYV12(interlaced=false, matrix="rec709")
    video2 = AVISource("E:\VIDEO2.avi", audio=false).AssumeFPS(30000,1001).ConvertToYV12(interlaced=false, matrix="rec709")
    
    video1 ++ video2
    Quote Quote  
  3. You can look at the output of AviSource with Info(). My guess is you used different colorspaces for the two videos (lagarith can work in RGB, RGBA, YUY2 or YV12 modes).
    Quote Quote  
  4. Good suggestion. Here are the infos from video1 and video2 respectively:

    Click image for larger version

Name:	video1.png
Views:	126
Size:	56.3 KB
ID:	34743
    Name:  video2.png
Views: 173
Size:  37.7 KB

    So you were right on! That Colorspace Y, should have really read RGB. Lesson learned, Avisynth is your friend. Thanks
    Quote Quote  
  5. About the only sources that should be RGB are computer generated images. Video sources are usually YUV 4:2:2 or 4:2:0 and you should avoid converting them to RGB when possible.
    Quote Quote  
  6. Indeed, it was my fault because Lagarith defaults to RGB in PPro, and I wasn't thorough enough in checking the settings before exporting. At this point in my project though, I will just chalk it up to lessons learned but not forgotten.
    Quote Quote  



Similar Threads

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