Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DLNA] LiveTV empty when browsing with VLC #2371

Open
PrplHaz4 opened this issue Feb 3, 2020 · 20 comments
Open

[DLNA] LiveTV empty when browsing with VLC #2371

PrplHaz4 opened this issue Feb 3, 2020 · 20 comments
Assignees
Labels

Comments

@PrplHaz4
Copy link
Contributor

@PrplHaz4 PrplHaz4 commented Feb 3, 2020

Describe the bug

No media items (channels or shows) are listed under "LiveTV" when browsing over DLNA with VLC for Windows.

To Reproduce

  1. Open VLC
  2. Click on 'Universal Plug'n'Play'
  3. Double Click Jellyfin Server
  4. Double Click LiveTV
  5. No media items are shown under LiveTV

Expected behavior

  • LiveTV Channels or programs are listed under LiveTV

Logs

  • BROWSE LiveTV Request
<Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
	<Body>
		<Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
			<ObjectID>
				2b2bca16aacc8a14d53a11bb829eafa5
			</ObjectID>
			<BrowseFlag>
				BrowseDirectChildren
			</BrowseFlag>
			<Filter>
				*
			</Filter>
			<StartingIndex>
				0
			</StartingIndex>
			<RequestedCount>
				5000
			</RequestedCount>
			<SortCriteria>
			</SortCriteria>
		</Browse>
	</Body>
</Envelope>
  • BROWSE LiveTV Response
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
	<Body>
		<BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
			<Result>
                    <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">
                        <item restricted="1" id="6e3807fb6bb40d45f68ca9315eb6b434" parentID="2b2bca16aacc8a14d53a11bb829eafa5">
                            <title>
                                ABC News Digital
                            </title>
                            <class>
                                object.item.videoItem
                            </class>
                            <res bitrate="0" protocolInfo="http-get:*:application/octet-stream:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000">
                                http://192.168.1.141:8096/videos/6e3807fb-6bb4-0d45-f68c-a9315eb6b434/stream?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&amp;DeviceId=test&amp;MediaSourceId=6e3807fb6bb40d45f68ca9315eb6b434&amp;Static=true&amp;dlnaheaders=true
                            </res>
                        </item>
                        <more items here />
                    </DIDL-Lite>
			</Result>
			<NumberReturned>
				89
			</NumberReturned>
			<TotalMatches>
				89
			</TotalMatches>
			<UpdateID>
				2069
			</UpdateID>
		</BrowseResponse>
	</Body>
</Envelope>
  • Working item in BROWSE Movies result
<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">
	<item restricted="1" id="2b761a2d19d7a0cb472d19bc932733ca" parentID="movies_f137a2dd21bbc1b99aa5c0f6bf02a805">
		<title>
			40 Days and 40 Nights
		</title>
		<class>
			object.item.videoItem.movie
		</class>
		<date>
			2002-03-01T00:00:00.0000000Z
		</date>
		<genre>
			Comedy
		</genre>
		<genre>
			Romance
		</genre>
		<publisher>
			Miramax
		</publisher>
		<publisher>
			Universal Pictures
		</publisher>
		<publisher>
			Working Title Films
		</publisher>
		<description>
			Matt Sullivan's last big relationship ended in disaster and ever since his heart's been aching and his commitment's been lacking. Then came Lent, that time of year when everybody gives something up. That's when Matt decides to go where no man's gone before and make a vow: No sex. Whatsoever. For 40 straight days. At first he has everything under control. That is until the woman of his dreams, Erica, walks into his life.
		</description>
		<rating>
			R
		</rating>
		<rating>
			R
		</rating>
		<res duration="01:35:25.6198144" size="1318048384" nrAudioChannels="2" resolution="720x460" sampleFrequency="48000" bitrate="1386696" protocolInfo="http-get:*:video/quicktime:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000">
			http://192.168.4.14:8096/videos/2b761a2d-19d7-a0cb-472d-19bc932733ca/stream.mov?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&amp;DeviceId=test&amp;MediaSourceId=2b761a2d19d7a0cb472d19bc932733ca&amp;Static=true&amp;AudioStreamIndex=1&amp;Tag=5365dec4a6909cbb3dcd3d9f74d49ac7&amp;dlnaheaders=true
		</res>
		<albumArtURI dlna:profileID="JPEG_SM">
			http://192.168.4.14:8096/Items/2b761a2d19d7a0cb472d19bc932733ca/Images/Primary/0/923e809546972dda121e1eafc534344f/jpg/480/480/0/0
		</albumArtURI>
		<icon>
			http://192.168.4.14:8096/Items/2b761a2d19d7a0cb472d19bc932733ca/Images/Primary/0/923e809546972dda121e1eafc534344f/jpg/48/48/0/0
		</icon>
	</item>
