FAQ  •  Register  •  Login

Stuttering on remote server , local network all fine.

<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Fri May 16, 2014 6:19 pm

Stuttering on remote server , local network all fine.

hello,
after 10 days of testing serviio:
At home is WDTV live Hub box, that is connected via OpenVPN to a remote server where serviio is running.

Most movie in .mkv format plays fine without any stuttering or sound mutes.
But when i play a 1080p with DTS Sound movie from remote server it stutters after the intro where the distributors are shown. (paramount, icon, etc)
The same movie runs fine when played from a upnp server in local network. Without stuttering - all fine.

The bandwidth is okay. Remote Server has outgoing 200Mbit, and home is connected to internet via 100Mbit.
bandwidth tool shows on remote server outgoing 8Mbit when playing the 1080p DTS movie. So, the reason can not be bandwidth.

Also i noticed on a series ( Justified ) , i have reproducebale stuttering at the same timestamps in the intro.
Also these episodes are played fine when watched over local network upnp server.

The Mediainfo of the 1080p movie with DTS:

General
Unique ID : 192449813383747903532938487561255868349 (0x90C87C5FEDA4745BA0F52DBE37F757BD)
Complete name : lhd-wwhuncut-1080p.mkv
Format : Matroska
Format version : Version 2
File size : 16.0 GiB
Duration : 2h 18mn
Overall bit rate : 16.5 Mbps
Encoded date : UTC 2011-06-20 15:40:22
Writing application : mkvmerge v4.4.0 ('Die Wiederkehr') gebaut am Oct 31 2010 21:52:48
Writing library : libebml v1.0.0 + libmatroska v1.0.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 18mn
Bit rate : 13.5 Mbps
Width : 1 920 pixels
Height : 816 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.359
Stream size : 12.7 GiB (80%)
Writing library : x264 core 115 r1995 c1e60b9
Encoding settings : cabac=1 / ref=5 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=0 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=2pass / mbtree=1 / bitrate=13467 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No

Is there anything i can do?

I found some threads here, where some guys played around with outcommenting something, so that all is transcoded. But thats not what i wanted.

The 1080p movie also stutters when played over the mediabrowser.

Do i have to give serviio more RAM ?

i see serviio is started Xmx512M Xms20M , do i have to tune these?

any hints or tipps?

thank you

marko

ps, filesystem is XFS
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri May 16, 2014 6:34 pm

Re: Stuttering on remote server , local network all fine.

I think its a network bandwidth problem.
Could you check the video bitrate with this tool : viewtopic.php?f=17&t=2133
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Fri May 16, 2014 7:16 pm

Re: Stuttering on remote server , local network all fine.

This is for Windows only.... You know a tool on Linux too?
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Fri May 16, 2014 10:36 pm

Re: Stuttering on remote server , local network all fine.

General
Count : 284
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Unique ID : 192449813383747903532938487561255868349
Unique ID : 192449813383747903532938487561255868349 (0x90C87C5FEDA4745BA0F52DBE37F757BD)
Count of video streams : 1
Count of audio streams : 2
Count of text streams : 1
Count of menu streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Video_Language_List : English
Audio_Format_List : DTS / DTS
Audio_Format_WithHint_List : DTS / DTS
Audio codecs : DTS / DTS
Audio_Language_List : German / English
Text_Format_List : VobSub
Text_Format_WithHint_List : VobSub
Text codecs : VobSub
Text_Language_List : German
Complete name : lhd-wwhuncut-1080p.mkv
File name : lhd-wwhuncut-1080p
File extension : mkv
Format : Matroska
Format : Matroska
Format/Url : http://packs.matroska.org/
Format/Extensions usually used : mkv mk3d mka mks
Commercial name : Matroska
Format version : Version 2
Codec : Matroska
Codec : Matroska
Codec/Url : http://packs.matroska.org/
Codec/Extensions usually used : mkv mk3d mka mks
File size : 17129667777
File size : 16.0 GiB
File size : 16 GiB
File size : 16 GiB
File size : 16.0 GiB
File size : 15.95 GiB
Duration : 8312972
Duration : 2h 18mn
Duration : 2h 18mn 32s 972ms
Duration : 2h 18mn
Duration : 02:18:32.972
Overall bit rate : 16484759
Overall bit rate : 16.5 Mbps
Stream size : 340868104
Stream size : 325 MiB (2%)
Stream size : 325 MiB
Stream size : 325 MiB
Stream size : 325 MiB
Stream size : 325.1 MiB
Stream size : 325 MiB (2%)
Proportion of this stream : 0.01990
Encoded date : UTC 2011-06-20 15:40:22
File last modification date : UTC 2011-06-20 14:47:52
File last modification date (local) : 2011-06-20 16:47:52
Writing application : mkvmerge v4.4.0 ('Die Wiederkehr') gebaut am Oct 31 2010 21:52:48
Writing library : libebml v1.0.0 + libmatroska v1.0.0
Writing library : libebml v1.0.0 + libmatroska v1.0.0

Video
Count : 271
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 1
ID : 1
Unique ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, CABAC : Yes
Format settings, ReFrames : 4
Format settings, ReFrames : 4 frames
Internet media type : video/H264
Codec ID : V_MPEG4/ISO/AVC
Codec ID/Url : http://ffdshow-tryout.sourceforge.net/
Codec : V_MPEG4/ISO/AVC
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec/Url : http://ffdshow-tryout.sourceforge.net/
Codec profile : High@L4.1
Codec settings : CABAC / 4 Ref Frames
Codec settings, CABAC : Yes
Codec_Settings_RefFrames : 4
Duration : 8312980
Duration : 2h 18mn
Duration : 2h 18mn 32s 980ms
Duration : 2h 18mn
Duration : 02:18:32.980
Bit rate : 13467000
Bit rate : 13.5 Mbps
Width : 1920
Width : 1 920 pixels
Height : 816
Height : 816 pixels
Pixel aspect ratio : 1.000
Display aspect ratio : 2.353
Display aspect ratio : 2.35:1
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 23.976
Frame rate : 23.976 fps
Frame count : 199312
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.359
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Stream size : 13652730987
Stream size : 12.7 GiB (80%)
Stream size : 13 GiB
Stream size : 13 GiB
Stream size : 12.7 GiB
Stream size : 12.72 GiB
Stream size : 12.7 GiB (80%)
Proportion of this stream : 0.79702
Writing library : x264 - core 115 r1995 c1e60b9
Writing library : x264 core 115 r1995 c1e60b9
Writing library/Name : x264
Writing library/Version : core 115 r1995 c1e60b9
Encoding settings : cabac=1 / ref=5 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=0 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=2pass / mbtree=1 / bitrate=13467 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Default : Yes
Default : Yes
Forced : No
Forced : No
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Tue May 20, 2014 11:33 am

Re: Stuttering on remote server , local network all fine.

Illico, ist still same...........
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue May 20, 2014 12:33 pm

Re: Stuttering on remote server , local network all fine.

Try:
- Start playing file
- Press pause on your device renderer (TV, player)
- Wait few seconds/minutes (for serviio/ffmpeg to transcode)
- Resume playback
- Do you still have stuttering (in same place) ?
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Tue May 20, 2014 4:05 pm

Re: Stuttering on remote server , local network all fine.

Illico, i´ll try.

at moment, the transcoding of the film is 'only' started when i start play over the mediabrowser.
When i start the film over player ( WDT Live Hub), i cant see any trasncoding file generated in /tmp.

but i will try this, start film , pasue when stuttering, wait some mins, and start again.

i will report you
thanks

marko
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Sun Jun 01, 2014 7:16 pm

Re: Stuttering on remote server , local network all fine.

Illico,

Try:
- Start playing file
- Press pause on your device renderer (TV, player)
- Wait few seconds/minutes (for serviio/ffmpeg to transcode)
- Resume playback
- Do you still have stuttering (in same place) ?


