Subtitle issue MP4

For help and support with PS3 Media Server in general

Subtitle issue MP4

Postby Fludbucket » Mon Feb 27, 2012 6:17 pm

Im having an issue with MP4 subtitles. My korean external subtitles work well with AVI and MKV videos, but when I play a MP4 they show up as blanks for the korean but the english shows up fine (_ _ _ __ ___ ___ name@naver.com)

Code without a TTF
Code: Select all
[New I/O server worker #1-1] INFO  02:09:32.548 Starting transcode/remux of The Longest Yard.mp4
[New I/O server worker #1-1] DEBUG 02:09:32.606 Creating pipe \\.\pipe\mencoder1330362572605
[Thread-23] DEBUG 02:09:32.711 Waiting for pipe connection \\.\pipe\mencoder1330362572605
[win32/mencoder.exe] DEBUG 02:09:32.761 Starting "C:\Program Files (x86)\PS3 Media Server\win32\mencoder.exe" -ss 0 -quiet "C:\Users\Robert\Downloads\Media\The Longest Yard 2005 HDTV 720p H264-3Li\The Longest Yard.mp4" -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=4 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=448:threads=1:keyint=5:vqscale=1:vqmin=2:vrc_maxrate=14000:vrc_buf_size=1835 -subfont C:\Windows\Fonts\Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -quiet -quiet -ofps 25 -sub "C:\Users\Robert\Downloads\Media\The Longest Yard 2005 HDTV 720p H264-3Li\The Longest Yard.srt.srt" -utf8 -lavdopts fast -mc 0.1 -quiet -af lavcresample=44100 -srate 44100 -o \\.\pipe\mencoder1330362572605
[win32/mencoder.exe] DEBUG 02:09:32.769 Reading pipe: \\.\pipe\mencoder1330362572605
[win32/mencoder.exe] DEBUG 02:09:32.769 Attaching thread: win32/mencoder.exe
[Thread-26] DEBUG 02:09:32.836 MEncoder SB16 (C) 2000-2011 MPlayer Team
[Thread-26] DEBUG 02:09:32.836 Custom build by SubJunk, http://www.spirton.com
[Thread-26] DEBUG 02:09:32.836
[Thread-26] DEBUG 02:09:32.842 success: format: 0  data: 0x0 - 0x8b9429df
[Thread-26] DEBUG 02:09:32.844 libavformat file format detected.
[Thread-26] DEBUG 02:09:32.917 [lavf] stream 0: video (h264), -vid 0
[Thread-26] DEBUG 02:09:32.917 [lavf] stream 1: audio (aac), -aid 0, -alang eng
[Thread-26] DEBUG 02:09:32.917 VIDEO:  [H264]  1280x544  24bpp  25.000 fps  2480.5 kbps (302.8 kbyte/s)
[Thread-26] DEBUG 02:09:32.917 [V] filefmt:44  fourcc:0x34363248  size:1280x544  fps:25.000  ftime:=0.0400
[Thread-26] DEBUG 02:09:32.917 ==========================================================================
[Thread-26] DEBUG 02:09:32.917 Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[Thread-26] DEBUG 02:09:32.920 AUDIO: 48000 Hz, 6 ch, s16le, 383.6 kbit/8.32% (ratio: 47947->576000)
[Thread-23] DEBUG 02:09:32.920 Result of \\.\pipe\mencoder1330362572605 : true
[Thread-26] DEBUG 02:09:32.920 Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
[Thread-26] DEBUG 02:09:32.920 ==========================================================================
[Thread-26] DEBUG 02:09:32.921 OK, exit.
[Thread-25] DEBUG 02:09:32.922 ** MUXER_LAVF *****************************************************************
[Thread-25] DEBUG 02:09:32.922 REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
[Thread-25] DEBUG 02:09:32.922 INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
[Thread-25] DEBUG 02:09:32.922 will play these INCORRECT files as if nothing were wrong!
[Thread-25] DEBUG 02:09:32.922 *******************************************************************************
[Thread-26] DEBUG 02:09:32.922 Opening video filter: [expand osd=1]
[Thread-26] DEBUG 02:09:32.922 Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
[Thread-26] DEBUG 02:09:32.936 ==========================================================================
[Thread-26] DEBUG 02:09:32.938 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[Thread-26] DEBUG 02:09:32.940 Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
[Thread-26] DEBUG 02:09:32.940 ==========================================================================
[Thread-25] DEBUG 02:09:32.965 Unsupported PixelFormat 61
[Thread-25] DEBUG 02:09:32.965 Unsupported PixelFormat 53
[Thread-25] DEBUG 02:09:32.968 Muxer frame buffer cannot allocate memory!
[Thread-25] DEBUG 02:09:32.970 Muxer frame buffer cannot allocate memory!
[Thread-25] DEBUG 02:09:32.972 Muxer frame buffer cannot allocate memory!
[Thread-26] DEBUG 02:09:32.976 Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
[Thread-26] DEBUG 02:09:32.977 videocodec: libavcodec (1280x544 fourcc=32564d57 [WMV2])
[Thread-26] DEBUG 02:09:32.977 [VE_LAVC] Using constant qscale = 1.000000 (VBR).
[Thread-26] DEBUG 02:09:33.012 VIDEO CODEC ID: 19
[Thread-26] DEBUG 02:09:33.012 AUDIO CODEC ID: 15008, TAG: 0
[Thread-26] DEBUG 02:09:33.012 Writing header...
[Thread-25] DEBUG 02:09:33.012 [asf @ 010011c0]Codec for stream 0 does not use global headers but container format requires global headers
[Thread-25] DEBUG 02:09:33.012 [asf @ 010011c0]Codec for stream 1 does not use global headers but container format requires global headers
[Thread-18] DEBUG 02:09:39.909 Sending ALIVE...
[New I/O server worker #1-1] DEBUG 02:09:41.649 Calling SetThreadExecutionState ES_CONTINUOUS
[Thread-26] DEBUG 02:09:44.576 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:09:44.595 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:09:44.614 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:09:44.994 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:09:45.013 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:09:45.033 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-32] DEBUG 02:09:56.448 Stopping process: win32/mencoder.exe



Code with a TTF

Code: Select all
[New I/O server worker #1-1] INFO  02:16:13.142 Starting transcode/remux of The Longest Yard.mp4
[New I/O server worker #1-1] DEBUG 02:16:13.220 Creating pipe \\.\pipe\mencoder1330362973218
[Thread-23] DEBUG 02:16:13.336 Waiting for pipe connection \\.\pipe\mencoder1330362973218
[win32/mencoder.exe] DEBUG 02:16:13.387 Starting "C:\Program Files (x86)\PS3 Media Server\win32\mencoder.exe" -ss 0 -quiet "C:\Users\Robert\Downloads\Media\The Longest Yard 2005 HDTV 720p H264-3Li\The Longest Yard.mp4" -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=4 -lavcopts autoaspect=1:vcodec=wmv2:acodec=wmav2:abitrate=448:threads=1:keyint=5:vqscale=1:vqmin=2:vrc_maxrate=14000:vrc_buf_size=1835 -subfont C:\Users\Robert\Downloads\ttf_coreen_sora\SORAPL.TTF -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -quiet -quiet -sid 100 -quiet -quiet -ofps 25 -sub "C:\Users\Robert\Downloads\Media\The Longest Yard 2005 HDTV 720p H264-3Li\The Longest Yard.srt.srt" -utf8 -lavdopts fast -mc 0.1 -quiet -af lavcresample=44100 -srate 44100 -o \\.\pipe\mencoder1330362973218
[win32/mencoder.exe] DEBUG 02:16:13.396 Reading pipe: \\.\pipe\mencoder1330362973218
[win32/mencoder.exe] DEBUG 02:16:13.396 Attaching thread: win32/mencoder.exe
[Thread-26] DEBUG 02:16:13.497 MEncoder SB16 (C) 2000-2011 MPlayer Team
[Thread-26] DEBUG 02:16:13.497 Custom build by SubJunk, http://www.spirton.com
[Thread-26] DEBUG 02:16:13.497
[Thread-26] DEBUG 02:16:13.502 success: format: 0  data: 0x0 - 0x8b9429df
[Thread-26] DEBUG 02:16:13.504 libavformat file format detected.
[Thread-26] DEBUG 02:16:13.581 [lavf] stream 0: video (h264), -vid 0
[Thread-26] DEBUG 02:16:13.581 [lavf] stream 1: audio (aac), -aid 0, -alang eng
[Thread-26] DEBUG 02:16:13.581 VIDEO:  [H264]  1280x544  24bpp  25.000 fps  2480.5 kbps (302.8 kbyte/s)
[Thread-26] DEBUG 02:16:13.582 [V] filefmt:44  fourcc:0x34363248  size:1280x544  fps:25.000  ftime:=0.0400
[Thread-26] DEBUG 02:16:13.582 ==========================================================================
[Thread-26] DEBUG 02:16:13.582 Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[Thread-26] DEBUG 02:16:13.585 AUDIO: 48000 Hz, 6 ch, s16le, 383.6 kbit/8.32% (ratio: 47947->576000)
[Thread-26] DEBUG 02:16:13.585 Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
[Thread-26] DEBUG 02:16:13.585 ==========================================================================
[Thread-23] DEBUG 02:16:13.585 Result of \\.\pipe\mencoder1330362973218 : true
[Thread-25] DEBUG 02:16:13.585 ** MUXER_LAVF *****************************************************************
[Thread-25] DEBUG 02:16:13.585 REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
[Thread-25] DEBUG 02:16:13.585 INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
[Thread-25] DEBUG 02:16:13.585 will play these INCORRECT files as if nothing were wrong!
[Thread-25] DEBUG 02:16:13.585 *******************************************************************************
[Thread-26] DEBUG 02:16:13.585 OK, exit.
[Thread-26] DEBUG 02:16:13.586 Opening video filter: [expand osd=1]
[Thread-26] DEBUG 02:16:13.586 Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
[Thread-26] DEBUG 02:16:13.597 ==========================================================================
[Thread-26] DEBUG 02:16:13.599 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[Thread-26] DEBUG 02:16:13.603 Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
[Thread-26] DEBUG 02:16:13.603 ==========================================================================
[Thread-25] DEBUG 02:16:13.635 Unsupported PixelFormat 61
[Thread-25] DEBUG 02:16:13.635 Unsupported PixelFormat 53
[Thread-25] DEBUG 02:16:13.640 Muxer frame buffer cannot allocate memory!
[Thread-25] DEBUG 02:16:13.644 Muxer frame buffer cannot allocate memory!
[Thread-25] DEBUG 02:16:13.645 Muxer frame buffer cannot allocate memory!
[Thread-26] DEBUG 02:16:13.647 Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
[Thread-26] DEBUG 02:16:13.647 videocodec: libavcodec (1280x544 fourcc=32564d57 [WMV2])
[Thread-26] DEBUG 02:16:13.647 [VE_LAVC] Using constant qscale = 1.000000 (VBR).
[Thread-26] DEBUG 02:16:13.687 VIDEO CODEC ID: 19
[Thread-26] DEBUG 02:16:13.687 AUDIO CODEC ID: 15008, TAG: 0
[Thread-26] DEBUG 02:16:13.687 Writing header...
[Thread-25] DEBUG 02:16:13.687 [asf @ 010011c0]Codec for stream 0 does not use global headers but container format requires global headers
[Thread-25] DEBUG 02:16:13.687 [asf @ 010011c0]Codec for stream 1 does not use global headers but container format requires global headers
[New I/O server worker #1-1] DEBUG 02:16:22.648 Calling SetThreadExecutionState ES_CONTINUOUS
[Thread-26] DEBUG 02:16:25.590 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:16:25.610 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:16:25.629 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:16:26.018 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:16:26.038 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:16:26.057 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-26] DEBUG 02:16:38.193 [wmv2 @ 0101be20]warning, clipping 1 dct coefficients to -255..255
[Thread-32] DEBUG 02:16:39.418 Stopping process: win32/mencoder.exe
Fludbucket
 
Posts: 1
Joined: Mon Feb 27, 2012 5:48 pm

Re: Subtitle issue MP4

Postby gsq » Tue Feb 28, 2012 9:27 am

hi,
i've got this same problem, but with POLISH subs :( only polish marks show up blanks..
any help?
it's only with .mp4 files which has X264 container.
gsq
 
Posts: 1
Joined: Tue Feb 28, 2012 9:24 am

Re: Subtitle issue MP4

Postby JPANK » Sun Apr 29, 2012 9:22 am

The same issue exists wit Hebrew subtitles, what is the fix to it?

Thanks
JPANK
 
Posts: 13
Joined: Sun Apr 29, 2012 9:18 am

Re: Subtitle issue MP4

Postby rpsx » Sun Apr 29, 2012 2:22 pm

hello,
chiming in - this is also a problem with japanese subtitles. all characters except for standard english alphabet characters show as "_ _ _ _ _ _"
also, of note - this happens in older versions (well, i tried 1.30.1), as well as 1.5.

another thread - viewtopic.php?f=6&t=14147
rpsx
 
Posts: 5
Joined: Mon Jun 15, 2009 3:25 pm

Re: Subtitle issue MP4

Postby Raptor399 » Sun Apr 29, 2012 9:05 pm

Looks like an issue with MEncoder, as if the wrong font is being picked.
Google finds several solved problems, but they don't seem to work for PMS.

Using or not using ASS/SSA subtitle styling seems to affect it, but only to have underscores "______" changed in blanks "[][][][][][][]".

Switching subtitles codepage didn't seem to affect the command line, but even forced custom options as "-subcp enca:ja:cp932" didn't work.

:-|
Raptor399
Project Member
 
Posts: 1682
Joined: Thu Mar 10, 2011 12:06 am

Re: Subtitle issue MP4

Postby rpsx » Mon Apr 30, 2012 10:03 am

excellent to get professional feedback - now i can stop my amateur fiddling with options and checkboxes. hopefully, these other solved problems lead somewhere for the next release. i wish i had more to say, but i can't even imagine how difficult bugs are to squash in programming. thank you for taking the time to test this and reply here.
rpsx
 
Posts: 5
Joined: Mon Jun 15, 2009 3:25 pm

Re: Subtitle issue MP4

Postby Raptor399 » Mon Apr 30, 2012 11:58 am

rpsx wrote:excellent to get professional feedback - now i can stop my amateur fiddling with options and checkboxes. hopefully, these other solved problems lead somewhere for the next release. i wish i had more to say, but i can't even imagine how difficult bugs are to squash in programming. thank you for taking the time to test this and reply here.

Actually, amateur fiddling with options and checkboxes is a perfectly valid way to try and come to a solution. It usually works. ;-)

What I'm trying to say above is that PMS likely isn't the source of this particular problem. Personally, I think MEncoder is.

When you open the debug.log, you will find the long command line that PMS is using to run MEncoder.
If we can manage to get that command line to generate a correct output file, we've solved the problem.
We can then try to incorporate the solution in PMS.
Raptor399
Project Member
 
Posts: 1682
Joined: Thu Mar 10, 2011 12:06 am

Re: Subtitle issue MP4

Postby JPANK » Mon Apr 30, 2012 7:19 pm

Can you please direct me to the line that you are refering to in the log file or how do I edit the line for the mencoder - is it in the conf file? I actually don't have log file in the PMS directory. I'll be happy to try fixing this issue with you.
JPANK
 
Posts: 13
Joined: Sun Apr 29, 2012 9:18 am

Re: Subtitle issue MP4

Postby JPANK » Mon Apr 30, 2012 7:44 pm

Just additional piece of info in this regard - I'm not sure if it would help. I have down loaded MPlayer and tried playing the same Movie/Subtitles on the PC. Once I have set the language to Hebrew ir played correctly.
JPANK
 
Posts: 13
Joined: Sun Apr 29, 2012 9:18 am

Re: Subtitle issue MP4

Postby JPANK » Wed May 02, 2012 10:01 am

Eventually I got the Hebrew subtitles to work the following way:
1. Use the PS3 1.50.1 version
2. Exchanged the mencoder.exe file that comes with this version (PS3 1.50.1) with the mencoder.exe file that is included with PS3 1.10.51 version

The same thing wouldn't work with PS 1.52.1 version, when doing it, I'm getting "data corrupted" msg when trying to play the movie

Any idea how to have the latest mencoder.exe file to work with Hebrew subs?
JPANK
 
Posts: 13
Joined: Sun Apr 29, 2012 9:18 am

Next

Return to General Help and Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], XxRaVeNxX and 28 guests