FFmpeg for m2t and Sony Bravia - not working -f mp4 -c:v libx264 -preset veryslow -tune grain -profile:v high422 -flags +ildct+ilme 


I am preparing video to be streamed (DLNA) from my NAS to an older Sony Bravia. I have successfully created playable m2t files (1080i) with VideoStudio (AVC, high@L4, Cabac, h264, vbr max 20 Mbps, 25 fps, interlaced). Interlaced is important because it seems the TV cannot handle 1080p from NAS or USB. 
I have some old family video in prores/mov that VideoStudio does not accept as input, so I am trying to convert that to something acceptable to the TV using FFmpeg. 


I haven't found a way to create m2t files with FFmpeg.
The TV is supposedly capable of handling MP4, but regardless of the settings tried — and I have tried dozens that all plays well on VLC (including BD compatible, PSP profiles and other) the TV just says 'not playable' 


Anyone has ideas for any of the two routes?

Searching the internet I have learned that the Sony Bravia is known for being very picky, but I am sure someone has found the key...? (other than those at pavtube, who claims to have a commercial tool, that does the trick)

FFprobe of working m2t file:

Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc 
Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s


Properties of working m2t by MediaTab:

===================== General =====================
Id                          : 0 (0x0)
Complete name               : D:\ThisWorks.m2t
Format                      : BDAV
Format info                 : Blu-ray Video
File size                   : 2.21 GB
Duration (ms)               : 21mn 10s
Overall bit rate mode       : Variable
Overall bit rate            : 14.9 Mbps
Maximum Overall bit rate    : 25.5 Mbps

===================== Video =====================
Id                          : 4113 (0x1011)
Menu ID                     : 1 (0x1)
Format                      : AVC
Format info                 : Advanced Video Codec
Formatprofile               : High@L4
Formatsettings, CABAC       : Yes
Formatsettings, ReFrames    : 2 frames
Formatsettings, GOP         : N=1
Codec Id                    : 27
Duration (ms)               : 21mn 10s
Bit rate mode               : Variable
Bit rate                    : 13.9 Mbps
Maximum bit rate            : 20.0 Mbps
Width                       : 1 920 pixels
Height                      : 1 080 pixels
Display aspect ratio        : 16:9
Frame rate                  : 25.000 fps
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Interlaced
Scan type, store method     : Separated fields
Scan order                  : Top Field First
Bits/(Pixel*Frame)          : 0.269
Stream size                 : 2.06 GB (93%)

===================== Audio =====================
Id                          : 4352 (0x1100)
Menu ID                     : 1 (0x1)
Format                      : AC-3
Format info                 : Audio Coding 3
Mode extension              : CM (complete main)
Formatsettings, Endianness  : Big
Codec Id                    : 129
Duration (ms)               : 21mn 10s
Bit rate mode               : Constant
Bit rate                    : 384 Kbps
Channel(s)                  : 2 channels
Channel positions           : Front: L R
Sampling rate               : 48.0 KHz
Frame rate                  : 31.250 fps (1536 spf)
Compression mode            : Lossy
Stream size                 : 58.2 MB (3%)
Try

ffmpeg -i in -vf format=yuv420p,setsar=1 -g 25 -c:v libx264 -tune grain -profile:v high -refs 2 -x264opts bluray-compat=1:fake-interlaced=1:nalhrd=vbr:aud=1 -maxrate 20M -bufsize 20M -c:a ac3 -ac 2 out.ts


FFmpeg can't replicate Scan type, store method     : Separated fields but it may not matter.