Enabling VOBSUB subtitles from MKV files with MEncoder

Discuss issues related to PS3 Media Server development (only for programmers)

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby ExSport » Sat Mar 31, 2012 4:25 pm

.SUB and .IDX ;)
Did you read what is described here????
viewtopic.php?f=11&t=7398#p36118
ExSport
 
Posts: 2161
Joined: Mon Jan 19, 2009 5:40 pm

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby psxgamer » Sun Apr 01, 2012 11:10 am

ExSport wrote:.SUB and .IDX ;)
Did you read what is described here????
viewtopic.php?f=11&t=7398#p36118


Yes I did, but like drem, I do not understand.
3D Subtitler creaters .sup and .xml -files, no files with .idx filename extension. Also, my file is Matroska, not avi, does this matter?

No offence, but these instructions are next to nothing to us user who are not-so-familar with the operation of PSM. I just use the program, but have no idea how it techically works!
psxgamer
 
Posts: 24
Joined: Fri Oct 01, 2010 8:27 am

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby ExSport » Sun Apr 01, 2012 12:55 pm

Please don't be lazy and google more if you don't know.
Also read settings what 3DSubtitler shows. What about switching to VOBSUB format and not the one which is for Blu-Ray (.SUP is not supported by MEncoder)?
Sorry for offence but linked post explains everything so I don't understand what is not clear ;)
This one adds support for external .IDX/.SUB (VOBSUB) subtitles (not only embeded ones in MKV)
Files need to be in this format:
movie_name.avi/mkv
movie_name.en.idx
movie_name.en.sub

Language tag have to be in 2char format!
For now it doesn't support loading lang tag directly from .IDX. It is needed to be defined in file name directly.
ExSport
 
Posts: 2161
Joined: Mon Jan 19, 2009 5:40 pm

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby psxgamer » Tue Apr 03, 2012 2:14 pm

ExSport wrote:Please don't be lazy and google more if you don't know.
Also read settings what 3DSubtitler shows. What about switching to VOBSUB format and not the one which is for Blu-Ray (.SUP is not supported by MEncoder)?
Sorry for offence but linked post explains everything so I don't understand what is not clear ;)


Now it works. All I needed was to change the format to VobSub and now it works just fine. Thanks for the tip.
psxgamer
 
Posts: 24
Joined: Fri Oct 01, 2010 8:27 am

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby demetrish3 » Tue Aug 21, 2012 9:19 pm

how can my PS3 media server play the 3d subtitles?
I've downloaded the 3Dsubtitler, change the setting to VOBSUB and convert them to .sub and .idx .
the movie doesn't start now!
is it something missing?
do i have to change something on PS3 media settings?
i tried it with 1 movie .mkv and 1 movie mp4.
same result
demetrish3
 
Posts: 8
Joined: Tue Aug 21, 2012 9:11 pm

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby demetrish3 » Wed Oct 03, 2012 9:43 am

how do i use the patch??
net/pms/encoders/MEncoderVideo.java

what do i do?
demetrish3
 
Posts: 8
Joined: Tue Aug 21, 2012 9:11 pm

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby demetrish3 » Wed Oct 03, 2012 9:50 am

mlo wrote:Since mencoder handles VOBSUB subtitles correctly, it can be enabled in PS3 Media Server with the following patch:

Code: Select all
Index: net/pms/encoders/MEncoderVideo.java
===================================================================
--- net/pms/encoders/MEncoderVideo.java   (revision 410)
+++ net/pms/encoders/MEncoderVideo.java   (working copy)
@@ -1324,10 +1324,10 @@
       if (subString != null && !configuration.isMencoderDisableSubs() && !avisynth()) {

          if (params.sid.type == DLNAMediaSubtitle.VOBSUB) {

             // vobsub not supported in MEncoder :\

-            //cmdArray[cmdArray.length-4] = "-vobsub";

-            //cmdArray[cmdArray.length-3] = subString.substring(0, subString.length()-4);

-            cmdArray[cmdArray.length-4] = "-quiet"; //$NON-NLS-1$

-            cmdArray[cmdArray.length-3] = "-quiet"; //$NON-NLS-1$

+            cmdArray[cmdArray.length-4] = "-vobsub";

+            cmdArray[cmdArray.length-3] = subString.substring(0, subString.length()-4);

+            //cmdArray[cmdArray.length-4] = "-quiet"; //$NON-NLS-1$

+            //cmdArray[cmdArray.length-3] = "-quiet"; //$NON-NLS-1$

          } else {

             cmdArray[cmdArray.length-4] = "-sub"; //$NON-NLS-1$

             cmdArray[cmdArray.length-3] = subString.replace(",", "\\,"); // comas in mencoder separates multiple subtitles files //$NON-NLS-1$ //$NON-NLS-2$

Index: net/pms/dlna/DLNAMediaInfo.java
===================================================================
--- net/pms/dlna/DLNAMediaInfo.java   (revision 410)
+++ net/pms/dlna/DLNAMediaInfo.java   (working copy)
@@ -548,6 +548,17 @@
                            lang.lang = DLNAMediaLang.UND;

                         lang.id = subId++;

                         subtitlesCodes.add(lang);

+                     } else if (line.indexOf("Subtitle:") > -1 && line.contains("dvdsub")) {

+                        DLNAMediaSubtitle lang = new DLNAMediaSubtitle();

+                        lang.type = DLNAMediaSubtitle.VOBSUB;

+                        int a = line.indexOf("(");

+                        int b = line.indexOf("):", a);

+                        if (a > -1 && b > a) {

+                           lang.lang = line.substring(a+1, b);

+                        } else

+                           lang.lang = DLNAMediaLang.UND;

+                        lang.id = subId++;

+                        subtitlesCodes.add(lang);

                      }

                   }

                }