I pressed 'pause' and wait for 10~15 mins, ticked play still stuttering ( same place ),
i also stopped film, resumed - stillstuttering ( same place ),

so this all doesnt solve anything.

i dont think its an serviio bug or error, i think the movies (i have this with some other mkv 1080p) use too high bitrate? (am i right?)

so how can i tell serviio at example to transcode all mkv with bitrate higher than 'Bitrate: 4800 Kbps' at example?

thanks

marko
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jun 02, 2014 7:06 am

Re: Stuttering on remote server , local network all fine.

marko weber wrote:...
i dont think its an serviio bug or error, i think the movies (i have this with some other mkv 1080p) use too high bitrate? (am i right?)

Probably yes...
marko weber wrote:so how can i tell serviio at example to transcode all mkv with bitrate higher than 'Bitrate: 4800 Kbps' at example?

There is no options threshold for higher bitrate.
What is the profile used ?
You can make a custom profile that transcode all mkv.
Then when you have problem with some high bitrate, switch to this custom profile on serviio console (then switch back after movie viewed)
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Mon Jun 02, 2014 2:24 pm

Re: Stuttering on remote server , local network all fine.

Illico,

There is no options threshold for higher bitrate.
What is the profile used ?
You can make a custom profile that transcode all mkv.
Then when you have problem with some high bitrate, switch to this custom profile on serviio console (then switch back after movie viewed)


-oh, ok... thought it works the way like 'transcode if movie is mkv and bitrate is higher then 4800kbps' at example.........
- the profile i used is "WDTV Live", i choosed it cause i play the movie with my 'WDTV Live HUB'

can u guide me, or show me an guide how to do this?

at last, why are the movies played well, when upnp server is placed in local lan?
so its serviio bug maybe?

would be great if you can guide me ( and myabe later sone other people can use the info) how to do this profile thingy.

best regards

marko
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jun 02, 2014 6:52 pm

Re: Stuttering on remote server , local network all fine.

Edit ../serviio/config/profiles.xml (backup before) :
Add following code just before the last </Profiles> element, save, restart serviio service or reboot PC.
Select the custom WDTV Live * on serviio console when you have problem with high bitrate video, and retry (no need to restart pc or services).
In this example all video will be transcoded to mpeg2video. If you still have stuttering problem, try to add maxVBitrate="15360" option.
  Code:
      <Profile id="custom" name="WDTV Live *" extendsProfileId="14">
      <Transcoding>
         <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="*" />
         </Video>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="*" />
         </Video>
      </OnlineTranscoding>
   </Profile>
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Mon Jun 02, 2014 10:32 pm

Re: Stuttering on remote server , local network all fine.

Illico,

ok, at first - your xml snippet works.
i still got stutter problems and followed your tipp, added maxVBitrate="15360"...
still stutter problems.... then downgraded to maxVBitrate="7000".
with maxVBitrate="7000" it works. The movie plays fine....

so my conclusion is, that all my problems with stuttering is that the Bitrate mustn´t be over 7000.

i am hot now to solve this. do i told you that the upnp server ( serviio ) is not in the local lan?

setup here is:
'HOME (WDTV Live) / OpenVPN' ==> 'REMOTESERVER / OpenVPN ( serveriio )'

txqueuelen 1000 is set on the REMOTESERVER, so it should be enough for more then maxVBitrate="7000".

so is this all network related or serviio related?

marko
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Jun 03, 2014 1:08 pm

Re: Stuttering on remote server , local network all fine.

Serviio read source file from remote storage (first load), transcode the movie (second load) then stream to media renderer (third load).
There were 2 network transferts and one transcode processing.

For network transfert, you have to analyse it.

For transcode processing, if you catch the ffmpeg command line used (on detailed logging file), then try the same command line in a local windows terminal, you can find the transcoding process rate (fps) that should be > x2/x3 than frame rate (30fps)
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Tue Jun 03, 2014 9:10 pm

Re: Stuttering on remote server , local network all fine.

