Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th November 2019, 13:58   #1  |  Link
mzso
Registered User
 
Join Date: Oct 2009
Posts: 930
Best way to deinterlace DVD animation within ffmpeg?

Hi!

I want to encode an animated series form the originial format of the DVD, to AVC (maybe HEVC?).
What's the best way to deinterlace?

The video properties are like this:
Code:
Video 
ID : 1 
Format : MPEG Video 
Format version : Version 2 
Format profile : Main@Main 
Format settings : CustomMatrix / BVOP 
Format settings, BVOP : Yes 
Format settings, Matrix : Custom 
Format settings, GOP : M=3, N=15 
Format settings, picture structure : Frame 
Codec ID : V_MPEG2 
Codec ID/Info : MPEG 1 or 2 Video 
Duration : 22 min 2 s 
Bit rate mode : Variable 
Bit rate : 5 102 kb/s 
Maximum bit rate : 7 500 kb/s 
Width : 720 pixels 
Height : 480 pixels 
Display aspect ratio : 4:3 
Frame rate mode : Variable 
Frame rate : 29.970 FPS 
Standard : NTSC 
Color space : YUV 
Chroma subsampling : 4:2:0 
Bit depth : 8 bits 
Scan type : Interlaced 
Scan order : Bottom Field First 
Compression mode : Lossy 
Bits/(Pixel*Frame) : 0.493 
Time code of first frame : 00:00:05;00 
Time code source : Group of pictures header 
GOP, Open/Closed : Closed 
Stream size : 804 MiB (93%) 
Title : Original 
Language : English 
Default : Yes 
Forced : No 
Color primaries : BT.601 NTSC 
Transfer characteristics : BT.601 
Matrix coefficients : BT.601
mzso is offline   Reply With Quote
Old 27th November 2019, 14:34   #2  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,903
rule 12.

is it even interlaced not telecine or a mix of both?
huhn is offline   Reply With Quote
Old 27th November 2019, 16:27   #3  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Half of this forum appears to be dedicated to anime and their deinterlacing.

I am sure the OP will find the right answer therein.
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 28th November 2019, 08:47   #4  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
huhn made the correct response.

Post a sample - 10 seconds or so direct from the source - so we can have a look and decide how it should be treated. If you don't know how already, DGIndex can cut an M2V from the DVD.
manono is offline   Reply With Quote
Old 28th August 2021, 16:26   #5  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 539
The very beggining of it can be interlaced but Mediainfo does not scan all the file. It can switch to progressive or some other form of cadence, even 8:7 cadence for anime. There is no simple way to deinterlace, detelecine and decadence it.
Balling is offline   Reply With Quote
Old 28th August 2021, 21:39   #6  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,048
If you can't be bothered to look at the video stream and figure out what horrible things were done to it and the best way to fix them, and you're just looking for a one-size-fits-all solution that can convert even the most pathological kinds of content into something that looks like what you'd see on a TV screen, then try this:

Code:
mpeg2source("blahblah.d2v").tfm(mode=0,pp=0,micmatching=0).converttorgb(interlaced=true)


GeneralConvolution(0, "
   0 1 0 
   0 2 0 
   0 1 0 ")

GeneralConvolution(0, "
   0 -1 0 
   0 6 0 
   0 -1 0 ")
However, this assumes that the source was intended to be pathological (retrograde field behavior and such). If there are blended frames due to incorrect frame rate conversion, then you're in a whole other world of shit.

Quote:
Originally Posted by manono View Post
huhn made the correct response.

Post a sample - 10 seconds or so direct from the source - so we can have a look and decide how it should be treated. If you don't know how already, DGIndex can cut an M2V from the DVD.
Even 10 seconds isn't enough. Have you ever looked at the Captain Planet DVDs? Some of it is straight film with soft telecine, some of it is film with hard telecine, and some of it looks like it was captured from VHS tapes that had been left in a car's glove box for too long. It changes not just from one episode to another, but within each episode.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 30th August 2021, 04:25   #7  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Katie Boundary View Post
Even 10 seconds isn't enough.
Sometimes it is; sometimes it isn't. While anime can be difficult, the majority follow the 'rules'.

The fellow asked a generic question using the incorrect term 'deinterlace'. A request for a generic untouched 10 second sample (never provided in a 2-year-old thread) was the right answer.
manono is offline   Reply With Quote
Old 10th January 2023, 04:43   #8  |  Link
i990049
Registered User
 
Join Date: Apr 2022
Posts: 2
ffmpeg doesn't has the best filter. My suggest is qtgmc, which is available in hybrid.
https://www.selur.de/
i990049 is offline   Reply With Quote
Old 10th January 2023, 10:26   #9  |  Link
richardpl
Registered User
 
Join Date: Jan 2012
Posts: 272
Not correct, the ffmpeg filter is best. QTGMC modifies by default both fields and thus is wrong.
richardpl is offline   Reply With Quote
Old 10th January 2023, 12:27   #10  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Which ffmpeg filter is 'best' for it ?
kolak is offline   Reply With Quote
Old 10th January 2023, 12:51   #11  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by richardpl View Post
Not correct, the ffmpeg filter is best. QTGMC modifies by default both fields and thus is wrong.
Use QTGMC(lossless=1) to keep the fields intact.
Sharc is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.