Opened 14 years ago

Last modified 13 years ago

#1727 new defect

mkv lavf demuxer messing with my subtitles

Reported by: pantranzystor@… Owned by: reimar
Priority: normal Component: demuxer
Version: unspecified Severity: normal
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Hi,
Today i've installed new win32 mplayer build from http://oss.netfarm.it/mplayer-win32.php

As mplayer's home page says, the default mkv demuxer has changed from mkv to lavf (lavfpref to be specific).

And here's the problem: the subtitles are flickering.

mplayer command line args:

C:/Program Files/SMPlayer/mplayer/mplayer.exe -noquiet -nofs -nomouseinput -lavdopts skiploopfilter=all -sub-fuzziness 1 -identify -slave -vo directx -ao dsound -nokeepaspect -priority abovenormal -framedrop -autosync 100 -dr -double -wid 10028842 -colorkey 0x020202 -monitorpixelaspect 1 -ass -embeddedfonts -ass-line-spacing -1 -ass-font-scale 1 -ass-force-style PlayResX=512,PlayResY=320,Name=Default,Fontname=DejaVu Serif,Fontsize=25,PrimaryColour=&H00c3c3c3,BackColour=&H00000000,OutlineColour=&H0001112d,Bold=0,Italic=0,Alignment=2,BorderStyle=1,Outline=1.2,Shadow=0,MarginL=20,MarginR=20,MarginV=25 -fontconfig -font DejaVu Serif -subfont-autoscale 0 -subfont-osd-scale 25 -subfont-text-scale 25 -subcp enca:pl:UTF-8 -vid 0 -sub
Deesse\nightwalker\DCUKUI~W\_5YA25~X\_GWH55~T\_9FYKB~F.TXT -subpos 100 -volume 90 -cache 16000 -osdlevel 0 -vf-add pp -autoq 6 -vf-add screenshot -slices -channels 2 -af scaletempo -softvol -softvol-max 110 -fps 23.976
Deesse\nightwalker\DCUKUI~W\_5YA25~X\_GWH55~T\_81BMC~T.MKV

MPlayer Sherpya-SVN-r31372-4.2.5 (C) 2000-2010 MPlayer Team
Setting process priority: abovenormal

Playing
Deesse\nightwalker\DCUKUI~W\_5YA25~X\_GWH55~T\_81BMC~T.MKV.

