Log in

View Full Version : HD-DVD (EVO files) to WMV HD


Pages : 1 2 [3] 4 5 6 7 8 9

Icemaan
1st May 2007, 12:55
Hallo

I not understand why must make a Graph to encode the Evo File
My way is like this
1. I demux the Evo with EvoDemux
2. Then I rebuild the Evo without Sound and Sub
3. My Avs Script
DirectShowSource("F:\part0001.rebuilt.EVO", video=true, audio=false, fps=23.976, framecount=925, seek=false, seekzero=false)
All works fine can play in Vdub or Mediaplayer etc.
I hope its correct what I make

Icemaan

shaolin95
1st May 2007, 13:04
So how do you get a wmvhd from that?

zambelli
1st May 2007, 18:26
Thank you, Zambelli. Also, sorry for insisting (I'm a bit of a maniac, I know!), but would you have any clue why using the Sonic Video Decoder with wmcmd.vbs still generates a whole series of "ContextException" errors of the follwoing sort:
I know a lot of people have been getting those, but I don't know why. The C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc line would clearly indicate that it's related to some Roxio component - but why it comes up in this encoding context only - I wouldn't know. Typically a Dshow filter doesn't write to the command-prompt like that anyway - so it's also possible that the warning always happens, but is only seen when the filter is invoked from a command prompt like this. I wouldn't be surprised if it came up in, say, an x264 command-line encoding process too.

Icemaan
1st May 2007, 19:32
So how do you get a wmvhd from that?

I encode the Script same you with help of Zambellis Vbs into Vc1 i only want say for what must make a Graph when it goes Direct
Icemaan

olivierdb
1st May 2007, 22:08
@Icemaan: Two things are not clear to me:

1) How do you "rebuild" the EVO file with sound and subtitles? What are you using?

2) The purpose of the guide I published is, namely, to allow those who have a PC in one room and an XBox 360 and HDTV in another room, to stream their WMV HD movie from their PC to their XBox. I don't think it's possible to stream an Avisynth file to an XBox! Am I missing something here?

wolly6973
2nd May 2007, 03:44
So I feel like a total idiot for not being able to do any of this but I do have another question.
I have got the first two parts of the audio to work. I have my wav file and my 6 mono. They all play fine in wmp. I am having trouble getting the WavAviMux to work. When it runs it just pops up for a second and closes. I tried putting >output.txt at the end, and the txt file is always blank. I put the wavavimux.exe in the system32 folder. Here is my command line(it should be exactly the same as in the guide).
WavAviMux -o audio.avi -iwav 6 output-FL.wav output-FR.wav output-C.wav output-LFE.wav output-SL.wav output-SR.wav -mask 63 >output.txt

I would appreciate any help as I finally got my video encoded, now I just need the audio! Thanks for all the hard work you guys are doing to help out!

shaolin95
2nd May 2007, 06:08
The only way I could the wavaimux to work was by placing the 6 mono wavs in the desktop....maybe worth a try. :-)

Also, I am feeding the AVS line to WME since I cant get the whole one bat thing to work but in the screen where it shows the preview of the video encoding, I get this message:
expected fps 23.976
average fps: 6 or so.... why is it giving me a 6?

I stopped the encoding to give it a try and its all choppy. My computer is fast ( Opteron 165 dual core at 3Ghz) but that doesnt even matter at the time of encoding other than taking longer with a slower computer.
Any ideas?

olivierdb
2nd May 2007, 08:41
@wolly6973: When you run the wavavimux setup it installs the 2 files: WavAviMux.exe and spgi.ax in the folder C:\Program Files\Windows Media Components\Tools\WAVAVIMUX. Make sure you have copied both files to C:\Windows\System32.

Also, instead of using ">output.txt", you can do the following:

1) Start>run
2) Type cmd and press enter
3) Right click on the top border of the cmd window and chose "Properties"
4) In the "Options" tab, make sure "QuickEdit Mode" is checked
5) Copy your command line: "WavAviMux -o audio.avi -iwav 6 output-FL.wav output-FR.wav output-C.wav output-LFE.wav output-SL.wav output-SR.wav -mask 63"
6) Paste into the cmd window by right clicking once after having selected the window
After you hit Enter and the command is completed, the window shouldn't close.

olivierdb
2nd May 2007, 08:50
@shaolin95: 6 fps! Strange! I suggest you place all your audio and video source files in ONE same folder, lets say we call it C:\My Videos. Then make sure eac3to and sox are in that same folder. Then, in the cmd window type: "cd C:\My Videos" and finally copy the complete .bat file to the cmd window and give it another try.

Also, verify the number of fps in your Video_Only.avs file (DirectShowSource(..., fps=23.976,...)).

You could also create the following .avs file with:

video = import("C:\Path to\Video_Only.avs")
audio = DirectShowSource("C:\Path to\audio.avi")
AudioDub(video,audio)

