RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

RetroArch video player don't show subtitles

Open panayotis-designs opened this issue 3 years ago • 2 comments

Description

RetroArch v1.10.3 video player (FFmpeg) don't show subtitles.

Expected behavior

To display the subtitles embedded inside an mkv video.

Actual behavior

RetroArch is not displaying the subtitles (ass files) embedded in the mkv video.

Steps to reproduce the bug

  1. First step: Load content
  2. Second step: choose any video.mkv file
  3. The video loads, but the subtitles are not displayed.

Bisect Results

I tested with older versions starting from v1.9.8 and v1.10.0 and the subtitles work without problem, this problem appears from v1.10.1 to v1.10.3.

Version/Commit

  • RetroArch: 1.10.3 / a597c95

Environment information

panayotis-designs avatar Jul 30 '22 14:07 panayotis-designs

will this ever be fixed?

user18081972 avatar Jun 10 '24 12:06 user18081972

Nobody is working on it, specifically, but sure, it might get fixed at some point. It just takes someone who knows what they're doing to figure out what broke it and then submit a fix for it.

hizzlekizzle avatar Jun 10 '24 14:06 hizzlekizzle

I played around with this a bit but couldn't get it to work, I'm not familiar with ffmpeg, libass, nor C/C++. Here are my findings from testing with one anime episode:

  • ass_process_data does get the subtitle string in sub.rects[i]->ass
  • ass_render_frame does not create any images to be rendered and because of this the for loop in render_ass_img never does anything
  • if (codec_id_is_ttf(params->codec_id)) never adds any attachments as params->codec_id is always 0 but params->extradata_size seems good
  • the code only tries to use AV_CODEC_ID_TTF but there are also AV_CODEC_ID_OTF fonts (?) probably unrelated
  • ass_add_font uses an empty string as the font name and libass has this check if (!name || !data || !size) return;, don't the font names matter?

The console log window didn't have anything suspicious in it. If we could get ass_render_frame to render the images it should work again, maybe something is not initialized correctly but I don't know. I used MSYS2 MINGW64 on Windows 10.

RulerOfTheRealms avatar Feb 23 '25 10:02 RulerOfTheRealms

Hmm, yeah, sounds like the lack of a font name could be causing some problems.

hizzlekizzle avatar Feb 24 '25 05:02 hizzlekizzle

May I know is this issue fixed? I also want to show subtitle....

Kira-Gao avatar Jun 26 '25 03:06 Kira-Gao

No, it is not fixed.

hizzlekizzle avatar Jun 26 '25 14:06 hizzlekizzle