Serviio read source file from remote storage (first load), transcode the movie (second load) then stream to media renderer (third load).
There were 2 network transferts and one transcode processing.

For network transfert, you have to analyse it.

For transcode processing, if you catch the ffmpeg command line used (on detailed logging file), then try the same command line in a local windows terminal, you can find the transcoding process rate (fps) that should be > x2/x3 than frame rate (30fps)


the serviio is running also on the remote server.
i can catch the command line used for ffmpeg, easy way. the remote server where serviio runs is a linux server.

HOME(WDTV)-OpenVPN <==========> RemoteServer[linux]-OpenVPN ( Serviio, movies also lying on this server ).

so what should i do with the commandline?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jun 04, 2014 7:37 am

Re: Stuttering on remote server , local network all fine.

Illico wrote:...
For transcode processing, if you catch the ffmpeg command line used (on detailed logging file), then try the same command line in a local terminal, you can find the transcoding process rate (fps) that should be > x2/x3 than frame rate (30fps)
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Wed Jun 04, 2014 7:22 pm

Re: Stuttering on remote server , local network all fine.

hi,
ok i started the ffmpeg command in console
it starts then with this:

bunka config # ffmpeg -threads 4 -i /raid5/media/download/complete/lhd-wwhuncut-1080p/lhd-wwhuncut-1080p.mkv -y -threads 4 -c:v mpeg2video -pix_fmt yuv420p -b:v 7000k -maxrate:v 7000k -bufsize:v 7000k -r 24000/1001 -g 15 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f vob /tmp/Serviio/transcoding-temp-1560-custom-ORIGINAL.stf
ffmpeg version 2.2.2 Copyright (c) 2000-2014 the FFmpeg developers
built on May 17 2014 18:53:52 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core2 -mtune=generic -O2 -pipe' --extra-cflags='-march=core2 -mtune=generic -O2 -pipe' --extra-cxxflags='-march=core2 -mtune=generic -O2 -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-bzlib --enable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --disable-openssl --disable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --enable-libaacplus --disable-libfaac --disable-libtheora --enable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --enable-libxvid --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig --disable-ladspa --enable-libass --disable-libfreetype --disable-libsoxr --enable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --enable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-mmxext --disable-sse3 --disable-sse4 --cpu=core2
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libavresample 1. 2. 0 / 1. 2. 0
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, matroska,webm, from '/raid5/media/download/complete/lhd-wwhuncut-1080p/lhd-wwhuncut-1080p.mkv':
Metadata:
encoder : libebml v1.0.0 + libmatroska v1.0.0
creation_time : 2011-06-20 15:40:22
Duration: 02:18:32.97, start: 0.000000, bitrate: 16484 kb/s
Chapter #0.0: start 0.000000, end 255.255000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 255.255000, end 916.082000
Metadata:
title : 00:04:15.255
Chapter #0.2: start 916.082000, end 1487.653000
Metadata:
title : 00:15:16.082
Chapter #0.3: start 1487.653000, end 1961.459000
Metadata:
title : 00:24:47.653
Chapter #0.4: start 1961.459000, end 2431.929000
Metadata:
title : 00:32:41.459
Chapter #0.5: start 2431.929000, end 3433.263000
Metadata:
title : 00:40:31.929
Chapter #0.6: start 3433.263000, end 4026.689000
Metadata:
title : 00:57:13.263
Chapter #0.7: start 4026.689000, end 4478.140000
Metadata:
title : 01:07:06.689
Chapter #0.8: start 4478.140000, end 4857.436000
Metadata:
title : 01:14:38.140
Chapter #0.9: start 4857.436000, end 5662.490000
Metadata:
title : 01:20:57.436
Chapter #0.10: start 5662.490000, end 6508.168000
Metadata:
title : 01:34:22.490
Chapter #0.11: start 6508.168000, end 7147.974000
Metadata:
title : 01:48:28.168
Chapter #0.12: start 7147.974000, end 7653.479000
Metadata:
title : 01:59:07.974
Chapter #0.13: start 7653.479000, end 8312.972000
Metadata:
title : 02:07:33.479
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x816 [SAR 1:1 DAR 40:17], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Stream #0:3(ger): Subtitle: dvd_subtitle, 1920x1080 (default)
[mpeg2video @ 0x1bdad00] impossible bitrate constraints, this will fail
Output #0, vob, to '/tmp/Serviio/transcoding-temp-1560-custom-ORIGINAL.stf':
Metadata:
encoder : Lavf55.33.100
Chapter #0.0: start 0.000000, end 255.255000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 255.255000, end 916.082000
Metadata:
title : 00:04:15.255
Chapter #0.2: start 916.082000, end 1487.653000
Metadata:
title : 00:15:16.082
Chapter #0.3: start 1487.653000, end 1961.459000
Metadata:
title : 00:24:47.653
Chapter #0.4: start 1961.459000, end 2431.929000
Metadata:
title : 00:32:41.459
Chapter #0.5: start 2431.929000, end 3433.263000
Metadata:
title : 00:40:31.929
Chapter #0.6: start 3433.263000, end 4026.689000
Metadata:
title : 00:57:13.263
Chapter #0.7: start 4026.689000, end 4478.140000
Metadata:
title : 01:07:06.689
Chapter #0.8: start 4478.140000, end 4857.436000
Metadata:
title : 01:14:38.140
Chapter #0.9: start 4857.436000, end 5662.490000
Metadata:
title : 01:20:57.436
Chapter #0.10: start 5662.490000, end 6508.168000
Metadata:
title : 01:34:22.490
Chapter #0.11: start 6508.168000, end 7147.974000
Metadata:
title : 01:48:28.168
Chapter #0.12: start 7147.974000, end 7653.479000
Metadata:
title : 01:59:07.974
Chapter #0.13: start 7653.479000, end 8312.972000
Metadata:
title : 02:07:33.479
Stream #0:0(eng): Video: mpeg2video, yuv420p, 1920x816 [SAR 1:1 DAR 40:17], q=2-31, 7000 kb/s, 90k tbn, 23.98 tbc (default)
Stream #0:1(ger): Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Stream #0:1 -> #0:1 (dca -> ac3)
Press [q] to stop, [?] for help


then some blocks of this kind:

Last message repeated 15 times
[vob @ 0x1ae0020] buffer underflow st=0 bufi=30727 size=35445
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=32751 size=35445
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=34775 size=35445
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
Last message repeated 16 times
[vob @ 0x1ae0020] buffer underflow st=0 bufi=33728 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=35734 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=37758 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=39782 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=41806 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=43830 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=45854 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=47878 size=77614

and so on...........................


then it seems keeping stable between 23-30 fps with:

frame= 2761 fps= 23 q=11.0 Lsize= 100428kB time=00:01:55.32 bitrate=7134.1kbits/s
video:93772kB audio:5406kB subtitle:0 data:0 global headers:0kB muxing overhead 1.260779%
Received signal 2: terminating.


sorry, when i am a bit weird now, what can we get out of this information?

marko

is this telling me its serviio related?
or network related?
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Wed Jun 04, 2014 7:23 pm

Re: Stuttering on remote server , local network all fine.

hi,
ok i started the ffmpeg command in console
it starts then with this:

bunka config # ffmpeg -threads 4 -i /raid5/media/download/complete/lhd-wwhuncut-1080p/lhd-wwhuncut-1080p.mkv -y -threads 4 -c:v mpeg2video -pix_fmt yuv420p -b:v 7000k -maxrate:v 7000k -bufsize:v 7000k -r 24000/1001 -g 15 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f vob /tmp/Serviio/transcoding-temp-1560-custom-ORIGINAL.stf
ffmpeg version 2.2.2 Copyright (c) 2000-2014 the FFmpeg developers
built on May 17 2014 18:53:52 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core2 -mtune=generic -O2 -pipe' --extra-cflags='-march=core2 -mtune=generic -O2 -pipe' --extra-cxxflags='-march=core2 -mtune=generic -O2 -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-bzlib --enable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --disable-openssl --disable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --enable-libaacplus --disable-libfaac --disable-libtheora --enable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --disable-libx265 --enable-libxvid --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig --disable-ladspa --enable-libass --disable-libfreetype --disable-libsoxr --enable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --enable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-mmxext --disable-sse3 --disable-sse4 --cpu=core2
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libavresample 1. 2. 0 / 1. 2. 0
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, matroska,webm, from '/raid5/media/download/complete/lhd-wwhuncut-1080p/lhd-wwhuncut-1080p.mkv':
Metadata:
encoder : libebml v1.0.0 + libmatroska v1.0.0
creation_time : 2011-06-20 15:40:22
Duration: 02:18:32.97, start: 0.000000, bitrate: 16484 kb/s
Chapter #0.0: start 0.000000, end 255.255000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 255.255000, end 916.082000
Metadata:
title : 00:04:15.255
Chapter #0.2: start 916.082000, end 1487.653000
Metadata:
title : 00:15:16.082
Chapter #0.3: start 1487.653000, end 1961.459000
Metadata:
title : 00:24:47.653
Chapter #0.4: start 1961.459000, end 2431.929000
Metadata:
title : 00:32:41.459
Chapter #0.5: start 2431.929000, end 3433.263000
Metadata:
title : 00:40:31.929
Chapter #0.6: start 3433.263000, end 4026.689000
Metadata:
title : 00:57:13.263
Chapter #0.7: start 4026.689000, end 4478.140000
Metadata:
title : 01:07:06.689
Chapter #0.8: start 4478.140000, end 4857.436000
Metadata:
title : 01:14:38.140
Chapter #0.9: start 4857.436000, end 5662.490000
Metadata:
title : 01:20:57.436
Chapter #0.10: start 5662.490000, end 6508.168000
Metadata:
title : 01:34:22.490
Chapter #0.11: start 6508.168000, end 7147.974000
Metadata:
title : 01:48:28.168
Chapter #0.12: start 7147.974000, end 7653.479000
Metadata:
title : 01:59:07.974
Chapter #0.13: start 7653.479000, end 8312.972000
Metadata:
title : 02:07:33.479
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x816 [SAR 1:1 DAR 40:17], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Stream #0:3(ger): Subtitle: dvd_subtitle, 1920x1080 (default)
[mpeg2video @ 0x1bdad00] impossible bitrate constraints, this will fail
Output #0, vob, to '/tmp/Serviio/transcoding-temp-1560-custom-ORIGINAL.stf':
Metadata:
encoder : Lavf55.33.100
Chapter #0.0: start 0.000000, end 255.255000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 255.255000, end 916.082000
Metadata:
title : 00:04:15.255
Chapter #0.2: start 916.082000, end 1487.653000
Metadata:
title : 00:15:16.082
Chapter #0.3: start 1487.653000, end 1961.459000
Metadata:
title : 00:24:47.653
Chapter #0.4: start 1961.459000, end 2431.929000
Metadata:
title : 00:32:41.459
Chapter #0.5: start 2431.929000, end 3433.263000
Metadata:
title : 00:40:31.929
Chapter #0.6: start 3433.263000, end 4026.689000
Metadata:
title : 00:57:13.263
Chapter #0.7: start 4026.689000, end 4478.140000
Metadata:
title : 01:07:06.689
Chapter #0.8: start 4478.140000, end 4857.436000
Metadata:
title : 01:14:38.140
Chapter #0.9: start 4857.436000, end 5662.490000
Metadata:
title : 01:20:57.436
Chapter #0.10: start 5662.490000, end 6508.168000
Metadata:
title : 01:34:22.490
Chapter #0.11: start 6508.168000, end 7147.974000
Metadata:
title : 01:48:28.168
Chapter #0.12: start 7147.974000, end 7653.479000
Metadata:
title : 01:59:07.974
Chapter #0.13: start 7653.479000, end 8312.972000
Metadata:
title : 02:07:33.479
Stream #0:0(eng): Video: mpeg2video, yuv420p, 1920x816 [SAR 1:1 DAR 40:17], q=2-31, 7000 kb/s, 90k tbn, 23.98 tbc (default)
Stream #0:1(ger): Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Stream #0:1 -> #0:1 (dca -> ac3)
Press [q] to stop, [?] for help


then some blocks of this kind:

Last message repeated 15 times
[vob @ 0x1ae0020] buffer underflow st=0 bufi=30727 size=35445
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=32751 size=35445
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=34775 size=35445
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
Last message repeated 16 times
[vob @ 0x1ae0020] buffer underflow st=0 bufi=33728 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=35734 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=37758 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=39782 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=41806 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=43830 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=45854 size=77614
[vob @ 0x1ae0020] buffer underflow st=1 bufi=410 size=1536
[vob @ 0x1ae0020] buffer underflow st=0 bufi=47878 size=77614

and so on...........................


then it seems keeping stable between 23-30 fps with:

frame= 2761 fps= 23 q=11.0 Lsize= 100428kB time=00:01:55.32 bitrate=7134.1kbits/s
video:93772kB audio:5406kB subtitle:0 data:0 global headers:0kB muxing overhead 1.260779%
Received signal 2: terminating.


sorry, when i am a bit weird now, what can we get out of this information?

marko

is this telling me its serviio related?
or network related?
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Wed Jun 04, 2014 7:47 pm

Re: Stuttering on remote server , local network all fine.

with maxVBitrate="15360",

i get more of these buffer underflow,...

[vob @ 0xed2020] buffer underflow st=1 bufi=543 size=1536
[vob @ 0xed2020] buffer underflow st=1 bufi=1004 size=1536
[vob @ 0xed2020] buffer underflow st=1 bufi=1483 size=1536
[vob @ 0xed2020] buffer underflow st=1 bufi=426 size=1536
Last message repeated 36 times
[vob @ 0xed2020] buffer underflow st=1 bufi=905 size=1536
[vob @ 0xed2020] buffer underflow st=1 bufi=210 size=1536
[vob @ 0xed2020] buffer underflow st=1 bufi=491 size=15364 bitrate=12956.1kbits/s
Last message repeated 5 times
frame= 8100 fps= 48 q=3.0 Lsize= 547546kB time=00:05:38.16 bitrate=13264.1kbits/s
video:525006kB audio:15852kB subtitle:0 data:0 global headers:0kB muxing overhead 1.236478%
Received signal 2: terminating.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Jun 05, 2014 7:03 am

