Video freezes using direct play

Every time the show cuts to commercial the video will freeze for 1-3 seconds and then keep playing normally. I switched from direct play to 8Mbps for local content and the freezing went away. This file plays fine locally and on PlexWeb.

 

I guess my question is whether this is a bug or an XBMC issue and streaming is the fix. I have attached the mediainfo for the file. 

 

I am using RC3, no overclocking, 16GB SD.

General
Complete name                            : /
Format                                   : Matroska
Format version                           : Version 2
File size                                : 560 MiB
Duration                                 : 20mn 53s
Overall bit rate                         : 3 748 Kbps
Movie name                               : 
Encoded by                               : 
Writing application                      : x264.exe
Writing library                          : mkv2rls x264-tv version built on 2011. febr. 17
Original source form                     : HDTV
TITLE                                    : 
PART_NUMBER                              : 01

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 20mn 53s
Bit rate : 3 352 Kbps
Width : 1 280 pixels
Height : 720 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
Bits/(Pixel*Frame) : 0.152
Stream size : 491 MiB (88%)
Writing library : x264 core 88 r1471 1144615
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=30 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=6 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / wpredp=0 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=3352 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / 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 : 20mn 53s
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 57.4 MiB (10%)
Title : English
Language : English
Default : Yes
Forced : No

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : English
Language : English
Default : No
Forced : No

First off I have to say that I’m amazed at the idea of saving commercials in an MKV file.
It’s bad enough having them in live TV transmissions, but having them in saved episodes is too much.
Why would anyone want to do that ? I’d edit them out to get ‘clean’ show episodes for a collection.

Secondly, my guess is that the commercials use a different bitrate than the show parts of the MKV do, which causes the playback to glitch.
This bitrate peaking is prevented when using transcoding, which sets a limit to the maximum bitrate used and reduces bitrate variations.

Best regards: dlanor

Thanks dlanor,

There aren't really commercials in the clips but I can tell where they're supposed to be.

I tried reencoding the files with Handbrake and that seems to have done the trick.