Some MP4 files keep "loading" at the same time stamps
I'm streaming video files from Serviio on pc to Samsung TVs around the house through wifi network.
There are specific mp4 files with a deviant behavior: they are playing with no hitch as long as they are played from the start to finish with no interruption but as long as I paused, skip time, search or restart not from the beginning, then, when reaching specific time stamps, different for each such file, the playing stops for different periods and the message "loading" appears. All Samsung TVs, series D, E and H exhibit the same behavior, at the same time stamps, each time played, for the same file.
I don't think it's a bandwidth related issue as it is so predictable.
Repacking the mp4 file in mkv container, with no other modification result in a fully playable file.
The mp4 file plays with no hitch directly from an usb device connected to the TV.
I tried to look into the log file but I couldn't see anything abnormal during the "loading" phase. There is an excerpt:
2017-03-19 09:16:07,823 DEBUG [ServiioHttpService] Incoming request from /192.168.0.106:52945: GET /resource/75248/MEDIA_ITEM/AVC_MP4_MP_HD_720p_AAC-0/ORIGINAL HTTP/1.1, headers = [Range: bytes=47646475-,getcontentFeatures.dlna.org: 1,Host: 192.168.0.77:8895,Connection: close]]
2017-03-19 09:16:07,823 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.106
2017-03-19 09:16:07,825 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.106
2017-03-19 09:16:07,825 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.106
2017-03-19 09:16:07,826 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.0.106, Profile=Samsung TV / player (E/F-series), Name=UE40H6400'
2017-03-19 09:16:07,826 DEBUG [ResourceDeliveryProcessor] Request for resource 75248 and type 'MEDIA_ITEM' received
2017-03-19 09:16:07,826 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 75248 (local)
2017-03-19 09:16:07,827 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 75248)
2017-03-19 09:16:07,827 DEBUG [VideoDAOImpl] Reading a Video (id = 75248)
2017-03-19 09:16:07,833 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 75248, format AVC_MP4_MP_HD_720p_AAC and profile Samsung TV / player (E/F-series)
2017-03-19 09:16:07,833 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 75248 (local)
2017-03-19 09:16:07,833 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 75248)
2017-03-19 09:16:07,834 DEBUG [VideoDAOImpl] Reading a Video (id = 75248)
2017-03-19 09:16:07,835 DEBUG [VideoDeliveryEngine] Delivering item '75248' for client 'Identifier=192.168.0.106, Profile=Samsung TV / player (E/F-series), Name=UE40H6400'
2017-03-19 09:16:07,835 DEBUG [VideoDeliveryEngine] Delivering file 'BBC.Sound.Waves.The.Symphony.Of.Physics.2of2.Using.Sound.720p.HDTV.x264.AAC.MVGroup.org.mp4' in native format
2017-03-19 09:16:07,835 DEBUG [MediaItemDAOImpl] Getting file of media item 75248
2017-03-19 09:16:07,836 DEBUG [GETMethodProcessor] Stream entity has length: 720335745
2017-03-19 09:16:07,837 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Length: 720335745,Content-Type: video/mp4,Cache-control: no-cache,Connection: close,Content-Range: bytes 47646475-767982219/767982220,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_MP4_MP_HD_720p_AAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000,Date: Sun, 19 Mar 2017 07:16:07 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Windows 10, UPnP/1.0 DLNADOC/1.50, Serviio/1.8,transferMode.dlna.org: Streaming]]
2017-03-19 09:16:07,879 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2017-03-19 09:16:07,900 DEBUG [ServiioHttpService] Incoming request from /192.168.0.106:52946: GET /resource/75248/MEDIA_ITEM/AVC_MP4_MP_HD_720p_AAC-0/ORIGINAL HTTP/1.1, headers = [Range: bytes=47719936-,getcontentFeatures.dlna.org: 1,Host: 192.168.0.77:8895,Connection: close]]
This is not a new playing issue for me as it hangs for a few years, passing through several Serviio updates.
Where should I look further?
Thanks,