wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.95k stars 1.5k forks source link

DVB subtitles are not showing in QMLPlayer #1045

Open christensen opened 6 years ago

christensen commented 6 years ago

QtAV: @49ce5f8a0f0aee52e263da0581a4f66723543567 Qt: 5.6.3 Platform: Ubuntu 16.04 x64

Reproduction steps

ffmpeg subtitle codecs: dvb_subtitle, dvb_teletext

Expected behavior

When chosing subtitle available in stream, subtitles are shown

Actual behavior

Subtitles are not shown

Log file

log-QMLPlayer.txt

Debug: subtitle track clicked: 0 Debug: codec: "dvb_subtitle" Debug: header: "\x00\x01\x00\x01\x12" Debug: current subtitle processor: "FFmpeg"

Looks to me like it's successful but I just can't see them.

wang-bin commented 6 years ago

can you provide a sample video?

christensen commented 6 years ago

http://files.videohelp.com/u/105769/PS%20EP5%20clip.ts

I tried with that one and can reproduce the problem. I can see the subtitles in VLC for example.

rodlie commented 6 years ago

Confirmed in custom player using latest qtav.

I also have an MKV with 6 subtitle tracks, and only one track works in qtav, the rest is blank. VLC have no issues showing the subtitles. Probably the same issue...

Don't work:

"subtitle avcodec_descriptor_get_by_name hdmv_pgs_subtitle"
codec:  "hdmv_pgs_subtitle"
header:  ""
current subtitle processor:  "FFmpeg"

Work:

codec:  "subrip"
header:  ""
current subtitle processor:  "FFmpeg"
wang-bin commented 6 years ago

this is bitmap subtitle, which is not supported for now.

christensen commented 6 years ago

Was that a reply to @rodlie hdmv_pgs_subtitle problem? The dvb_subtitle is supposed to be supported?

rodlie commented 6 years ago

Both(?)

I did some checking and it seems dvb_subtitle and hdmv_pgs_subtitle is image based and dvb_teletext is text (I may be wrong).

rodlie commented 6 years ago

@wang-bin : Can I get the (used/tried) subtitle format from QtAV? Then I can at least inform the user that the format is not supported, or blacklist it. Worst case I can just scan the media myself for "supported" subtitle codecs I guess.

EDIT: Sorry for the noise, I can of course get the subtitle codec from QtAV, my bad :)

wang-bin commented 6 years ago

both of them are bitmap subtitles