</DIDL-Lite>

Screenshots

System (please complete the following information):

  • OS: Debian Server, Windows Client
  • Browser: VLC for Windows
  • Jellyfin Version: 10.5-dev
  • Installed Plugins: none
  • Reverse proxy: none

Additional context

I'm only seeing this issue in VLC (as my Samsung TV and Windows Explorer can browse LiveTV channels fine.

@stale
Copy link

@stale stale bot commented Jun 2, 2020

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale stale bot added the stale label Jun 2, 2020
@PrplHaz4
Copy link
Contributor Author

@PrplHaz4 PrplHaz4 commented Jun 7, 2020

still an issue on 10.5.5

@stale stale bot removed the stale label Jun 7, 2020
@stale
Copy link

@stale stale bot commented Oct 7, 2020

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale stale bot added the stale label Oct 7, 2020
@PrplHaz4
Copy link
Contributor Author

@PrplHaz4 PrplHaz4 commented Oct 7, 2020

still present in v10.6.4

@stale stale bot removed the stale label Oct 7, 2020
@stale
Copy link

@stale stale bot commented Feb 4, 2021

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale stale bot added the stale label Feb 4, 2021
@cvium
Copy link
Member

@cvium cvium commented Feb 4, 2021

@PrplHaz4 Have you tested 10.7 RC? We've had some dlna fixes, but I don't know if this issue was one of them.

@stale stale bot removed the stale label Feb 4, 2021
@PrplHaz4
Copy link
Contributor Author

@PrplHaz4 PrplHaz4 commented Feb 4, 2021

@PrplHaz4 Have you tested 10.7 RC? We've had some dlna fixes, but I don't know if this issue was one of them.

Still an issue on 10.7-rc3. I think it has something to do with Channel Items not being exposed as a DLNA items properly (since plugins that are channel providers like LazyMan do not show content in VLC either).

@BaronGreenback BaronGreenback self-assigned this Apr 20, 2021
@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented Apr 20, 2021

Linking with issue #5793 as it looks like it could be the same issue.

@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented Apr 21, 2021

