Does anyone know how to convert 4:2:2 to 4:2:0 so it is playable again on Enigma2 settopbox?
I tried converting the .ts file with VLC to .ts Video - H.264 + MP3 (TS) with deinterlacing filter on.
The result is from a 50 GB file makes a 2.3 GB file with poor video quality and the audiotracks are switched.
When I try to play it on a settopbox it stops after a few seconds.
Handbrake converts it to MKV, but I'd rather want the standard TS-format what Enigma2 uses.
Furthermore I don't know if Handbrake can convert it and what options I should enable.
Handbrake is just a GUI using FFMPEG under the hood with some pre-configured options. I've converted one of these 4:2:2 MPEG-TS streams to 4:2:0 using FFMPEG before. I'm not sure Handbrake/another GUI tool have all the options to do the conversion well.
I use it on the command-line in Linux (you can do it under Windows with an FFMPEG.exe), and I don't bother de-interlacing (the Enigma2 box will handle that anyway). It takes a good few hours to transcode on my 7 year old i3 machine -
Code:
ffmpeg -i <4:2:2 file name.ts> -c:v libx264 -pix_fmt yuv420p -profile:v high -level:v 4.1 -preset slow -flags +ildct+ilme -crf 18 -c:a aac -b:a 128k <output-file-name.ts>
The
-crf value is the same as you can set within Handbrake, higher numbers mean lower file size but poorer quality.
-pix_fmt yuv420p converts it to 4:2:0.
-preset slow makes the file size smaller by taking a bit longer for maximum efficiency, you can use medium or fast to do it quicker with a bigger file size!
-flags +ildct+ilme maintain the interlace flagging in the video metadata, otherwise the video will still be interlaced but not marked and the Enigma2 box (or any player) won't automatically deinterlace - you'll see lots of jagged lines on movement!
The audio settings (codec AAC / bitrate 128k) assume you've just got the 384k MP2 stereo stream in your recording - if you've got the Dolby E stream as well (receivers usually ignore this when recording unfortunately) you can do more complicated processing in FFMPEG to turn it into 5.1 AC3.
The output of that command should be a playable MPEG-TS file in 4:2:0 H264 with AAC audio.