View Single Post
Old 21st March 2019, 06:01   #1  |  Link
cagali
Registered User
 
Join Date: May 2014
Posts: 51
How to encode 1080i source with x265 interlaced?

Source clip, a segment of a BD M2TS:
Code:
Bit depth                   : 8 bits
Scan type                   : Interlaced
Scan type, store method     : Separated fields
Scan order                  : Top Field First
Bits/(Pixel*Frame)          : 0.317
AVS:
Code:
LoadPlugin("LSMASHSource.dll")
LWLibavVideoSource("some.m2ts")

AssumeTFF()
SeparateFields() #actually the encoded .265 has the same md5 even if this line is removed
Command:
Code:
avs2yuv -raw %1.avs -o - | x265_SSSE3_32 --input-res 1920x1080 --fps 30000/1001 --interlace tff --preset medium --output %1.265 -- -
Using this setup, a resulting clip with the following mediainfo is encoded.

Quote:
...
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.127
Stream size : 46.0 MiB (100%)
Writing library : x265 3.0+1-ed72af837053:[Windows][GCC 8.2.0][32 bit] 8bit+10bit+12bit
Encoding settings : cpuid=1049071 / frame-threads=2 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=1
...
It cannot be correctly detected as 1080i TFF video with mpc-hc's lav video decoder using default settings.
If the "field order" is set to TFF instead of AUTO, the playback is somehow at 60fps.
However from the screen capture, it looks like it is force-deinterlacing a bad-deinterlaced progressive clip.

Are there any tools to check if the encoded clip is a properly interlaced one?
With mediainfo, it shows the "Scan type" of mpeg4 1080i as "MBAFF".
But for hevc 1080i clips, it shows nothing about the scan type.

Thank you very much!

(Yes interlaced mode is deprecated in x265.
This is just a test. )
cagali is offline   Reply With Quote