Re: Stuttering on remote server , local network all fine.

marko weber wrote:...
frame= 2761 fps= 23 q=11.0 Lsize= 100428kB time=00:01:55.32 bitrate=7134.1kbits/s
...
video:93772kB audio:5406kB subtitle:0 data:0 global headers:0kB muxing overhead 1.260779%
Received signal 2: terminating.

sorry, when i am a bit weird now, what can we get out of this information?


As you can see, the ffmpeg command line transcode your source to mpeg2video and ac3 in mpeg/vob container.
The transcoding process rate is around 23-30fps, but your display rate is 23.98 frame per second...conclusion your transcoding process is too slow compare to the video frame rate...then video stuttered.
Transcoding process should be minimum x2-x3 the frame rate : 100fps is good

Why your transcoding is too slow...I don't know ! ( cpu load, disk /raid5/media/ access rate ??)
<<

marko weber

Streaming enthusiast

Posts: 31

Joined: Fri May 02, 2014 11:15 am

Post Thu Jun 05, 2014 10:52 am

Re: Stuttering on remote server , local network all fine.

hi,
thanks for enlighting me a bit ;-)

maybe its worth a test to set the /tmp folder for transcoding into RAM.
Reading from raid5 should be fast enough.

ffmpeg 2.2.2 here in use.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 71 guests

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