Since before the files converted to video were very fragile, after thinking for a long time I was able to make a new encoder&decoder. Now converted video files created with --lessf flag can be recorded with lossy codec and downloaded from YouTube (directly, not through Google Takeout).
Rejoice, come on🥳