pycousin / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
GNU General Public License v2.0
0 stars 0 forks source link

embedded subtitles doesn´t show in a mkv video #478

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Play a mkv video with embedded subtitles
2. Try
3.

What is the expected output? What do you see instead?
Subtitles during reproduction. Correct reproduction with no subtitles

What version of the product are you using? On what operating system?
1.0.0 , Archlinux

Please provide any additional information below.
I can see the subtitles with another gui mplayer program (SMPlayer) so i thinks 
that is not a problem of the video file.
I tried to use every video output but nothing happened

Original issue reported on code.google.com by fur...@gmail.com on 24 Jan 2011 at 12:23

GoogleCodeExporter commented 8 years ago
I play files with embedded subtitles all the time. Perhaps running 
gnome-mplayer -v from the terminal will give more information as to why it is 
not working. 

Original comment by kdeko...@gmail.com on 24 Jan 2011 at 3:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I was having the same problem, but in my case it only happened when the 
embedded subs are in the 'ass' format (not sure if it's the same for the 
original ticket). But turning off the embedded fonts resolved the issue. 

Original comment by Major.T....@gmail.com on 12 Feb 2011 at 12:31

GoogleCodeExporter commented 8 years ago
Please run gnome-mplayer -v and post the entire output, it will help me debug 
the issue.

Original comment by kdeko...@gmail.com on 12 Feb 2011 at 12:32

GoogleCodeExporter commented 8 years ago
embedded fonts off (working ok):

GNOME MPlayer v1.0.0
vo = vdpau ao = oss
Running with GIO support
Mixer attach error No such file or directory
opening DHDTV_720p[ACEB37BD].mkv
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0x0
opening playlist
playlist detection = 0
adding HDTV_720p[ACEB37BD].mkv to playlist (cancel = 0)
getting file metadata for HDTV_720p[ACEB37BD].mkv
mplayer -vo null -ao null -nomsgcolor -nomsgmodule -frames 0 -noidx -identify 
-nocache -noidle -dvd-device /dev/dvd HDTV_720p[ACEB37BD].mkv
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
playing - HDTV_720p[ACEB37BD].mkv
is playlist 0
current size = 0 x 0 
Changing window size to 1280 x 720 visible = 1
current size = 372 x 1 
Changing window size to 1280 x 720 visible = 1
mplayer -profile gnome-mplayer -vo vdpau,vdpau, -vc 
ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau, -quiet -slave -identify 
-volume 100 -noconsolecontrols -noidle -osdlevel 0 -nomouseinput -nocache -wid 
0x400006f -ss 0 -ass -noembeddedfonts -ass-font-scale 1.00 -ass-color ffffff00 
-channels 2 -dvd-device /dev/dvd -af-add 
export=/tmp/mplayer-af_exportdbuuwp:512 -nomsgcolor -nomsgmodule 
HDTV_720p[ACEB37BD].mkv
Spawn succeeded for filename HDTV_720p[ACEB37BD].mkv
MPlayer SVN-r32798-4.4.3 (C) 2000-2011 MPlayer Team

Playing HDTV_720p[ACEB37BD].mkv.
libavformat file format detected.
ERROR: [matroska,webm @ 0x1b60400] max_analyze_duration reached
ERROR: [matroska,webm @ 0x1b60400] Estimating duration from bitrate, this may 
be inaccurate
ID_AUDIO_ID=0
Adding audio track, id = 0, label = 0
ID_AID_0_LANG=jpn
Updating audio track, id = 0, label = jpn
ID_AID_0_NAME=JP
Updating audio track, id = 0, label = JP
[lavf] stream 0: audio (aac), -aid 0, -alang jpn, JP
ID_SUBTITLE_ID=0
ID_SID_0_LANG=en
ID_SID_0_NAME=EN-EN
[lavf] stream 1: subtitle (ass), -sid 0, -slang en, EN-EN
ID_VIDEO_ID=0
ID_VID_0_NAME=HDTV
[lavf] stream 2: video (h264), -vid 0, HDTV
VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 title: Shiki_01_HDTV_720p
ID_CLIP_INFO_NAME0=title
ID_CLIP_INFO_VALUE0=Shiki_01_HDTV_720p
ID_CLIP_INFO_N=1
Load subtitles in /
ID_FILENAME=HDTV_720p[ACEB37BD].mkv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=0
ERROR: Couldn't open video filter 'ass'.
ID_VIDEO_WIDTH=1280
ERROR: ASS: cannot add video filter
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=1369.47
ID_SEEKABLE=1
ID_CHAPTERS=0
Opening video filter: [ass auto=1]
==========================================================================
Forced video codec: ffmpeg12vdpau
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
ID_VIDEO_CODEC=ffh264vdpau
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[export] Exporting to file: /tmp/mplayer-af_exportdbuuwp
[export] Memory mapped to file: /tmp/mplayer-af_exportdbuuwp (0x7f85aa134000)
[export] Exporting to file: /tmp/mplayer-af_exportdbuuwp
[export] Memory mapped to file: /tmp/mplayer-af_exportdbuuwp (0x7f85aa134000)
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
[export] Exporting to file: /tmp/mplayer-af_exportdbuuwp
[export] Memory mapped to file: /tmp/mplayer-af_exportdbuuwp (0x7f85aa134000)
[export] Exporting to file: /tmp/mplayer-af_exportdbuuwp
[export] Memory mapped to file: /tmp/mplayer-af_exportdbuuwp (0x7f85aa134000)
ID_AUDIO_CODEC=ffaac
[Mixer] No hardware mixing, inserting volume filter.
[export] Exporting to file: /tmp/mplayer-af_exportdbuuwp
[export] Memory mapped to file: /tmp/mplayer-af_exportdbuuwp (0x7f85aa134000)
[export] Exporting to file: /tmp/mplayer-af_exportdbuuwp
[export] Memory mapped to file: /tmp/mplayer-af_exportdbuuwp (0x7f85aa134000)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration 
Resizing to 1280 x 720
current size = 1280 x 723 
Changing window size to 1280 x 720 visible = 1
[VD_FFMPEG] XVMC-accelerated MPEG-2.
ANS_switch_audio is invalid -1
ANS_switch_audio is invalid -1
ANS_switch_audio is invalid -1
ERROR: [ass] fontconfig: Selected font is not the requested one: 'DejaVu Sans 
Bold' != 'Bangkok'
ERROR: [ass] fontconfig: Selected font is not the requested one: 'DejaVu Sans 
Bold' != 'Bangkok'

Exiting... (Quit)
Thread completing

Original comment by Major.T....@gmail.com on 12 Feb 2011 at 12:43

GoogleCodeExporter commented 8 years ago
embedded fonts on (not working)

GNOME MPlayer v1.0.0
vo = vdpau ao = oss
Running with GIO support
Mixer attach error No such file or directory
opening HDTV_720p[ACEB37BD].mkv
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0x0
opening playlist
playlist detection = 0
adding HDTV_720p[ACEB37BD].mkv to playlist (cancel = 0)
getting file metadata for HDTV_720p[ACEB37BD].mkv
mplayer -vo null -ao null -nomsgcolor -nomsgmodule -frames 0 -noidx -identify 
-nocache -noidle -dvd-device /dev/dvd HDTV_720p[ACEB37BD].mkv 
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
playing -HDTV_720p[ACEB37BD].mkv
is playlist 0
current size = 0 x 0 
Changing window size to 1280 x 720 visible = 1
current size = 372 x 1 
Changing window size to 1280 x 720 visible = 1
mplayer -profile gnome-mplayer -vo vdpau,vdpau, -vc 
ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau, -quiet -slave -identify 
-volume 100 -noconsolecontrols -noidle -osdlevel 0 -nomouseinput -nocache -wid 
0x400006f -ss 0 -ass -embeddedfonts -ass-font-scale 1.00 -ass-color ffffff00 
-channels 2 -dvd-device /dev/dvd -af-add 
export=/tmp/mplayer-af_exportlgqbbb:512 -nomsgcolor -nomsgmodule 
HDTV_720p[ACEB37BD].mkv 
Spawn succeeded for filename HDTV_720p[ACEB37BD].mkv
MPlayer SVN-r32798-4.4.3 (C) 2000-2011 MPlayer Team

ERROR: [matroska,webm @ 0x272f400] max_analyze_duration reached
Playing HDTV_720p[ACEB37BD].mkv.
ERROR: [matroska,webm @ 0x272f400] Estimating duration from bitrate, this may 
be inaccurate
libavformat file format detected.
ID_AUDIO_ID=0
Adding audio track, id = 0, label = 0
ID_AID_0_LANG=jpn
Updating audio track, id = 0, label = jpn
ID_AID_0_NAME=JP
Updating audio track, id = 0, label = JP
[lavf] stream 0: audio (aac), -aid 0, -alang jpn, JP
ID_SUBTITLE_ID=0
ID_SID_0_LANG=en
ID_SID_0_NAME=EN-EN
[lavf] stream 1: subtitle (ass), -sid 0, -slang en, EN-EN
ID_VIDEO_ID=0
ID_VID_0_NAME=HDTV
[lavf] stream 2: video (h264), -vid 0, HDTV
VIDEO:  [H264]  1280x720  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 title: HDTV_720p[ACEB37BD].mkv
ID_CLIP_INFO_NAME0=title
ID_CLIP_INFO_VALUE0=HDTV_720p[ACEB37BD].mkv
ID_CLIP_INFO_N=1
Load subtitles in /
ID_FILENAME=HDTV_720p[ACEB37BD].mkv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=1280
ID_VIDEO_HEIGHT=720
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.7778
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ERROR: Couldn't open video filter 'ass'.
ID_START_TIME=0.00
ERROR: ASS: cannot add video filter
ID_LENGTH=1369.47
ID_SEEKABLE=1
ID_CHAPTERS=0
Opening video filter: [ass auto=1]
==========================================================================
Forced video codec: ffmpeg12vdpau
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
ID_VIDEO_CODEC=ffh264vdpau
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[export] Exporting to file: /tmp/mplayer-af_exportlgqbbb
[export] Memory mapped to file: /tmp/mplayer-af_exportlgqbbb (0x7fafa11fc000)
[export] Exporting to file: /tmp/mplayer-af_exportlgqbbb
[export] Memory mapped to file: /tmp/mplayer-af_exportlgqbbb (0x7fafa11fc000)
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
[export] Exporting to file: /tmp/mplayer-af_exportlgqbbb
[export] Memory mapped to file: /tmp/mplayer-af_exportlgqbbb (0x7fafa11fc000)
[export] Exporting to file: /tmp/mplayer-af_exportlgqbbb
[export] Memory mapped to file: /tmp/mplayer-af_exportlgqbbb (0x7fafa11fc000)
ID_AUDIO_CODEC=ffaac
[Mixer] No hardware mixing, inserting volume filter.
[export] Exporting to file: /tmp/mplayer-af_exportlgqbbb
[export] Memory mapped to file: /tmp/mplayer-af_exportlgqbbb (0x7fafa11fc000)
[export] Exporting to file: /tmp/mplayer-af_exportlgqbbb
[export] Memory mapped to file: /tmp/mplayer-af_exportlgqbbb (0x7fafa11fc000)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7778
VO: [vdpau] 1280x720 => 1280x720 H.264 VDPAU acceleration 
Resizing to 1280 x 720
current size = 1280 x 723 
Changing window size to 1280 x 720 visible = 1
[VD_FFMPEG] XVMC-accelerated MPEG-2.
ANS_switch_audio is invalid -1
ANS_switch_audio is invalid -1
ANS_switch_audio is invalid -1
ERROR: [ass] Error loading glyph, index 52
ERROR: [ass] Error loading glyph, index 88
ERROR: [ass] Error loading glyph, index 16
(...)
ERROR: [ass] Error loading glyph, index 94
ERROR: [ass] Error loading glyph, index 29