Cache fill: 0.00% (0 bytes)
Cache fill: 1.90% (311296 bytes)
Cache fill: 3.80% (622592 bytes)
Cache fill: 5.50% (901120 bytes)
Cache fill: 7.55% (1236992 bytes)
Cache fill: 9.25% (1515520 bytes)
Cache fill: 11.30% (1851392 bytes)
Cache fill: 13.15% (2154496 bytes)
Cache fill: 14.70% (2408448 bytes)
Cache fill: 16.75% (2744320 bytes)
Cache fill: 18.50% (3031040 bytes)
libavformat file format detected.
ID_CHAPTER_ID=0
ID_CHAPTER_0_START=0
ID_CHAPTER_0_END=52052
ID_CHAPTER_0_NAME=序幕
ID_CHAPTER_ID=1
ID_CHAPTER_1_START=52052
ID_CHAPTER_1_END=142017
ID_CHAPTER_1_NAME=OP
ID_CHAPTER_ID=2
ID_CHAPTER_2_START=142017
ID_CHAPTER_2_END=151985
ID_CHAPTER_2_NAME=OPć ‡é˘˜
ID_CHAPTER_ID=3
ID_CHAPTER_3_START=151985
ID_CHAPTER_3_END=415915
ID_CHAPTER_3_NAME=part1.和夏天
ID_CHAPTER_ID=4
ID_CHAPTER_4_START=415915
ID_CHAPTER_4_END=880922
ID_CHAPTER_4_NAME=part2.和友情
ID_CHAPTER_ID=5
ID_CHAPTER_5_START=880922
ID_CHAPTER_5_END=1304762
ID_CHAPTER_5_NAME=part3.和绽放的烟花
ID_CHAPTER_ID=6
ID_CHAPTER_6_START=1304762
ID_CHAPTER_6_END=1385009
ID_CHAPTER_6_NAME=ED
ID_CHAPTER_ID=7
ID_CHAPTER_7_START=1385009
ID_CHAPTER_7_END=1399940
ID_CHAPTER_7_NAME=下集预告
ID_CHAPTER_ID=8
ID_CHAPTER_8_START=1399940
ID_CHAPTER_8_END=1415915
ID_CHAPTER_8_NAME=EDć ‡é˘˜
ID_VIDEO_ID=0
ID_VID_0_NAME=视频
[lavf] stream 0: video (h264), -vid 0, 视频
ID_AUDIO_ID=0
ID_AID_0_NAME=日语AC3音轨
ID_AID_0_LANG=jpn
[lavf] stream 1: audio (ac3), -aid 0, -alang jpn, 日语AC3音轨
ID_SUBTITLE_ID=0
ID_SID_0_NAME=简体中文SSA字幕
ID_SID_0_LANG=chi
[lavf] stream 2: subtitle (unknown), -sid 0, -slang chi, 简体中文SSA字幕
ID_SUBTITLE_ID=1
ID_SID_1_NAME=繁体中文SSA字幕
ID_SID_1_LANG=chi
[lavf] stream 3: subtitle (unknown), -sid 1, -slang chi, 繁体中文SSA字幕
VIDEO: [H264] 640x480 0bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:

title: 《喧嚣学院》DVDRip 15

ID_CLIP_INFO_NAME0=title
ID_CLIP_INFO_VALUE0=《喧嚣学院》DVDRip 15
ID_CLIP_INFO_N=1
ENCA detected charset: CP1250
ID_FILE_SUB_ID=0
ID_FILE_SUB_FILENAME=
Deesse\nightwalker\DCUKUI~W\_5YA25~X\_GWH55~T\_9FYKB~F.TXT
SUB: Added subtitle file (1):
Deesse\nightwalker\DCUKUI~W\_5YA25~X\_GWH55~T\_9FYKB~F.TXT
ID_FILENAME=
Deesse\nightwalker\DCUKUI~W\_5YA25~X\_GWH55~T\_81BMC~T.MKV
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=1.3333
ID_AUDIO_FORMAT=8192
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=1415.91
ID_SEEKABLE=1
ID_CHAPTERS=9
[matroska @ 0a1a08c0]Estimating duration from bitrate, this may be inaccurate
[ass] ENCA detected charset: CP1250
Cache not responding!
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [pp]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
[PP] Using external postprocessing filter, max q = 6.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
ID_AUDIO_BITRATE=448000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffac3
[Mixer] No hardware mixing, inserting volume filter.
FPS forced to be 23.976 (ftime: 0.042).
Starting playback...
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.3333
[swscaler @ 0115caf4]using unscaled yuv420p -> rgb24 special converter
VO: [directx] 640x480 => 640x480 Planar YV12

Attachments (1)

mkv_demuxer_header_compression+ass_fix_pts_out_of_order.diff (5.5 KB ) - added by alexandrezia@… 14 years ago.
mkv header decompression + ASS pts ordering

Download all attachments as: .zip

Change History (4)

comment:1 by compn, 14 years ago

Cc: patriotact@… added

shouldnt be any flicker with directx and -double

does -vo gl or -vo direct3d help any?

otherwise i dont know whats wrong.
mplayer -v output would be useful tho.

by alexandrezia@…, 14 years ago

mkv header decompression + ASS pts ordering

comment:2 by alexandrezia@…, 14 years ago

This fixes pts out of order in ASS subtitles and makes it work without flickering
This adds header decompression in mkv demuxer

comment:3 by compn, 13 years ago

Owner: changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.