PS3 Media Server on Windows 7 – Avisynth, ffdshow, CoreAVC

You may have noticed that sth has changed in Microsoft Windows 7 regarding Codecs. You may want to change from the preferred Microsoft DTV/DVD Decoder to another, like ffdshow tryouts or CoreAVC. On 64bit systems you may also want to install 64bit version of your alternative codecs.

For additional streaming engines in PMS you have to download some software…

win7-coreavc

You may also want to read this articles:

This entry was posted in Media Server and tagged , , , , , . Bookmark the permalink.

20 Responses to PS3 Media Server on Windows 7 – Avisynth, ffdshow, CoreAVC

  1. gtwo says:

    HI Otmanix! Thanks for the excellent guide. I seem to be having some troubles, though, which I describe in detail on the PS3MS forums here: http://ps3mediaserver.org/forum/viewtopic.php?f=6&t=4007. Just wanted to say thanks for the information and if you have a moment to take a look at the playback issue I’m having, I’d greatly appreciate it.

  2. seerreus says:

    my files seem to be streaming fine. I already have core avc but not intslled, do i need avsith. when i stream H264 1080p at best quality my cpu is at 80 to 95 cpu’s. if i could operate more efficiently that would be great.

  3. otmanix says:

    Hi seerreus,
    you have to use Avisynth/Mencoder engine in order to use CoreAVC for decoding. The reason for calling this engine Avisynth/Mencoder engine is that installation of Avisynth is a prerequisite… You also have to install vsfilter plugin for subtitle support and Haali Media Splitter (included in a codec pack and CoreAVC).

  4. C1G4N0 says:

    Hi otmanix!

    First of all let me thank you for your excellent guide, it helps a lot!

    I have my netbook (Asus Eee PC 1201N: 1.6GHz Intel Atom N330 dual core, 3GB DDR2, NVIDIA ION (GeForce 9400M)) with Win7 connected directly to the PS3 (firmware 3.15) by ethernet cable without any router.

    I did all the steps you mention in this page (avisynth, vsfilter, ffdshow, coreAVC with CUDA and filter tweaker). In my PC I can play 720p and 1080p just fine with a CPU usage of 25%. But when I try to play them in the PS3MS with the Avisynth/Mencoder engine I get stuttering all the time and the buffer bar displayed by the PS3MS is always empty. Isn’t it strange considering the CPU is working at less than 50% and the networking less than 15%?

    Before this I was using my laptop with winXP (no CUDA or DXVA), same connection, and with the Mencoder engine I could see 720p video without any problems.

    Do you have any suggestion? Do you think I should try to install winXP instead of Win7? I don’t even like Win7 to be honest…

  5. otmanix says:

    Hi, first of all try to use Mencoder engine (you can force using it by selecting the Mencoder entry in virtual folder #transcoded#). You should see a very high CPU load. If you use Avisynth/Mencoder with CUDA enabled CPU load should decrease. This is because CUDA is used for decoding h.264 and CPU for encoding to MPG2. There may be several reasons for stuttering when CPU load is at 50%. Did you have a look at the per core CPU load? 50% CPU load can be 100% load at first core and 0% load at second core. You wrote that you use direct connection which means 100-1000Mb/s connection. If it’s working correctly that shouldn’t be the cause. Maybe your NVidia GPU is at 100% load. I don’t know if there’s a tool for watching GPU load. Did you try tsmuxer engine? If your h.264 videos use standard profile there’s no need for transcoding at all – just streaming.

  6. Amyn says:

    Hi,

    Thanks for the guide otmanix. There is a tool called TechPowerUp GPU-Z, you can monitor GPU load as well as GFX memory load.
    I also needed some help. I have tried every which way to get coreAVC to work, and off load my cpu. I have done the avisynth and the made the necessary adjsutments in ps3ms have installed cccp for codecs and placed the plugin into the avisynth folder, and am using 2.5.7 version.
    Everything plays, but coreAVC just doesn’t run. Plus I have two haali media splitter icons pop up when I run the a movie using the avisynt\mencoder path.
    guidance\help would be appreciated.
    Thanks

  7. otmanix says:

    @Amyn: when using Win7 you have to set codec priority by using “Preferred DirectShow Filter Tweaker” tool (see screenshot), you have to use Avisynth/Mencoder engine in #transcoded# folder in xmb

  8. Ijsje says:

    Hey Otmanix,

    Hope you can help me out on this one :

    I got a problem using external subs (idx/sub or srt) when using PS3 Media Server in Win7 ultimate x64 the problem is : they don`t work !!
    no matter what I do, I can’t get them to work using transcode Mencoder ..and I get corrupted data messages when I try using Avisynth (Menconder or FFMpeg).

    All my settings in PMS are currently at default and I tried the beta version as well .

    so after a lot of messing around with settings and codecs (to no avail) I decided to make use of my dualboot setup for once and booted in WINXP for once (been a long time since I got win7 :P )

    And…..Drumroll ……………yup works fine with the exact same settings and not even all codecs installed !!

    Now ofc I have dualboot for a reason , but having to reboot in XP for some subs is not one of them !! please help me :)

  9. otmanix says:

    @Ijsje: I have never used subs, so I’m no help in that case. Please ask in PMS forum.

  10. seerreus says:

    thanks otmanix

  11. sekhu says:

    Hi,

    Thanks for the guide, but I’m hitting a problem. I followed the guide to install avisynth and coreavc, but when I check the transcoding settings of PS3MS on the PC, it only shows mEncoder and TSMuxer as options, with AviSynth/mencoder having a cross on the option. When I go into the settings on the PS3 it’s the same issue and no sign of avisynth/mencoder as an option. What can I do to fix this so I can use it as a transcoding option?

  12. otmanix says:

    @sekhu: You have to select the engine in pms menu, press the “plug” icon, press save icon and restart pms.

  13. sekhu says:

    Oh, I never noticed that icon! Thank you. Well I’ve followed the guide so far, and switched to AviSynth/MEncoder in PS3MS – however when I play a video file, though the file states in the scroll text that it is using avisynth/MEncoder, it fails to load the video correctly and states that the data is corrupted. What can I attribute this to?

  14. otmanix says:

    @sekhu: have a look at protocol file debug.log and you will probably find the cause…

  15. nawaf ajmi says:

    Hey Otmanix maybe you can help me out, ive downloaded all the codec you have recommended but when I try and play a .flv file through PSM onto my ps3 it always says data is corrupt even tho it plays on vlc but not on wmp.

    Any ideas?

  16. otmanix says:

    @nawaf ajmi: have a look at protocol file debug.log and you will probably find the cause…

  17. nawaf ajmi says:

    haha wow good call, i took a look and caught this:

    [Thread-133] DEBUG 02:33:59.396 Pes packet len too large ( >100Mb). Bad stream or invalid codec speciffed.
    [Thread-126] INFO 02:33:59.396 Disconnected pipe: \\.\pipe\1273188837856videoout
    [win32/tsMuxeR.exe] DEBUG 02:33:59.399 EOF
    [win32/tsMuxeR.exe] TRACE 02:33:59.399 Process e:\Program Files\PS3 Media Server\win32\tsMuxeR.exe has a return code of -2! Maybe an error occured… check the log file
    [win32/tsMuxeR.exe] INFO 02:33:59.399 Stopping process: win32/mencoder.exe

    I then switched off “Switch to tsMuxeR when 264 vid is ps3 compatible “”"”" and it work! any closing thoughts to add?

  18. nawaf ajmi says:

    well the problem is now after a few minutes everything gets screwed up for example the sound will go out of sync and it will start to jump frames and speed up and slow down randomly. Im guessing that is from switching off tsmuxer completely is there anything else i can do?

  19. otmanix says:

    @nawaf ajmi:
    Hi! Either your media file is corrupted or you have a buggy version of mencoder / tsmuxer tool. Try out latest PMS beta (available in PMS forum) or download latest version of these tools here: http://www.smlabs.net/tsmuxer_en.html and http://oss.netfarm.it/mplayer-win32.php

  20. nawaf ajmi says:

    Hi Otmanix! thanks for all your help so far, you have been awesome. I have one more question, when im playing a few .MKV file the sound will progressively go out of sync. The more time that passes, the more the sound seems to fall behind.

    The set of files are .mkv with:
    Video: H.264 – resolution 1024:576p :: frame rate 59.9224
    Audio: AAC – Sample rate 48 KHz 2 channel

    I have tons of files like this and they all seem to be having this problem. Any ideas?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>