I am trying to convert some old anime from the 90's and early 00's.
I use this argument to convert to x265:
-c:v libx265 -crf:v 24 -tune:v animation -x265-params "aq-mode=3:aq-strength=0.65:bframes=4:keyint=240:min-keyint=24"
But the result ends with these lines:
I was told i have to deinterlace it, so i added -vf yadif=1 to the argument, but the result were blurry lines and low quality. Like, the video is watchable and those lines disappear, but the drawings are sightly more blurry compared to the sharp drawings of the originals.
See:
Right is original, left encode.
Notice how you can clearly see the line between the shoe and the black socks on the right, but on the left is so blurry it's not visible!
It's just not as sharp.
I tried a much lower crf but the result never looked as detailed/sharp as the original, so -vf yadif=1 is somehow ruining the quality of the outputs.
How can i fix this?
+ Reply to Thread
Results 1 to 9 of 9
-
-
Usually anime will be progressive content, just telecined for DVD
You would need to inverse telecine to recover the original progressive film frames. Deinterlacing with yadif just reduces resolution in 1/2 because it's interpolating from 1 field, that's why it looks blurry . Field matching combines both partner fields, for full resolution
For NTSC DVD (assuming that's what it is), sometimes ffmpeg can mess up reading the timecodes, so you should set the FPS . Yadif is only used for combed frames after the field matching, such as orphaned fields
Code:-vf "fps=30000/1001,fieldmatch,yadif=deint=interlaced,decimate"
-
Thank you both for your answers.
This improved somewhat, but there are still some differences.
Original on the right.
Your vf on the left.
This works, the quality improved, but there are still liiiitle differences in the bone line being longer on the right and shoe definition being more noticeable. How can i make these settings stronger, so i get a better result that is almost 100% like the original?
I think that if make these settings stronger it will completely work.
I tried this, but the video i got as result was 6 seconds shorter and the audio was obviously displaced.
I do not know why.
Also, in both method i got this too:
-
I think the filter sequence I used only works for 100 percent hard telecined video. For a mix of hard/soft telecine you'll need to specify the fps parameter. In fact, it wouldn't hurt to always specify the fps parameter for NTSC DVD sources.
As for the "still interlaced" frames, PDR's addition of the yadif filter may take care of any frames still interlaced after fieldmatch (generally from orphaned fields or field blending).
For the loss of detail/sharpness you might be able to fine tune so of the fieldmatch parameters:
https://ffmpeg.org/ffmpeg-filters.html#fieldmatch
The post fieldmatch yadif may be causing some of that too:
https://ffmpeg.org/ffmpeg-filters.html#yadif-1
For more complex cases you may need to use AviSynth.
Upload a short sample of your source that shows the problems (don't re-encode). For more detailed help... -
In your last screenshot, the loss in shoe definition in the shadow area looks more like lossy encoding problem, not a filtering problem such as deinterlacing vs. field matching.
Use better encoding settings and/or higher bitrate , lower crf -
Yes, he should try a lossless setting (crf=0) and compare that result to the source to be sure where the losses are coming from.
-
Note for libx265, crf=0 is not lossless. You need to enable lossless encoding with the lossless switch
Code:-x265-params lossless=1
Similar Threads
-
Error message while encoding x265 using ffmpeg, thread message queue blo...
By sienipulla in forum Video ConversionReplies: 10Last Post: 30th Sep 2022, 09:51 -
FFMPEG x265 encoding wrong settings for some sources
By tony95 in forum Video ConversionReplies: 4Last Post: 10th Dec 2021, 12:11 -
x265 2-pass error using FFmpeg Batch AV Converter
By pascor in forum Video ConversionReplies: 20Last Post: 19th May 2021, 07:40 -
FFMPEG X265 Parameter help please
By iKron in forum Video ConversionReplies: 6Last Post: 9th May 2021, 20:42 -
x265 CRF Encoding - Quality & file sizes.
By pezwf in forum Newbie / General discussionsReplies: 17Last Post: 12th May 2020, 01:25