m2ts files reporting incorrect duration
It's a problem I had with Twonky and with the file I tried Serviio fixed it, however it doesn't seem to be the case with all files.
Basically the client sees the wrong duration for the file and so won't play beyond it. In this case it's my rip of Inglourious Basterds Blu-Ray with original video and original DTS-MA track. As you can see from MediaInfo below it's 2h 33m, however on both my Oppo BDP-93 and Panasonic Viera 42GT50 they report 8m 53s and 8m 50s respectively.
I've attached the logs from startup, playing in the Oppo then the Panasonic. I notice there's a Content-Length header for 2,004,877,312 bytes when the file is 35,334,998,016 bytes?
- Code:
ID : 0 (0x0)
Complete name : V:\Films\Blu-Ray\inglourious.basterds.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 32.9 GiB
Duration : 2h 33mn
Overall bit rate mode : Variable
Overall bit rate : 30.8 Mbps
Maximum Overall bit rate : 48.0 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 2h 32mn
Bit rate mode : Variable
Maximum bit rate : 38.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
Mode : 16
Format settings, Endianness : Big
Muxing mode : Stream extension
Codec ID : 134
Duration : 2h 32mn
Bit rate mode : Variable
Bit rate : Unknown / 1 509 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossless / Lossy
Text
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144