VideoHelp Forum
+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. I'm having a weird issue with my captures, where the colors look like they have incorrect field order, but the luminance channel is fine. Example - deinterlace a regular video with incorrect field order, though the problem will be on both Y & C.

    Is there any way of fixing this through Avisynth? (I spent hours finding a script, but it only caused a headache).

    And this has been an issue with 2 VCRs and 3 capture devices, I have no idea what causes it.
    Quote Quote  
  2. You should post a sample that clearly shows the problem. I doubt the problems is really the chroma channels being the wrong field order. But if that's really the case it could easily be fixed in AviSynth.
    Quote Quote  
  3. I hope a GIF is ok.
    Image Attached Thumbnails Click image for larger version

Name:	gif.gif
Views:	13
Size:	468.9 KB
ID:	80462  

    Last edited by useraxe; 6th Jul 2024 at 17:37.
    Quote Quote  
  4. A GIF is not a great way to show the problem because the video is converted from interlaced YUV to progressive RGB. Many errors can occur from that conversion. That's why it's important to have the original cap. Or use a program like AviDemux or VirtualDub to COPY (remux) a section of the video to a new file. In VirtualDub use Video -> Direct Stream Copy mode. In AviDemux set the video mode to COPY.
    Quote Quote  
  5. I sent it to you in a PM.
    Quote Quote  
  6. Member The_Doman's Avatar
    Join Date
    Feb 2004
    Location
    Netherlands
    Search PM
    Originally Posted by useraxe View Post
    I sent it to you in a PM.

    It's that sensitive?
    Quote Quote  
  7. You are right, the chroma has the opposite field order from the luma. I've never seen that before. Here's a fix:

    Code:
    LWLibavVideoSource("Sample.mkv", cache=false, prefer_hw=2) 
    AssumeTFF()
    SeparateFields()
    
    swapped = SelectEvery(2,1,0) # a video with the field order swapped
    MergeChroma(last, swapped) # use the original video for the luma, the swapped video for the chroma
    
    Weave() # weave the fields back into frames.
    QTGMC() # deinterlace for display
    Quote Quote  
  8. Thank you, thank you! Looks excellent now.
    Quote Quote  
  9. Here's something a little simpler:

    Code:
    LWLibavVideoSource("Sample.mkv", cache=false, prefer_hw=2) 
    MergeChroma(AssumeTFF().SeparateFields(), AssumeBFF().SeparateFields())
    Weave()
    QTGMC()
    The result is exactly the same.
    Quote Quote  
  10. jagabo: very nifty fix.
    Quote Quote  



Similar Threads

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