VideoHelp Forum
+ Reply to Thread
Results 1 to 29 of 29
Thread
  1. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    I'm trying to deinterlace a video ,but I'm a bit confused. The video is a movie I ripped from dvd. When I played it on my laptop, I saw that it was interlaced. So, in VLC, I turned on deinterlacing and Blend mode. This fixed it just about perfectly. But when I put the video on my desktop computer, it was of course interlaced. So I did just what I did on my laptop. I turned on deinterlace in VLC and blend mode....and while that fixed the black horizontal lines that come with interlaced video, there is now this weird...banding when objects in the movie are moving up and down. This is what it looks like...

    I know that this can happen when you pause a video even if it was deinterlaced...I think. I'm not too knowlegable on this subject. All I know is that when the video is moving, I still notice this.

    Can anything be done ? Could I deinterlace it through Handbrake or something ?
    Image Attached Thumbnails Click image for larger version

Name:	Clipboard_10-17-2024_01.jpg
Views:	14
Size:	58.6 KB
ID:	82888  

    Click image for larger version

Name:	Clipboard_10-17-2024_02.jpg
Views:	11
Size:	40.0 KB
ID:	82889  

    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  2. In VLC try 'Deinterlace ON' and 'Deinterlace mode Yadif (2x)'.
    If it doesn't help upload a few seconds of your video.
    Quote Quote  
  3. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Sharc View Post
    In VLC try 'Deinterlace ON' and 'Deinterlace mode Yadif (2x)'.
    If it doesn't help upload a few seconds of your video.
    the pictures I posted IS with deinterlace on and Yadif 2X. And I don't know how to post a few seconds of the video. I wish there was some way I could just send you the whole movie....
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Use Avidemix, open the movie, use the A and B buttons on the time line to set the in and out points
    Save it as mkv ( the default)
    Quote Quote  
  5. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Use Avidemix, open the movie, use the A and B buttons on the time line to set the in and out points
    Save it as mkv ( the default)
    I think I figured it out. But I saved it as mp4, because that's what the file is. The funny thing is that the quality of the video is both better and worse. the weird banding is gone with played through Avidmux, but the interlace lines are there...no matter what mode I use to watch the clip in VLC.

    I'm giving up at this point. Maybe it will play fine if I put the movie on a usb stick and watch it through my PS4....
    Image Attached Files
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  6. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    The funny thing is that the quality of the video is both better and worse. the weird banding is gone with played through Avidmux, but the interlace lines are there
    Make sure you use Video>Copy and Audio>Copy when you give us a snippet. The new snipped file shouldn't look any different to the original.

    AVIDemux should look like this (Output format "MP4 Muxer"):
    Image
    [Attachment 82900 - Click to enlarge]


    There's something odd about the MP4 you've posted above. Stepping through it, one can see a PPPII pattern (progressive x 3 frames followed by 2 interlaced frames), as if it was Telecined. But it is a cartoon, so I wouldn't have thought it would be. Anyway, applying the IVTC filter in VDub clears one of the interlaced frames but not the other, so then it's PPPPI.

    Have to wait for an expert, but I'm sure it can be completely fixed.
    Quote Quote  
  7. Telecined source resized vertically without IVTC and encoded as progressive?
    The vertical size of 418 and the VFR is certainly not from a valid DVD rip.

    Edit: Here an attempt of a fix (still some ugly frames towards the end):
    Image Attached Files
    Last edited by Sharc; 18th Oct 2024 at 11:32. Reason: Attachment added
    Quote Quote  
  8. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Alwyn View Post
    The funny thing is that the quality of the video is both better and worse. the weird banding is gone with played through Avidmux, but the interlace lines are there
    Make sure you use Video>Copy and Audio>Copy when you give us a snippet. The new snipped file shouldn't look any different to the original.

    AVIDemux should look like this (Output format "MP4 Muxer"):
    Image
    [Attachment 82900 - Click to enlarge]


    There's something odd about the MP4 you've posted above. Stepping through it, one can see a PPPII pattern (progressive x 3 frames followed by 2 interlaced frames), as if it was Telecined. But it is a cartoon, so I wouldn't have thought it would be. Anyway, applying the IVTC filter in VDub clears one of the interlaced frames but not the other, so then it's PPPPI.

    Have to wait for an expert, but I'm sure it can be completely fixed.
    I wish this was something I could do. I guess I just have to hope that my dvd won't crap out on me....as it is literally impossible to find as it's not sold anymore.

    I just don't get it. I can watch with VLC player on my laptop and the movie plays perfectly with not interlacing. But when I watch on my desktop, with VLC and the same settings as when I watch on my laptop...well....you've seen what it looks like.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  9. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Sharc View Post
    Telecined source resized vertically without IVTC and encoded as progressive?
    The vertical size of 418 and the VFR is certainly not from a valid DVD rip.

    Edit: Here an attempt of a fix (still some ugly frames towards the end):
    I wish I could get it to look like that on my end. And it IS a valid dvd rip. I ripped it myself. This movie is impossible to find. In the last decade or so since I bought it, it's not sold anywhere I can find and in a decade, I have only seen one single copy on ebay.

    Unless I'm misunderstanding what you mean by valid...
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  10. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Perhaps post a section from one of the original VOB files. You can use Avidemux,
    set "output format" to mpeg-ps muxer
    Quote Quote  
  11. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    And it IS a valid dvd rip. I ripped it myself.
    It is not. Just check the parameters of your posted video and you'll see why
    Quote Quote  
  12. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by lollo View Post
    Originally Posted by Spottedfeather View Post
    And it IS a valid dvd rip. I ripped it myself.
    It is not. Just check the parameters of your posted video and you'll see why
    I've seen them, but I have no idea what you're talking about. How is it not valid ? I put the dvd in the drive and ripped it to my computer....unless you mean something different than what I mean when I say rip...
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  13. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Perhaps post a section from one of the original VOB files. You can use Avidemux,
    set "output format" to mpeg-ps muxer
    I didn't have any VOB files, whatever those are. I just copied the movie from the disk to my computer...unless I'm doing it wrong. I can try ripping it again......if I can figure out how to use Avidmux. I just tried to save a video with it and it didn't work. I'm probably using it wrong, though. what should I rip the dvd with ?
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  14. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    Originally Posted by lollo View Post
    Originally Posted by Spottedfeather View Post
    And it IS a valid dvd rip. I ripped it myself.
    It is not. Just check the parameters of your posted video and you'll see why
    I've seen them, but I have no idea what you're talking about. How is it not valid ? I put the dvd in the drive and ripped it to my computer....unless you mean something different than what I mean when I say rip...
    What program did you use and what content was created on your HDD (or SSD) ?
    Did you get a video_ts folder?
    Quote Quote  
  15. Originally Posted by Spottedfeather View Post
    Originally Posted by Sharc View Post
    Telecined source resized vertically without IVTC and encoded as progressive?
    The vertical size of 418 and the VFR is certainly not from a valid DVD rip.

    Edit: Here an attempt of a fix (still some ugly frames towards the end):
    I wish I could get it to look like that on my end. And it IS a valid dvd rip. I ripped it myself. This movie is impossible to find. In the last decade or so since I bought it, it's not sold anywhere I can find and in a decade, I have only seen one single copy on ebay.

    Unless I'm misunderstanding what you mean by valid...
    - DVD is mpeg2 in a .VOB container, resolution 720x480 for NTSC, framerate fix 29.97fps (59.94 fields per second), audio typically AC3 ....
    - Your "Rip" is mpeg4 (AVC) in .mp4 container, resolution 720x416, variable framerate, audio AAC.
    Frankly your "DVD rip" is crap. Probably your ripping tool/process messed it up badly. Vertically rescaling a telecined source has damaged the 2 combed frames out of every 5 frames.
    Last edited by Sharc; 18th Oct 2024 at 18:29.
    Quote Quote  
  16. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    Originally Posted by lollo View Post
    Originally Posted by Spottedfeather View Post
    And it IS a valid dvd rip. I ripped it myself.
    It is not. Just check the parameters of your posted video and you'll see why
    I've seen them, but I have no idea what you're talking about. How is it not valid ? I put the dvd in the drive and ripped it to my computer....unless you mean something different than what I mean when I say rip...
    What program did you use and what content was created on your HDD (or SSD) ?
    Did you get a video_ts folder?
    I have no idea. Once I got the video on my computer, I deleted everything but the movie. Maybe I shouldn't have. I'll try ripping it again tomorrow. Any suggestions as to how ? Obviously I didn't do it right the first time.

    What program did I use ? I don't remember at this point. But I think I just put the dvd in the drive and when it appeared, I go the video file from that.

    Let's say that I get the video_TS files on my computer. What would be my next step ? I'd like it to be mp4, as I can't watch MKV files on my computer. MKV files will load and start...but after a few seconds, they get all choppy, making it impossible to watch.

    Couple problems. I have two files I'm trying to...get correct. One is the file I've been posting about here. An mp4 that has interlace weirdness. On my laptop, the file will play just fine. It IS interlaced, but if I open it in VLC, I turn on interlacing and Blend mode. Then, the movie looks perfect. But on my desktop computer, I'll open the file in VLC, turn on interlacing and Blend mode...and while the jaggy black lines are gone, but then there are weird warping thick lines like in the example pictures I've posted. Don't know why it works on one computer and not in the other.

    The second file is a MKV file. It will load, but doesn't play for more than a few seconds before it gets all choppy. Using handbrake, I THINK I've gotten a resulting file that is QUITE close to the original in quality. THIS file...I think I can live with. I'll keep the slightly less quality mp4 for watching on my computers and I'll put the MKV file on a usb stick and watch it on my PS4 Pro or blu-ray player.....Though I would like to be able to burn a dvd...as long as I can get rid of the interlacing weirdness.


    Sorry for rambling so much, but while I know quite a bit about computers, dvd ripping and burning and encoding etc...I don't know much about.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  17. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Starting from scratch:

    - It sounds like the DVD isn't copy-protected. Copy the VIDEO_TS folder on the DVD to your hard drive (I think you have already done that)

    - Convert the VOBs in that VIDEO_TS folder into a single MPEG. Use the process with AVIDemux I describe on my website here.

    - Make a snippet of around 30 seconds for us to analyse, using the procedure here.

    - Attach that snippet here. I suspect the experts will be able to guide you to a pristine result.

    - Once we've sorted out the interlacing/telecine, you can then use Handbrake to create an MP4 to your liking.
    Last edited by Alwyn; 18th Oct 2024 at 21:18. Reason: "telecine" added as per jagabo's comment in following post.
    Quote Quote  
  18. The problem is you are resizing the frame vertically before deinterlacing. That has caused the two fields to be co-mingled. Normally you want to deinterlace before scaling to prevent the problem you are seeing.

    But your source is telecined film. It should be inverse telecined rather than deinterlaced. That will restore the original 23.976 fps film frames.
    Quote Quote  
  19. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Alwyn View Post
    Starting from scratch:

    - It sounds like the DVD isn't copy-protected. Copy the VIDEO_TS folder on the DVD to your hard drive (I think you have already done that)

    - Convert the VOBs in that VIDEO_TS folder into a single MPEG. Use the process with AVIDemux I describe on my website here.

    - Make a snippet of around 30 seconds for us to analyse, using the procedure here.

    - Attach that snippet here. I suspect the experts will be able to guide you to a pristine result.

    - Once we've sorted out the interlacing/telecine, you can then use Handbrake to create an MP4 to your liking.
    I'm doing this right now. Just to see what would happen, I played the dvd in VLC...and it played just fine. I DID have the deinterlace set on automatic and Blend mode on. It played perfectly. I don't know what's going on. I'll let you know what happens when I follow your suggestions.

    Update.....okay. I just did what your website said. The resulting mpg file works perfectly. With deinterlacing set to on and put in Blend mode, VLC plays it perfectly, whereas, as you know, the previous time I tried this, I had problems and the deinterlacing setting in VLC wouldn't do much.

    Here's the snippet. it's about the first minute or so of the movie and what I think is some of the worst interlacing effects.
    Image Attached Files
    Last edited by Spottedfeather; 19th Oct 2024 at 10:48.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  20. It's standard 2:3 telecined. You need to IVTC it.

    Code:
    LWLibavVideoSource("VTS_01_1_edit.mpg")
    AssumeTFF()
    TFM().TDecimate() #returns the 23.97fps progressive film frames
    ConverttoYV12()
    Now encode it using the encoder of your choice. Or use any of the many GUIs which support IVTC.
    Image Attached Files
    Last edited by Sharc; 19th Oct 2024 at 11:38.
    Quote Quote  
  21. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Sharc View Post
    It's standard 2:3 telecined. You need to IVTC it.

    Code:
    LWLibavVideoSource("VTS_01_1_edit.mpg")
    AssumeTFF()
    TFM().TDecimate() #returns the 23.97fps progressive film frames
    ConverttoYV12()
    Now encode it using the encoder of your choice. Or use any of the many GUIs which support IVTC.
    And how do I do that ? What is IVTC ?
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  22. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo View Post
    The problem is you are resizing the frame vertically before deinterlacing. That has caused the two fields to be co-mingled. Normally you want to deinterlace before scaling to prevent the problem you are seeing.

    But your source is telecined film. It should be inverse telecined rather than deinterlaced. That will restore the original 23.976 fps film frames.
    I'm not resizing anything. Just a straight convert from the file from the dvd rip.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  23. Originally Posted by Spottedfeather View Post
    Originally Posted by Sharc View Post
    It's standard 2:3 telecined. You need to IVTC it.

    Code:
    LWLibavVideoSource("VTS_01_1_edit.mpg")
    AssumeTFF()
    TFM().TDecimate() #returns the 23.97fps progressive film frames
    ConverttoYV12()
    Now encode it using the encoder of your choice. Or use any of the many GUIs which support IVTC.
    And how do I do that ? What is IVTC ?
    IVTC = Inverse Telecine (aka Reverse Telecine) means restore the original 24fps film frames from the telecined video 29.97fps.
    https://en.wikipedia.org/wiki/Telecine#2:3_pulldown
    https://en.wikipedia.org/wiki/Telecine#Reverse_telecine


    Many ways to do it, for example
    - Avisynth using the script given above
    - Using a GUI like Virtualdub2, AVS2DVD, Handbrake, Clever FFMPEG-GUI etc. etc.
    Last edited by Sharc; 19th Oct 2024 at 12:58.
    Quote Quote  
  24. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Sharc View Post
    Originally Posted by Spottedfeather View Post
    Originally Posted by Sharc View Post
    It's standard 2:3 telecined. You need to IVTC it.

    Code:
    LWLibavVideoSource("VTS_01_1_edit.mpg")
    AssumeTFF()
    TFM().TDecimate() #returns the 23.97fps progressive film frames
    ConverttoYV12()
    Now encode it using the encoder of your choice. Or use any of the many GUIs which support IVTC.
    And how do I do that ? What is IVTC ?
    IVTC = Inverse Telecine (aka Reverse Telecine) means restore the original 24fps film frames from the telecined video 29.97fps.
    https://en.wikipedia.org/wiki/Telecine#2:3_pulldown
    https://en.wikipedia.org/wiki/Telecine#Reverse_telecine


    Many ways to do it, for example
    - Avisynth using the script given above
    - Using a GUI like Virtualdub2, AVS2DVD, Handbrake, Clever FFMPEG-GUI etc. etc.
    I have Handbrake. How do I TVTC the file in Handbrake ?
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  25. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    I have Handbrake. How do I TVTC the file in Handbrake ?
    Set it up as you normally would.
    ON the filters tab select "detelecine" / default.
    ON the video tab set FPS to 23.976/constant
    Quote Quote  
  26. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    I have Handbrake. How do I TVTC the file in Handbrake ?
    Set it up as you normally would.
    ON the filters tab select "detelecine" / default.
    ON the video tab set FPS to 23.976/constant
    good lord, I'm dense. that sounds extremely easy. You'd think that someone my age would have figured this all out by now...

    I don't need to use that code you posted, do I ? I can just detelecine like you said ?
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  27. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    I have Handbrake. How do I TVTC the file in Handbrake ?
    Set it up as you normally would.
    ON the filters tab select "detelecine" / default.
    ON the video tab set FPS to 23.976/constant
    good lord, I'm dense. that sounds extremely easy. You'd think that someone my age would have figured this all out by now...

    I don't need to use that code you posted, do I ? I can just detelecine like you said ?
    Using HB with it's built-in filters is an alternative to using the Avisynth code.
    Quote Quote  
  28. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    I have Handbrake. How do I TVTC the file in Handbrake ?
    Set it up as you normally would.
    ON the filters tab select "detelecine" / default.
    ON the video tab set FPS to 23.976/constant
    good lord, I'm dense. that sounds extremely easy. You'd think that someone my age would have figured this all out by now...

    I don't need to use that code you posted, do I ? I can just detelecine like you said ?
    Using HB with it's built-in filters is an alternative to using the Avisynth code.
    I've got it processing right now with the suggestions you just gave me. I'll let you know how it turns out.

    Update. The movie seems to play perfectly fine now. It worked. I opened it in VLC with deinterlace turned off and it looks great. Thanks for all the help. I don't think I would have ever been able to figure this out on my own...
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  



Similar Threads

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