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

Direct Play STRM not working #57

Open
Gujjugaming2k opened this issue Oct 20, 2024 · 39 comments
Open

Direct Play STRM not working #57

Gujjugaming2k opened this issue Oct 20, 2024 · 39 comments
Labels
bug Something isn't working

Comments

@Gujjugaming2k
Copy link

Description

Have you tested STRM ?

which will content direct link, its not working

Reproduction steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

DESCRIPTION

Logs

No response

Platform

Web, Android, Windows

App Version

latest

@Gujjugaming2k Gujjugaming2k added the bug Something isn't working label Oct 20, 2024
@PartyDonut
Copy link
Collaborator

PartyDonut commented Nov 1, 2024

Hi, I could use some more information on this issue.
VideoCodec,VideoContainer etc. anything related to playback and what is not working.
You can use the Media info button in Fladder to print a complete log of all the information I need of the Item you're trying to play.

Remuxing does seem to work on my end when I orce it to remux from mkv to mp4.
However where jellyfin reports remuxing, Fladder still show as transcoding.

@Gujjugaming2k
Copy link
Author

Title: Hoisting the Flag
Container: mkv
Path: /opt/jellyfin/STRM/VFlix_STRM/Series/AMZN/Suzhal The Vortex/S01/Suzhal The Vortex S01 E01 WebRip 720p Hindi Tamil AAC 5.mkv.strm
Size: 598.72 MB

Title: 720p H264 SDR
Codec: h264
Profile: High
Level: 41.0
Resolution: 1280x720
Aspect Ration: 16:9
Interlaced: false
FrameRate: 25.0
Bitrate: 1486819 kbps
Bit depth: 8
Video range: VideoRange.sdr
Video range type: VideoRangeType.sdr
Ref frames: 1

Title: Hindi - AAC - 5.1 - Default
Language: hin
Codec: aac
Layout: 5.1
Bitrate: 191578 kbps
Sample Rate: 48000 Hz
Default: true
Forced: false
External: false
Title: Tamil - AAC - 5.1
Language: tam
Codec: aac
Layout: 5.1
Bitrate: 191578 kbps
Sample Rate: 48000 Hz
Default: false
Forced: false
External: false

Title: English [SDH] - Default - SUBRIP
Language: eng
Codec: subrip
Profile: null
Default: true
Forced: false
External: false
Title: English - SUBRIP
Language: eng
Codec: subrip
Profile: null
Default: false
Forced: false
External: false
Title: French - SUBRIP
Language: fre
Codec: subrip
Profile: null
Default: false
Forced: false
External: false
Title: Hindi - SUBRIP
Language: hin
Codec: subrip
Profile: null
Default: false
Forced: false
External: false
Title: Korean - SUBRIP
Language: kor
Codec: subrip
Profile: null
Default: false
Forced: false
External: false
Title: Dutch - SUBRIP
Language: dut
Codec: subrip
Profile: null
Default: false
Forced: false
External: false
Title: Russian - SUBRIP
Language: rus
Codec: subrip
Profile: null
Default: false
Forced: false
External: false
Title: Tamil [SDH] - SUBRIP
Language: tam
Codec: subrip
Profile: null
Default: false
Forced: false
External: false
Title: Telugu - SUBRIP
Language: tel
Codec: subrip
Profile: null
Default: false
Forced: false
External: false

@Gujjugaming2k
Copy link
Author

Lets say if we start playing any movie or series its working perfectly its starting from 00:00 timestamp

But if we skip that to lets say 10:00 or 10 min ahead it will freez

@bazzadazza72
Copy link
Contributor

bazzadazza72 commented Nov 25, 2024

It's possible that the file is being streamed from somewhere, as in the mkv file, and not stored locally. Can you post your Jellyfin server's logs, as that might give some insight into what happens. You'll need to hide anything that we shouldn't see.

Edit: added clarity

@Gujjugaming2k
Copy link
Author

Log.txt

server details only direct play allowed, working perfectly on findroid app and jellyfin TV app

server - https://jellyfin.vflix.xyz/
username - trialgithub
passwrod - trialgithub

@Gujjugaming2k
Copy link
Author

check once and let us know if any challenges ?

@bazzadazza72
Copy link
Contributor

I can't access your server. I'm getting Cloudflare errors when I try to access it, stating that cloudflared is not running.

Having a look at the logs, I can't see anything that would indicate a problem with direct play or transcoding. I do see, however, a user that can't transcode audio or video (on line 2724). Is this the user you're watching your content from?

