Coder Social home page Coder Social logo

Comments (26)

Derkades avatar Derkades commented on May 27, 2024 1

Yes, it has been fixed. Thanks!

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

Hmm interesting...

Is there any way you could give me access to your Jellyfin instance? That way I can test it and figure out what the problem is.
If you can, just email me the url and login credentials. ([email protected])
Or Reddit dm whatever you prefer. (JDTechn0)

If not then no problem, but I really have no idea what the issue could be.
Maybe there is a episode with no mediasource or something.
Either way, it's an issue with the app and I would love to fix it :)

from findroid.

Derkades avatar Derkades commented on May 27, 2024

I have the same issue with a particular video, would it help if I sent the video file?

MediaInfo:

Format                                   : Matroska
Format version                           : Version 4
File size                                : 816 MiB
Duration                                 : 19 min 32 s
Overall bit rate                         : 5 834 kb/s
Writing application                      : mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
Writing library                          : libebml v1.4.0 + libmatroska v1.6.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 19 min 32 s
Bit rate mode                            : Constant
Bit rate                                 : 5 078 kb/s
Nominal bit rate                         : 10 000 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.102
Stream size                              : 710 MiB (87%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : A_EAC3
Duration                                 : 19 min 32 s
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 89.5 MiB (11%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : English
Language                                 : English
Default                                  : No
Forced                                   : No

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

Hmm interesting...

Is there any way you could give me access to your Jellyfin instance? That way I can test it and figure out what the problem is.
If you can, just email me the url and login credentials. ([email protected])
Or Reddit dm whatever you prefer. (JDTechn0)

If not then no problem, but I really have no idea what the issue could be.
Maybe there is a episode with no mediasource or something.
Either way, it's an issue with the app and I would love to fix it :)

I sent you the url and login credentials to you. Thanks for helping me.

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

Thanks for updating the app. But I just tried and it's also showing the same error message. Do you think it's because of H. 265?

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

@lauw0129 Hmm on two devices I tested the video player opened (didn't play because of codec issue but that's a separate issue).
I tested with the first episode of Your Lie in April with a Pixel 1 & 3.

@lauw0129 @Derkades In v0.1.1 there should be a new button next to the error message called "View details" (or "@string/view_details" because I made an oopsie). If you click on it a dialog should open with a detailed error message which you can share here :)

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

Screenshot_2021-08-23-18-41-55-046_dev jdtech jellyfin
But there's no any details at that button

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

Looks like an IndexOutOfBoundsException. I will do some more testing and keep you updated.

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

Ok thank you

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

@lauw0129 I am really struggling to find the cause of the problem.
I tested on many different devices, including an emulator with Android 7.0 (minimum supported by the app) and all worked.

What device are you using?

  • Device name:
  • Android version:

Can you also try using the user you provided me? To do this you have to remove your current server and add it again.
Settings -> Manage servers -> Long press the server -> Remove
Then add your server again but with the user 'jarne' you gave me. Maybe some configuration is different between the user you were using and the one you gave me.

I really want to solve this issue and I know on which line of code the error happens but I don't know why.

Let me know if my user works or not and what device you are using.
I appreciate the effort and sorry for the trouble!

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

I just tried to login your account (jarne) in my server and it's "can be played". It means I can click in it and see the player screen. But it's didn't show up anything. Just black screen and the it won't load. By the way thanks for your app. It's cool.

https://youtu.be/CQy5lLt5-Uk
This is what's happening

PS: Because of the screen recorder problem it's vertical at the player screen. But it's horizontal in my view.

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

Could you see the video when you tried?
The following is mine
Device name: Xiaomi Mi 10T Pro 5G
Android version: 11 RKQ1.200826.002

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024
Screenrecorder-2021-08-23-23-15-12-194.mp4

It's from my friend's

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

Yes I see. When I try on my devices I also just see a black screen.
It's probably because the media uses H.264 High 10 profile which can't be played on some devices.
This is something I can't fix immediately, I would have to implement a different player like libVLC or libMPV.
This is also a separate issue.

Now back to the "Error preparing player items" error.
Could you please tell me what is different between the two accounts? Maybe some setting?
It's strange that my account doesn't show this error but yours does.

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

There don't have any error in the new account. It just showed black screen. It could be the the media problem. But can it be solved by transcoding? I think transcode in the Findroid app may help to solve this problem

from findroid.

Derkades avatar Derkades commented on May 27, 2024

Do you know where the indexoutofboundsexception occurs specifically (which array lookup)? Does it print the stacktrace to a log somewhere? I've never tried accessing android logs but if it's useful to you I'll look into it.

from findroid.

lauw0129 avatar lauw0129 commented on May 27, 2024

I am not good at programming or something like those. So I also can't find where is the log.

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

@Derkades This line:

playerItems.add(PlayerItem(episode.id, mediaSources[0].id!!))

It gets the first mediaSource from the mediaItem and it does this for all next episodes in the season. This to make a playlist for ExoPlayer to play all episodes after each other. This code could be much improved, and it will be!

Now I think I know why the problem occurs, @Derkades do you have missing episodes enabled?
Episodes like this in the web ui:
image

If this is the case then I will be fixing this tomorrow :)

from findroid.

Derkades avatar Derkades commented on May 27, 2024

I do have missing episodes enabled but this specific episode only has one entry and it is not missing. Some other episodes in the same season do have duplicates (one of which is missing)

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

@Derkades could you send me some screenshots of the season with the episodes in the web interface? I don't completely understand what you mean sorry

from findroid.

Derkades avatar Derkades commented on May 27, 2024

Sure thing:
image

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

Hmm okay I see. Any missing episodes after 14?

from findroid.

Derkades avatar Derkades commented on May 27, 2024

No, episodes 15-18 all present

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

I have added a fix for missing episodes. If there is a missing episode, it will just skip that one.
This should be in the next update.

But I'm not sure if that will have fixed your issue @Derkades
Any way you can give me temporary access to your Jellyfin server to test it out? But I would understand if you wouldn't want to do that.

from findroid.

Derkades avatar Derkades commented on May 27, 2024

I've sent an email with login credentials

from findroid.

jarnedemeulemeester avatar jarnedemeulemeester commented on May 27, 2024

Thanks a lot, this issue should now be fixed!

The fix will be included in v0.1.2.
If you update to that version and still encounter problems, feel free to open a new issue :)

from findroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.