Page 1 of 1

VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Mon Feb 17, 2014 7:58 pm
by isellparts
Hello,

Not a very technical person but I have Serviio set up in my household. I have a TV (UN40D6000 -- Samsung TV / player (C/D-series) profile) in the same room as my computer/monitor (wireless-enabled TV) and watching any .mkv which requires transcoding is no problem BUT when I try to watch the same source while transcoding from my TV downstairs (KDL-55HX850 - Sony Bravia TV (2012) profile), it becomes very laggy.

I am wondering if this is due to the profile configuration (TV cannot handle the transcoded video or could it be the network is weak? Unfortunately it is not easy to test as moving the TV closer to my router (or vice versa) would require a bit of work)?

Would appreciate any insight and of course, I can provide any further details with the necessary guidance.

Edit - Normal .avi files seem to play perfectly fine.

Re: VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Mon Feb 17, 2014 8:24 pm
by Illico
Its probably due to high CPU usage for the mkv file to be transcoded for your Sony TV, the Samsung probably support mkv in native format so no need to be transcoded (less CPU usage).
Could you check your CPU usage during transcoding?
Is it the same behavior for all mkv files?
Could you provide information about your mkv file ? (see signature links)

Re: VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Mon Feb 17, 2014 9:11 pm
by isellparts
I was watching Top Gear so we will compare the two videos (last week -- first code snippet was laggy, this week it seemed fine so definitely not applicable for all .mkv files...)

CPU usage was hovering around 7% for this week's episode. Unsure what it was last week (did not get to test) but I do have an i5-2500k which I hope would be plenty for the transcoding (of course, I know this was two generations ago).

Last week (laggy):

  Code:
General
Unique ID                                : 2232852927145838456805544063815387352 (0x1AE082619F150C69CBE21B9118408D8)
Complete name                            : H:\top_gear.21x02.720p_hdtv_x264-fov.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 1.73 GiB
Duration                                 : 1h 1mn
Overall bit rate                         : 4 006 Kbps
Writing application                      : Larry Sanders
Writing library                          : Larry Sanders

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 1mn
Bit rate                                 : 3 734 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.162
Stream size                              : 1.61 GiB (93%)
Writing library                          : x264 core 140 r2377 1ca7bb9
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 1h 1mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 85.0 MiB (5%)
Default                                  : Yes
Forced                                   : No


This week (no lag):

  Code:
General
Unique ID                                : 64905756810873807779430678137344079491 (0x30D464E1266C71C0D5389C1A2D97B683)
Complete name                            : G:\Serviio\Top_Gear.21x03.720p_HDTV_x264-FoV.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 1.23 GiB
Duration                                 : 1h 3mn
Overall bit rate                         : 2 806 Kbps
Writing application                      : Larry Sanders
Writing library                          : Larry Sanders

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 3mn
Bit rate                                 : 2 558 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.111
Stream size                              : 1.13 GiB (91%)
Writing library                          : x264 core 140 r2377 1ca7bb9
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 1h 3mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 86.5 MiB (7%)
Default                                  : Yes
Forced                                   : No

Re: VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Sat Mar 01, 2014 2:27 am
by isellparts
Anyone?

Re: VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Sat Mar 01, 2014 8:15 am
by Illico
Do you have automatic library refresh enabled?
I suggest to disable it and only manually force a refresh when you add new file.
During lib refresh, there are multiple ffmpeg process that could hang the cpu.

Re: VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Tue Mar 04, 2014 3:18 am
by isellparts
I do - let me disable this and see if the issue still persists. Thanks.

Re: VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Sun Mar 16, 2014 9:19 pm
by isellparts
So ever since I had the library reset bumped up to 180 (after running it in forced refresh mode for a bit), the issue is close to non-existent now. I had no idea the library refresh could decrease stream performance!

Re: VERY laggy when watching transcoding .mkv on KDL55HX850

PostPosted: Mon Mar 17, 2014 1:27 pm
by Illico
isellparts wrote:... I had no idea the library refresh could decrease stream performance!

There were multiple ffmpeg process launched during library refresh in background. If files are on remote drive, you should have multiple read access too.
So bottleneck could be on your cpu usage or on your network usage.