Hi ,
i recently bought a T95max (tanix tx6 variant) and tried the image LibreELEC-H3.arm-9.80-devel-20200908233609-08c8d60.tar, it didn't worked for me, i had no deinterlace option available in kodi. I decided to bit the bullet and build the image myself using a very recent baseline (9.80-devel-20201031184520-cf5a710-tanix-tx6) and your patchset. it still wouldn't work until i realized that module wasn't loaded because projects/Allwinner/linux/linux.aarch64.conf file didn't have have the following change:
# CONFIG_VIDEO_MEM2MEM_DEINTERLACE is not set
+CONFIG_VIDEO_SUN50I_DEINTERLACE=m
CONFIG_VIDEO_SUN8I_DEINTERLACE=m
after this change, everything looks good, i can get the deinterlace option from kodi and it works. However your patchset needs some more work, I tried to open an xvid/avi file and this crashed kodi - i suspect the deinterlace module (/dev/video1) cannot work with decoded frames sourced outside of v4l cedrus codec(/dev/media0) or there is a problem with video pipeline. logs below is the tail end of debug logging, just before kodi crashed.
2020-11-03 10:46:38.960 T:3303 INFO <general>: ffmpeg[0x28258d0X]: Metadata:
2020-11-03 10:46:38.961 T:3303 INFO <general>: ffmpeg[0x28258d0X]: encoder : Lavf57.41.100
2020-11-03 10:46:38.961 T:3303 INFO <general>: ffmpeg[0x28258d0X]: Duration: 00:51:39.52, start: 0.000000, bitrate: 1228 kb/s
2020-11-03 10:46:38.961 T:3303 INFO <general>: ffmpeg[0x28258d0X]: Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 720x404 [SAR 254:255 DAR 3048:1717], 1024 kb/s, SAR 40
4:405 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
2020-11-03 10:46:38.961 T:3303 INFO <general>: ffmpeg[0x28258d0X]: Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, fltp, 192 kb/s
2020-11-03 10:46:38.961 T:3303 DEBUG <general>: CDVDDemuxFFmpeg::AddStream ID: 0
2020-11-03 10:46:38.961 T:3303 DEBUG <general>: CDVDDemuxFFmpeg::AddStream ID: 1
2020-11-03 10:46:38.961 T:3303 INFO <general>: Opening stream: 0 source: 256
2020-11-03 10:46:38.961 T:3303 INFO <general>: Whitelist search for: width: 720, height: 404, fps: 25.000, 3D: false
2020-11-03 10:46:38.961 T:3303 DEBUG <general>: Whitelist is empty using default one
2020-11-03 10:46:38.961 T:3303 DEBUG <general>: Trying to find exact refresh rate
2020-11-03 10:46:38.962 T:3303 DEBUG <general>: No exact whitelisted resolution matched, trying double refresh rate
2020-11-03 10:46:38.962 T:3303 DEBUG <general>: No double whitelisted resolution matched, trying 3:2 pullback
2020-11-03 10:46:38.962 T:3303 DEBUG <general>: No 3:2 pullback refresh rate whitelisted resolution matched, trying current resolution
2020-11-03 10:46:38.962 T:3303 DEBUG <general>: Current resolution doesn't match, trying default resolution
2020-11-03 10:46:38.962 T:3303 DEBUG <general>: Default resolution doesn't provide reqired refreshrate, trying default resolution with double refreshrate
2020-11-03 10:46:38.962 T:3303 DEBUG <general>: Default resolution doesn't provide reqired refreshrate, trying default resolution with 3:2 pullback
2020-11-03 10:46:38.963 T:3303 DEBUG <general>: No whitelisted resolution matched
2020-11-03 10:46:38.963 T:3303 INFO <general>: Display resolution ADJUST : 1920x1080 @ 59.940063 Hz (24) (wei ght: 0.000)
2020-11-03 10:46:38.983 T:3303 INFO <general>: Creating video codec with codec id: 12
2020-11-03 10:46:38.983 T:3303 INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem MPEG4 decoder wrapper
2020-11-03 10:46:38.984 T:3303 ERROR <general>: ffmpeg[0x28258d0X]: [mpeg4_v4l2m2m] Could not find a valid device
2020-11-03 10:46:38.984 T:3303 ERROR <general>: ffmpeg[0x28258d0X]: [mpeg4_v4l2m2m] can't configure decoder
2020-11-03 10:46:38.984 T:3303 INFO <general>: CDVDVideoCodecDRMPRIME::Open - unable to open codec
2020-11-03 10:46:38.984 T:3303 INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder MPEG-4 part 2
2020-11-03 10:46:38.986 T:3303 DEBUG <general>: ffmpeg[0x28258d0X]: [src] sws_param option is deprecated and ignored
2020-11-03 10:46:39.015 T:3303 INFO <general>: ffmpeg[0x28258d0X]: Using device /dev/video1
Display More