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

Hardware acceleration with PGS subtitles hangs indefinitely #3028

Closed
mholt opened this issue May 1, 2020 · 13 comments
Closed

Hardware acceleration with PGS subtitles hangs indefinitely #3028

mholt opened this issue May 1, 2020 · 13 comments
Labels
bug Something isn't working

Comments

@mholt
Copy link

mholt commented May 1, 2020

Describe the bug

I think there are 2 issues here, but I'll just post the info I know and let you decide! :)

Initiated from this reddit thread which has a little more background.

Hardware-accelerated encoding of a stream with PGS subtitles hangs indefinitely on Raspberry Pi 4. After disabling subtitles, stream works fine, but there's still an error in the logs either way (appears a couple times):

[matroska,webm @ 0x1b92af0] Stream #5: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 0x1b92af0] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
  • One issue is that the video doesn't play at all
  • Another issue might be those errors

System (please complete the following information):

  • OS: MacOS (server is running on Linux, Raspbian, Raspberry Pi 4)
  • Virtualization: none
  • Clients: Browser, Android
  • Browser: Firefox 75
  • Jellyfin Version: 10.5.5
  • Playback: Transcode, I think?
  • Installed Plugins: none
  • Reverse Proxy: Caddy
  • Base URL: /
  • Networking: Host? Just a regular LAN
  • Storage: local

To Reproduce

  1. Enable the OMX hardware acceleration on Raspberry Pi
  2. Get a mkv file with PGS subtitles that need to be burned in (I don't really know how this works -- MP4s with soft subs don't have this problem)
  3. Enable a subtitle track before playing
  4. Play the file

Expected behavior

The video should play, I suppose. And from that reddit thread, the other commenter helping me said that the "unspecified size" logs should not happen either, like a bug that was thought to have been fixed already. That might be a separate issue, not sure.

Logs

See logs from both a working stream (no subs) and non-working stream (with subs) here: https://gist.github.com/mholt/1511cf85f8ca983bdd6ddd93ba430e07

Screenshots

n/a

Additional context

When subs are enabled, it's just a black screen forever, and the web UI kinda freezes and I have to reload it to go back.

Let me know what other information you need!

@mholt mholt added the bug Something isn't working label May 1, 2020
@stale
Copy link

stale bot commented Aug 29, 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 Stale and will be closed if no activity occurs label Aug 29, 2020
@mholt
Copy link
Author

mholt commented Aug 30, 2020

Oh nooooo don't close it 😭

@stale stale bot removed the stale Stale and will be closed if no activity occurs label Aug 30, 2020
@stale
Copy link

stale bot commented Dec 28, 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 Stale and will be closed if no activity occurs label Dec 28, 2020
@mholt
Copy link
Author

mholt commented Dec 28, 2020

I am not aware that this is fixed; please leave open.

@stale stale bot removed the stale Stale and will be closed if no activity occurs label Dec 28, 2020
@stale
Copy link

stale bot commented Jun 3, 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 Stale and will be closed if no activity occurs label Jun 3, 2021
@mholt
Copy link
Author

mholt commented Jun 4, 2021

Not fixed yet.

@stale stale bot removed the stale Stale and will be closed if no activity occurs label Jun 4, 2021
@sparky002
Copy link

sparky002 commented Jun 19, 2021

I get the same error although I'm not using a raspi. Using the latest Jellyfin docker on Unraid with gpu acceleration on.

@nyanmisaka
Copy link
Member

Not an issue. The processor of RPI4 cannot handle subtitle burn-in.

@nyanmisaka nyanmisaka closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2022
@jellyfin-bot jellyfin-bot added this to Needs triage in Issue Triage for Main Repo Jun 17, 2022
@mholt
Copy link
Author

mholt commented Jun 18, 2022

Sorry, but what do you mean, it "cannot handle" it?

@nyanmisaka
Copy link
Member

nyanmisaka commented Jun 18, 2022

Software based subtitle burn-in is a cpu intensive task even for x86, the cpu of Pi4 is not fast enough to do it on the fly.

@mholt
Copy link
Author

mholt commented Jun 18, 2022

Can the GPU perform this?

@nyanmisaka
Copy link
Member

GPU scaling filter hasn’t been implemented yet, not to mention the GPU overlay filter.
jc-kynesim/rpi-ffmpeg#42

@Bond-009 Bond-009 moved this from Needs triage to Closed/Done in Issue Triage for Main Repo Nov 30, 2022
@EliteElectronic

This comment was marked as spam.

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
Development

No branches or pull requests

4 participants