And view the first few minutes in Media Player Classic.
Then go to Play>Filters>Video Renderer and check the "Average frame rate achieved" under the "Quality" tab.

zambelli
2nd May 2007, 09:11
@wolly6973: When you run the wavavimux setup it installs the 2 files: WavAviMux.exe and spgi.ax in the folder C:\Program Files\Windows Media Components\Tools\WAVAVIMUX. Make sure you have copied both files to C:\Windows\System32.
There's absolutely no need to copy both files to System32 folder. Wavavimux.exe can run from anywhere. Sgpi.ax is a DirectShow filter (hence the .ax extension) and simply needs to be registered via regsvr32 - though that should've already been taken care of by the installer.

olivierdb
2nd May 2007, 10:52
@zambelli: Thank you for correcting me when I'm wrong. I will correct the guide. Can you also tell us what the sgpi.ax filter does?

Would anyone know anything about Removegrain or LimitedSharpen? I've seen them used here and there, but I don't know when one should use them!

I'm also looking into cropping the movie to reduce file size and possibly encoding duration. Using VirtualDub, I've deterrmined that my Y1 offset=128 and Y2 offset=138 (while X1=X2=0), thus leading to a movie resolution of 1920x814. This leads me to the following 2 questions:

1) Should the resolution be divisible by 16?
2) Should I adjust the X offset to preserve the aspect ratio after cropping when I see the movie on my HDTV (which has a resolution of 1366x768, i.e. approx. 16/9)? In other words, should my target resolution be 1440x816?

Thanks for your help.

olivierdb
2nd May 2007, 18:05
I've made some tests:

1) I realised that cropping from 1920 to 1440 horizontally would seriously truncate the image and reduce my visual experience by a third! Not a good idea!

2) I then tried keeping the width at 1920 and resizing the image vertically from 816 to 1080. The elongated visual effect wasn't very pleasant to the eye! I used:

Crop(0,127,0,-137)
Lanczos4Resize(1920,1080)

Conclusion: I think I'll stick to the original resolution and the black bars!

wolly6973
2nd May 2007, 21:59
I tried the method you suggested and I am able to see what is going on now. After I enter the command it says
!ERROR: Can't open output file
It does create the audio.avi file, but it is 0kb. Any ideas?

olivierdb
3rd May 2007, 09:39
@wolly: I'm not sure why it isn't working for you, there seems to be a problem with wavavimux. Do the 6 mono .wav files play sound correctly? If so, then I may only suggest you try uninstalling and re-installing wavavimux.

wolly6973
3rd May 2007, 13:53
Thanks for the idea. I tried it on a different PC today and it is working right now. Hopefully I will finally be able to get a working wmv hd video!

nincollector
4th May 2007, 10:05
only problem im having is that my pc decides to stop encoding before the end... only thing i can think of is the cpu is over heating or sumthing coz 1st time it got to 45 secs now it got to 1 min 45 secs... my test file is only 2:02. anyone else got this problem?

pneffkell
4th May 2007, 15:20
Ok here is what I am doing and I seem to be having success with it

I create my grf file and avisync file for the video

break the ddp file out into 6 wave channels
I convert the six wave files to an ac3 file using quenc

Then I use TMPGenc 4 express to create the wmv hd file.

I am using TMPGenc because I like the user interface and because it allows me to correct for audio and video being out of sync. Anyway just finished backing up my copy of an HD-dvd and It looks great!

nincollector
5th May 2007, 15:22
Ok here is what I am doing and I seem to be having success with it

I create my grf file and avisync file for the video

break the ddp file out into 6 wave channels
I convert the six wave files to an ac3 file using quenc

Then I use TMPGenc 4 express to create the wmv hd file.

I am using TMPGenc because I like the user interface and because it allows me to correct for audio and video being out of sync. Anyway just finished backing up my copy of an HD-dvd and It looks great!

this method worked for me too. I like it better too coz i can specify bitrates n stuff like that. thanks

shaolin95
5th May 2007, 18:38
It works indeed but at least according to the estimated time, it takes much longer than using WME. Still, its a nice alternative to people having problems.
Regards

olivierdb
5th May 2007, 19:02
this method worked for me too. I like it better too coz i can specify bitrates n stuff like that. thanks

You may also specify bit rates in the script version. TMPGenc 4.0 Xpress seemed like a nice alternative until I saw the price tag!

shaolin95
6th May 2007, 03:58
How do I change the following script to one that uses -v_bitrate 12000000 and buffer 6 secs?

cscript.exe "C:\Program Files\Windows Media Components\Encoder\wmcmd.vbs" -input Vtest2.avi -a_input myaudio.avi -output "j:\output.wmv" -v_bframedist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mode 2 -v_quality 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_codec wmapro -a_setting 384_48_6_16

Regards

nincollector
6th May 2007, 09:47
How do I change the following script to one that uses -v_bitrate 12000000 and buffer 6 secs?

cscript.exe "C:\Program Files\Windows Media Components\Encoder\wmcmd.vbs" -input Vtest2.avi -a_input myaudio.avi -output "j:\output.wmv" -v_bframedist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mode 2 -v_quality 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_codec wmapro -a_setting 384_48_6_16

Regards

isnt that 12 gbps???? i used 30000 and its perfect.

olivierdb
6th May 2007, 11:13
@shaolin95: I'm no expert, but I think you would first have to change the video mode setting to -v_mode 4 and remove -v_quality 96 as the quality parameter is ignored in 2-pass VBR mode. As a reminder:
Video encoding modes:
0: 1-pass CBR (default).
1: 2-pass CBR.
2: Quality-based VBR.
3: Bit rate-based VBR (two-pass).
4: Peak bit rate-based VBR (two-pass).

You would then have to set -v_peakbitrate 12000000 and -v_peakbuffer 6000. I don't think its important in which order the parameters appear. Also, don't forget that you may use Zambelli's WMV Bitrate Calculator (http://www.citizeninsomniac.com/WMV/WMVBitCalc.html) to determine the most appropriate bit rate. For more guidance on the encoding parameters to use, I strongly recommend you read from this post (http://forum.doom9.org/showthread.php?p=991220#post991220) onwards on the other thread dedicated to HD-DVD and streaming to the Xbox 360. Finally, as a reminder, a VC-1 decoder update for the Xbox 360 (http://www.engadget.com/2007/04/09/xbox-360-spring-2007-dashboard-update/) should be released tomorrow, May 7th, so those of you who have been experiencing problems with 2-pass VBR on their Xbox, may want to give it a second try thereafter.

ABOOABOO
7th May 2007, 18:03
Hi everybody, whilst waiting for 5 days i have been reading and testing and i just cant get it to work.

i have used evodemux and converted the feature files and then i have created the graphs and created the avs files

Below is that .bat file i have but it does try and encode the audio but then it just comes with an error message in dos

eac3to.exe "i:\FEATURE_1_FEATURE_2.DD+.stream.00.ddp" "i:\output.wav"
tranzcode.exe "i:\output.wav"
wavavimux -o audio.avi -iwav 6 output-FL.wav output-FR.wav output-C.wav output-LFE.wav output-SL.wav output-SR.wav -mask 63
cscript.exe "C:\Program Files\Windows Media Components\Encoder\wmcmd.vbs" -input "i:\Video_Only.avs" -a_input "i:\audio.avi" -output "i:\output.wmv" -v_bframedist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mode 2 -v_quality 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_codec wmapro -a_setting 384_48_6_16

olivierdb
7th May 2007, 18:26
@ABOOABOO: What error message are you getting? Does the audio.avi file play correctly in WMP? We need more information to be able to help you!

ABOOABOO
7th May 2007, 20:05
i get the below message

it created the output.raw file as i can see it on my hard drive going over 2B

I:\>Encode2WMVHD.BAT

I:\>eac3to.exe "i:\FEATURE_1_FEATURE_2.DD+.stream.01.ddp" "i:\output.wav"
E-AC3, 5.1 channels, 2:14:04, 768kbit/s, 48khz
Muxing eac3 file to raw. Please wait...
The NCBENUM return code is: 0x0
The NCBENUM return code is: 0x0

I:\>tranzcode.exe "i:\output.wav"
Error: Unable to open file: i:\output.wav

I:\>wavavimux -o audio.avi -iwav 6 output-FL.wav output-FR.wav output-C.wav outp
ut-LFE.wav output-SL.wav output-SR.wav -mask 63
Cant open File output-FL.wav

I:\>cscript.exe "C:\Program Files\Windows Media Components\Encoder\wmcmd.vbs" -i
nput "i:\Video_Only.avs" -a_input "i:\audio.avi" -output "i:\output.wmv" -v_bfra
medist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mode 2 -v_qual
ity 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_codec wmapr
o -a_setting 384_48_6_16
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

The NCBENUM return code is: 0x0
ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_FeatureValue
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_FeatureValueMask
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_FeatureDisplayName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_PermissionToLaunch_Activation
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_TrialNagDelay
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_TrialNagFirstDelay
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ActivationValidityOffset
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ActivationValidityStartDate
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_HTMLFolderName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_HTMLFolderName_Reg
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_DialogWidth
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_DialogHeight
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ProductDisplayName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_EnhancedProductDisplayName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ActivationMode
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

The NCBENUM return code is: 0x0
Prepare to encode failed with error -2147220843 A DRM profile has not been set f
or the current session.

olivierdb
7th May 2007, 21:54
"Prepare to encode failed with error -2147220843 A DRM profile has not been set for the current session."

Hmmm... You're the second person I see getting this kind of error message. It seems that it has something to do with having to set a DRM profile for the Windows Media Encoder DRM Protect Utility. I had no idea you could have Windows DRM on a HD-DVD!

ABOOABOO
7th May 2007, 22:06
is it worth trying another dvd or is something to do with my pc

do i need to change anything when i rip

i am using slysoft anydvd

zambelli
8th May 2007, 00:14
Hmmm... You're the second person I see getting this kind of error message. It seems that it has something to do with having to set a DRM profile for the Windows Media Encoder DRM Protect Utility. I had no idea you could have Windows DRM on a HD-DVD!
I don't think the error is reflecting the true nature of the issue. If DRM is not being added to the output WMV, as is the case here, DRM shouldn't enter into it at all.

NHRaider
8th May 2007, 13:27
Guide to convert HD-DVDs to WMV HD with 5.1 audio channels
...

Doubleclick on the .bat file and... be patient! :(
(I have an Intel Core 2 Duo @2.4GHz and it takes approx. 10 mins to encode 1 min of movie, i.e. a 1 hour movie will take about 10 hours to encode! But I'm not sure if the process is linear so I guess it may take more or less time!) :confused:

Finally, just a word of thanks to Zambelli and all others who have made this small guide possible!

For those of you still encountering problems, I would also recommend keeping an eye on this thread (http://forum.doom9.org/showthread.php?p=991220#post991220).

Hi Oliver...This is fantastic that the guide has evolved so quickly. I've been able to encode with some workarounds...such as my media player doesn't like audio bitrate higher than 640...

I have 2 issues running the VBS script...
1) When I try to encode audio and video together at 12mbts I get an out of memory error. Which is strange since I have a Core 2 Duo Extreme (2 CPUs each at 2.93GHz) and 4 GB RAM! I'm not sure if it was a bad parameter such as buffer size of 60 seconds vs 6 seconds etc...haven't tried in a bit but will be trying again now I have a process to encode.

2) For some reason, in control panel I can't change the cineplayer dvd decoder options to 5.1. I can set use system settings which I have 5.1...but in the decoder panel it give an error "Exception occurred while trying to run shell32.dll..." when I try to set it in the optiosn. When I encode 6 channel in VBS I get the bad input format error "-xxxxxx". But WME with multichannel doesn't give me that error.

To get around this I've been encoding video and audio separately (audio using eac3to, tranzcode and wme multi channel).

Also, encoding the audio and video separately, seems to be faster then encoding them together.

My next questions...

In light of being able to encode with WME and not VBS for the multichannel audio...what would be the cmd to call WME with input the to the 6 monos OR the file from Wave Combiner 9 alng with a profile I created?

Also, similarly, what is the cmd to calll stream edit with the input video and the input audio.

This way I can encode video separate from audio and call stream edit to combine the two. This seems to be the only way to encode to WMV for me...

olivierdb
8th May 2007, 14:21
Hi NHRaider,

1) Using 12Mbps bitrate and 60sec buffer means you're using 720Mbits or 85.8MBytes decoding memory. That may be too much, although I don't know which part of system memory is being allocated for the decoding process! Maybe someone else may shed some light on this... In the meantime try reducing the parameters.

2) I suggest you do the following: in the control panel, double click the Cineplayer DVD decoder options and under the Audio tab check "Use System Settings". Then, still in the control panel, double click "Sounds and Audio Devices", select the "Volume" tab and under "Speaker Settings" hit the "Advanced" button. Chose 5.1 speakers.

Give the .bat file another go. If you're still getting errors, pls copy-paste them here. By the way, what OS are you using?

NHRaider
8th May 2007, 16:07
Hi NHRaider,

1) Using 12Mbps bitrate and 60sec buffer means you're using 720Mbits or 85.8MBytes decoding memory. That may be too much, although I don't know which part of system memory is being allocated for the decoding process! Maybe someone else may shed some light on this... In the meantime try reducing the parameters.

2) I suggest you do the following: in the control panel, double click the Cineplayer DVD decoder options and under the Audio tab check "Use System Settings". Then, still in the control panel, double click "Sounds and Audio Devices", select the "Volume" tab and under "Speaker Settings" hit the "Advanced" button. Chose 5.1 speakers.

Give the .bat file another go. If you're still getting errors, pls copy-paste them here. By the way, what OS are you using?

Hi Oliver...thanks for the quick reply...

comments:
1) I want the encoding to be as good as possible and so I've been told to bump the rate to as much as 14Mbps....so maybe the other parameters such as buffer etc should be tweaked... I was earlier trying the -preset but was getting errors but at this point I'm not sure if it was something else since that was early in the process...

At this point, it may just make sense to find a way to stream the EVO or to take the VC-1 and stream edit with the audio...sucks up the disk space but the difference of 14GB to 20GB isn't that big a deal...Plus I have about 4 TB of disk space to fill so it's not that big a deal now...Just want to stream instead of screwing with the coasters.

2) I can go and change the system settings to 5.1...etc..but the options say 2 channel...but when I go through the WME process somehow that changes it to 5.1 in the cineplayer DVD encoder options.

NHRaider
9th May 2007, 11:45
Guide to convert HD-DVDs to WMV HD with 5.1 audio channels

Please note that this solution is by no means the only solution possible nor is it necessarily the best! It just happened to work for me!
cscript.exe "C:\Program Files\Windows Media Components\Encoder\wmcmd.vbs" -input "C:\Path to\Video_Only.avs" -a_input "C:\Path to\audio.avi" -output "C:\Path to\output.wmv" -v_bframedist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mode 2 -v_quality 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_codec wmapro -a_setting 384_48_6_16




Hi Oliver,

I have been using CBR encodes (10MBps) but wanted to try the new settings that have evolved over the past month with the VBS script. I'm not streaming on the XBOX360 as my primary since I have a Helios x5000...so I'm not concerned so much about the VBR issues that people have discussed.

I went back to the vbs and by process of elimination tried to figure out what the problem was with these parameters...

Summary:
-v_msrange 0: Not Supported Broadcast
-v_loopfilter 1: Choppy picture.

I did notice the setting of -v_performance 20. So you are going for speed while compromising quality? Or is that a relative term and quality really isn't impacted by this parameter??

zambelli
10th May 2007, 11:05
In light of being able to encode with WME and not VBS for the multichannel audio...what would be the cmd to call WME with input the to the 6 monos OR the file from Wave Combiner 9 alng with a profile I created?
That's essentially what the new -a_input parameter is for: it allows you to specify the combined 6ch audio AVI as input for the audio compression separate from the video source.

NHRaider
10th May 2007, 11:28
That's essentially what the new -a_input parameter is for: it allows you to specify the combined 6ch audio AVI as input for the audio compression separate from the video source.

Problem using the vbs cmd line is that I get an error...the 2 channel "-1xxxxx" error. But don't with the MWE on multipchannel.

Can the Stream Edit be called from the cmd line? If so, what are the inputs parameters? I haven't had any luck searching for that.

I've had problems in the past encoding both audio and video at the same time (out or memory error) so I've been using Stream Edit to mux them together. That was encoding CBR...I will try again with -v_mode 4 since you stated earlier that would take substantially less memory.

This is the script I will test unless someone has some comments about better settings:
cscript.exe "C:\Program Files\Windows Media Components\Encoder\wmcmd.vbs" -input "video\encode\video.avs" -output "output.wmv" -v_codec wmv9 -videoonly -v_mode 4 -v_bitrate 14000000 -v_peakbitrate 20000000 -v_peakbuffer 10000 -v_keydist 3 -v_mslevel 1 -v_performance 60 -v_bframedist 1 -v_bdeltaqp 1 -v_mmatch 0 -v_mvcost 1

I've removed the following 2 parameters since they seem to have issues with streaming on my Helios player.
-v_msrange 0: Not Supported Broadcast
-v_loopfilter 1: Choppy picture.

Edit:
Ok...Does this seem right? I started the encode script above and have these statistics:
Source duration retrieved: 7778.241 seconds.

======== Begin Pass1 ========
Read: 7778.2s (100%) Elapsed: 09:06:55 Left: 00:00:00 [0.24x]

======== Begin Pass2 ========
Encoded: 269.3s (3.5%) Elapsed: 02:07:19 Left: 59:10:24 [0.04x]


9 Hour first pass and 61 hours encoding? 70 hours!!!!

I was doing CBR 10Mbps and that was about 15 hours encoding.

What am I doing wrong here?

zambelli
11th May 2007, 04:29
Problem using the vbs cmd line is that I get an error...the 2 channel "-1xxxxx" error. But don't with the MWE on multipchannel.
Are you sure you don't have Ffdshow configured to decode raw PCM audio?
WME9 and WMCmd.vbs should be able to accept multichannel AVIs produced with wavavimux.exe directly, without any decoders. If that's not working for you - I would suspect something else is broken. I have an encode using a_input and multichannel wavavimux'ed AVI running at this very moment without any problems.

-v_bdeltaqp 1 -v_mvcost 1
You probably don't need these two. In order to know whether bdeltaqp would be useful you would first need to know the regular b-frame delta from the reference frame. Since you don't know that, it's hard to say whether bdeltaqp=1 would help or not.

I've removed the following 2 parameters since they seem to have issues with streaming on my Helios player.
-v_msrange 0: Not Supported Broadcast
-v_loopfilter 1: Choppy picture.
Sounds like the Helios player doesn't support extended MV range - which is wrong because it's a standard part of the VC-1 Main Profile spec. It really should.
Yes, the loop filter is expected to add overhead to the decoding process.

9 Hour first pass and 61 hours encoding? 70 hours!!!!

I was doing CBR 18Mbps and that was about 15 hours encoding.

What am I doing wrong here?
Didn't you also used to use v_performance 20 before? That would explain the encoding performance difference. 60 is two levels higher in encoding complexity.

What CPU do you have? How many cores?

shaolin95
11th May 2007, 05:10
So what is the advantage of using a higher v_performance?

zambelli
11th May 2007, 06:13
Higher v_performance uses higher encoder complexity which results in higher video quality. It's the tradeoff between speed and quality.

Most of this stuff is pretty well documented in wmcmd.vbs help.

shaolin95
11th May 2007, 06:48
Will check that thanks! :-)

NHRaider
11th May 2007, 13:29
Are you sure you don't have Ffdshow configured to decode raw PCM audio?
WME9 and WMCmd.vbs should be able to accept multichannel AVIs produced with wavavimux.exe directly, without any decoders. If that's not working for you - I would suspect something else is broken. I have an encode using a_input and multichannel wavavimux'ed AVI running at this very moment without any problems.


You probably don't need these two. In order to know whether bdeltaqp would be useful you would first need to know the regular b-frame delta from the reference frame. Since you don't know that, it's hard to say whether bdeltaqp=1 would help or not.


Sounds like the Helios player doesn't support extended MV range - which is wrong because it's a standard part of the VC-1 Main Profile spec. It really should.
Yes, the loop filter is expected to add overhead to the decoding process.


Didn't you also used to use v_performance 20 before? That would explain the encoding performance difference. 60 is two levels higher in encoding complexity.

What CPU do you have? How many cores?


I think the audio encoding problem stems from the Cineplayer DVD Encoder Options - it gives me a dll error changing from 2 channel. I checked the "use system settings" which is 5.1. I've had this problem all along where anything input other than 2 channel gives me this error. However, using WME it doesn't give me this "bad input error".

The helios player supports WMV9 and not WVC1. I assume that is the problem. I do have an XBOX 360 so I could still use that for these WMV HD but would prefer to use the Helios player so I can navigate and select all my movies in one place...

I used performance 20 before based on Oliver's script. I used -v_performance 60 as a placeholder (which is the script's default). I didn't realize that these changes would 4x the encoding time.

CBR 1Pass 14mbps seems to encode at .12x...while the 2 Pass VBR seems to encode at 0.04x.

I have a Dell Core 2 Duo Extreme (X6800) 2 CPUs @ 2.93 GHz. 4GB RAM.

Edit: After more testing...seems like CBR is the option since the Helios tells me that VBR in any form is an "Unsupported Broadcast"

So...by process of elimination it needs to be CBR...so...what does the 2nd pass give me besides a 5 hour wait before Encoding???

zambelli
12th May 2007, 04:15
I think the audio encoding problem stems from the Cineplayer DVD Encoder Options - it gives me a dll error changing from 2 channel. I checked the "use system settings" which is 5.1. I've had this problem all along where anything input other than 2 channel gives me this error. However, using WME it doesn't give me this "bad input error".
WME9 UI seems to be a little more resiliant to multichannel media types. I've been able to make it work, for example, with Fffdshow 6ch PCM output, whereas the same crashed in wmcmd.vbs (in ffdshow.ax). Wmcmd.vbs (and the SDK) seem to be much stricter about requiring 6ch input with valid WAVEFORMATEXTENSIBLE headers.

The helios player supports WMV9 and not WVC1. I assume that is the problem. I do have an XBOX 360 so I could still use that for these WMV HD but would prefer to use the Helios player so I can navigate and select all my movies in one place...
Like I said, loopfilter and extended MV range are both supported in WMV9 Main Profile. If the Helios player doesn't support that, then it's not a complete implementation of the WMV9/VC-1 Main Profile decoder.

So...by process of elimination it needs to be CBR...so...what does the 2nd pass give me besides a 5 hour wait before Encoding???[/B]
2 pass VBR provides better distribution of bits per frame. It has the advantage of knowing what the whole video looks like before making bitrate decisions.

It's expected that encoding times would be longer in 2-pass VBR mode. It shouldn't be more than 2x longer at equivalent settings though.

NHRaider
12th May 2007, 11:43
WME9 UI seems to be a little more resiliant to multichannel media types. I've been able to make it work, for example, with Fffdshow 6ch PCM output, whereas the same crashed in wmcmd.vbs (in ffdshow.ax). Wmcmd.vbs (and the SDK) seem to be much stricter about requiring 6ch input with valid WAVEFORMATEXTENSIBLE headers.


Like I said, loopfilter and extended MV range are both supported in WMV9 Main Profile. If the Helios player doesn't support that, then it's not a complete implementation of the WMV9/VC-1 Main Profile decoder.


2 pass VBR provides better distribution of bits per frame. It has the advantage of knowing what the whole video looks like before making bitrate decisions.

It's expected that encoding times would be longer in 2-pass VBR mode. It shouldn't be more than 2x longer at equivalent settings though.


At least for the audio I have a workaround until I fix the dll problem.

On the 2-Pass, I'm assuming that it's the same for CBR and VBR...you mentioned VBR in your explanaition but it seems I can't stream VBR. I'll try one more cycle through all the -v_mode options to finalize my encoding process..

BTW. on this latest test (19GB EVO) I used a 2-Pass CBR with -v_codec wmv9 -videoonly -v_Mode 1 -v_bitrate 20000000 -v_buffer 30000. I was expecting nearly the same files size, but at 74% of the second pass done it is only 10GB which at the same rate would only be 13.5GB. Is there something wrong?

nincollector
14th May 2007, 10:40
all of a sudden wavavimux is adding static to my mono wavs when making the audio.avi. they all playback fine separately. anyone else having this issue or know of whats wrong?

pneffkell
17th May 2007, 15:55
I know this is a little off topic but can someone direct me to a post on demuxing blu ray files.

Thanks

NHRaider
25th May 2007, 23:03
Not sure what's going on since I haven't encoded in a few weeks but now I'm getting this error testing an avs file...

Directshowsource("video.GRF", fps=23.976, audio=false, framecount=132000, seekzero=false, seek=true)

Directshowsource does not have a named argument "framecount" (C:\.......\video.avs, line 1)
I loaded AutoGK in the last week but don't know if that loaded a different version of avisynth or not...

Anyone come across this error???


Update: Error found. Seems AutoGK reverted my Avisynth from 2.5.7 to 2.5.

ABOOABOO
26th May 2007, 11:22
I have followed the guide for 5.1

it does all the files but i get error message

C:\Documents and Settings\bLaCk MaMbA\Desktop>wavavimux -o audio.avi -iwav 6 out
put-FL.wav output-FR.wav output-C.wav output-LFE.wav output-SL.wav output-SR.wav
-mask 63
'wavavimux' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\bLaCk MaMbA\Desktop>cscript.exe "C:\Program Files\Wind
ows Media Components\Encoder\wmcmd.vbs" -input "C:\Documents and Settings\bLaCk
MaMbA\Desktop\Video_Only.avs" -a_input "C:\Documents and Settings\bLaCk MaMbA\De
sktop\audio.avi" -output "C:\Documents and Settings\bLaCk MaMbA\Desktop\output.w
mv" -v_bframedist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mod
e 2 -v_quality 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_
codec wmapro -a_setting 384_48_6_16
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Audio Input Error: 0x35 - File not found

gzarkadas
26th May 2007, 15:34
...'wavavimux' is not recognized as an internal or external command,
operable program or batch file...

Perhaps wavavimux is not in your path.

1. Right-click "My Computer", select "Properties..." in the menu that appears, go to "Advanced" tab of the dialog that shows up and press the button "Environment Variables".

2. Then go to the "System Variables" listbox, click on the "Path" variable and press the Edit button (I don't use an english version, it may write something else, but in any case it is the middle of the three).

3. Read the entire string to see if the folder where wavavimux is listed there. If not you will have to add it at the end putting a ; character before the folder's full path.

If you don't know in which folder wavavimux is run Search.

...cscript.exe...Audio Input Error: 0x35 - File not found

This is the result of failing to run wavavimux in the previous step since it would generate the audio file that is now missing.

PS: I didn't answer to the other thread because the attachment still is pending for approval.

ABOOABOO
26th May 2007, 19:17
i have added this

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\Program Files\Samsung\Samsung PC Studio 3\;C:\Program Files\Common Files\Roxio Shared\DLLShared\; C:\Program Files\Windows Media Components\Tools\WAVAVIMUX\;C:\Program Files\Windows Media Components\Tools\

still dont work and comes with the same message

i have even rebooted the computer

C:\Documents and Settings\bLaCk MaMbA\Desktop>eac3to.exe "C:\Documents and Setti
ngs\bLaCk MaMbA\Desktop\FEATURE_1_FEATURE_2.DD+.stream.00.ddp" "C:\Documents and
Settings\bLaCk MaMbA\Desktop\output.wav"
E-AC3, 5.1 channels, 1:48:25, 1536kbit/s, 48khz
Muxing eac3 file to raw. Please wait...
The NCBENUM return code is: 0x0
The NCBENUM return code is: 0x0
Audio Decoder output was 24 bit this time.
Converting the raw file to wav. Please wait...
Done.

C:\Documents and Settings\bLaCk MaMbA\Desktop>tranzcode.exe "C:\Documents and Se
ttings\bLaCk MaMbA\Desktop\output.wav"
Input filename: [output.wav] (Multichannel Wave)
Input attribs: [Ext wav fmt, 6 ch, 24 bit, 48.0 kHz]
Output attribs: [PCM wav fmt, (6) x 1 ch, 24 bit, 48.0 kHz]
Output file(s): output-FL.wav
output-FR.wav
output-C.wav
output-LFE.wav
output-SL.wav
output-SR.wav
Processing: Completed. [in 10 mins, 0 secs]

C:\Documents and Settings\bLaCk MaMbA\Desktop>WAVAVIMUX -o audio.avi -iwav 6 out
put-FL.wav output-FR.wav output-C.wav output-LFE.wav output-SL.wav output-SR.wav
-mask 63
'WAVAVIMUX' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\bLaCk MaMbA\Desktop>cscript.exe "C:\Program Files\Wind
ows Media Components\Encoder\wmcmd.vbs" -input "C:\Documents and Settings\bLaCk
MaMbA\Desktop\Video_Only.avs" -a_input "C:\Documents and Settings\bLaCk MaMbA\De
sktop\audio.avi" -output "C:\Documents and Settings\bLaCk MaMbA\Desktop\output.w
mv" -v_bframedist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mod
e 2 -v_quality 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_
codec wmapro -a_setting 384_48_6_16
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Audio Input Error: 0x35 - File not found

ABOOABOO
26th May 2007, 21:24
Just copied the WAVAVIMUX in a few places and this is what i have got now

C:\Documents and Settings\bLaCk MaMbA\Desktop>eac3to.exe "C:\Documents and Setti
ngs\bLaCk MaMbA\Desktop\FEATURE_1_FEATURE_2.DD+.stream.00.ddp" "C:\Documents and
Settings\bLaCk MaMbA\Desktop\output.wav"
E-AC3, 5.1 channels, 1:48:25, 1536kbit/s, 48khz
Muxing eac3 file to raw. Please wait...
The NCBENUM return code is: 0x0
The NCBENUM return code is: 0x0
Audio Decoder output was 24 bit this time.
Converting the raw file to wav. Please wait...
Done.

C:\Documents and Settings\bLaCk MaMbA\Desktop>tranzcode.exe "C:\Documents and Se
ttings\bLaCk MaMbA\Desktop\output.wav"
Input filename: [output.wav] (Multichannel Wave)
Input attribs: [Ext wav fmt, 6 ch, 24 bit, 48.0 kHz]
Output attribs: [PCM wav fmt, (6) x 1 ch, 24 bit, 48.0 kHz]
Output file(s): output-FL.wav
output-FR.wav
output-C.wav
output-LFE.wav
output-SL.wav
output-SR.wav
Processing: Completed. [in 9 mins, 36 secs]

C:\Documents and Settings\bLaCk MaMbA\Desktop>WAVAVIMUX -o audio.avi -iwav 6 out
put-FL.wav output-FR.wav output-C.wav output-LFE.wav output-SL.wav output-SR.wav
-mask 63

C:\Documents and Settings\bLaCk MaMbA\Desktop>cscript.exe "C:\Program Files\Wind
ows Media Components\Encoder\wmcmd.vbs" -input "C:\Documents and Settings\bLaCk
MaMbA\Desktop\Video_Only.avs" -a_input "C:\Documents and Settings\bLaCk MaMbA\De
sktop\audio.avi" -output "C:\Documents and Settings\bLaCk MaMbA\Desktop\output.w
mv" -v_bframedist 1 -v_bdeltaqp 1 -v_mslevel 1 -v_codec wvc1 -v_keydist 3 -v_mod
e 2 -v_quality 96 -v_mmatch 0 -v_msrange 0 -v_performance 20 -v_loopfilter 1 -a_
codec wmapro -a_setting 384_48_6_16
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

The NCBENUM return code is: 0x0
ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_FeatureValue
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_FeatureValueMask
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_FeatureDisplayName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_PermissionToLaunch_Activation
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_TrialNagDelay
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_TrialNagFirstDelay
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ActivationValidityOffset
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ActivationValidityStartDate
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_HTMLFolderName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_HTMLFolderName_Reg
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_DialogWidth
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_DialogHeight
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ProductDisplayName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_EnhancedProductDisplayName
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

ContextException thrown by BaseCertificate::GetField [.\BaseCertificate.cpp:903]
with context
Field
SAR_ActivationMode
not found in certificate
C:\Program Files\Common Files\Roxio Shared\Certificates8\cp42ppg.rxc

The NCBENUM return code is: 0x0
The NCBENUM return code is: 0x0
The NCBENUM return code is: 0x0
Microsoft (R) Windows Media Encoder Command Line Script Utility
Copyright (C) Microsoft Corporation. All rights reserved.

Warning: Encoder failed to retrieve duration attribute from source plug-in.
Trying alternate method now...The NCBENUM return code is: 0x0

gzarkadas
26th May 2007, 22:02
wavavimux is now in your path since the batch file does not complain. The error shown is specific to the .vbs file, thus I cannot help you until the attachment in your post at this thread (http://forum.doom9.org/showthread.php?t=126196) is approved by a moderator.