Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
23rd March 2007, 08:15 | #1 | Link |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
WMCmd.vbs WME9 script update released - 10/11/07
I'm starting a new thread devoted to WMCmd.vbs script updates (as the old one was more about the WVC1 beta codec package).
WMCmd.vbs Windows Media Encoder Command Line Script Utility Disclaimer: Although I do work for Microsoft, please understand that this is not an official Microsoft update. WME9 is considered a legacy product so it's unlikely there will be any official WMCmd.vbs updates coming from Microsoft in the future. The latest version was released on October 11, 2007. You can download it here: What is it? Windows Media Encoder 9 Series is best known as a standalone encoder application, but it actually shipped with an entire encoder SDK that allowed 3rd parties to develop their own WM encoder interfaces. A proof-of-concept command-line utility written in VBScript and based entirely on the encoder SDK was included with WME9. That is WMCmd.vbs. When run from the command-line with cscript.exe, this utility provides all the power and (most of the) features of WME9 to the advanced user who prefers the speed and robustness of a command-line encoder. Why an update? The original script was released with WME9 in 2002. No subsequent updates to WME9 (such as the x64 release) updated the script, but as updates to the codecs were released through new WMP and WM Format releases, it became obvious that changes to the old script were necessary to get the most out of the new codecs. What's new? The updated WMCmd.vbs added support for WVC1 (WMV9 Advanced Profile) encoding, WMA10 Professional encoding, advanced WMV9 settings, AviSynth input, better progress reporting, additional metadata support, revised documentation, video quality presets, etc. The full changelog is posted here and here. Requirements:
Full command-line help: http://www.citizeninsomniac.com/WMV/WMCmd.txt (also available when you run "cscript.exe wmcmd.vbs" without any arguments) Changelog: 10-11-2007: -----------
5-21-2007: ----------
4-14-2007: ----------
3-22-2007: ----------
----------
----------
Last edited by zambelli; 11th October 2007 at 09:36. |
23rd March 2007, 08:19 | #2 | Link | |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Copying here from an old post:
Quote:
|
|
23rd March 2007, 08:47 | #3 | Link |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
The most interesting addition to the 3-22-2007 release might be the new -v_preset parameter, so let me elaborate on it a bit...
Dealing with WMV9 encoding at home and at work, I would often get asked about "best" encoding parameters for various scenarios. As I was updating the script with other things recently, it occurred to me that some of these "best encoding practices" could be added as presets to the encoder script, allowing people to easily improve WMV quality (or encoding speed) without worrying too much about all the various parameters. Consider it an attempt at a one-size-fits-all quality solution, similar to the --preset switch in LAME MP3 encoder, for example. The closest we had to this up until now was the -v_compopt 1 switch, but that one was actually implemented inside the codec. The new presets are implemented entirely in the script which means we can tweak and refine them as we come up with better encoding settings. The current presets are as follows:
These initial presets are based on just my own ideas of tradeoffs between speed and quality. If you have better ideas for presets, please share them. |
23rd March 2007, 15:43 | #4 | Link |
Registered User
Join Date: Apr 2006
Posts: 70
|
Nice work !
__________________
-= WMEA =- Your fast, easy, batch windows media encoder -= WMEA Blog =- The blog about this app and some other news |
23rd March 2007, 21:12 | #5 | Link |
Registered User
Join Date: Feb 2003
Location: USA
Posts: 152
|
Thanks a lot, Zambelli, the presets look really good. Based on my modest experience tweaking these settings, it looks like your "better" preset is going to be the sweet spot for my purposes (compressing recorded HDTV at a reasonable speed).
|
23rd March 2007, 22:05 | #6 | Link |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Thanks, glad it's working out for you. What kind of slowdown are you seeing with "better" compared to "good" or default? The numbers I posted were done fairly quickly, based on some encodes I did on my Athlon64 3500+, so I'd love to get more feedback about performance ratios in general.
|
26th March 2007, 03:34 | #7 | Link |
Registered User
Join Date: Feb 2007
Posts: 50
|
I'm still a bit unclear on the v_performance setting. By your presets, it looks like setting this higher will improve quality, but in my frame-by-frame comparisons, I've seen no improvement in quality whatsoever -- v_performance 0 looks every bit as good as v_performance 80. The only difference I've seen is that the higher setting will produce a smaller file, and will take *dramatically* longer to encode.
|
26th March 2007, 06:34 | #8 | Link | |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Quote:
Also, encoding times change dramatically between 0 and 80. You can go literally from faster-than-realtime encoding to wake-me-up-when-it's-done encoding. |
|
5th April 2007, 07:43 | #9 | Link |
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
@Zambelli
can you please look here http://forum.doom9.org/showthread.ph...619#post979619 ? thanks! feel free to reply here or on automkv thread thanks again BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
10th April 2007, 12:31 | #10 | Link | |
Registered User
Join Date: Apr 2006
Posts: 1,008
|
Quote:
I encode in 1pass CBR , -v_codec wvc1 -v_mode 0 Batch : cmd /k cscript.exe C:\windows\wmcmd.vbs -input g:\Parfuem\Parfuem.avs -output g:\parfuem\parfuem.wmv -v_codec WVC1 -videoonly -v_mode 0 -v_bitrate 7020000 -v_preset better -v_buffer 60000 -v_quality 100 However, i have no dropped Frames .. so i use Q100 Q 100 holds exactly the definied Bitrate ,works perfect ,No Problems And when the new xbox360 Update is there ,perhaps i encode 2pass VBR Peak Clownshoes can REPRODUCE IT !!, so ....its 100% not my mistake Last edited by ACrowley; 10th April 2007 at 12:44. |
|
10th April 2007, 12:47 | #11 | Link |
King of the Jungle
Join Date: Mar 2003
Location: Shoreditch, London
Posts: 429
|
@Crowley
I'm going to try a 2 pass peak encode now. Average 9000kbps peak 12000kbps. That should stay within current acceptable limits for the 360. I can't wait untill the update when we can really test out VC1 capabilities. cscript.exe C:\Windows\WMCmd.vbs -input I:\Serenity.avs -output H:\Serenity.wmv -v_codec WVC1 -videoonly -v_mode 4 -v_preset best -v_bitrate 9000000 -v_peakbitrate 12000000 -v_buffer 60000 @Zambelli, can you tell me the difference between the performance and complexity settings? and do they have any use in a peak VBR encode? Last edited by Clown shoes; 10th April 2007 at 12:59. |
10th April 2007, 13:12 | #12 | Link |
Registered User
Join Date: Apr 2006
Posts: 1,008
|
me to...VC1 becomes Mutithreading with the Update..nice
12Mbps Peak should be close to the max. Peak for the current Decoder On my U571 HDDVD reencode in 720p WVC1 ~9Mbps and 13.5Mbps Peak it was not smooth But i am satisfied with 1pass CBR at high Bitrates. With preset better ,a 60000Buffer ,Q100,and min. 7Mbps for 720p, min. 14Mbps for 1080p ,it delivers very good Quality After the Update i will encode 2pass VBR Peak. But 1 Problem is left with the 360 and Peak Bitrate. So far i know The Update is only for the Dashboard! For H264 i know it surely, No MediaCenter and H264. When its for WMV9 AP too, we can only use VC1 High in Dashboard/GameDrive/ MediaConnect We will see Last edited by ACrowley; 13th April 2007 at 20:02. |
10th April 2007, 19:13 | #13 | Link |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Yes, performance/complexity is used in every mode. It affects many things, most related to motion estimation precision. 60/3 is the default. You can try 80/4 and 40/2 for slower/faster encoding, but I wouldn't recommend going higher or lower than that.
|
12th April 2007, 05:06 | #14 | Link | |
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Quote:
I tried quality 100, 80 and 50 and the bitrates came out about the same, within 2% of the target bitrate. So I'm really not sure what's causing the bitrate issues you're seeing. Can you try using a smaller bitrate and see if you get similar behavior? How about if you use a higher bitrate? |
|
5th April 2007, 09:33 | #15 | Link |
Registered User
Join Date: Apr 2006
Posts: 1,008
|
thank you
I have one question : Normally I use ProCoder to encode WVC1. And i set the WM9 AP Settings with your WMV9 PowerToy. But i cant find the Complexity Option in the Editor ? The Option in ProCoder is at Auto and i cant change it. I think when i set it manually via Registry for WMV9 AP, ProCoder must use Complexity=3 ? But ProCoder takes more time to encode with the same WMV9 Ap Settings . And the Lookahead Option ..i can ony select 16 and not 30 in your editor ? 30 not supported at the moment in PowerToy? EDIT : 2nd Question is now clear. Ill encode HDDVD/BlueRay to WWVC1 with 1pass CBR 720p 8Mbps 60000Buffer and "better Preset. Commandline: cscript.exe c:\windows\wmcmd.vbs -input g:\videoinput.avs -output g:\videooutput.wmv -v_codec WVC1 -videoonly -v_mode 0 -v_preset better -v_bitrate 8000000 -v_keydist 3 -v_buffer 600000 -v_quality 100 -s_config own.weu Last edited by ACrowley; 8th April 2007 at 16:28. |
6th April 2007, 05:19 | #16 | Link | ||||
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Quote:
Quote:
Quote:
Quote:
|
||||
6th April 2007, 06:23 | #17 | Link | |
Registered User
Join Date: Apr 2006
Posts: 1,008
|
Quote:
Mh... i never had Problems with dropped Frames from 1pass CBR encodes and quality 100. Not with SoftwarePlayers or Xbox360. Xbox360 Playback is the main reason for my encodes When i set it down to 50 isnt the Quality lower ? And the encode is definitely faster with wmcmd.vbs copared with ProCoder..for the first look. This encode now with wmcmd.vbs and the same WMV9 AP Settings took around 20h. Its a 1080p HDDVD/VC1 164minutes 2.35:1 AR. I encode to 1280x528( cropped) 8mbps WVC1 and the commandline from above. With ProCoder a similar encode (same avs script,WVC1 Settings) took minimum 24h to encode ! However, i will use wmcmd.vbs in the future, so i have safely full control over all WMV9 AP Settings A question about ProCoder: What is the encoder doing in CBR 1pass encodes ? I mean the File writing beginns until the Process Bar is in the Middle around 50%..other WMV encoders in 1pass CBR Mode starts to write directly at the beginning Is it a kind of caching or analyzing whether ist 1pass ? Last edited by ACrowley; 6th April 2007 at 09:43. |
|
8th April 2007, 09:20 | #19 | Link |
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
for truly preset integrated in wmcmd.vbs (like these one ceated by Zambelli, fast, insane,better,good...) you must edit the wmcmd.vbs and add some line of code (not much... )
BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
Thread Tools | Search this Thread |
Display Modes | |
|
|