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

Does not play next episode in JF/Emby #348

Closed
Deekerman opened this issue Sep 4, 2021 · 15 comments
Closed

Does not play next episode in JF/Emby #348

Deekerman opened this issue Sep 4, 2021 · 15 comments
Labels
question Further information is requested

Comments

@Deekerman
Copy link

I have this running in both Jellyfin and Emby but as soon as one episode ends it just stays black and doesnt progress to the next episode.

is there a delay between it? I have waited but never gotten it to play again, i back out and start the stream and it plays.

Any help would be appreciated.

Thanks,

@jasongdove
Copy link
Collaborator

Which streaming mode is the channel using? If not HLS Direct, can you also screenshot the ffmpeg profile settings?

@jasongdove jasongdove added the question Further information is requested label Sep 7, 2021
@Deekerman
Copy link
Author

I am using hls direct for both.
I have ffmpeg installed but I didn't think it used it with direct.

Is there information I can provide to help?

@jasongdove
Copy link
Collaborator

I fixed the formatting of the streaming mode section in the docs site so it should be easier to read now. Basically that result is expected. The only client that is known to perform reasonably well with HLS Direct is TiviMate, but even then program boundaries introduce multiple-second delays.

@Deekerman
Copy link
Author

So for jellyfin or emby I should be moving to hybrid?

@jasongdove
Copy link
Collaborator

It's certainly worth trying, but I think you may need MPEG-TS with those clients. Also note that if you aren't able to use a client that works well with HLS Direct, you will probably want hardware acceleration of some sort because the other two modes perform transcoding.

@Deekerman
Copy link
Author

It doesnt play at all now. just ends up crashing the container it seems. with Direct it would play and but not continue to the next episode.

@jasongdove
Copy link
Collaborator

I would verify that you're using ffmpeg 4.3 as total failures with MPEG-TS are often caused by an old ffmpeg version. If you're using docker, you're already using ffmpeg 4.3.

If that doesn't help, I would enable saving troubleshooting reports to disk in Settings > FFMPEG Settings and try streaming again. Then you can check the ffmpeg-reports subfolder of the ersatztv config folder for logs that contain errors.

@000MDK
Copy link

000MDK commented Oct 28, 2021

I'm using ersatzTV HLS segmenter -> xteve (with stream buffer enabled, setting FFMPEG) -> jellyfin for now, no hickups.
without xteve (or xeteve without reencode/stream buffer) I have the same result, after every scheduled item the stream hangs.

@TheNitram24
Copy link

Anyone have any ideas of how to improve this on Plex? I can typically get through 2 scheduled items before it gets wonky. If I use "multiple" to do like 4 episodes and it creates 1 scheduled item for those 4 episodes I can get through 8 before it gets wonky. Super weird.

@jasongdove jasongdove changed the title Does not play next episode. Does not play next episode in JF/Emby Oct 31, 2021
@jasongdove
Copy link
Collaborator

Anyone have any ideas of how to improve this on Plex? I can typically get through 2 scheduled items before it gets wonky. If I use "multiple" to do like 4 episodes and it creates 1 scheduled item for those 4 episodes I can get through 8 before it gets wonky. Super weird.

Please create a new issue if you're having trouble with Plex. It is worth noting that Plex only supports MPEG-TS mode (via HDHomeRun emulation) which is known to have more problems transitioning between items than other streaming modes, depending on how varied your source content (resolution, codec, etc) is.

@jasongdove
Copy link
Collaborator

I believe this is caused by https://trac.ffmpeg.org/ticket/5419 which is also tracked on the Jellyfin side at jellyfin/jellyfin-ffmpeg#57. Unfortunately there isn't really anything I can do with ErsatzTV to fix, we just have to wait for a fix in those projects.

@jasongdove
Copy link
Collaborator

I'm using ersatzTV HLS segmenter -> xteve (with stream buffer enabled, setting FFMPEG) -> jellyfin for now, no hickups. without xteve (or xeteve without reencode/stream buffer) I have the same result, after every scheduled item the stream hangs.

A new MPEG-TS mode that works similar to this (basically wraps the HLS segmenter) will be included in the next release. My initial testing with Jellyfin has been promising.

@jasongdove
Copy link
Collaborator

The updated MPEG-TS mode is now available on the docker develop tags.

@jasongdove
Copy link
Collaborator

MPEG-TS mode works with JF and Emby starting with release v0.3.6-alpha.

@jasongdove
Copy link
Collaborator

HLS Segmenter mode should now work with JF and Emby starting with the latest develop release v0.3.8-1ee01c1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants