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

Some subtitles dont work in mpv 0.19.0 #3431

Closed
evgkrsk opened this issue Aug 18, 2016 · 6 comments
Closed

Some subtitles dont work in mpv 0.19.0 #3431

evgkrsk opened this issue Aug 18, 2016 · 6 comments

Comments

@evgkrsk
Copy link

evgkrsk commented Aug 18, 2016

mpv version and platform

git tag v0.19.0:

Reproduction steps

Play matroska file with muxed-in subtitles, like this:

evg@thinkpad ~ $LC_ALL=C mkvinfo --summary 1.mkv |grep -i sub
Track 7: subtitles, codec ID: S_TEXT/UTF8, mkvmerge/mkvextract track ID: 6, language: rus
Track 8: subtitles, codec ID: S_TEXT/UTF8, mkvmerge/mkvextract track ID: 7, language: rus
Track 9: subtitles, codec ID: S_TEXT/UTF8, mkvmerge/mkvextract track ID: 8, language: rus
Track 10: subtitles, codec ID: S_TEXT/UTF8, mkvmerge/mkvextract track ID: 9, language: ukr
Track 11: subtitles, codec ID: S_TEXT/UTF8, mkvmerge/mkvextract track ID: 10
Track 12: subtitles, codec ID: S_TEXT/UTF8, mkvmerge/mkvextract track ID: 11

Expected behavior

Video with subtitles

Actual behavior

No subtitles and red error message in output:

evg@thinkpad ~ $mpv 1.mkv --log-file=~/1.log  
Warning: option --heartbeat-cmd is deprecated and might be removed in the future (use Lua scripting instead).
Playing: 1.mkv
 (+) Video --vid=1 (*) 'Агенты А.Н.К.Л. / The Man from U.N.C.L.E. (2015) BDRip 720p -=CtrlHD=-' (h264)
     Video --vid=2 [P] 'cover.jpeg' (mjpeg)
 (+) Audio --aid=1 --alang=rus (*) 'AC3 5.1 @ 448 kbps - DUB, Blu-ray CEE' (ac3)
     Audio --aid=2 --alang=rus 'DTS 5.1 @ 1536 kbps - AVO, D.Esarev' (dts)
     Audio --aid=3 --alang=rus 'DTS 5.1 @ 1536 kbps - AVO, A.Matveev' (dts)
     Audio --aid=4 --alang=ukr 'AC3 2.0 @ 192 kbps - DUB, iTunes' (ac3)
     Audio --aid=5 --alang=eng 'DTS 5.1 @ 1536 kbps' (dts)
 (+) Subs  --sid=1 --slang=rus (*) 'Forced, iTunes' (subrip)
     Subs  --sid=2 --slang=rus 'iTunes' (subrip)
     Subs  --sid=3 --slang=rus 'A.Matveev' (subrip)
     Subs  --sid=4 --slang=ukr 'Forced, iTunes' (subrip)
     Subs  --sid=5 --slang=eng (subrip)
     Subs  --sid=6 --slang=eng 'SDH' (subrip)
File tags:
 Title: Агенты А.Н.К.Л. / The Man from U.N.C.L.E. (2015)
[vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO.
[sub/ass] Could not open libavcodec subtitle converter
[sub] Could not find subtitle decoder for format 'subrip'.
xscreensaver-command: no screensaver is running on display :0
AO: [pulse] 48000Hz 5.1(side) 6ch float
VO: [xv] 1280x534 yuv420p
AV: 00:00:00 / 01:56:29 (0%) A-V:  0.000 Cache: 10s+15MB

Log files

Link to mentioned "1.log" file: https://gist.github.com/evgkrsk/d3b9260805d44ad50359a9ea61941a48

Sample files

One problem file that I found so far is about 10Gb in size :-(

@evgkrsk evgkrsk changed the title Subtitles do not work in mpv 0.19.0 Some subtitles dont work in mpv 0.19.0 Aug 18, 2016
@wiiaboo
Copy link
Member

wiiaboo commented Aug 18, 2016

Looks like you compiled FFmpeg/libav without subrip support.

@evgkrsk
Copy link
Author

evgkrsk commented Aug 18, 2016

How can I check used libav's compile-time options?

@wiiaboo
Copy link
Member

wiiaboo commented Aug 18, 2016

No idea. ffmpeg has -buildconf, but avconv doesn't, iirc.
You can cut the 10GB file losslessly with mkvmerge to something more manageable like 20 or 30MB and upload that. Ideally something at the middle because it might not have subtitles at the beginning.

@ghost ghost added the priority:wontfix label Aug 18, 2016
@ghost
Copy link

ghost commented Aug 18, 2016

So the problem is that Libav outputs a packet format different from FFmpeg, so srt subs don't work at all. This is far too much of a mess to put effort into. Use FFmpeg, or ask the Libav devs to update their API to FFmpeg's.

@ghost ghost closed this as completed Aug 18, 2016
@ghost
Copy link

ghost commented Aug 18, 2016

PS: if this file fails on FFmpeg, a sample would be required.

@evgkrsk
Copy link
Author

evgkrsk commented Aug 21, 2016

Yep, building with ffmpeg resolved problem.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants