Jump to content











Photo
- - - - -

Audio Script


  • Please log in to reply
57 replies to this topic

#26 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 18 September 2010 - 08:42 AM

i think ChrisR's project (which based on JFX's 'Win7PE_SE')
import the '%OS%%SourceArch%_Classes.reg' at build time - depending on the used source
(in '\Projects\Win7pe_SE\Build\2-Config.script' attachment: Reg\ SOFTWARE.7z)

i assume he has audio and basic video play support

do not know,
still i am not able to get the 'Windows Media Player' to play audio\video files,
nevertheless when i add my audio script then 'You Tube' videos in browsers and
third party media players e.g. 'VideoLAN-VLC media player' or 'KMPlayer' are working

#27 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 18 September 2010 - 08:51 AM

after you install k-lite and end of installation select media player as default media player doesn't work? also at k-lite installation it will show missing files and classes related keys. you dont need everyfile it suggest missing.

#28 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 18 September 2010 - 09:29 AM

i spent a lot of time with it,
i tried many combinations (e.g. K-Lite Codec Pack; Ludovici's wmplayer; your suggested file list posted at MSFN Forum),
but have no success with this 'Windows Media Player'

#29 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 18 September 2010 - 04:01 PM

i built at least 3 different boot.wim from zero by hand and everytime ie,mediaplayer,network,audio, nearly everything stay same. i am nearly end of registry editing it reached to limit. for user accounts panel and other stuff need sam,security,components,smi hives need edited. i can edit them as i want but don't know what to edit in sam and security hives.

here another test stuff for interest. build your winpe with any project in x86 english. better to have most of dll files in system32, ie folder in program files (you can clean and get smaller later as your desired features). change this files inside your wim. clean all loaders in startnet.cmd (only wpeutil stay) and Winpeshl.ini (only explorer.exe stay) and boot time cmd stuff. check if it boots. it is not fully finished editing but has enough stuff.

http://www.zshare.ne...53951821ac92e5/

#30 NewBSOD

NewBSOD

    Member

  • Members
  • 49 posts
  •  
    Norway

Posted 18 September 2010 - 04:53 PM

Audio Script v3 uploaded. ;)

Also made a Internet Explorer 8 script with ActiveX and Flash for testing.
Sound working OK on Youtube.:ph34r:

This script probably contains bugs, since I haven't tested it much. :cheers:

Thx all for your feedback and tips ;)

#31 NewBSOD

NewBSOD

    Member

  • Members
  • 49 posts
  •  
    Norway

Posted 19 September 2010 - 12:19 PM

Finally thx to JFX say goodbye to Audio Activator :)

Audio Script v4, install driver and say hello Sound :ph34r:

#32 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 20 September 2010 - 10:11 AM

Thanks, I just tested the audio_v4 in vmware with VLC and YouTube and all works well.

To test, I just add these lines to load audio drivers and the sound works at once
// Load audio driver in autoun.cmd

If,ExistFile,"%TargetDir%\windows\system32\autorun.cmd",begin

TXTDelLine,"%TargetDir%\windows\system32\autorun.cmd","exit"

TXTAddLine,"%TargetDir%\windows\system32\autorun.cmd","drvload.exe X:\Windows\inf\wdma_ens.inf","Append"

TXTAddLine,"%TargetDir%\windows\system32\autorun.cmd","drvload.exe X:\Windows\inf\ksfilter.inf","Append"

TXTAddLine,"%TargetDir%\windows\system32\autorun.cmd","drvload.exe X:\Windows\inf\wdmaudio.inf","Append"

TXTAddLine,"%TargetDir%\windows\system32\autorun.cmd","exit","Append"

End

Dera suggested me (in Win7Pe_Se topic) to read this post? about SPDIF

Edit 2010-09-21 Dera :load ksfilter.inf and wdmaudio.inf are not need

#33 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 20 September 2010 - 01:59 PM

when i suggested to read that post at 911cd.net
i have rather thought of the 'video driver installation'

#34 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 20 September 2010 - 05:02 PM

so these steps
'drvload X:\Windows\inf\ksfilter.inf' + 'drvload X:\Windows\inf\wdmaudio.inf' before load the audio driver
(and to copy the audio driver files and copy the files what are mentioned in the wdmaudio.inf to the 'windows\inf folder')
originated from the past (VistaPE\Win7RescuePE)

now in the new 'Win7PE_SE' project + NewBSOD's 'Audio V4.script'
seems to me these steps are not needed

#35 TJungmann

TJungmann

    Newbie

  • Members
  • 10 posts
  • Location:near Cologne
  •  
    Germany

Posted 21 September 2010 - 12:04 PM

audio_v4 works for me too.
With the the lines from ChrisR Music plays directly after boottime. Fine! :cheers:

#36 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 21 September 2010 - 09:04 PM

audio_v4 works for me too.
With the the lines from ChrisR Music plays directly after boottime. Fine! :cheers:

All the merit has NewBSOD,

so these steps
'drvload X:\Windows\inf\ksfilter.inf' + 'drvload X:\Windows\inf\wdmaudio.inf' before load the audio driver

now in the new 'Win7PE_SE' project + NewBSOD's 'Audio V4.script'
seems to me these steps are not needed

Yes, thanks

@NewBSOD
I added also to the script the possibility of adding these own drivers NewBSOD's 'Audio_V4.script

Is the audio script seems good for you, can I include him to Win7Pe_Se ?
good work :cheers: , soon in x64 !!!

#37 NewBSOD

NewBSOD

    Member

  • Members
  • 49 posts
  •  
    Norway

Posted 22 September 2010 - 08:32 AM

@ChrisR

Like that you can be able to add your own drivers, but only copying inf won't work.
If you add all files to the folder it will load driver, but not all driver will work as not all files are copy to needed directory?

Anyway I will upload a v5 later today, will include your ideas too :cheers:

#38 befrielse

befrielse

    Member

  • Members
  • 32 posts
  •  
    Sweden

Posted 22 September 2010 - 08:44 AM

Thanks for your hard work! I have sound in my win7PE SE! Great! :cheers:

#39 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 22 September 2010 - 09:40 AM

Like that you can be able to add your own drivers, but only copying inf won't work.
If you add all files to the folder it will load driver, but not all driver will work as not all files are copy to needed directory?

Anyway I will upload a v5 later today, will include your ideas too :cheers:

All works well in vmware

CD/USB : I use your Realtek High Definition driver script.

For other driver, I add them with drivers.script. With the use of dism.exe : *.inf files are renamed to oem*.inf.

A startup, I use : "pnputil -i - a X:\windows\inf\oem*.inf" and "pnputil -i - a X:\windows\inf\hda*.inf" to load Realtek driver.
I don't know, maybe a checkbox "Load oem* driver at startup" in drivers.script
and a checkbox "Load Realtek driver at startup" in realtek.script
and in audio.script just drvload X:\Windows\inf\wdma_int.inf - dma_ens.inf

I'm waiting for your next update. :cheers:

Edit 2010-09-22

#40 NewBSOD

NewBSOD

    Member

  • Members
  • 49 posts
  •  
    Norway

Posted 22 September 2010 - 08:06 PM

Audio V5 uploaded.

Added the possibility to add your own drivers, thx ChrisR :cheers:

But please be careful, to many inf's will soon be alot of extra MB in your DriverStore :ph34r:
However only 1 extra inf can be auto added to autoload driver atm, but pnputil should install all the drivers you added)

Put complete driver, inf, sys, dll, exe, cpl etc. into the audiodriver folder.
(Not tested but should work with most drivers, not only audio. But not installer drivers.)

#41 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 784 posts
  •  
    France

Posted 23 September 2010 - 06:42 AM

Added the possibility to add your own drivers, thx ChrisR :ph34r:

But please be careful, to many inf's will soon be alot of extra MB in your DriverStore :cheers:
However only 1 extra inf can be auto added to autoload driver atm, but pnputil should install all the drivers you added)

Put complete driver, inf, sys, dll, exe, cpl etc. into the audiodriver folder.
(Not tested but should work with most drivers, not only audio. But not installer drivers.)

YES it works for me, Very good and great for loading additional driver. :cheers: And also a beginning in x64.

Regards
ChrisR

#42 NewBSOD

NewBSOD

    Member

  • Members
  • 49 posts
  •  
    Norway

Posted 23 September 2010 - 12:57 PM

Audio V6 script. (Registry fix x64 and added WMware x64 audio driver)
DX 11 (Test) script. Edited so it will run on x64, but dosn't work correctly(x64). It does however work enough for audio/video to work with vlc. :cheers:

#43 NewBSOD

NewBSOD

    Member

  • Members
  • 49 posts
  •  
    Norway

Posted 23 September 2010 - 09:19 PM

Audio v7.
Added the Service Multimedia Class Scheduler (MMCSS)

#44 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 23 September 2010 - 09:28 PM

is it works?

#45 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 24 September 2010 - 04:44 AM

@vvurat
try to add also the whole
'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia'
reg. key

#46 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 24 September 2010 - 06:23 AM

@vvurat
try to add also the whole
'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia'
reg. key


As i remember i have it (can be false). Is it for Multimedia Class Scheduler (MMCSS) to work?

#47 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 24 September 2010 - 06:27 AM

'\SOFTWARE\Microsoft\Windows NT'

#48 vvurat

vvurat

    Frequent Member

  • Advanced user
  • 323 posts

Posted 24 September 2010 - 06:29 AM

Ok. Ok "Windows NT" But a little more info can be more better :cheers: I removed MMCSS dependency of Audiosrv from services because i couldn't get it work. Audio works without need it. What is it's advantage? Any visiable changes?

#49 TJungmann

TJungmann

    Newbie

  • Members
  • 10 posts
  • Location:near Cologne
  •  
    Germany

Posted 24 September 2010 - 07:58 AM

If i start "AudioActivatorPE.exe" i got an error, that something is wrong with sidebyside configuration. (Couse .NET Runtime Script, oder C++ 2008??)

The Workaround for me is, to put the "msvcr90.dll" and "Microsoft.VC90.CRT.manifest" into the AudioActivatorPE folder. Maybe it can help somebody, if he has the same problem.

Microsoft.VC90.CRT.manifest :
[codebox]<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <noInheritable></noInheritable> <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity> <file name="msvcr90.dll" hashalg="SHA1" hash="98e8006e0a4542e69f1a3555b927758bd76ca07d"><asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod><dsig:DigestValue>+CXED+6HzJlSphyMNOn27ujadC0=</dsig:DigestValue></asmv2:hash></file> <file name="msvcp90.dll" hashalg="SHA1" hash="3aec3be680024a46813dee891a753bd58b3f3b12"><asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod><dsig:DigestValue>MyKED+9DyS+1XcMeaC0Zlw2vFZ0=</dsig:DigestValue></asmv2:hash></file> <file name="msvcm90.dll" hashalg="SHA1" hash="0195dd0896d74b62531e4f3c771904a3d996450e"><asmv2:hash xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:Transforms><dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity"></dsig:Transform></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/20...v2:hash></file>
</assembly>[/codebox]

#50 NewBSOD

NewBSOD

    Member

  • Members
  • 49 posts
  •  
    Norway

Posted 24 September 2010 - 08:35 AM

@vvurat

The MMCSS settings are stored in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile
(I included as dera said "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia"

And MMCSS.dll depends on these files.
ntdll.dll
API-MS-Win-Core-ErrorHandling-L1-1-0.dll
API-MS-Win-Core-Interlocked-L1-1-0.dll
API-MS-Win-Core-LibraryLoader-L1-1-0.dll
API-MS-Win-Core-Misc-L1-1-0.dll
API-MS-Win-Core-ProcessThreads-L1-1-0.dll
API-MS-Win-Core-Profile-L1-1-0.dll
API-MS-Win-Core-SysInfo-L1-1-0.dll
API-MS-WIN-Service-Core-L1-1-0.dll
AVRT.dll

@TJungmann
Yes, it depends on the Microsoft Visual C++ 2008 Redistributable Package, and if you didn't install the 2005/2008 script and .net(Fix included) you will get that error.
However you shouldn't have to use it anymore as it should just start now.
I have seen that it sometimes dosn't anyway. :thumbup: And found that the build pc had waik for vista installed, removed waik (or install waik win7 instead) and all was OK. :dubbio:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users