FAQ  •  Register  •  Login

MKV video seeking issues

<<

sMaxi

Serviio newbie

Posts: 6

Joined: Fri Apr 26, 2013 8:00 pm

Post Mon Apr 29, 2013 8:13 am

MKV video seeking issues

I have a bunch of MKV files, which all share a similar problem.

They stream from my Mac to my Samsung UE40ES6307 tv and play for full duration. I am using a Samsung C/D/E profile.
The problems are as follows
- these files always display a "this file may not be playable properly" warning
- seeking is always disabled
- they always have the wrong total duration displayed on TV. For example, the file detailed below has total video time of 24 minutes (which runs for full duration), but TV video progress bar only shows 31 seconds, fills up to full in 31 seconds time and stays full until the end of the video.

I have applied the steps detailed in header.com section of the wiki, to no avail :(

An example of problematic file (post-remux) is below
  Code:
General
Unique ID                                : 89803069263481187437495471342377247130 (0x438F71282C4C5728C9DBDAE5045C219A)
Complete name                            : /Users/maxibook/Desktop/tt/qq.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 47.5 MiB
Duration                                 : 24mn 3s
Overall bit rate                         : 276 Kbps
Encoded date                             : UTC 2013-04-29 07:21:16
Writing application                      : mkvmerge v6.1.0 ('Old Devil') built on Mar  2 2013 22:22:31
Writing library                          : libebml v1.3.0 + libmatroska v1.4.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 10@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 24mn 3s
Bit rate                                 : 271 Kbps
Width                                    : 512 pixels
Height                                   : 384 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.057
Stream size                              : 46.6 MiB (98%)
Writing library                          : x264 core 124 r2197 69a0443
Encoding settings                        : cabac=1 / ref=16 / deblock=1:1:2 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=26.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Language                                 : English
Default                                  : Yes
Forced                                   : No


below is an example of MKV file which doesn't have this issue and handles seeking properly:
  Code:
General
Unique ID                                : 179186935327423683258391989972526584270 (0x86CE2600194613B088711B3A629E51CE)
Complete name                            : /Users/maxibook/Desktop/tt/qq2.mkv
Format                                   : Matroska
Format version                           : Version 1
File size                                : 230 MiB
Duration                                 : 29mn 13s
Overall bit rate                         : 1 099 Kbps
Encoded date                             : UTC 2007-08-13 23:45:25
Writing application                      : mkvmerge v2.0.2 ('You're My Flame') built on Feb 21 2007 23:40:55
Writing library                          : libebml v0.7.7 + libmatroska v0.8.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 13 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 29mn 13s
Bit rate                                 : 903 Kbps
Width                                    : 704 pixels
Height                                   : 396 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.108
Stream size                              : 185 MiB (81%)
Writing library                          : x264 core 56 svn-667C
Encoding settings                        : cabac=1 / ref=10 / deblock=1:-2:-1 / analyse=0x3:0x133 / me=umh / subme=6 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=3 / nr=0 / decimate=0 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=903 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : A_MPEG/L3
Codec ID/Hint                            : MP3
Duration                                 : 29mn 13s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 40.1 MiB (17%)
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No


Any help with zeroing in on the problem would be much appreciated.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Apr 29, 2013 10:02 am

Re: MKV video seeking issues

On first : Format profile : High 10@L3.1, should be transcode to mpeg2video (High10 not supported).
One second, video track should be only remuxed (not transcoded).

So seeking / total duration, difference are probably due to a different way to provide stream to your device.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

sMaxi

Serviio newbie

Posts: 6

Joined: Fri Apr 26, 2013 8:00 pm

Post Mon Apr 29, 2013 12:59 pm

Re: MKV video seeking issues

Thanks for the reply :D

The second file plays without issues. Even with no additional remuxing, seeking works alright. I provided it mostly as a point of reference.

The first file does actually play when streamed to my tv through Serviio. I just don't get any seeking.
Last edited by sMaxi on Mon Apr 29, 2013 1:25 pm, edited 1 time in total.
<<

sMaxi

Serviio newbie

Posts: 6

Joined: Fri Apr 26, 2013 8:00 pm

Post Mon Apr 29, 2013 1:24 pm

Re: MKV video seeking issues

Went over the profile xml.
I'm using this profile for my TV:
  Code:
<Profile id="7" name="Samsung TV / player (C/D/E-series)" extendsProfileId="1">

This profile has, among others, these transcoding options:
  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
   <Matches container="*" vCodec="h264" profile="high_10" />
   <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
   <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />

So it seems the file is getting transcoded and played on my tv, but it doesn't help the seeking issue.

EDIT: I went and disabled transcoding entirely for High10 (commented as below). It worked! Fixed both the seeking issue and time duration issue.
Thanks for the tip about taking a look into profiles.xml :D

Below are changes i made in profiles.xml (basically commented out 1 string).
  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
   <!-- <Matches container="*" vCodec="h264" profile="high_10" /> -->
   <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
   <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<<

sMaxi

Serviio newbie

Posts: 6

Joined: Fri Apr 26, 2013 8:00 pm

Post Tue Apr 30, 2013 11:45 am

Re: MKV video seeking issues

Well, it looks like we are not quite done here yet :(

My TV is able to accept H.264 High_10 3.1 without transcoding. However, it needs transcoding for H.264 High_10 5.0 and higher.
So i modified the h.264 section of my profiles.xml in this way:
  Code:
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
   <Matches container="*" vCodec="h264" profile="high_10" levelGreaterThan="3.2" />
   <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
   <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />

This made my TV play h264 high_10 3.1 files without issues, and allowed it to play high_10 5.0 files, but with the same seeking issues as before (can't seek and wrong total duration).
It seems that transcoding h264 to mpeg2video screws up seeking, and it is somehow related to total duration being shown wrong.
MediaInfo of one of problematic files:
  Code:
General
Unique ID                                : 236544712356093608936023456933193595784 (0xB1F4DABEA1AD3EE2AECC9F49B9263B88)
Complete name                            : /Users/maksimpreobrazenskij/Downloads/_Video ToWatch/Anime/[Hi10]_One_Piece_-_First_Half_Collection/[Ep_207-325]_CP9_Saga/(Hi10)_One_Piece_207_(720p)_(K-F).mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 125 MiB
Duration                                 : 23mn 5s
Overall bit rate                         : 756 Kbps
Encoded date                             : UTC 2012-07-07 17:27:28
Writing application                      : mkvmerge v4.9.1 ('Ich will') built on Jul 11 2011 23:53:15
Writing library                          : libebml v1.2.1 + libmatroska v1.1.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 10@L5.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Muxing mode                              : Header stripping
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 23mn 5s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Writing library                          : x264 core 125 r2200 999b753
Encoding settings                        : cabac=1 / ref=16 / deblock=1:1:2 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=25.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 23mn 5s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Default                                  : Yes
Forced                                   : No


Mediainfo of the same file after remuxing it with no header compression (still doesn't work, same issues):
  Code:
General
Unique ID                                : 134873593640291855854642242969748484213 (0x6577B592B63CC14CB841ED393A51B075)
Complete name                            : /Users/maksimpreobrazenskij/Downloads/qq.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 125 MiB
Duration                                 : 23mn 5s
Overall bit rate                         : 756 Kbps
Encoded date                             : UTC 2013-04-30 11:37:42
Writing application                      : mkvmerge v6.1.0 ('Old Devil') built on Mar  2 2013 22:22:31
Writing library                          : libebml v1.3.0 + libmatroska v1.4.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 10@L5.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 23mn 5s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Writing library                          : x264 core 125 r2200 999b753
Encoding settings                        : cabac=1 / ref=16 / deblock=1:1:2 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=25.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 23mn 5s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Default                                  : Yes
Forced                                   : No


Please tell me if there are any other infos / logs worth taking a look at in terms of figuring out what's going wrong.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri May 03, 2013 8:53 am

Re: MKV video seeking issues

It seems that transcoding h264 to mpeg2video screws up seeking, and it is somehow related to total duration being shown wrong.

Yes, the Samsungs (c and above) don't deal with the durtion of transcoded files, and I assume that's the reason you cannot seeks then

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 24 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.