Bardill.net :: Current Photographs / Gallery / Tools & Projects / Old blog // bardill@gmail.com

How to create high quality MPEG-2 movies for your Koss DVP2161

This tutorial presents an alternate method of creating movies than VCD/SVCD for the Koss DVP2161. The advantages of not using VCD/SVCD are: you can use a multisession disc (rewriting files!), the quality is higher, and you can play the files on any computer without DVD software.
Table of contents
Koss DVP2161 Specifications
  • NTSC or PAL
  • Component output
  • S-Video output
  • Composite output
  • Widescreen TV output (optional)
  • AC-3 5.1 PCM optical output (no DTS output)
  • Stereo headphone jack
  • Kodak Picture CD/JPEG slideshow (filesize up to 4 MB). Rotation or zooming of image.
  • MP3 (VBR) playback
  • MPEG (1 & 2) playback
  • Reads ISO CD, CDR, CDRW, region 1 DVD, DVD+-R
  • VCD, SVCD, XVCD playback
  • Small size: 7" x 5" x 1", 4 pounds
  • More infomation
Background
The main feature I like about the Koss is JPEG slideshows. Like many other people, I have a digital camera and love to show my pictures on the television. I thought it would be great to burn a CD full of JPEGs for my parents as a gift. Indeed, the slideshow quality is impressive, but I wanted more. So I decided to create movies of my digital photos with music, transitions, text, and narrations.

First I tried creating Video CD (VCD) and Super Video CD (SVCD). I could only get Nero to burn one VCD and the quality was horrendous. Another thing I disliked is once you've burned the VCD/SVCD, you can't rewrite the disc. I love to use CDRs and add and delete files to my discs by "continuing the session."

Requirements
1) Movie renderer
  I prefer Vegas Video 3 over Adobe Premiere 6.5 for several reasons. The output quality is superior, the interface is cleaner and more responsive, it doesn't crash, it's more intuitive, and its real time preview is much better than Premiere's.

>> So go ahead and download a trial of Vegas Video 3.

2) MPEG encoder
  This is a program to compress your rendered output into something the DVP2161 can play.

>> Download the shareware version of TMPGenc, with 30 day trial MPEG-2 encoding.

3) Tons of hard disk space
Video type (1 minute 352x288 @ 29.97 fps) Size (MB)
uncompressed video, no sound536
uncompressed video with uncompressed sound725
MPEG-2 compressed video with MP3 128kBit/s compressed sound32
Creating a nice movie
Fade from black to an opening title
Fade from black to an opening title

You can always spot an amateur video designer, they use all the crazy transitions like a Powerpoint presentation on crack. Here's my advice to make a professional looking video: Keep It Simple.

  • Use a crossfade/additive desolve to peacefully transition from one scene to the next.
  • If you want to show the viewer that the segment is ending, use a fade.
  • Don't use a transition when a simple cut from one scene to another will work.
Let the Crossfade, Fade, and Cut be your friends

Music: add something that fits the mood of your video.

Image panning: A very effective method to show the details of image. Most documentaries (and E! True Hollywood Story) use this effect when displaying a photo.

With that in mind, create your movie with still photos, other movies, and music. Read this tutorial how to animate still images in Vegas Video. Be sure to add titles and/or narration. More Vegas tutorials.

Rendering the movie
Here are the settings I use in Vegas Video to create high quality output. If you use another non-linear editor, try to keep these same settings.

Video and Audio settings
Video format:Uncompressed AVI
Video rendering quality:Best
Motion blur:None
Frame size:352x288
Frame rate:29.970 (NTSC)
Field order:None (progressive scan) (Very important!)*
Interleave every:0.250 seconds
Interleave every frame:Yes or No, doesn't matter to size or quality (I think)
Pixel ratio:1.000
Audio format:PCM uncompressed 44,100 Hz, 16-bit, Stereo audio
* This can be found in Premiere's Export Movie Settings' Keyframing and Rendering dialog.

Importance of Field order
These are actual screen captures of a 1MB still photo being simultaneously zoomed out and panned.
Field order off (progressive scan)Field order on

Go ahead and render your movie. It will take a long time, and a lot of disk space.

Encoding the movie

Before encoding

Copy the text below into Notepad. Save the file as "Koss DVP2161.mcf" in your TMPGEnc\template folder.

object TMPEGConfigFile
  MPEG.Text = ''
  MPEG.WizardCategoryName = ''
  MPEG.WizardSubFormatName = ''
  MPEG.WizardCaption = ''
  MPEG.WizardDescription = ''
  MPEG.OutputStreamType = MPEG_OutputStreamType_System_VideoAudio
  MPEG.OutputStreamType_ReadOnly = False
  MPEG.Video.StreamType = MPEGVideoEncoder_StreamType_MPEG2
  MPEG.Video.StreamType_ReadOnly = False
  MPEG.Video.Width = 352
  MPEG.Video.Width_ReadOnly = False
  MPEG.Video.Height = 288
  MPEG.Video.Height_ReadOnly = False
  MPEG.Video.YUVFormat = 1
  MPEG.Video.YUVFormat_ReadOnly = False
  MPEG.Video.DC_prec = 0
  MPEG.Video.DC_prec_ReadOnly = False
  MPEG.Video.VideoEncodeMode = MPEGVideoEncoder_VideoEncodeMode_Progressive
  MPEG.Video.VideoEncodeMode_ReadOnly = False
  MPEG.Video.FrameRate = 4
  MPEG.Video.FrameRate_ReadOnly = False
  MPEG.Video.AspectRatio = 2
  MPEG.Video.AspectRatio_ReadOnly = False
  MPEG.Video.RateControlMode = MPEGVideoEncoder_RateControlMode_VBR_Manual
  MPEG.Video.RateControlMode_ReadOnly = False
  MPEG.Video.MaxBitRate = 0
  MPEG.Video.MaxBitRate_ReadOnly = False
  MPEG.Video.MinBitRate = 0
  MPEG.Video.MinBitRate_ReadOnly = False
  MPEG.Video.CBR_BitRate = 1000000
  MPEG.Video.VBR_MultipassVBRAlgorithm = MPEGVideoEncoder_MultipassVBRAlgorithm_2PASS
  MPEG.Video.VBR_AvgBitRate = 1150000
  MPEG.Video.VBR_MaxBitRate = 3000000
  MPEG.Video.VBR_MinBitRate = 300000
  MPEG.Video.VBR_MaxPassCount = 0
  MPEG.Video.VBR_Quality_P = 0
  MPEG.Video.VBR_Quality_B = 20
  MPEG.Video.VBR_EnablePadding = False
  MPEG.Video.MVBR_MaxBitRate = 5000000
  MPEG.Video.MVBR_MinBitRate = 3000000
  MPEG.Video.MVBR_Quality_P = 0
  MPEG.Video.MVBR_Quality_B = 20
  MPEG.Video.MVBR_EnablePadding = False
  MPEG.Video.AVBR_Quality = 50
  MPEG.Video.AVBR_MaxBitRate = 3000000
  MPEG.Video.AVBR_MinBitRate = 0
  MPEG.Video.AVBR_EnablePadding = False
  MPEG.Video.CQ_Quality = 50
  MPEG.Video.CQ_Quality_P = 0
  MPEG.Video.CQ_Quality_B = 20
  MPEG.Video.CQ_MaxBitRate = 3000000
  MPEG.Video.CQ_MinBitRate = 0
  MPEG.Video.CQ_EnablePadding = False
  MPEG.Video.VBVBufferSize = 0
  MPEG.Video.VBVBufferSize_ReadOnly = False
  MPEG.Video.GOP_SeqHeaderInterval = 0
  MPEG.Video.GOP_SeqHeaderInterval_ReadOnly = False
  MPEG.Video.GOP_I_FrameCount = 1
  MPEG.Video.GOP_I_FrameCount_ReadOnly = False
  MPEG.Video.GOP_P_FrameCount = 5
  MPEG.Video.GOP_P_FrameCount_ReadOnly = False
  MPEG.Video.GOP_B_FrameCount = 2
  MPEG.Video.GOP_B_FrameCount_ReadOnly = False
  MPEG.Video.GOP_BitStreamForEdit = False
  MPEG.Video.GOP_BitStreamForEdit_ReadOnly = False
  MPEG.Video.GOP_MaxFrameCount = 0
  MPEG.Video.GOP_MaxFrameCount_ReadOnly = False
  MPEG.Video.QuantizeMatrix_Intra_ReadOnly = False
  MPEG.Video.QuantizeMatrix_NonIntra_ReadOnly = False
  MPEG.Video.Profile = 4
  MPEG.Video.Profile_ReadOnly = False
  MPEG.Video.Level = 8
  MPEG.Video.Level_ReadOnly = False
  MPEG.Video.VideoFormat = 1
  MPEG.Video.VideoFormat_ReadOnly = False
  MPEG.Video.DisplayWidth = 0
  MPEG.Video.DisplayWidth_ReadOnly = False
  MPEG.Video.DisplayHeight = 0
  MPEG.Video.DisplayHeight_ReadOnly = False
  MPEG.Video.MotionSearchSpeed = MPEGVideoEncoder_MotionSearchSpeed_HighCQ
  MPEG.Video.MotionSearch_AlwaysHalfPel = True
  MPEG.Video.UseFloatDCT = False
  MPEG.Video.QuantizeMode = False
  MPEG.Video.QuantizeModeVal_Intra = 35
  MPEG.Video.QuantizeModeVal_NonIntra = 35
  MPEG.Video.YUVBasicYCbCr = False
  MPEG.Video.QuantizeMatrix_Intra = {
    081013161A1B1D22101016181B1D222513161A1B1D22222616161A1B1D222528
    161A1B1D202328301A1B1D202328303A1A1B1D22262E38451B1D23262E384553}
  MPEG.Video.QuantizeMatrix_NonIntra = {
    1011121314151617111213141516171812131415161718191314151617181A1B
    14151617191A1B1C151617181A1B1C1E1617181A1B1C1E1F1718191B1C1E1F21}
  MPEG.Audio.StreamType = MPEGAudioEncoder_StreamType_MPEG1_Layer2
  MPEG.Audio.StreamType_ReadOnly = False
  MPEG.Audio.SamplingFrequency = 44100
  MPEG.Audio.SamplingFrequency_ReadOnly = False
  MPEG.Audio.ChannelMode = 0
  MPEG.Audio.ChannelMode_ReadOnly = False
  MPEG.Audio.CantUseMono = False
  MPEG.Audio.BitRate = 128000
  MPEG.Audio.BitRate_ReadOnly = False
  MPEG.Audio.CalcCRC = False
  MPEG.Audio.CalcCRC_ReadOnly = False
  MPEG.Audio.OriginalFlag = False
  MPEG.Audio.OriginalFlag_ReadOnly = False
  MPEG.Audio.CopyrightFlag = False
  MPEG.Audio.CopyrightFlag_ReadOnly = False
  MPEG.Audio.PrivateFlag = False
  MPEG.Audio.PrivateFlag_ReadOnly = False
  MPEG.Audio.EmphasisType = 0
  MPEG.Audio.EmphasisType_ReadOnly = False
  MPEG.System.StreamType = MPEGSystemEncoder_StreamType_MPEG2_Program
  MPEG.System.StreamType_ReadOnly = False
  MPEG.System.CommentText = ''
  MPEG.System.EnableCommentText = False
end

Encoding

  1. Open TMPEnc.
  2. Click on "Video source Browse" button. Open the AVI you just rendered.
  3. If your video had sound, then TMPGEnc will choose a Stream Type of "System (Video+Audio)". If your video didn't have sound, click "System (Video only)". This will make the file smaller.
  4. Change the Output filename's extension from ".m2v" to ".mpg". Make sure the output directory exists.
  5. Click the "Load" button in the bottom right corner. Open the template file "Koss DVP2161.mcf" that you just saved from Notepad. To confirm, you should see
    MPEG-2 352x288 29.97fps MVBR 5000kbps, Layer-2 44100Hz 128kbps
    at the very bottom of TMPGEnc. (Note: you don't have to reload the template file again, unless you click on the "Setting" button and mess things up.)
  6. Click the "Start" button to convert the uncompressed video into MPEG-2.
Burning the movie(s) to CD
I use Ahead's Nero, but it's not required. Any CD burning software can do this:
  • If you are creating a new CD, start a multisession disc. Otherwise, continue a mutisession disc.
  • Drag your .mpg files to your compilation.
  • Burn the disc, but don't finalize the CD!
Playing the movies
Put the disc in. You will be presented with the folder view of the disc, including any MPGs, which will have a red icon. Press Enter on the file you wish to watch.