AVIsynth guide (Using with FlasKMPEG and CCE)

The AVIsynth guide
by Rob & Jim

Part 1 : The Avisynth guide
Part 2 : Using with Adobe Premiere and TMPG
Part 3 : Using with FlasKMPEG (Xmpeg)
Part 4 : Using with FlasKMPEG and CCE

The official AVisynth home page is now maintained by Edwin at:

Rob has a great Avisynth experience:

Part 4 : Using with FlasKMPEG and CCE

This part is to describe and to help in using Avisynth Video Server with FlaskMPEG and CCE 2.6.2.

To get a good result beware of the video structure. Use ONLY progressive video for this manual. If you use interlaced video the result will be bad. You can see if what you recorded is interlaced or not with DVD2AVI -> Preview. It will give you all the info you want.

To follow and complete this manual use FlaskMPEG multipass XiS 3.0e and CCE SP262 and bbMPEG.

First start FlaskMPEG (the one for multipass encoding) and select File - Open Media and select the file you want to encode.

  image002  

Select File -> Open Media

Look at the video structure and notice the Aspect Ratio.

  image003  

Rigth click at the window to get the following screen.

  image005  

It is clear how to set the Start and the End position. After that you can add the current settings to a new job by pressing the Add to job list. By selecting a job, and choosing "Clear job from list" you can delete the job.  After that choose Run (Test it!) and choose the audio player.

image007

image009

Check Dynamic Range Compression to get a louder general volume.  Use the slider to set the volume level. Select the Dolby Surround downmix button. You want this to get a true Dolby Surround downmix. By available tracks you can select which track to encode.

Click OK to close the audio window. Right click again and select Run (etc) project options.

For the width choose the SVCD settings 480 and for the height choose 576 and the framerate must be 25 for a pal movie. iDCT options can be set to Auto en reconstruct progressive images can not be changed. This is only for NTSC movies.

When you are happy with your settings click the Audio tab to get the next window.

   
image011

If you want to decode the audio, deselect Same as input and select Decode Audio, select the 44100 option. CCE can’t downsample the audio frequency

If satisfied then click on Post Processing.

   
image013

Select YUY2 to make sure you have a fast communication between avisynth and CCE.

Deselect Keep aspect ratio and no crop and change the Height and Width to the settings seen on the picture.

 

 

 

 

Click here (red mark) to see if the settings are correct. The area which is marked will be the output of your film.

   
image016

The General Tab. Here is where you set the time to encode. Also possible to compile a number of frames.

1 second of a movie is made out of 25 pictures. Simple to calculate 1 hour. 25 * 60 * 60 = 90000 frames.

You must give Flask a time or a number of frames. When selecting "Compile whole movie" flask exports 300000 frames. That’s a lot of frames and your computer will be busy for a long time.

If Overlay etc is gray, your system doesn’t support it. It will be automatically selected if you choose YuY2 format at the Post Processing Tab. On some computers you must select it manually.

   

Click on OK to close the window and right click again at the Flaskmpeg control panel and choose the Run(etc) again to activate the Output Plugin Options.

You will see the next window.

 

image018

Select the AVIWrapper. Click on Audio Tab

   
image020

Select the Save to WAV to have an audio stream that you can mux with the videostream later.

Choose the General tab.

   
image022

DO NOT select the Random access !

If you want to make a film and burn the result on a CD you can split the output file by Split Source. Just fill in the number of seconds you want the file to be before Flask begins outputting to a new file. You can also cut the film afterwards with the multiplexer of BBMpeg during the multiplexing. This is easier.

For all the work Edwin did please support him and pay a little to get a Registrationcode and your popup before encoding will be gone. (Thanks Edwin)

Click OK to return to the Flask MPEG Panel

Right click on the Flask MPEG Panel and choose Run (etc) -> Start Conversion and minimize Flask MPEG. At this point you must start CCE SP 262.

You will see the next window.

  image024  
     
image026

Right click in the window and select the add button that you will see. Look for the IPCserver0.mpv and select it. Double click the new line to change the settings. We are going to make a VBR MPEG2 file so fill in the form as follows.

I came to the settings as follows. A total bitrate (video and Audio) of 2400. That’s what CCE can manage as max bitrate. An average of 1945. And a minimum bitrate of 0.

The more bitrate the better the movie and the bigger the file will be. For a good looking SVCD use at least 1850 kbits/sec for the avg.

   
image028

This is the the Video settings button.

Depending on the videosource you must deselect Upper Field first and select Progressive.

At the beginning of this manual you must check and remember the settings. If your video is interlaced you must select Upperfield first. If not deselect and select progressive frames.

Have a look at the Aspect Ratio and select the right one. Also remembered from the beginning.

   
image030

The GOP is ok. I don’t know which settings it must be but the GOP sequence is the same as from TMPGenc. That file runs fine with my DVD player.

 

   
image032

Choose the quality settings to change the setting. It will be OK for most of you. You can better the Image Quality Priority slidebar by dragging the header to Complex or Flat.

After this final step you must hit the OK button and then OK again and then hit the encode button. The conversion of your video file begins.

Sit back and wait.

When done you will have two files (there are more created but those are not important) which we must multiplex. Before multiplexing you must convert the audio (wave) file to an MP2 file. At Edwin's site, there is a little program called wav2mp which can convert the wave file to an mp2 file. This file can be muxed with the *.mpv file to create an SVCD compliant MPEG stream. Download the package at www.videtools.net

After converting the audiostream we must start bbMPEG. This can be the plugin file or the standalone version. You can also find this program at Edwin's site www.videtools.net . When the program is started just click on the Start Encoding button. After this click on settings and activate tab Input and output files. Select the video and the audio file just as in the picture.

image034

When done click on the Program Stream Settings to select the right program stream.

 

   
image036

Select the SVCD and click on OK.

With the bbMPEG plugin at Edwin's site, there is a default.ini which can be loaded at the tab load and save Settings. This way everything will be in order to multiplex.

After this click on the start button to activate the multiplexing.

When multiplexing is done the file can be burned with Nero.

Well that’s it folks.

 


Credits:

A word for Edwin who did all the programming of the Premiere/Flask plugins. If you like the plugins, please make a little donation so he can proceed his work.

Authors: Rob and Jim (October 31, 2001 - Version 4)
Correct English: Stan