Steps to encoding WMV and WMV DVD in HCenc.
Tools needed:
Womble Mpeg Video Wizard or Mpeg Video Wizard DVD
AVIsynth (I had version 2.5.8)
HCenc (I had version 0.23)
1. Create a project in Womble MVW. Using an external encoder is especially helpful when using titles.
One can export from MVW, which is great for stream copy.
Sometime there is encoding, as seen on details.
Encoding takes much longer than stream copy. Using the normal, "Smart-Fast" algorithm, this example, a 61 second clip with 58% re-encoding took 5 minutes and 40 seconds.
To get "better" encoding, MVW gives an option to use the “Maximum Quality” encoding algorithm.
The maximum quality encoding takes longer : the 61 second clip with 58% re-encoding took 32 minutes and 55 seconds. My laptop is old and slow (1.3 GHz centrino), but that’s ridiculous.
Even worse, the result is only marginally improved over a poor encode. Here is a frame capture using the regular encoding (speed at 3x plus a title to cause need to re-encode) next to the Maximum Quality encoder.
![]()
That is why I looked for an alternative encoder. Here are the steps to the process.
1. To use HCenc, you must save the project as a wbp in MVW.
![]()
2. Install AVIsynth and HCenc. Note where MWV is located.
3. Write a short AVIsynth script as follows (saved as womble.avs):
4. Open HCenc. Set Files, bit rate, aspect ratio, and hit encode.LoadvfapiPlugin(“C:\Program Files\Womble Multimedia\MPEG Video Wizard DVD\WbpVFAPI.vfp”, “womble”)
womble(“C:\Documents and Settings\Tim\Desktop\Video Project\Trip to Safeway\Trip to Safeway.wbp”)
flipvertical
Lancszosresize(704,480)
converttoyv12
HCenc processing times are much shorter than MVW when re-encoding, as this 61 second project took 3 minutes and 41 seconds.
5. Because HCenc omits the audio, we have to get that. Go back to WMV, and export the audio as a MPEG1 audio file.
This is fast, and took only 7 seconds for this 61 second clip, even with 54% audio re-encoding.
6. Start a blank project in MVW. Add the HCenc video (m2v file) and the just produced audio (mpg file).
7. Export the simple project. This is a stream copy, and goes very quickly. This 61 second clip took 8 seconds in MVW.
8. Enjoy the result, which is much cleaner. Below are two comparable frame captures (using PowerDVD, and the source and result are both interlaced).
Here is a frame capture, first using HCenc, compared to MVW and MVW Maximum Quality.
![]()
![]()
Note: When Womble would have just a stream copy, HCenc will still re-encode, losing some quality and taking longer. Here is a a stream copy frame from MVW next to the encoded frame from HCenc:
![]()
Notice the colors are faded and slightly less crisp, but not too bad.
Enjoy, and thanks to 45tripp for telling me the hard part.
+ Reply to Thread
Results 1 to 19 of 19
-
-
Nice work. Might want to try moving color-space line up to the top of your AVISynth script. Might help with the faded color. If not, seems something may be getting lost in the conversion process.
LoadvfapiPlugin(“C:\Program Files\Womble Multimedia\MPEG Video Wizard DVD\WbpVFAPI.vfp”, “womble”)
womble(“C:\Documents and Settings\Tim\Desktop\Video Project\Trip to Safeway\Trip to Safeway.wbp”)
converttoyv12
flipvertical
Lancszosresize(704,480)
Also, just a suggestion. You want to change your abbreviations as MVW looks eerily close to WMV, which is a widely used and accepted term for Windows Media Video. You can cut down on the potential confusion by just calling it MPEG Video Wizard or Womble MVW. Just a thought. -
Sorry my english is so terrible
I try this method, but I am wrong. I have avisynth 2.5, WMVDVD 4.0.4.108 and this script:
LoadvfapiPlugin(“C:\Program Files\Womble Multimedia\MPEG Video Wizard DVD\WbpVFAPI.vfp”,“womble”)
womble(“D\Video\Womble\pokus.wbp”)
flipvertical
Lancszosresize(720,576)
converttoyv12
I try to use VFAPIConvEN.exe and all is right. Created pokus_wbp_vfapi.avi was OK
Where is my mistake?
thanks -
Your mistake is here:
LoadvfapiPlugin(“C:\Program Files\Womble Multimedia\MPEG Video Wizard DVD\WbpVFAPI.vfp”,“womble”)
womble(“D:\Video\Womble\pokus.wbp”)
flipvertical
Lancszosresize(720,576)
converttoyv12
Also try to use straight quotes instead of you special quotes. => there one are the right ones for avisynth => ".
Maybe your quotes forces the avs file to be saved to unicode. I don't know if avisynth can read unicode files. -
LoadvfapiPlugin(“C:\Program Files\Womble Multimedia\MPEG Video Wizard DVD\WbpVFAPI.vfp”,“womble”)
womble(“D:\Video\Womble\pokus.wbp”)
flipvertical
Lancszosresize(720,576)
converttoyv12
LoadvfapiPlugin("C:\Program Files\Womble Multimedia\MPEG Video Wizard DVD\WbpVFAPI.vfp","womble")
womble("D:\Video\Womble\pokus.wbp")
flipvertical
Lanczosresize(720,576)
converttoyv12
thanx -
Excellent guide! I had no idea you could do that with the Womble products. As much as I liked the simplicity in editing and DVD creation, I always thought the built in Mpeg encoder was lacking. Thanks.
-
Hey soop, take a look at the HCencoder frameserved encoding. It is experiencing some color washing. How would you correct that? I am thinking moving convettoyv12 before flipvertical to feed colorspace information first. Thoughts?
-
Nice guide tmw
I think HCenc and CCE both assume rec.709
http://avisynth.org.ru/docs/english/externalfilters/colormatrix.htm
In case you captured something or you have a XviD/DivX (both are encoded Rec.601 coefficients), and you want to encode it to mpeg-2 using CCE (which assumes Rec.709 coefficients), you should use the following script (progressive material)
ColorMatrix(clip, mode="Rec.601->Rec.709")
http://forum.doom9.org/showthread.php?t=123455
I am uncertain if there are other contributing reasons for the washed out colors -
I am a novice at encoding, and I have never used AVISynth and am worried it will be too difficult for me to understand. For example, I don't know why you use flipvertical, Lancszosresize(704,480), and converttoyv12. I am editing 720 x 480 mpgs and normally don't need to convert (I just clip out sections of the mpg). But once in a while I would like to apply a filter, or use a fade which requires re-encoding by Womble. Could I get along with not learning about "flipvertical, Lancszosresize(704,480), and converttoyv12" or do I need to bite the bullet and learn everything about AVISynth?
Zakkkkkman -
You need FlipVertical() only if your video opens upside down. Before sending to the encoder check out the script in VDub(Mod).
If your video is 720x480 (or 704x480) you don't need to resize (if for NTSC DVD).
If your video isn't already in YV12 colorspace you'll have to make it so for HCEnc, as it only accepts video in YV12. To find out the colorspace of your video, add this to the bottom of your script (without adding ConvertToYV12()):
Info()
and then open in VDub(Mod). -
Thanks, manono.
So, can I use this technique if I am using some of the Womble filters? I usually stay away from their filters because the resulting video is poor quality. Any time womble re-encodes (reverse, video fade, filters, speed changes, etc.) I am not satisfied with the results. But it would be nice if I could use Womble's interface because I am familiar with it and I can see the results immediately (which is really important when trying to pan or zoom).Zakkkkkman -
OK, I found the answer to my own question and thought I should post it for anyone else interested:
Originally Posted by zakmanZakkkkkman -
Originally Posted by Riki ChangZakkkkkman
-
Originally Posted by zakman
BUT I have problems with work of this script.
Canopus Procoder crashes at loading this script!
CCE also: stops on 10% at coding and Then crashed.
I tried the version of WbpVFAPI 1.0.1.2 (MVW2003) and new 4.0.4.109(from update) - no results! -
Hey guys something else that works
Use the simple scripts listed above, if you have FAVC installed this will do the gritty work if you do not want to touch the HCgui and it will make a dvd for you in one shot
open up favc and for the input video open your .avs script and it works as well doing more of the finer details for yo-enjoy
Similar Threads
-
Womble video wizard mpeg dvd
By Remyisme in forum Newbie / General discussionsReplies: 1Last Post: 18th Nov 2008, 14:47 -
Frameserving Womble Mpeg Video Wizard
By tmw in forum Video ConversionReplies: 13Last Post: 1st Nov 2008, 08:53 -
Losing Quality Within Womble MPEG Video Wizard DVD
By Opv in forum Authoring (DVD)Replies: 10Last Post: 12th Aug 2008, 19:50 -
Womble MPEG Video Wizard destroys audio?!
By noemi7 in forum EditingReplies: 3Last Post: 16th Jun 2008, 10:18 -
settings for Womble MPEG Video Wizard DVD
By Vril-ya in forum EditingReplies: 0Last Post: 20th May 2008, 19:18