How do i use this patch?
what do i do?
demetrish3
 
Posts: 8
Joined: Tue Aug 21, 2012 9:11 pm

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby Raptor399 » Wed Oct 03, 2012 8:18 pm

The patch looks fairly simple to apply.

Is there a reason why happy.neko hasn't incorporated this in the official PMS code when he cleaned up the code a while ago?
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby demetrish3 » Wed Oct 03, 2012 9:53 pm

Raptor399 wrote:The patch looks fairly simple to apply.

Is there a reason why happy.neko hasn't incorporated this in the official PMS code when he cleaned up the code a while ago?



define simple please...
i dont even know what to open and how to do it.
demetrish3
 
Posts: 8
Joined: Tue Aug 21, 2012 9:11 pm

Re: Enabling VOBSUB subtitles from MKV files with MEncoder

Postby demetrish3 » Thu Oct 04, 2012 1:13 am

for 3d movies with subs on PS3 media server.....

i have found the solution alone!
i'm still waiting for an answer here to play a 3D movie with Subtitles from PS3 Media Server!
without all these "scientific" things you are saying, patches or non patches, delays, Coreavs or vc coreavs or with comma!!
and to write something in expert settings/custom parameters!
especially that one! is not needed! since you fix and play the movies only from MEncoder the movies plays perfect with Dolby Surround 5.1 or Dts, BluRay rip or 3D with SUBTITLES! with VOBSUB.
you wrote to many things enable or disable A/V synh etc...
you have confuse everybody.
It just needed to install 2 extra things and nothing to touch!

Oceanm was partly right.
he wrote:
1- Grab the latest copy mencoder_mt package from http://oss.netfarm.it/mplayer-win32.php
2- Extract archive, rename mencoder.exe to mencoder_mt.exe, copy this file and dsnative.dll to C:\program files\ps3 media server\win32
4- Install coreavc. ($10 to buy)
3- Copy C:\Program Files\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder.ax to C:\program files\ps3 media server\win32\codecs
4- Open Transcoding Settings tab on the PS3 Media Server
5- Video Files Engines->Mencoder->Expert Settings: ....
6- Write to custom parameters textedit area "vcodec == h264 :: -noass -mc 0.005 -vc coreavc -mt" without quotes.


and this is what i did:
1- Grab the latest copy mencoder_mt package from http://oss.netfarm.it/mplayer-win32.php
2- Extract archive, rename mencoder.exe to mencoder_mt.exe, copy this file and dsnative.dll to C:\program files\ps3 media server\win32
3- Install coreavc. ($10 to buy) or go to http://www.toggle.com/lv/group/view/kl57079/CoreAVC.htm
4- Copy C:\Program Files\CoreCodec\CoreAVC Professional Edition\CoreAVCDecoder.ax to C:\program files\ps3 media server\win32\codecs



Now Fix the Subtitles

one other guy said that the subtitles should be like this:
movie_name.avi/mkv
movie_name.en.idx
movie_name.en.sub

NO the subtitles should be like this:
PLAIN - just the movie name
example: for the movie "Wrath of the Titans"
1-Wrath of the Titans (this is the movie either mp4, mkv, avi but do not put the .mkv or.mp4, or .avi)
2-Wrath of the Titans (this is the .srt file but do not put the .srt at the end)
3-Wrath of the Titans (this is the .idx file but do not put the .idx at the end)
4-Wrath of the Titans (this is the .sub file but do not put the .sub at the end)
and then a 5th file appears which is a XML document with the same name as the others, in this case, Wrath of the Titans.




**TO PLAY 3D MOVIES FROM PS3 MEDIA SERVER I’M USING:
[MEncoder]{Audio: AAC/Undetermined} {Sub: VobSub/Undetermined}*
PLAYS PERFECT!! Sound 2.0, 5.1 or higher (depends on your Receiver)

**TO PLAY ALL THE OTHERS (BLURAY OR DVD):
[MEncoder] {Audio: AAC/Undetermined} {Sub: SubRip/Undetermined}*
PLAYS PERFECT!! Sound 2.0, 5.1 or higher (depends on your Receiver)
demetrish3
 
Posts: 8
Joined: Tue Aug 21, 2012 9:11 pm

PreviousNext

Return to Developers

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest