Stuttering on Sony BD Player
first of all I like to say a big thx, I recently discovered Serviio and so far it is the best DLNA Server I investigated. It works totally fine on my network.
I am Running the Server on a RasberryPi 4 and this works well even on transcoding.
However, I finally found the first problem now. On a quite old Sony BD Player, transcoding an mkv file to mpegts results in an unwatchable stuttering of video+audio. I can’t quite figure out why but I have no other files with this encoding on the original file, so it might be unique. If anyone can help me out on this, it would be highly appreciated.
Here are some infos that hopefully help:
Original File Encoding:
- Code:
General
Unique ID : 115560040816646257834838572106076882236 (0x56F00DE67EF654FF89D48640CDAB853C)
Complete name : S01E01 - Des Endes Anfang.mkv
Format : Matroska
Format version : Version 4
File size : 1.01 GiB
Duration : 1 h 1 min
Overall bit rate : 2 363 kb/s
Encoded date : UTC 2019-12-21 09:59:30
Writing application : mkvmerge v40.0.0 ('Old Town Road + Pony') 64-bit
Writing library : libebml v1.3.9 + libmatroska v1.5.2
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 1 min
Bit rate : 1 593 kb/s
Width : 1 920 pixels
Height : 960 pixels
Display aspect ratio : 2.000
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.036
Stream size : 696 MiB (67%)
Writing library : x265 3.2:[Windows][GCC 8.3.0][64 bit] 8bit+10bit+12bit
Encoding settings : cpuid=1111039 / frame-threads=3 / numa-pools=12 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x960 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=24 / keyint=240 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-hme / no-weightp / no-weightb / no-analyze-src-pics / no-deblock / no-sao / no-sao-non-deblock / rd=3 / selective-sao=0 / early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=23.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=1 / transfer=1 / colormatrix=1 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 1 min
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls RsSampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -5 ms
Stream size : 168 MiB (16%)
Title : Surround
Language : German
Service kind : Complete Main
Default : Yes
Forced : No
Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 1 min
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls RsSampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -5 ms
Stream size : 168 MiB (16%)
Title : Surround
Language : English
Service kind : Complete Main
Default : No
Forced : No
Text #1
ID : 4
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Duration : 59 min 54 s
Bit rate : 0 b/s
Count of elements : 3
Compression mode : Lossless
Stream size : 126 Bytes (0%)
Title : forced
Language : German
Default : Yes
Forced : No
Text #2
ID : 5
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Duration : 59 min 54 s
Bit rate : 67 b/s
Count of elements : 538
Compression mode : Lossless
Stream size : 29.5 KiB (0%)
Title : full
Language : German
Default : No
Forced : No
Text #3
ID : 6
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Duration : 58 min 33 s
Bit rate : 82 b/s
Count of elements : 748
Compression mode : Lossless
Stream size : 35.2 KiB (0%)
Title : full
Language : English
Default : No
Forced : No
Transcoded File:
- Code:
General
ID : 1 (0x1)
Complete name : transcoding/Serviio/transcoding-temp-f16c3acc1534cceca21c4c8f738d6cfc.stfFormat : MPEG-TS
File size : 26.5 MiB
Duration : 35 s 750 ms
Overall bit rate mode : Variable
Overall bit rate : 6 187 kb/s
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty
Video
ID : 256 (0x100)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@High
Format settings, BVOP : No
Format settings, Matrix : Default
Format settings, GOP : Variable
Codec ID : 2
Duration : 35 s 833 ms
Bit rate mode : Variable
Bit rate : 5 558 kb/s
Maximum bit rate : 17.0 Mb/s
Width : 1 920 pixels
Height : 960 pixels
Display aspect ratio : 2.000
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.126
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Open
GOP, Open/Closed of first frame : Closed
Stream size : 23.7 MiB (90%)
Audio
ID : 257 (0x101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 129
Duration : 35 s 712 ms
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls RsSampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -6 ms
Stream size : 1.36 MiB (5%)
Language : German
Service kind : Complete Main
Menu
ID : 4096 (0x1000)
Menu ID : 1 (0x1)
Duration : 35 s 750 ms
List : 256 (0x100) (MPEG Video) / 257 (0x101) (AC-3, German)
Language : / German
Service name : Service01
Service provider : FFmpeg
Service type : digital television
Transcoding process:
- Code:
ffmpeg -threads 0 -i /incoming/S01E01 - Des Endes Anfang.mkv -y -threads 0 -c:v mpeg2video -pix_fmt yuv420p -b:v 17000k -maxrate:v 17000k -bufsize:v 17000k -r 24 -g 15 -c:a:0 ac3 -b:a:0 320k -ac:a:0 6 -map 0:0 -map 0:1 -sn -f mpegts /incoming/transcoding/Serviio/transcoding-temp-f16c3acc1534cceca21c4c8f738d6cfc.stf
Additional Infos:
The configured CPU cores are set to optimal, the usage lies around 300% so there is enough room for other processes.
The transcoding folder is set to an external USB3.0 drive with ~ 45MB/s throughput.
The BD player is connected through PowerLine to my router, the server is wired directly on a standalone port with no switch in between. The PowerLine connection is stable at 70-80 Mbit which should be enough even for 8k.
The strangest thing of all is, that it does not always stutter. On ~1/8 starts, the video plays just fine without anything changed. On the next file, it starts stuttering again.
These are the only files that stutter, I have a couple of different encoded videos (around 3000) and until now never experienced this situation, regardless of the original being transcoded or not, being avi, mkv, mpeg, BD, or any other encoding.
Regards