+ Reply to Thread
Results 1 to 27 of 27

Thread: why this .avi is shown as this?

  1. #1
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    why this .avi is shown as this?

    Hi cats

    I have a .avi file uncompressed that in virtualdub is open as this

    Image
    [Attachment 39041 - Click to enlarge]


    please can I achieve a "normal" image? thanks
    Quote Quote  

  2. #2
    Member
    Join Date
    May 2014
    Location
    Memphis TN, US
    Posts
    2,031

    Re: why this .avi is shown as this?

    VirtualDub top menu.
    "View" --> disable "Arrange video panes vertically".


    Then right-click anywhere on the image and in the right-hand side of the resulting menu, click on "16:9" at the bottom of the window.
    Last edited by LMotlow; 25th Oct 2016 at 13:37.
    - My sister Ann's brother
    Quote Quote  

  3. #3
    Member
    Join Date
    Jan 2007
    Location
    United States
    Posts
    1,998

    Re: why this .avi is shown as this?

    maybe an 'over under" 3D video ?
    Quote Quote  

  4. #4
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    mm I think the problem is another. I see this type of uncompressed file is shown "doubled" in virtualdub. Also avisynth read it bad. I wonder if is there a way to "merge" the 2 images so that I can see the full frame as right

    Image
    [Attachment 39054 - Click to enlarge]


    ps: I attach the .avi file uncompressed (only 10 frames) if you do some proof
    Attached Files
    Quote Quote  

  5. #5
    Member
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    28,719

    Re: why this .avi is shown as this?

    Maybe something like this ?

    Code:
    a=AVISource(u3.AVI")
    t=a.Crop(0,0,0,-540,true)
    b=a.Crop(0,540,0,0,true)
    
    Interleave(t,b)
    AssumeTFF().AssumeFieldBased()
    Weave()

    Where is video from ? Did your cat mess it up ?
    Quote Quote  

  6. #6
    Member
    Join Date
    Dec 2005
    Posts
    59,234

    Re: why this .avi is shown as this?

    Yes, it's just interlaced video with the fields stacked rather than interleaved line by line.
    Quote Quote  

  7. #7
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    Code:
    Oh my cat
    Image
    [Attachment 39056 - Click to enlarge]


    a=AVISource(u3.AVI")
    t=a.Crop(0,0,0,-540,true)
    b=a.Crop(0,540,0,0,true)

    Interleave(t,b)
    AssumeTFF().AssumeFieldBased()
    Weave()

    Seems work a little but in hardware playback is jerky.
    Possibly it should have something like this uncompressed (in a different "normal" mode) like this u3ok.avi attached ^^
    Attached Files
    Quote Quote  

  8. #8
    Member
    Join Date
    Dec 2005
    Posts
    59,234

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post
    Code:
    Oh my cat
    Image
    [Attachment 39056 - Click to enlarge]


    a=AVISource(u3.AVI")
    t=a.Crop(0,0,0,-540,true)
    b=a.Crop(0,540,0,0,true)

    Interleave(t,b)
    AssumeTFF().AssumeFieldBased()
    Weave()

    Seems work a little but in hardware playback is jerky.
    Then you encoded with the wrong field order. That script gives BFF output.
    Quote Quote  

  9. #9
    Member
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    28,719

    Re: why this .avi is shown as this?

    To switch it, use interlave(b,t) instead

    If you want progressive, then bob deinterlace after

    (Next time, don't let your cat near computer)

    Please don't uncompressed video without archiving it (e.g. zip, 7zip etc...) , or lossless compression
    Quote Quote  

  10. #10
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    Quote Originally Posted by poisondeathray View Post
    To switch it, use interlave(b,t) instead


    Code:
    LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll")
    a=LWLibavVideoSource("C:\stackedToInterleave.AVI")
    t=a.Crop(0,0,0,-540,true)
    b=a.Crop(0,540,0,0,true)
    Interleave(b,t)
    AssumeTFF().AssumeFieldBased().Weave()
    Image
    [Attachment 39058 - Click to enlarge]


    But I wonder: why exactly 540 lines and not another value?

    for example if I have a clip SD 720x576 is this script applyable?


    and... for kindness in ffmpeg how can I do this operation? thank
    Quote Quote  

  11. #11
    Member
    Join Date
    Dec 2005
    Posts
    59,234

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post
    But I wonder: why exactly 540 lines and not another value?
    Because it's a 1080p frame. If it was a 576p frame half would be 288. Generalized for any frame size:

    Code:
    LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll")
    a=LWLibavVideoSource("C:\stackedToInterleave.AVI")
    t=a.Crop(0,0,0,-a.height/2,true)
    b=a.Crop(0,a.height/2,0,0,true)
    Interleave(b,t)
    AssumeTFF().AssumeFieldBased().Weave()
    Last edited by jagabo; 26th Oct 2016 at 11:32.
    Quote Quote  

  12. #12
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    Ahn thanks, but please my cat have only 2 question:

    1) is possible to do it with ffmpeg?

    2) in avisynth can I do the same thing avoiding the use of a= in the script?

    Code:
    LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll")
    a=LWLibavVideoSource("C:\stackedToInterleave.AVI")
    t=a.Crop(0,0,0,-a.height/2,true)
    b=a.Crop(0,a.height/2,0,0,true)
    Interleave(b,t)
    AssumeTFF().AssumeFieldBased().Weave()
    thanks
    Last edited by marcorocchini; 26th Oct 2016 at 15:23.
    Quote Quote  

  13. #13
    Member
    Join Date
    Dec 2005
    Posts
    59,234

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post
    2) in avisynth can I do the same thing avoiding the use of a= in the script?

    Code:
    LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll")
    a=LWLibavVideoSource("C:\stackedToInterleave.AVI")
    t=a.Crop(0,0,0,-a.height/2,true)
    b=a.Crop(0,a.height/2,0,0,true)
    Interleave(b,t)
    AssumeTFF().AssumeFieldBased().Weave()
    Of course. Just use the assumed "last":

    Code:
    LWLibavVideoSource("C:\stackedToInterleave.AVI")
    t=Crop(0,0,0,-height/2,true)
    b=Crop(0,height/2,0,0,true)
    Interleave(b,t)
    AssumeTFF().AssumeFieldBased().Weave()
    You don't even need t and b:

    Code:
    Interleave(Crop(0,height/2,0,0,true), Crop(0,0,0,-height/2,true))
    AssumeTFF().AssumeFieldBased().Weave()
    Quote Quote  

  14. #14
    Member
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    28,719

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post


    and... for kindness in ffmpeg how can I do this operation? thank

    -vf il=l=i:c=i

    eg using utvideo
    Code:
    ffmpeg -i u3.avi -vf il=l=i:c=i -c:v utvideo -an output_utvideo.avi
    Quote Quote  

  15. #15
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    Thanks but only one thing:

    and in virtualdub how can I open this type of file?
    Quote Quote  

  16. #16
    Member
    Join Date
    Dec 2005
    Posts
    59,234

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post
    and in virtualdub how can I open this type of file?
    Use the earlier AviSynth script.
    Quote Quote  

  17. #17
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    Quote Originally Posted by jagabo View Post
    Quote Originally Posted by marcorocchini View Post
    and in virtualdub how can I open this type of file?
    Use the earlier AviSynth script.
    Image
    [Attachment 39073 - Click to enlarge]


    ahn I understand, avisynth is magic but in certain situation I have some file of 500-600 GB considering that i manage fullHD uncompressed and avisynth have to do the ffindex/lwi ... avisynth need dozen of minutes to calculate they ffindex/lwi also if avisynt is indispensable or perhaps the only to work.

    Really virtualdub cannot do this operation?
    Quote Quote  

  18. #18
    Member
    Join Date
    Sep 2007
    Location
    Canada
    Posts
    28,719

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post
    Thanks but only one thing:

    and in virtualdub how can I open this type of file?
    for the ffmpeg output, install ut video codec or use another compression with ffmpeg

    eg. if you wanted to use uncompressed 8bit 422 "UYVY"

    Code:
    ffmpeg -i u3.avi -vf il=l=i:c=i -pix_fmt uyvy422 -vcodec rawvideo -an -vtag "UYVY" output_UYVY.avi
    Quote Quote  

  19. #19
    Member
    Join Date
    Dec 2005
    Posts
    59,234

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post
    Really virtualdub cannot do this operation?
    I'm not aware of any VirtualDub filter (or combination of filters) that can do this. You could write your own filter to do it.

    Just make yourself a batch file that builds the AviSynth script and runs VirtualDub with that script.

    Code:
    echo AviSource("%~dpnx1") > "%~1.avs"
    echo Interleave(Crop(0,height/2,0,0,true),Crop(0,0,0,-height/2,true)) >> "%~1.avs"
    echo AssumeTFF().AssumeFieldBased().Weave() >> "%~1.avs"
    "G:\Program Files\VirtualDub\VirtualDub" "%~1.avs"
    Modify the batch file to suit your source type and location of VirtualDub. Drag and drop an AVI file onto that batch file. Or put it into your SendTo folder, right click on an AVI file and select Send To ->batchfilename.
    Quote Quote  

  20. #20

    Re: why this .avi is shown as this?

    deinterlace filter has "unfold side by side" option, but not "above under".
    try searching some 3d manipulation plugin, like this http://www.stereoscopie.fr/tech/vdubfilters.php?l=EN
    Quote Quote  

  21. #21
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    Code:
    Interleave(Crop(0,height/2,0,0,true), Crop(0,0,0,-height/2,true))
    AssumeTFF().AssumeFieldBased().Weave()


    please help a cat: I need to do the inverse operation

    from interleave to stacked, with avisynth

    from "normal" image --> to the first one "doubled"

    How I can do?
    Quote Quote  

  22. #22
    Member
    Join Date
    Dec 2005
    Posts
    59,234

    Re: why this .avi is shown as this?

    It's so obvious I don't understand how you can not figure this out yourself.

    Code:
    SeparateFields()
    StackVertical(SelectEven(),SelectOdd())
    Quote Quote  

  23. #23
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    because I'm a cat, but THHHANKS it work
    Quote Quote  

  24. #24
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    now I need to modify the .avi "stacked" to tell to program that opens it that .avi is stacked.

    If I don't mistake is necessary modify some bytes on VPRP section of the header of file stacked: someone have idea of how to do this?
    Quote Quote  

  25. #25
    Member
    Join Date
    Feb 2018
    Posts
    3,327

    Re: why this .avi is shown as this?

    Quote Originally Posted by marcorocchini View Post
    now I need to modify the .avi "stacked" to tell to program that opens it that .avi is stacked.

    If I don't mistake is necessary modify some bytes on VPRP section of the header of file stacked: someone have idea of how to do this?
    The standard .avi container/file format has no provision to signal this, AFAIK.
    https://cdn.hackaday.io/files/274271173436768/avi.pdf
    Why are you stacking the 2 fields of your interlaced source? Maybe I misunderstand your request, but are you possibly mixing up interleave (packed) vs planar to satisfy your program that opens it? Which program?
    http://avisynth.nl/index.php/ConvertToYUY2
    https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/convert.html

    Code:
    v=LWLibavVideoSource("your source")
    a=v.converttoYUY2(interlaced=true) #for interleaved YUY2 output
    b=v.converttoYV16(interlaced=true) #for planar YV16 output
    
    return a #or b
    Last edited by Sharc; 5th Aug 2025 at 04:04.
    Quote Quote  

  26. #26
    Member
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    2,288

    Re: why this .avi is shown as this?

    no simply cat experiment

    I wonder if is there a way to write, using virualdub, a .avi file uncompressed that mediainfo see as "interlaced" like my

    Image
    [Attachment 88148 - Click to enlarge]
    Quote Quote  

  27. #27
    Member
    Join Date
    Feb 2018
    Posts
    3,327

    Re: why this .avi is shown as this?

    Do you mean something like this:
    Attached Thumbnails Click image for larger version

Name:	Screenshot 2025-08-05 235122.jpg
Views:	2
Size:	78.4 KB
ID:	88152  

    Attached Files
    Last edited by Sharc; 5th Aug 2025 at 16:57.
    Quote Quote  

+ Reply to Thread

Similar Threads

  1. Replies: 21
    Last Post: 14th Apr 2015, 19:40
  2. DV File shown as avi?
    By hovserman in forum Video Conversion
    Replies: 16
    Last Post: 12th Nov 2014, 11:17
  3. HD movies are shown pixelated
    By Usurario in forum Software Playing
    Replies: 26
    Last Post: 5th Aug 2013, 01:11
  4. Replies: 5
    Last Post: 24th Jun 2013, 18:31
  5. Help identify VHS artifacts shown in screens
    By Okys in forum Capturing and VCR
    Replies: 8
    Last Post: 19th Jun 2013, 04:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts