FAQ  •  Register  •  Login

Sony S570 stuttering - how do I change the socket buffer?

<<

witters

Serviio newbie

Posts: 5

Joined: Tue Feb 01, 2011 12:18 am

Post Tue Feb 01, 2011 12:21 am

Sony S570 stuttering - how do I change the socket buffer?

I am suffering from stuttering on m2ts files with HD audio. I believe I need to change the socket buffer? How do I do this please?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Feb 01, 2011 8:50 am

Re: Sony S570 stuttering - how do I change the socket buffer

See FAQ: How to pass system properties to Serviio
http://www.serviio.org/component/content/article/21#q7

zip wrote:There is now (for some time) a settable socket size option, which might in some cases remove stuttering. Can you guys give it a try?

You'll have to set a system property on the Serviio service:

  Code:
-Dserviio.socketBuffer=<number of bytes>


Default value is 65536.
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
<<

witters

Serviio newbie

Posts: 5

Joined: Tue Feb 01, 2011 12:18 am

Post Tue Feb 01, 2011 8:54 am

Re: Sony S570 stuttering - how do I change the socket buffer

Thanks but I need it spelling out a bit more if possible :D I'm not the most computer literate.

Any chance of a step by step please?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Feb 01, 2011 9:12 am

Re: Sony S570 stuttering - how do I change the socket buffer

For windows users:
- Edit [Serviio_Install_Path]\bin\ServiioService.exe.vmoptions file with Notepad
- You will find this line "-Xmx384m"
- Add this line "-Dserviio.socketBuffer=<number of bytes>" with <number of bytes> default value is 65536, you can change value
- Save file.
- Restart the Serviio service
- Check on [Serviio]\log\serviio.log logging file if socketbuffer change
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
<<

witters

Serviio newbie

Posts: 5

Joined: Tue Feb 01, 2011 12:18 am

Post Tue Feb 01, 2011 9:41 am

Re: Sony S570 stuttering - how do I change the socket buffer

Many thanks.

I have accessed the file and added the line -Dserviio.socketBuffer=<100000> but the log file does not update?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 01, 2011 9:46 am

Re: Sony S570 stuttering - how do I change the socket buffer

remove the <> :

  Code:
-Dserviio.socketBuffer=100000
<<

witters

Serviio newbie

Posts: 5

Joined: Tue Feb 01, 2011 12:18 am

Post Tue Feb 01, 2011 9:50 am

Re: Sony S570 stuttering - how do I change the socket buffer

Thanks again. Done bu sadly makes no difference. What is the maximum figure?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 01, 2011 10:22 am

Re: Sony S570 stuttering - how do I change the socket buffer

Up to you
<<

witters

Serviio newbie

Posts: 5

Joined: Tue Feb 01, 2011 12:18 am

Post Tue Feb 01, 2011 7:43 pm

Re: Sony S570 stuttering - how do I change the socket buffer

Has made no difference. Is there anything else I can try please?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 01, 2011 7:55 pm

Re: Sony S570 stuttering - how do I change the socket buffer

post ffmpeg -i of the file
<<

Dejavu

Serviio newbie

Posts: 16

Joined: Sat Apr 16, 2011 11:35 pm

Post Mon Apr 18, 2011 9:14 pm

Re: Sony S570 stuttering - how do I change the socket buffer

I have the same problem with a KDL-32EX500.
I tried setting the socketbuffer to 262144 and then 33554432, that didn't seem to change anything.
The serviio log confirms the setting were applied.

here's the ffmpg -i output for the file :

FFmpeg version git-N-29157-gc967860, Copyright (c) 2000-2011 the FFmpeg developers
built on Apr 17 2011 13:48:41 with gcc 4.5.2
configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-memalign-hack --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --cross-prefix=x86_64-w64-mingw32- --target-os=mingw32 --arch=x86_64 --extra-cflags=-I/home/kyle/software/ffmpeg/external-libraries/win64/incl
ude --extra-ldflags=-L/home/kyle/software/ffmpeg/external-libraries/win64/lib --pkg-config=pkg-config
libavutil 50. 40. 1 / 50. 40. 1
libavcodec 52.119. 1 / 52.119. 1
libavformat 52.108. 0 / 52.108. 0
libavdevice 52. 4. 0 / 52. 4. 0
libavfilter 1. 79. 0 / 1. 79. 0
libswscale 0. 13. 0 / 0. 13. 0
[matroska,webm @ 00000000003FA420] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001)
Input #0, matroska,webm, from '_hd\The.Animatrix.2003.720p.BluRay.x264-HANGOVER\h-animatrix-x264.mkv':
Duration: 01:40:50.68, start: 0.000000, bitrate: 640 kb/s
Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x528, PAR 1:1 DAR 80:33, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s (default)
At least one output file must be specified
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Apr 19, 2011 7:17 am

Re: Sony S570 stuttering - how do I change the socket buffer

Could you check the average and peak video bitrate of your file with that tool : viewtopic.php?f=17&t=2133 ?
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
<<

Dejavu

Serviio newbie

Posts: 16

Joined: Sat Apr 16, 2011 11:35 pm

Post Tue Apr 19, 2011 9:00 am

Re: Sony S570 stuttering - how do I change the socket buffer

Illico wrote:Could you check the average and peak video bitrate of your file with that tool : viewtopic.php?f=17&t=2133 ?


The average bitarate on this file is 5572 kbps and the highest peak 25363 kbps.
Attachments
tmp.gif
video bitrate screenshot
tmp.gif (20.9 KiB) Viewed 16096 times
<<

Dejavu

Serviio newbie

Posts: 16

Joined: Sat Apr 16, 2011 11:35 pm

Post Tue Apr 19, 2011 10:27 am

Re: Sony S570 stuttering - how do I change the socket buffer

This file played nicely today, even over wifi !
I'm wondering if the fact I had a download running on the disk when I tried it yesterday wasn't responsible for the stuttering.
Or maybe some other processes were slowing it down...

Anyway, I'm very happy to be able to play 1080p over wifi now :)
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Apr 19, 2011 10:46 am

Re: Sony S570 stuttering - how do I change the socket buffer

Dejavu wrote:This file played nicely today, even over wifi !

Good, but I think you'll have stuttering with such movie, 25Mbps its a very high bitrate for Wifi
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

Return to Sony

Who is online

Users browsing this forum: No registered users and 39 guests

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