[ubuntu+Mencoder+360][Asain]Chinese subtitle problem[Bug]

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

[ubuntu+Mencoder+360][Asain]Chinese subtitle problem[Bug]

Postby beterhans » Tue Aug 25, 2009 5:49 am

HI First I got to say, PS3 Media Server is the best UPNP server I've used on my Ubuntu.

but due to the wrong command options which PMS sent to the Mencoder I got some subtitle problem. All non-Western language display as "_____..____" and can't be read
English is ok!
======================================
My System
Code: Select all
Linux Galaxy 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC 2009 i686 GNU/Linux
Stream to a Xbox 360 [I don't have a PS3]
PMS version pms-linux-1.10.5

My Movie File have 1 Video Track 1 Audio Track 2 Sub Track [sid 0 is english, sid 1 is chinese] in MKV container

My Mplayer / Mencoder version (VDPAU enabled)
MPlayer SVN-r29482-4.3.3 (C) 2000-2009 MPlayer Team
Mplayer and Mencoder System wild config file is in /etc/mplayer/ with font configured. So I don't need use any font option whem i use mplayer or mencoder. it will follow the config in /etc/mplayer config file
but if I define a -font xxxxxxx it will override the system wild config in /etc/mplayer/
if the -font xxxxxxx is a bad option, mplayer will use system font for display (not the one in /etc/mplayer )
the system font is english only can't display chinese

=======================================
font option in my MPLAYER
Code: Select all
if I enter "mplayer -sid 1 -font /usr/share/fonts/xxxxxxxxx movie.mkv"

mplayer won't work with the opstion and override the system wild fontset in /etc/mplayer/mplayer.conf

I need this kind of options
Code: Select all
mplayer -sid 1 -font "WenQuanYi Zen Hei" movie.mkv

with such command above chinese can be display on my system
WenQuanYi Zen Hei is the chiense font come with ubuntu (fc-list)

but PMS won't let my config font like this
if i enter "WenQuanYi Zen Hei" in the PMS GUI. it won't write into the PMS.conf file and won't take effect!

===================================================================
them I will show you the command log which sent to mencoder in the debuglog of PMS

WITH No forced font set (GUI font set is empty or set a /usr/share/fonts/xxxx path) which not work for me
select fisrt level of the movie with no special opstion in xbox 360

[mencoder] INFO 11:36:35.146 Starting mencoder -ss 0 -quiet /var/ftp/video/movie/macross_zero_en_cn_sub_fixed/macross_zero_ep01_en_cn_subfix.mkv -quiet -quiet -oac lavc -of lavf -lavfopts format=asf -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=256:threads=1:keyint=1:vqscale=1:vqmin=2 -subcp utf8 -subfont /usr/share/fonts/truetype/msttcorefonts/Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -subdelay 20000 -quiet -quiet -ofps 24000/1001 -quiet -quiet -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1251171395095

as you can see, even no sub is selected , PMS will still send the font option, which can override my system wild font set in /etc/mplayer
and -subdelay 20000 IS NOT A GOOD idea for not display the sub! the official way is use -sid 999

Enter the transcode folder in Xbox 360 and select Enlgish sub (OK but font is wrong!)
[mencoder] INFO 11:37:20.567 Starting mencoder -ss 0 -quiet /var/ftp/video/movie/macross_zero_en_cn_sub_fixed/macross_zero_ep01_en_cn_subfix.mkv -quiet -quiet -oac lavc -of lavf -lavfopts format=asf -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=256:threads=1:keyint=1:vqscale=1:vqmin=2 -subcp utf8 -subfont /usr/share/fonts/truetype/msttcorefonts/Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 0 -quiet -quiet -ofps 24000/1001 -quiet -quiet -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1251171440516

Enter the transcode folder in Xbox 360 and select chinese sub (all chinese can't be displayed!)
[mencoder] INFO 11:38:04.527 Starting mencoder -ss 0 -quiet /var/ftp/video/movie/macross_zero_en_cn_sub_fixed/macross_zero_ep01_en_cn_subfix.mkv -quiet -quiet -oac lavc -of lavf -lavfopts format=asf -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=256:threads=1:keyint=1:vqscale=1:vqmin=2 -subcp utf8 -subfont /usr/share/fonts/truetype/msttcorefonts/Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 1 -quiet -quiet -ofps 24000/1001 -quiet -quiet -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1251171484476

SO if you can tell me how the remove that
Code: Select all
-subfont /usr/share/fonts/truetype/msttcorefonts/Arial.ttf
or use "font name"
them I can display chinese!
Last edited by beterhans on Tue Aug 25, 2009 6:21 am, edited 6 times in total.
User avatar
beterhans
 
Posts: 3
Joined: Tue Aug 25, 2009 3:53 am

Re: [ubuntu+Mencoder+360][Asain]Chinese subtitle problem[Bug]

Postby beterhans » Tue Aug 25, 2009 5:59 am

with FORCED font set in PMS.conf (Can't config in GUI I Use vi to edit)
Code: Select all
thumbnails = true
network_interface = eth0
port = 5081
folders = \/var\/ftp\/video
hidevideosettings = true
mencoder_remux_ac3 = true
mencoder_subcp = utf8
mencoder_ass = false
mencoder_audiolangs =
mencoder_sublangs =
mencoder_intelligent_sync = true
autoloadsrt = true
mencoder_font = "Microsoft JhengHei"


RESULTs
may be the option is changing but the output result is always the same
default sub track with my selected font (can't disable sub or change sub)


No audio or sub set in xbox 360
Code: Select all
[mencoder] INFO  11:49:36.787 Starting mencoder -ss 0 -quiet /var/ftp/video/movie/macross_zero_en_cn_sub_fixed/macross_zero_ep01_en_cn_subfix.mkv -quiet -quiet -oac lavc -of lavf -lavfopts format=asf -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=256:threads=1:keyint=1:vqscale=1:vqmin=2 -subcp utf8 -subfont "Microsoft JhengHei" -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -subdelay 20000 -quiet -quiet -ofps 24000/1001 -quiet -quiet -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1251172176736


Select English sub
Code: Select all
[mencoder] INFO  11:50:09.494 Starting mencoder -ss 0 -quiet /var/ftp/video/movie/macross_zero_en_cn_sub_fixed/macross_zero_ep01_en_cn_subfix.mkv -quiet -quiet -oac lavc -of lavf -lavfopts format=asf -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=256:threads=1:keyint=1:vqscale=1:vqmin=2 -subcp utf8 -subfont "Microsoft JhengHei" -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 0 -quiet -quiet -ofps 24000/1001 -quiet -quiet -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1251172209443


Select Chinese sub
Code: Select all
[mencoder] INFO  11:50:36.958 Starting mencoder -ss 0 -quiet /var/ftp/video/movie/macross_zero_en_cn_sub_fixed/macross_zero_ep01_en_cn_subfix.mkv -quiet -quiet -oac lavc -of lavf -lavfopts format=asf -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=256:threads=1:keyint=1:vqscale=1:vqmin=2 -subcp utf8 -subfont "Microsoft JhengHei" -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 1 -quiet -quiet -ofps 24000/1001 -quiet -quiet -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o /tmp/javaps3media/mencoder1251172236907
User avatar
beterhans
 
Posts: 3
Joined: Tue Aug 25, 2009 3:53 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests