E. Encoding

After exporting your AMV from the editing software using UtVideo RGB video codec, it is recommended that you use AviSynth to handle the color space conversion to YUV. If your video is standard definition you will need to use the Rec.601 and if your video is high definition you will need to use Rec.709. Using the incorrect color matrix will affect how the colors are displayed during playback. AMVtool will auto select the proper color matrix, however AviSynth color conversions are slightly better than what FFMPEG produces. Mac users that wish to use AviSynth will need to recontainer their exported lossless MOV into an AVI container.

Need the software mentioned in this guide? Visit the Setup Guide for more information.

Recontainer Lossless MOV to AVI (Optional)

  1. Open the AMVtool software.
  2. In the main window click the “Add” button.
  3. Select the AMV.mov file and click Open.
    (NOTE: If you have more than one file to recontainer, make sure to add them all before proceeding!)
  4. In the main window click the “Configure All” button.
  5. In the Configure dialog box click the “Recontainer” button.
  6. In the “Audio Option” pop-up click “Yes”.
  7. In the “Settings Changed” pop-up click “OK”.
  8. In the main window click the “START” button.
  9. Once the process finishes you can exit the AMVtool application.

Result:
You will have AMV.avi to use with an AviSynth script.

Setup AviSynth Script (Optional)

  1. Open AvsPmod then go to File > New tab and then go to File > Save script as…
  2. Browse to the directory where the AMV.avi is located then save the script as AMV.avs.
  3. In AvsPmod use one of the following examples:
    Standard Definition Example

    #Input video
    AviSource("AMV.avi")
    #Changes color space to YV12 using the Rec.601 color matrix
    ConvertToYV12(matrix="Rec601")

    High Definition Example

    #Input video
    AviSource("AMV.avi")
    #Changes color space to YV12 using the Rec.709 color matrix
    ConvertToYV12(matrix="Rec709")

    (NOTE: It is important when converting the video’s color space to YV12 for encoding that you use the proper color matrix so that the colors will be decoded properly during playback.)

  4. Go to File > Save script, then close AvsPmod.

Result:
You will have AMV.avs to use with encoding software.

Encoding

  1. Open the AMVtool software.
  2. In the main window click the “Add” button.
  3. Browse to the folder where AMV.avi, AMV.avs, or AVI.mov is located, select it, and click Open.
    (NOTE: If you have more than one file to convert, make sure to add them all before proceeding!)
  4. Click the “START” button.
  5. Once the process finishes you can exit the AMVtool application.

Result:
You will have AMV.mp4