On another note, I strongly recommend setting up a different remote access service, like Tailscale, as using Cloudflare to host Jellyfin is against their terms of service, and it can get your account terminated, which you don't want.

@Gujjugaming2k
Copy link
Author

check now server was down at that time due to server update

@Gujjugaming2k
Copy link
Author

I was using thing from last almost 2 years without any issues.

server is up you can test now

@Gujjugaming2k
Copy link
Author

Have you checked?

@bazzadazza72
Copy link
Contributor

I've got a question which I'm curious about: why store your media on a different server? Why not store it directly where Jellyfin is running? Serving your media directly from your Jellyfin instance will likely alleviate the issues you're having here.

@Gujjugaming2k
Copy link
Author

We have 10TB + data, and our jellyfin server not have that much storage available,

Even we are using rclone also for google drive,

On findroid 3rd party app on that everything is working fine i dont see any issues , but your UI and performance is faar better, so that why want to switch to your app. Can you please help and check

@bazzadazza72
Copy link
Contributor

The overall project isn't mine, it's @PartyDonut's, I'm just a contributor. Let me play some content from your server and I'll report back.

@Gujjugaming2k
Copy link
Author

Sure let us know if we can chat on some social platform if you need any help from my side?

Telegram?
WhatsApp?

@bazzadazza72
Copy link
Contributor

I can chat on Discord if you'd like, I don't have WhatsApp or Telegram.

@Gujjugaming2k
Copy link
Author

Have you test ?

@Gujjugaming2k
Copy link
Author

@bazzadazza72 any luck ?

@bazzadazza72
Copy link
Contributor

bazzadazza72 commented Dec 11, 2024

Sorry, just been a bit busy. My testing came up fine, so I'll debug it and report back.

@PartyDonut PartyDonut marked this as a duplicate of #159 Dec 12, 2024
@PartyDonut
Copy link
Collaborator

@Gujjugaming2k Could you try the MDK backend option in Settings -> Player.
The LibMPV is eager to buffer a bit of the video when you seek before it starts playing. This could cause it to freeze a bit in some occasions. I've noticed the LibMDK player is quicker to seek/resume playback.

@Gujjugaming2k
Copy link
Author

@PartyDonut not working
Getting error like
There was error to finding compatible media type

@Gujjugaming2k
Copy link
Author

@bazzadazza72 and @PartyDonut can we setup some time to check this ? it will help a lot

@bazzadazza72
Copy link
Contributor

bazzadazza72 commented Dec 15, 2024

Try changing the player backend to LibMDK by going to Settings > Player > Video player backend, if your client is newer than 5.0.0. I just tried playing an STRM file, downloaded from your instance, in mpv (which is what Fladder uses by default), and it failed, stating that its format is not supported. Same thing trying to play back in Firefox, much like your comment.

Because of these issues, I would highly recommend changing how your media is streamed to your Jellyfin instance. Instead of using STRM files, you can share your media between where the raw files and Jellyfin are hosted by using an SMB server like Samba.

I would test this on a couple of files first, just to see if it improves the experience, and if it doesn't, we'll need to nail it down further.

Sorry for the essay, I just wanted to voice my opinion.

Edit: added clarity

@mehul77970
Copy link

MDK not working but MPV is working , i just uploaded ,mkv and its working, now suggest me what can i do i can not upload all data to server

bceause my 95% data is telergam (FileStreamBot) which provide me link like https://bot.vflix.xyz/dl/6726452547530159661413a1
and i am storing that link to .strm file and place that on server

@bazzadazza72
Copy link
Contributor

bazzadazza72 commented Dec 15, 2024

What I'm meaning is that you set up a Samba share on the server where your media is hosted, then connect to said share on your Jellyfin server. If you need help setting it up, I can help you if you like.

I can't force you to switch, but I think it's a bit unnecessary to use Telegram to serve your media when there's other options that give more performance with less worry.

Edit: added clarity, again

@Gujjugaming2k
Copy link
Author

You are right but we are using telegram because of free storage and mostly we have made automation like any new media available python bot automation Download that and upload to telegram storage,

We are not paying anything for that, why we are doing this because if everything is stable then we can made free community or family on this in future

If you aware any alternative free unlimited storage i can try out that

@bazzadazza72
Copy link
Contributor

I understand now.

I can't think of any free storage solutions that would cater to the amount of media you're trying to store, however, what I would suggest is an used office computer that runs all the time, with hard drives that store your media. This method isn't free, unfortunately, but it's a low (depending on where you are in the world) upfront cost that would make for a much better experience.

Now, back to the issue at hand, which we have gone far beyond. The final thing I can suggest is trying other Fladder clients, like Windows or Linux, to see if the problem exists there too. One last thing: does your Jellyfin server have any transcoding hardware, like a GPU? That would definitely help, as you mentioned playback pauses when you skip ahead.

@Gujjugaming2k
Copy link
Author

I am enabling for your account lets see what happens

@Gujjugaming2k
Copy link
Author

Mean whil i will test tomorrow window client and update you

@Gujjugaming2k
Copy link
Author

i have seen .strm only have issue

What I tested added direct file (.mkv) in server its working
I tested Rclone(Google Drive) working
.strm not working

FYI I tested same file in all so final conclusion is .strm not working properly

@bazzadazza72 @PartyDonut need your help here I really want to move on your app now

tested mpd mpv as well

@Gujjugaming2k
Copy link
Author

@bazzadazza72 @PartyDonut Hi Team

@bazzadazza72
Copy link
Contributor

Please refrain from pinging us in future, we can see your notification without it.

I just played a few items in debug mode and here's what I found:

That Time I Was Reincarnated As A Slime (1080p, STRM) - Plays with no errors
Stranger Things (1080p, MKV) - Plays with no errors
Jaws (4K, MKV) - Fails to load, cannot find a compatible media type
Alias (1080p, MOV) - Plays with no errors
Sigmond and the Sea Monsters (1080p, MKV) - Plays with no errors

It looks like only 4K content doesn't play, but 1080p content can.
I've also noticed that some of your media doesn't use STRM files, so is it only those that can't play?

@Gujjugaming2k
Copy link
Author

As i told playing is working no issues with playing
Issue is not able to skip and not able to resume have you tried that ?

Lets say if you play any 1080p movie from which is strm mode, if you skip that 20 min or 30 min it will not playing it will keep buffer

2nd things lets say resume as well not working

@bazzadazza72
Copy link
Contributor

When your media transcodes and you skip ahead more than what's already transcoded, it will take a while to load because your Jellyfin server has to catch up to be able to continue playback.

As for skipping and resuming, I didn't test that.

@Gujjugaming2k
Copy link
Author

If we storage ssme file in server its not working like that and transcoded is disable on jellyfin and server side only direct play

Please test that so you will get idea

Let me share you library details

Bollywood - have .strm 99%
Bollywood 2018 - 19 - have rclone google drive file

Please test this both and check you will get idea

@Gujjugaming2k
Copy link
Author

One more thing
I have tested other 3rd party client its working perfectly on this strm resume directplay skip all tested, but UI and features are not good compare to your.

This is just for information

@Gujjugaming2k
Copy link
Author

@bazzadazza72 @PartyDonut
I found one thing might be that will help

We are streaming direct stream link right example
https://JellyServerURL/Videos/62a598b96dbdca32c0163559ba17aad2/stream?Static=true&mediaSourceId=62a598b96dbdca32c0163559ba17aad2&api_key=XXXXXXXXXXXXXXXXXXXXXX&Tag=XXXXXXXXXXXXXXXXXXXXXXXXXXX

this is streaming url and most of time we are facing issue like not supported or not able to load or not able to skip/resume

but what about if we stream Download url or fetch Download link and stream that ?
example

https://JellyServerURL/Items/62a598b96dbdca32c0163559ba17aad2/Download??Static=true&mediaSourceId=62a598b96dbdca32c0163559ba17aad2&api_key=XXXXXXXXXXXXXXXXXXXXXX&Tag=XXXXXXXXXXXXXXXXXXXXXXXXXXX

I have tested this in VLC and other player as well working fine

let me know if you need live link for both i can share you can get idea

@mehul77970
Copy link

@bazzadazza72 @PartyDonut

one help needed

i have 2000+ m3u8 link for movies how to add m3u8 on jellyfin ?

I have uploaded on server folder but its not picking from there

any plugin or anything suggestion ? please

@bazzadazza72
Copy link
Contributor

Hey @mehul77970,

I'm sorry, I can't help you with sorting M3U8 playlists as I don't use it personally and in turn, not familiar with it, but I found an article on the Jellyfin forums that may be able to help you: https://forum.jellyfin.org/t-importing-m3u-playlists

Let me know if you've hit a snag.

@Gujjugaming2k
Copy link
Author

@bazzadazza72 have you try to stream download link ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

4 participants