lostb1t / replex

Remix your Plex hubs
204 stars 7 forks source link

Issues with Live TV on Android/TV #154

Closed PilaScat closed 1 month ago

PilaScat commented 1 month ago

Hi, my stream from chrome and via windows apps works flawlessy, but on android they doesn't:

Response status=404 Not Found path=/photo/:/transcode duration=253.114004ms
Response status=404 Not Found path=/livetv/sessions/0305d811-db18-4bc3-812c-9750968301d0/60a7cf4cc457eadb-com-plexapp-android/index.m3u8 duration=4.157279ms
Response status=404 Not Found path=/media/grabbers/operations/5-60a7cf4cc457eadb-com-plexapp-android duration=4.131218ms
Response status=200 OK path=/livetv/dvrs/141/channels/5/tune duration=5.715988272s
thread 'tokio-runtime-worker' panicked at src/plex_client.rs:278:46:
called `Result::unwrap()` on an `Err` value: Other(Error { path: Path { segments: [Map { key: "MediaContainer" }, Map { key: "Metadata" }, Seq { index: 0 }, Map { key: "parentIndex" }] }, original: Error("invalid value: integer `-1`, expected u32", line: 1, column: 381) })

Probably not all related to live tv

lostb1t commented 1 month ago

fixed the error but not sure if its related to your issue. Give it a try

PilaScat commented 1 month ago

Seems fixed! You're fantastic, It's been a week since I've been trying to figure out why he did it, I was going crazy. Thank you!

PilaScat commented 1 month ago

strange problem, when I change channel on a device the other crashes image

lostb1t commented 1 month ago

could you run replex with the env

RUST_LOG="info,replex=trace"

and resend the log? i dont have andy dvr myself so need to see request info (especially transcode url)

PilaScat commented 1 month ago
2024-08-02T12:50:17.953667Z DEBUG Request{remote_addr=socket://172.18.0.1:44360 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "gzip"} path=http://plex.redacted.tech/livetv/sessions/ec43cf77-5252-4394-a364-f228027770b5/60a7cf4cc457eadb-com-plexapp-android/index.m3u8?autoAdjustQuality=0&hasMDE=1&location=wan&mediaBufferSize=74944&offset=-1.000000&X-Plex-Client-Identifier=60a7cf4cc457eadb-com-plexapp-android&X-Plex-Client-Platform=Android&X-Plex-Device=BRAVIA%204K%20UR2&X-Plex-DRM=widevine%3Avideo&X-Plex-Incomplete-Segments=1&X-Plex-Platform=Android&X-Plex-Platform-Version=10&X-Plex-Product=Plex%20for%20Android%20(TV)&X-Plex-Session-Id=7c5e5526-c56a-4272-a1de-501aa13e6da1&X-Plex-Token=redacted&X-Plex-Version=10.19.0.1142 span.kind="server" service.name="replex"}: replex::logging: Response status=500 Internal Server Error path=/livetv/sessions/ec43cf77-5252-4394-a364-f228027770b5/60a7cf4cc457eadb-com-plexapp-android/index.m3u8 duration=4.168968ms
2024-08-02T12:50:17.966765Z DEBUG Request{remote_addr=socket://172.18.0.1:44368 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "gzip"} path=http://plex.redacted.tech/livetv/sessions/ec43cf77-5252-4394-a364-f228027770b5/60a7cf4cc457eadb-com-plexapp-android/index.m3u8?autoAdjustQuality=0&hasMDE=1&location=wan&mediaBufferSize=74944&offset=-1.000000&X-Plex-Client-Identifier=60a7cf4cc457eadb-com-plexapp-android&X-Plex-Client-Platform=Android&X-Plex-Device=BRAVIA%204K%20UR2&X-Plex-DRM=widevine%3Avideo&X-Plex-Incomplete-Segments=1&X-Plex-Platform=Android&X-Plex-Platform-Version=10&X-Plex-Product=Plex%20for%20Android%20(TV)&X-Plex-Session-Id=7c5e5526-c56a-4272-a1de-501aa13e6da1&X-Plex-Token=redacted&X-Plex-Version=10.19.0.1142 span.kind="server" service.name="replex"}: replex::logging: Response status=500 Internal Server Error path=/livetv/sessions/ec43cf77-5252-4394-a364-f228027770b5/60a7cf4cc457eadb-com-plexapp-android/index.m3u8 duration=4.743891ms
2024-08-02T12:50:18.981117Z DEBUG Request{remote_addr=socket://172.18.0.1:44372 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "gzip"} path=http://plex.redacted.tech/livetv/sessions/ec43cf77-5252-4394-a364-f228027770b5/60a7cf4cc457eadb-com-plexapp-android/index.m3u8?autoAdjustQuality=0&hasMDE=1&location=wan&mediaBufferSize=74944&offset=-1.000000&X-Plex-Client-Identifier=60a7cf4cc457eadb-com-plexapp-android&X-Plex-Client-Platform=Android&X-Plex-Device=BRAVIA%204K%20UR2&X-Plex-DRM=widevine%3Avideo&X-Plex-Incomplete-Segments=1&X-Plex-Platform=Android&X-Plex-Platform-Version=10&X-Plex-Product=Plex%20for%20Android%20(TV)&X-Plex-Session-Id=7c5e5526-c56a-4272-a1de-501aa13e6da1&X-Plex-Token=redacted&X-Plex-Version=10.19.0.1142 span.kind="server" service.name="replex"}: replex::logging: Response status=500 Internal Server Error path=/livetv/sessions/ec43cf77-5252-4394-a364-f228027770b5/60a7cf4cc457eadb-com-plexapp-android/index.m3u8 duration=4.514444ms
2024-08-02T12:55:36.584288Z DEBUG Request{remote_addr=socket://172.18.0.1:51930 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "identity"} path=http://plex.redacted.tech/livetv/sessions/b8040561-1f3c-40ee-a4ef-49f338bad40a/60a7cf4cc457eadb-com-plexapp-android/00042.ts?X-Plex-Incomplete-Segments=1 span.kind="server" service.name="replex"}: replex::logging: Response status=404 Not Found path=/livetv/sessions/b8040561-1f3c-40ee-a4ef-49f338bad40a/60a7cf4cc457eadb-com-plexapp-android/00042.ts duration=4.117626ms

it is a little difficult to find the error between all this lines ahah

PilaScat commented 1 month ago
2024-08-02T13:00:40.323930Z DEBUG Request{remote_addr=socket://172.18.0.1:39932 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "identity"} path=http://plex.redacted.tech/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts?X-Plex-Incomplete-Segments=1 span.kind="server" service.name="replex"}: replex::logging: Response status=404 Not Found path=/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts duration=4.281357ms
2024-08-02T13:00:40.333408Z DEBUG Request{remote_addr=socket://172.18.0.1:39936 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "identity"} path=http://plex.redacted.tech/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts?X-Plex-Incomplete-Segments=1 span.kind="server" service.name="replex"}: replex::logging: Response status=404 Not Found path=/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts duration=4.330269ms
2024-08-02T13:00:41.344183Z DEBUG Request{remote_addr=socket://172.18.0.1:40014 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "identity"} path=http://plex.redacted.tech/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts?X-Plex-Incomplete-Segments=1 span.kind="server" service.name="replex"}: replex::logging: Response status=404 Not Found path=/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts duration=4.658694ms
2024-08-02T13:00:43.361470Z DEBUG Request{remote_addr=socket://172.18.0.1:40110 version=HTTP/1.1 method=GET headers={"connection": "Keep-Alive", "host": "plex.redacted.tech", "x-forwarded-scheme": "https", "x-forwarded-proto": "https", "x-forwarded-for": "192.168.1.52", "x-real-ip": "192.168.1.52", "user-agent": "Mozilla/5.0 (Linux; Android 10; BRAVIA 4K UR2 Build/QTG3.200305.006.S36; wv)PlexTV/10.19.0.1142", "accept-encoding": "identity"} path=http://plex.redacted.tech/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts?X-Plex-Incomplete-Segments=1 span.kind="server" service.name="replex"}: replex::logging: Response status=404 Not Found path=/livetv/sessions/4265584b-18ef-4585-8683-2b170baa4e7d/60a7cf4cc457eadb-com-plexapp-android/00058.ts duration=4.778628ms

others I found

lostb1t commented 1 month ago

there doesnt need to be an error but i need to see the video/:/transcode url

put the whole log on pastebin.

lostb1t commented 1 month ago

and you sure this does work without replex in between?

PilaScat commented 1 month ago

there doesnt need to be an error but i need to see the video/:/transcode url

put the whole log on pastebin.

ok but there are a lot of people streaming right now, and can I send you a private message like discord or telegram? im not sure about my url and token on pastebin or here ahah you could find me white the same name as github on discord and telegram, even via mail

and you sure this does work without replex in between?

yes, I have two plex server connected to the same dvr, and the one without replex doesn't have the problem

PilaScat commented 1 month ago

For now I'll close this, seems fixed apart for chrome