Kodi does not respect DAR in mpeg-ts?
#1
Hi,

I have a bunch of old home videos, recorded with a Sony "fullhd" camera from 15 years ago..

Videos are in mpeg-ts format. ffmpeg dump:

Input #0, mpegts, from '00296.MTS':
  Duration: 00:00:01.57, start: 1.040000, bitrate: 12037 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), yuv420p(top first), 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s

The resolution is only 1440x1080. To my understanding "[SAR 4:3 DAR 16:9]" means player is supposed to stretch the image to 16:9 ratio? Kodi does not do this, it plays video in 4:3 so everything looks too narrow. However in the video listing it shows "1.78:1" as the aspect ratio, but still plays it in 4:3.

It looks fine on PC played with any other player I have tried. Also I seem to remember they showed correctly in Kodi running on Linux PC, but now on Android they look wrong.

I know I can fix this by setting "play 4:3 videos in full screen" from Kodi settings. But then it will stretch all other 4:3 videos too. Or is there some way to set this only for one directory?

Example clip:
https://zuik.org/nextcloud/index.php/s/23mp5NP426e34pb
Reply
#2
Interestingly, files play ok when converted to mkv. Just copied streams to new container, so it's very fast to do with ffmpeg.

ffmpeg -i file.MTS -c copy -o file.mkv

I made a script that batch converts my whole home video directory, it's easy to rerun when new videos are added.

But really odd that it doesn't work without converting.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi does not respect DAR in mpeg-ts?0