Page 1 of 1

Linux and VLC as a client.

PostPosted: Sun Jan 17, 2016 11:47 pm
by iceicebird
I'm using Linux (Ubuntu 15.10) and VLC as a client/player to view my media library.
Recently with the newer versions of VLC nightly builds v3.0.0+ there is a BIG update with the UPnP module. With versions before this you had to wait a long time for VLC to "read" the hole media-list from the server before you could view anything. NOW you get instant access ;)
My problem now is that videos that I could watch before (often 720p or more) now seems to be lagging/stuttering/frame drops. I use NO transcoding.
Is there anyone else here that uses these settings and software to view your media server, or maybe there is a kind soul that could also test this out and comment me back.
If you also have the same issue please also drop a bug report to serviio AND vlc bug tracking (https://trac.videolan.org/vlc/timeline)

Re: Linux and VLC as a client.

PostPosted: Mon Jan 18, 2016 1:39 am
by iceicebird
Log for working client vlc 2.2.1
  Code:
2016-01-18 02:10:58,593 DEBUG [ServiioHttpService] Incoming request from /192.168.1.224:59314: GET /resource/1815/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.145:8895,User-Agent: VLC/2.2.1 LibVLC/2.2.1,Range: bytes=1048948608-,Connection: close,Icy-MetaData: 1]]
2016-01-18 02:10:58,593 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:10:58,594 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:10:58,594 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:10:58,594 DEBUG [ResourceDeliveryProcessor] Request for resource 1815 and type 'MEDIA_ITEM' received
2016-01-18 02:10:58,594 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:10:58,594 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:10:58,595 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:10:58,595 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1815, format MATROSKA and profile Generic DLNA profile
2016-01-18 02:10:58,595 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:10:58,595 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:10:58,596 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:10:58,596 DEBUG [VideoDeliveryEngine] Delivering item '1815' for client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:10:58,596 DEBUG [VideoDeliveryEngine] Delivering file 'Heroes.Reborn.S01E12.720p.HDTV.x264-KILLERS.mkv' in native format
2016-01-18 02:10:58,596 DEBUG [MediaItemDAOImpl] Getting file of media item 1815
2016-01-18 02:10:58,597 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1815) as read
2016-01-18 02:10:58,598 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2016-01-18 02:10:58,598 DEBUG [GETMethodProcessor] Stream entity has length: 13346
2016-01-18 02:10:58,599 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Length: 13346,Content-Type: video/x-matroska,Cache-control: no-cache,Connection: close,Content-Range: bytes 1048948608-1048961953/1048961954,Date: Mon, 18 Jan 2016 01:10:58 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Windows 8, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.2,transferMode.dlna.org: Streaming]]
2016-01-18 02:10:58,657 DEBUG [ServiioHttpService] Incoming request from /192.168.1.224:59316: GET /resource/1815/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.145:8895,User-Agent: VLC/2.2.1 LibVLC/2.2.1,Range: bytes=8096-,Connection: close,Icy-MetaData: 1]]
2016-01-18 02:10:58,657 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:10:58,658 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:10:58,658 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:10:58,659 DEBUG [ResourceDeliveryProcessor] Request for resource 1815 and type 'MEDIA_ITEM' received
2016-01-18 02:10:58,659 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:10:58,659 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:10:58,659 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:10:58,660 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1815, format MATROSKA and profile Generic DLNA profile
2016-01-18 02:10:58,660 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:10:58,660 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:10:58,661 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:10:58,661 DEBUG [VideoDeliveryEngine] Delivering item '1815' for client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:10:58,662 DEBUG [VideoDeliveryEngine] Delivering file 'Heroes.Reborn.S01E12.720p.HDTV.x264-KILLERS.mkv' in native format
2016-01-18 02:10:58,662 DEBUG [MediaItemDAOImpl] Getting file of media item 1815
2016-01-18 02:10:58,662 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1815) as read
2016-01-18 02:10:58,664 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2016-01-18 02:10:58,664 DEBUG [GETMethodProcessor] Stream entity has length: 1048953858
2016-01-18 02:10:58,664 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Length: 1048953858,Content-Type: video/x-matroska,Cache-control: no-cache,Connection: close,Content-Range: bytes 8096-1048961953/1048961954,Date: Mon, 18 Jan 2016 01:10:58 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Windows 8, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.2,transferMode.dlna.org: Streaming]]
2016-01-18 02:11:12,963 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error


Log for not working client vlc 3.0.0 (revision 80a1eb9)
  Code:
2016-01-18 02:03:51,511 DEBUG [ServiioHttpService] Incoming request from /192.168.1.224:54582: GET /resource/1815/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.145:8895,Accept: */*,User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git,Range: bytes=4157-]]
2016-01-18 02:03:51,511 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:03:51,512 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:03:51,512 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:03:51,512 DEBUG [ResourceDeliveryProcessor] Request for resource 1815 and type 'MEDIA_ITEM' received
2016-01-18 02:03:51,513 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:03:51,513 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:03:51,513 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:03:51,513 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1815, format MATROSKA and profile Generic DLNA profile
2016-01-18 02:03:51,514 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:03:51,514 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:03:51,514 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:03:51,514 DEBUG [VideoDeliveryEngine] Delivering item '1815' for client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:03:51,514 DEBUG [VideoDeliveryEngine] Delivering file 'Heroes.Reborn.S01E12.720p.HDTV.x264-KILLERS.mkv' in native format
2016-01-18 02:03:51,514 DEBUG [MediaItemDAOImpl] Getting file of media item 1815
2016-01-18 02:03:51,515 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1815) as read
2016-01-18 02:03:51,516 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2016-01-18 02:03:51,516 DEBUG [GETMethodProcessor] Stream entity has length: 1048957797
2016-01-18 02:03:51,516 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Length: 1048957797,Content-Type: video/x-matroska,Cache-control: no-cache,Connection: close,Content-Range: bytes 4157-1048961953/1048961954,Date: Mon, 18 Jan 2016 01:03:51 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Windows 8, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.2,transferMode.dlna.org: Streaming]]
2016-01-18 02:03:51,537 DEBUG [ServiioHttpService] Incoming request from /192.168.1.224:54584: GET /resource/1815/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.145:8895,Accept: */*,User-Agent: VLC/3.0.0-git LibVLC/3.0.0-git,Range: bytes=104-]]
2016-01-18 02:03:51,537 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:03:51,537 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.224
2016-01-18 02:03:51,538 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:03:51,538 DEBUG [ResourceDeliveryProcessor] Request for resource 1815 and type 'MEDIA_ITEM' received
2016-01-18 02:03:51,538 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:03:51,538 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:03:51,538 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:03:51,539 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1815, format MATROSKA and profile Generic DLNA profile
2016-01-18 02:03:51,539 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1815 (local)
2016-01-18 02:03:51,539 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1815)
2016-01-18 02:03:51,539 DEBUG [VideoDAOImpl] Reading a Video (id = 1815)
2016-01-18 02:03:51,539 DEBUG [VideoDeliveryEngine] Delivering item '1815' for client 'Identifier=192.168.1.224, Profile=Generic DLNA profile'
2016-01-18 02:03:51,545 DEBUG [VideoDeliveryEngine] Delivering file 'Heroes.Reborn.S01E12.720p.HDTV.x264-KILLERS.mkv' in native format
2016-01-18 02:03:51,545 DEBUG [MediaItemDAOImpl] Getting file of media item 1815
2016-01-18 02:03:51,545 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1815) as read
2016-01-18 02:03:51,547 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2016-01-18 02:03:51,547 DEBUG [GETMethodProcessor] Stream entity has length: 1048961850
2016-01-18 02:03:51,547 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Length: 1048961850,Content-Type: video/x-matroska,Cache-control: no-cache,Connection: close,Content-Range: bytes 104-1048961953/1048961954,Date: Mon, 18 Jan 2016 01:03:51 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Windows 8, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.2,transferMode.dlna.org: Streaming]]
2016-01-18 02:03:51,553 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2016-01-18 02:04:10,656 DEBUG [FeedUpdaterWorker] Checking for new and expired online resources
2016-01-18 02:04:10,656 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2016-01-18 02:04:32,528 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2016-01-18 02:04:46,839 DEBUG [PipeManager] Adding file 'D:\VIDEOS3\LOGS\not working\serviio.log' to the delta queue (file added)


There seems to be some difference in some lengths and bytes?? Server side or client side?

Re: Linux and VLC as a client.

PostPosted: Mon Jan 18, 2016 5:06 am
by atc98092
I had to try this, so I downloaded the latest 3.0 build for Windows x64. You are right, it's actually usable now for DLNA playback. It used to take so long to populate the list, and now it's there instantly. :D

I'm using the build they have labeled 3.0.0-git-20151220-0402. I played a 1080p Blu-Ray rip with TrueHD audio. I saw no stuttering or other anomalies. Captions worked as expected. This is with both computers connected to gigabit Ethernet. Since I could select the captions, that tells me there was no transcoding involved. For me, it's working flawlessly. :oops:

Re: Linux and VLC as a client.

PostPosted: Mon Jan 18, 2016 9:29 am
by zip
In 2.0 VLC asks for some bytes at the end of the file, then for some at the beginning

in 3.0 VLC asks for some bytes from the beginning (twice).

So I guess you have to look at how VLC looks for metadata about the streams (look at the bytes range headers in the incoming requests).

Re: Linux and VLC as a client.

PostPosted: Mon Jan 18, 2016 4:19 pm
by iceicebird
atc98092 wrote:I had to try this, so I downloaded the latest 3.0 build for Windows x64. You are right, it's actually usable now for DLNA playback. It used to take so long to populate the list, and now it's there instantly. :D

I'm using the build they have labeled 3.0.0-git-20151220-0402. I played a 1080p Blu-Ray rip with TrueHD audio. I saw no stuttering or other anomalies. Captions worked as expected. This is with both computers connected to gigabit Ethernet. Since I could select the captions, that tells me there was no transcoding involved. For me, it's working flawlessly. :oops:


Any possibility that you also could test this in Linux?

Re: Linux and VLC as a client.

PostPosted: Tue Jan 19, 2016 1:33 am
by atc98092
iceicebird wrote:
atc98092 wrote:I had to try this, so I downloaded the latest 3.0 build for Windows x64. You are right, it's actually usable now for DLNA playback. It used to take so long to populate the list, and now it's there instantly. :D

I'm using the build they have labeled 3.0.0-git-20151220-0402. I played a 1080p Blu-Ray rip with TrueHD audio. I saw no stuttering or other anomalies. Captions worked as expected. This is with both computers connected to gigabit Ethernet. Since I could select the captions, that tells me there was no transcoding involved. For me, it's working flawlessly. :oops:


Any possibility that you also could test this in Linux?


I'd have to build a Linux box, as I currently don't have any. I was playing around with it on an old laptop, and if I have some spare time I may install a new distro. I was a Linux administrator for a number of years, but then FAA IT security decided that they didn't want all us people in the field facilities to have root access anymore. Didn't matter how experienced we were. :roll: I'm a little rusty with it now. :lol:

Re: Linux and VLC as a client.

PostPosted: Tue Jan 19, 2016 8:49 am
by zip
VirtualBox is your friend ;-)