I've confirmed that the issue I'm seeing with VLC not displaying items (may be #5793 but I cannot reproduce exactly that issue) is down to VLC itself.

Enabling debug logging on VLC shows an Error on receipt of the data.

lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
mod debug: MOD validation failed (ext=5:8096\dlna\6e08c9e31e4d46ee9e636eb20be6a23f\contentdirectory\control)
main debug: no meta fetcher modules matched

BubbleUPnp does have the same problem - and parses the xml correctly.

What is VLC logging for you when trying to browse liveTV?

@PrplHaz4
Copy link
Contributor Author

@PrplHaz4 PrplHaz4 commented Apr 22, 2021

I've confirmed that the issue I'm seeing with VLC not displaying items (may be #5793 but I cannot reproduce exactly that issue) is down to VLC itself.

Enabling debug logging on VLC shows an Error on receipt of the data.

lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
mod debug: MOD validation failed (ext=5:8096\dlna\6e08c9e31e4d46ee9e636eb20be6a23f\contentdirectory\control)
main debug: no meta fetcher modules matched

BubbleUPnp does have the same problem - and parses the xml correctly.

What is VLC logging for you when trying to browse liveTV?

main debug: `upnp://http://192.168.1.16:8096/dlna/1ac8a50272fb495ea603996b3ed2d5f5/contentdirectory/control?ObjectID=2b2bca16aacc8a14d53a11bb829eafa5' gives access `upnp' demux `any' path `http://192.168.1.16:8096/dlna/1ac8a50272fb495ea603996b3ed2d5f5/contentdirectory/control?ObjectID=2b2bca16aacc8a14d53a11bb829eafa5'
main debug: creating demux: access='upnp' demux='any' location='http://192.168.1.16:8096/dlna/1ac8a50272fb495ea603996b3ed2d5f5/contentdirectory/control?ObjectID=2b2bca16aacc8a14d53a11bb829eafa5' file='\\http:\\192.168.1.16:8096\dlna\1ac8a50272fb495ea603996b3ed2d5f5\contentdirectory\control'
main debug: looking for access_demux module matching "upnp": 15 candidates
main debug: no access_demux modules matched
main debug: creating access: upnp://http://192.168.1.16:8096/dlna/1ac8a50272fb495ea603996b3ed2d5f5/contentdirectory/control?ObjectID=2b2bca16aacc8a14d53a11bb829eafa5
main debug: (path: \\http:\\192.168.1.16:8096\dlna\1ac8a50272fb495ea603996b3ed2d5f5\contentdirectory\control)
main debug: looking for access module matching "upnp": 27 candidates
main debug: using access module "upnp"
main debug: looking for stream_filter module matching "any": 24 candidates
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching "any": 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for upnp://http://192.168.1.16:8096/dlna/1ac8a50272fb495ea603996b3ed2d5f5/contentdirectory/control?ObjectID=2b2bca16aacc8a14d53a11bb829eafa5
main debug: looking for stream_filter module matching "record": 24 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='upnp' demux='any' location='http://192.168.1.16:8096/dlna/1ac8a50272fb495ea603996b3ed2d5f5/contentdirectory/control?ObjectID=2b2bca16aacc8a14d53a11bb829eafa5' file='\\http:\\192.168.1.16:8096\dlna\1ac8a50272fb495ea603996b3ed2d5f5\contentdirectory\control'
main debug: looking for demux module matching "any": 55 candidates
es debug: cannot peek
es debug: cannot peek
es debug: cannot peek
es debug: cannot peek
es debug: cannot peek
mod debug: MOD validation failed (ext=16:8096\dlna\1ac8a50272fb495ea603996b3ed2d5f5\contentdirectory\control)
main debug: using demux module "directory"
@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented Apr 22, 2021

From the look of the logs the issues is identical.

I've downloaded the VLC source code - all i know need to do is to identify the issue, and find a way around it!

@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented Apr 29, 2021

Think I've found the issue. Providing a .strm file extension via dlna causes vlc to ignore the file entirely.
eg. VLC will open a .strm fine, but won't display it via DLNA.

renaming it to .ts enables things to work as expected.

removing the extension entirely (as above f68c-a9315eb6b434/stream?DeviceProfileId=32718) causes the same problem.

@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented May 2, 2021

@PrplHaz4 Could you try #5951 to see if it resolves this issue.

All my media is now showing (and playing) on vlc.

VLC should be sent a url encoded with /stream.ts?DeviceProfileId=...? which should hopefully solve your problem if it is the same cause.

@PrplHaz4
Copy link
Contributor Author

@PrplHaz4 PrplHaz4 commented May 2, 2021

@PrplHaz4 Could you try #5951 to see if it resolves this issue.

All my media is now showing (and playing) on vlc.

VLC should be sent a url encoded with /stream.ts?DeviceProfileId=...? which should hopefully solve your problem if it is the same cause.

Hmmm, the listing is no longer blank, but the channels don't seem to play:

VLC Error

details.
Your input can't be opened:
VLC is unable to open the MRL 'http://192.168.4.141:8096/videos/4ff6a26a-9c4b-15e5-ab84-e9d42a29bfce/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=4ff6a26a9c4b15e5ab84e9d42a29bfce&Static=true&dlnaheaders=true'. Check the log for details.

VLC Debug Log

main debug: processing request item: WCVB, node: Universal Plug'n'Play, skip: 0
main debug: rebuilding array of current - root Universal Plug'n'Play
main debug: rebuild done - 90 items, index 30
main debug: starting playback of new item
main debug: resyncing on WCVB
main debug: WCVB is at 30
main debug: creating new input thread
main debug: Creating an input for 'WCVB'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path: C:\Users\JJHAYE~1\AppData\Local\Temp
main debug: `http://192.168.4.141:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true' gives access `http' demux `any' path `192.168.4.141:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true'
main debug: creating demux: access='http' demux='any' location='192.168.4.141:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true' file='\\192.168.4.141:8096\videos\c5eec3a0-f756-dc26-6f8c-cb4155d5177a\stream.ts'
main debug: looking for access_demux module matching "http": 15 candidates
main debug: no access_demux modules matched
main debug: creating access: http://192.168.4.141:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true
main debug: (path: \\192.168.4.141:8096\videos\c5eec3a0-f756-dc26-6f8c-cb4155d5177a\stream.ts)
main debug: looking for access module matching "http": 27 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\portable\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\lua\meta\fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\portable\lua\meta\art
http debug: resolving 192.168.4.141 ...
http debug: outgoing request: GET /videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true HTTP/1.1 Host: 192.168.4.141:8096 Accept: */* Accept-Language: en_US User-Agent: VLC/3.0.12 LibVLC/3.0.12 Range: bytes=0- 
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\lua\meta\art
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\apps\scoop\apps\vlc\current\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) C:\apps\scoop\apps\vlc\current\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) C:\apps\scoop\apps\vlc\current\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\03_lastfm.luac
lua debug: skipping script (unmatched scope) C:\apps\scoop\apps\vlc\current\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\portable\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\lua\meta\fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\portable\lua\meta\art
lua debug: Trying Lua scripts in C:\apps\scoop\apps\vlc\current\lua\meta\art
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\apps\scoop\apps\vlc\current\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
qt debug: IM: Setting an input
http debug: incoming response: HTTP/1.1 400 Bad Request Date: Sun, 02 May 2021 18:53:41 GMT Content-Type: application/json; charset=utf-8 Server: Kestrel Transfer-Encoding: chunked X-Response-Time-ms: 5 
access error: HTTP 400 error
http debug: connection failed
http debug: querying proxy for http://192.168.4.141:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true
http debug: no proxy
http debug: http: server='192.168.4.141' port=8096 file='/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts'
main debug: net: connecting to 192.168.4.141 port 8096
main debug: connection succeeded (socket = 2512)
http debug: sending request: GET /videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true HTTP/1.0 Host: 192.168.4.141:8096 User-Agent: VLC/3.0.12 LibVLC/3.0.12 Icy-MetaData: 1 
http debug: HTTP answer code 400
http error: error: HTTP/1.1 400 Bad Request
main debug: no access modules matched
main debug: dead input
main debug: changing item without a request (current 30/90)

Jellyfin Debug Log

[19:04:09] [INF] Request starting HTTP/1.1 GET http://192.168.4.141:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true - -
[19:04:09] [DBG] Error authenticating with CustomAuthenticationHandler
MediaBrowser.Controller.Authentication.AuthenticationException: Request does not contain a token.
   at Emby.Server.Implementations.HttpServer.Security.AuthService.Authenticate(HttpRequest request) in /opt/jellyfin/Emby.Server.Implementations/HttpServer/Security/AuthService.cs:line 26
   at Jellyfin.Api.Auth.CustomAuthenticationHandler.HandleAuthenticateAsync() in /opt/jellyfin/Jellyfin.Api/Auth/CustomAuthenticationHandler.cs:line 47
[19:04:09] [DBG] AuthenticationScheme: CustomAuthentication was not authenticated.
[19:04:09] [INF] Executing endpoint 'Jellyfin.Api.Controllers.VideosController.GetVideoStreamByContainer (Jellyfin.Api)'
[19:04:09] [INF] Route matched with {action = "GetVideoStreamByContainer", controller = "Videos"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] GetVideoStreamByContainer(System.Guid, System.String, System.Nullable`1[System.Boolean], System.String, System.String, System.String, System.String, System.String, System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.String, System.String, System.String, System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.String, System.String, System.Nullable`1[System.Single], System.Nullable`1[System.Single], System.Nullable`1[System.Boolean], System.Nullable`1[System.Int64], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[MediaBrowser.Model.Dlna.SubtitleDeliveryMethod], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Boolean], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.String, System.Nullable`1[System.Boolean], System.String, System.String, System.String, System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[MediaBrowser.Model.Dlna.EncodingContext], System.Collections.Generic.Dictionary`2[System.String,System.String], System.String) on controller Jellyfin.Api.Controllers.VideosController (Jellyfin.Api).
[19:04:09] [DBG] MediaSources: [{"Protocol": "Udp", "Id": "native_ff80f93c46e0a0b178f0c4d61a5abab3_81909ee7ce0a737df7c0f6729bb5b7b6", "Path": "http://192.168.4.37", "EncoderPath": null, "EncoderProtocol": null, "Type": "Default", "Container": "ts", "Size": null, "Name": null, "IsRemote": false, "ETag": null, "RunTimeTicks": null, "ReadAtNativeFramerate": false, "IgnoreDts": true, "IgnoreIndex": false, "GenPtsInput": false, "SupportsTranscoding": true, "SupportsDirectStream": true, "SupportsDirectPlay": false, "IsInfiniteStream": true, "RequiresOpening": true, "OpenToken": "LiveTvChannel_c5eec3a0f756dc266f8ccb4155d5177a_native_ff80f93c46e0a0b178f0c4d61a5abab3_81909ee7ce0a737df7c0f6729bb5b7b6", "RequiresClosing": true, "LiveStreamId": null, "BufferMs": 0, "RequiresLooping": false, "SupportsProbing": true, "VideoType": null, "IsoType": null, "Video3DFormat": null, "MediaStreams": [{"Codec": "mpeg2video", "CodecTag": null, "Language": null, "ColorRange": null, "ColorSpace": null, "ColorTransfer": null, "ColorPrimaries": null, "Comment": null, "TimeBase": null, "CodecTimeBase": null, "Title": null, "VideoRange": "SDR", "LocalizedUndefined": null, "LocalizedDefault": null, "LocalizedForced": null, "DisplayTitle": "1080i MPEG2VIDEO SDR", "NalLengthSize": null, "IsInterlaced": true, "IsAVC": null, "ChannelLayout": null, "BitRate": 15000000, "BitDepth": null, "RefFrames": null, "PacketLength": null, "Channels": null, "SampleRate": null, "IsDefault": false, "IsForced": false, "Height": 1080, "Width": 1920, "AverageFrameRate": null, "RealFrameRate": null, "Profile": null, "Type": "Video", "AspectRatio": null, "Index": -1, "Score": null, "IsExternal": false, "DeliveryMethod": null, "DeliveryUrl": null, "IsExternalUrl": null, "IsTextSubtitleStream": false, "SupportsExternalStream": false, "Path": null, "PixelFormat": null, "Level": null, "IsAnamorphic": null, "$type": "MediaStream"}, {"Codec": "AC3", "CodecTag": null, "Language": null, "ColorRange": null, "ColorSpace": null, "ColorTransfer": null, "ColorPrimaries": null, "Comment": null, "TimeBase": null, "CodecTimeBase": null, "Title": null, "VideoRange": null, "LocalizedUndefined": null, "LocalizedDefault": null, "LocalizedForced": null, "DisplayTitle": "Dolby Digital", "NalLengthSize": null, "IsInterlaced": false, "IsAVC": null, "ChannelLayout": null, "BitRate": 448000, "BitDepth": null, "RefFrames": null, "PacketLength": null, "Channels": null, "SampleRate": null, "IsDefault": false, "IsForced": false, "Height": null, "Width": null, "AverageFrameRate": null, "RealFrameRate": null, "Profile": null, "Type": "Audio", "AspectRatio": null, "Index": -1, "Score": null, "IsExternal": false, "DeliveryMethod": null, "DeliveryUrl": null, "IsExternalUrl": null, "IsTextSubtitleStream": false, "SupportsExternalStream": false, "Path": null, "PixelFormat": null, "Level": null, "IsAnamorphic": null, "$type": "MediaStream"}], "MediaAttachments": [], "Formats": [], "Bitrate": 15448000, "Timestamp": null, "RequiredHttpHeaders": {}, "TranscodingUrl": null, "TranscodingSubProtocol": null, "TranscodingContainer": null, "AnalyzeDurationMs": null, "TranscodeReasons": null, "DefaultAudioStreamIndex": null, "DefaultSubtitleStreamIndex": null, "VideoStream": {"Codec": "mpeg2video", "CodecTag": null, "Language": null, "ColorRange": null, "ColorSpace": null, "ColorTransfer": null, "ColorPrimaries": null, "Comment": null, "TimeBase": null, "CodecTimeBase": null, "Title": null, "VideoRange": "SDR", "LocalizedUndefined": null, "LocalizedDefault": null, "LocalizedForced": null, "DisplayTitle": "1080i MPEG2VIDEO SDR", "NalLengthSize": null, "IsInterlaced": true, "IsAVC": null, "ChannelLayout": null, "BitRate": 15000000, "BitDepth": null, "RefFrames": null, "PacketLength": null, "Channels": null, "SampleRate": null, "IsDefault": false, "IsForced": false, "Height": 1080, "Width": 1920, "AverageFrameRate": null, "RealFrameRate": null, "Profile": null, "Type": "Video", "AspectRatio": null, "Index": -1, "Score": null, "IsExternal": false, "DeliveryMethod": null, "DeliveryUrl": null, "IsExternalUrl": null, "IsTextSubtitleStream": false, "SupportsExternalStream": false, "Path": null, "PixelFormat": null, "Level": null, "IsAnamorphic": null, "$type": "MediaStream"}, "$type": "MediaSourceInfo"}]
[19:04:09] [INF] Executing BadRequestObjectResult, writing value of type 'System.String'.
[19:04:09] [INF] Executed action Jellyfin.Api.Controllers.VideosController.GetVideoStreamByContainer (Jellyfin.Api) in 2.6814ms
[19:04:09] [INF] Executed endpoint 'Jellyfin.Api.Controllers.VideosController.GetVideoStreamByContainer (Jellyfin.Api)'
[19:04:09] [INF] Request finished HTTP/1.1 GET http://192.168.4.141:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/stream.ts?DeviceProfileId=327180f3937cb4bf14f2cf1fb3e5fdc2&DeviceId=test&MediaSourceId=c5eec3a0f756dc266f8ccb4155d5177a&Static=true&dlnaheaders=true - - - 400 - application/json;+charset=utf-8 5.1855ms
@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented May 2, 2021

Looks like one issue down, one to go.

Thanks for testing.

@PrplHaz4
Copy link
Contributor Author

@PrplHaz4 PrplHaz4 commented May 2, 2021

Looks like one issue down, one to go.

Thanks for testing.

updated my post w/more logs - np, thanks for coding and fixing :)

@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented May 2, 2021

Looks like it's now an auth issue. How is the request originally made (i don't use live tv - so have no idea)

@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented May 2, 2021

Scratch that - just read the original post.

@BaronGreenback
Copy link
Contributor

@BaronGreenback BaronGreenback commented May 2, 2021

This might be the other peice of the puzzle - #5755

It performs auth by defined LAN on DLNA.

@PrplHaz4
Copy link
Contributor Author

@PrplHaz4 PrplHaz4 commented May 3, 2021

This might be the other peice of the puzzle - #5755

It performs auth by defined LAN on DLNA.

I merged #5755 over #5951 and it looks like I'm getting the same response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants