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.
|
24th March 2007, 22:47 | #7 | Link |
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
thanks Zambelli!
in next update AutoMKV will include 5 new profile, based on these preset and with wvc1 as codec Also thanks for the new vbs! a lot more stable and reliable ! BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 |
26th March 2007, 03:34 | #8 | 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 | #9 | 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 | #10 | 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 |
5th April 2007, 09:33 | #11 | 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 | #12 | Link | ||||
Doom9ing since 2001
Join Date: Oct 2001
Location: Seattle, WA, USA
Posts: 2,002
|
Quote:
Quote:
Quote:
Quote:
|
||||
6th April 2007, 06:23 | #13 | 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 | #15 | 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 |
8th April 2007, 15:08 | #18 | Link |
Registered User
Join Date: Apr 2006
Posts: 1,008
|
First i thought it was my mistake, but its true
From my current encode to WVC1 720p 9Mbps 1pass CBR : cscript.exe C:\windows\wmcmd.vbs -input d:\test.avs -output d:\test100.wmv -v_codec WVC1 -videoonly -v_mode 0 -v_bitrate 9000000 -v_preset better -v_keydist 30 -v_buffer 60000 -v_quality 100 The End Filesize is calculated to 7.5gb, but with Quality 80 its only 5,2 GB ?! Test Sample encodes on H264 1080p Source: These are the Statistics fter wmcmd.vbs encoding : 1 : v_quality 80 : Video : Codec: Windows Media Video 9 Advanced Profile Expected bit rate: 9000000 bps Average bit rate: 5912122 bps Expected fps: 25 Dropped frame count: 0 Total coded frames: 535 Average sample rate: 25 Dropped bytes: 0 bytes Total bytes: 15847906 bytes Overall: Encoding time: 171 seconds Average bit rate: 5912122 bps File size: 15933546 bytes File duration: 21,393 seconds 2. v_quality 100 ======== Encoding Completed ======== Video : Codec: Windows Media Video 9 Advanced Profile Expected bit rate: 9000000 bps Average bit rate: 8986305 bps Expected fps: 25 Dropped frame count: 0 Total coded frames: 535 Average sample rate: 18,848 Dropped bytes: 0 bytes Total bytes: 24957774 bytes Overall: Encoding time: 177 seconds Average bit rate: 8986305 bps File size: 25077546 bytes File duration: 21,393 seconds So you can see with quality 80 the Output Filesite is smaller Q 80 is only 15MB, Q 100 is 23.9 The Average Bitrate with Q 80 is only at 5.9Mps With Quality 100 its more efficient ?! with 8.9mbps No dropped Frames with Q 100...i never had any dropped Frames in the past So, whats up here ? Why controlls Quality Targetsize / Bitrate in 1pass CBR Mode ? Mh...maybe ill switch to 2pass VBR Last edited by ACrowley; 8th April 2007 at 17:11. |
8th April 2007, 17:33 | #19 | Link |
King of the Jungle
Join Date: Mar 2003
Location: Shoreditch, London
Posts: 429
|
I am very interested in encoding for maximum quality so the insane profile looks great. Would I gain anything from changing -v_performance to 100 and motion search level to luma and chroma? I have a dual quad core system, so hopefully that will cut the increased encoding time a little.
There seems to be very few people now using a two pass vbr system. Is there any reason for this bar encoding time? I want to encode my HD material to HQ files that will work on my Xbox360, getting as much out of the source as possible. Surely 2 pass VBR is the way to go? My cmd line is as follows; cscript.exe C:\Windows\wmcmd.vbs -input C:\test.avs -output C:\test.wmv -v_codec WVC1 -videoonly -v_mode 4 -v_bitrate 8000000 -v_peakbitrate 15000000 -v_preset insane -v_keydist 15 -v_buffer 60000 Last edited by Clown shoes; 8th April 2007 at 19:45. |
8th April 2007, 21:33 | #20 | Link |
King of the Jungle
Join Date: Mar 2003
Location: Shoreditch, London
Posts: 429
|
I'm having problems encoding my audio with WMCmd.vbs I'm using an avisynth script Nicac3Source("C:\WMV encoding\Test\SAMPLE PID 081 T01 3_2ch 448Kbps DELAY 199ms.ac3", DRC=1) and my cmd line is cscript.exe C:\Windows\wmcmd.vbs -input C:\audio test.avs -output C:\audio.wma -a_codec WMAPRO -a_mode 0 -a_setting 440_48_6_24 -audioonly when I run my .bat it closes immediately. Any obvious mistakes I'm making?
|
Thread Tools | Search this Thread |
Display Modes | |
|
|