Exiting... (Quit)
Thread completing

Original comment by Major.T....@gmail.com on 12 Feb 2011 at 12:46

GoogleCodeExporter commented 8 years ago
So it looks like the font embedded in the file is damaged, what do you expect 
to happen in this situation? Restart without embedded fonts?

Original comment by kdeko...@gmail.com on 12 Feb 2011 at 4:17

GoogleCodeExporter commented 8 years ago
Well, some kind of error handling. If the font is damaged (i'm not sure it 
really is, just that mplayer can't play it), some kind of error should be 
displayed by gnome-mplayer.

Original comment by Major.T....@gmail.com on 12 Feb 2011 at 12:35

GoogleCodeExporter commented 8 years ago
Could you upload a fragment of the file somewhere, so that I could use it for 
testing. Probably what needs to happen is that mplayer needs to be restarted in 
noembeddedfonts mode when it encounters errors like this.

Original comment by kdeko...@gmail.com on 12 Feb 2011 at 1:31

GoogleCodeExporter commented 8 years ago
I think I found the file you are having trouble with, and I was able to play it 
here. So it is possible that the problem could be in mplayer. You might try 
updating to a newer mplayer (although yours is not that old).

When I run ./configure on my mplayer the following options are enabled..

 Enabled optional drivers:
    Input: dvdnav(internal) ftp pvr tv-v4l2 tv-v4l tv live555 cddb cdda libdvdcss(internal) dvdread(internal) vcd dvb smb networking 
    Codecs: libvpx libschroedinger libdirac x264 xvid libdv ffmpeg(internal) real xanim libdca libmpeg2(internal) mp3lib(internal) libtheora speex tremor(internal) 
    Audio output: alsa jack pulse oss v4l2 sdl mpegpes(dvb) 
    Video output: v4l2 matrixview opengl sdl pnm jpeg mpegpes(dvb) fbdev xvidix cvidix vdpau xv x11 xover yuv4mpeg md5sum tga 

Also during configure I notice that
Checking for bitmap font support ... yes 
Checking for freetype >= 2.0.9 ... yes 
Checking for fontconfig ... yes 
Checking for SSA/ASS support ... yes (external)

So if you are building your own mplayer, you might want to ensure those values 
are being detected

Kevin

Original comment by kdeko...@gmail.com on 12 Feb 2011 at 2:05

GoogleCodeExporter commented 8 years ago
Already checked, the version i was using (switched to using one from the ubuntu 
ppas) detected those values at compile time.

Yes, it's probably a mplayer problem, or ssa/ass library problem for that 
matter.

Original comment by Major.T....@gmail.com on 12 Feb 2011 at 4:28

GoogleCodeExporter commented 8 years ago
The version of the file has Portuguese subtitles in it, and I notice yours has 
English ones. So perhaps a fragment of the file would still be helpful. 

Original comment by kdeko...@gmail.com on 12 Feb 2011 at 4:42

GoogleCodeExporter commented 8 years ago
My machine has libass-0.9.11-1.fc14.1.x86_64 and 
libass-devel-0.9.11-1.fc14.1.x86_64 installed. Perhaps you need to have those 
installed prior to building mplayer?

Original comment by kdeko...@gmail.com on 12 Feb 2011 at 4:45

GoogleCodeExporter commented 8 years ago
I was using (and my current build probably still does) an older version of 
libass (0.9.9), could be the source of the problem. I'll look into it.

Thanks for the feedback.

Original comment by Major.T....@gmail.com on 13 Feb 2011 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 27 Sep 2011 at 5:25