Mecnoder SEEK function vs container

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

Mecnoder SEEK function vs container

Postby mario595 » Fri Sep 09, 2011 7:53 pm

I have noticed a difference in seek functionality depending on original container when transcoding. Please see this thread for details:

viewtopic.php?f=6&t=11815

Does anybody know why the SEEK function would work differently between an MKV (works correctly) and an M2TS (doesn't work correctly) container when both are forced to transcode?
mario595
 
Posts: 62
Joined: Mon Nov 09, 2009 7:12 pm

Re: Mecnoder SEEK function vs container

Postby mario595 » Wed Sep 21, 2011 4:21 am

Anybody have any thougts?
mario595
 
Posts: 62
Joined: Mon Nov 09, 2009 7:12 pm

Re: Mecnoder SEEK function vs container

Postby SubJunk » Wed Sep 21, 2011 4:26 am

It's a very uncommon format in anything except blu-rays so I wouldn't expect good support for it
SubJunk
 
Posts: 1212
Joined: Fri Mar 27, 2009 5:25 am

Re: Mecnoder SEEK function vs container

Postby mario595 » Sun Dec 25, 2011 7:10 am

Subjunk,

I remux/convert all my movies into a natively supported PS3 format (x264-AC3 in an m2ts) to stream from the PC and enjoy the most robust FF, REW, as well as GOTO functionality. The downside is that external subtitles don't work. For those movies I have to keep them in MKV and not use FF/REW. MKV has never worked properly with FF/REW. With your new build and/or new releases of all the domponents; is there a way to finally get PS3MS/Mencoder to correctly use FF/REW functionality when transcoding?

If not, is there a way to get PS3MS or Mencoder to correctly use the GOTO functionality when transcoding a non MKV container (m2ts). That situation also has never worked and is described in more detail in the thread referenced above. BTW, FF and REW in this scenario will cause the audio to get out of sync as well as other problems.
mario595
 
Posts: 62
Joined: Mon Nov 09, 2009 7:12 pm

Re: Mecnoder SEEK function vs container

Postby SubJunk » Sun Dec 25, 2011 8:07 am

mario595 wrote:is there a way to finally get PS3MS/Mencoder to correctly use FF/REW functionality when transcoding?
It works perfectly, it just depends on your CPU. If you have a beast computer it will be able to do it
SubJunk
 
Posts: 1212
Joined: Fri Mar 27, 2009 5:25 am

Re: Mecnoder SEEK function vs container

Postby mario595 » Sun Dec 25, 2011 6:53 pm

I don't think you can do much better than what I have:

Gigabit router - Gigabit network card - Cat 6 cable
I7-920 clocked to 3.9 ghz
3-way 6GB ram
C drive on SSD
movies located on M drive: RAID-0 array of 3 WesternDigital hard drives allocated in 64K blocks. Array stripe size = 128K

custom startup:
start javaw -Xmx1536M -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -classpath update.jar;pms.jar net.pms.PMS

config:
maxvideobuffer = 600

GOTO works flawlessly transcoding. The problem is FF/REW is not very good. It can create audio sync problem, network error, data corrupted, etc. It's always been like that; unless you are telling me that something is different with the latest builds of PS3MS, Mencoder, Java, or additional parameters you can set.
mario595
 
Posts: 62
Joined: Mon Nov 09, 2009 7:12 pm

Re: Mecnoder SEEK function vs container

Postby mario595 » Thu Dec 29, 2011 7:54 am

I should add though that on a 1 GB one hour show it works ok but try to FF/REW a 15 GB 90 minute movie and you will run into these problems.
mario595
 
Posts: 62
Joined: Mon Nov 09, 2009 7:12 pm

Re: Mecnoder SEEK function vs container

Postby mario595 » Wed Feb 15, 2012 7:12 pm

Let me update and admit that due to user error I wasn't up with the heap size that I thought I was. I am now correctly running a 1536 MB heap with multiple core Mencoder enabled and a buffer of 600. FF, REW, and GOTO work pretty good with an mkv. I would say 90% as good as when just streaming an m2ts. I can't complain.

However it would still be good to figure out why seek is not working correctly when transcoding from an mt2s container as opposed to an mkv. Seems to me like this is something that is easy to fix.
mario595
 
Posts: 62
Joined: Mon Nov 09, 2009 7:12 pm


Return to Developers

Who is online

Users browsing this forum: Bing [Bot] and 3 guests