most closely related to (and recognized as) DivX 5/6 for compatibility purposes.
The AVI container can contain many different video formats. MPEG-4/DivX/XviD is(are) one of them, but is
overwhelmingly prevalent over all other types.
Easy Settings One-by-One
320 Pixels Wide
By default, VisualHub will create an AVI with the same image size as the original video. By checking this box, VisualHub
will constrain the video to 320 pixels across, scaling proportionally. 320x240 is a standard video resolution for medium-
quality Internet distribution.
Quality
If visual quality isn't as important as just getting the message across, you can set the quality slider to "Low". If the video
demands the absolute best quality possible, choose "High" or "Go Nuts". "Go Nuts" sets a data rate near the maximum
quality of the codec. This setting may take over 5 times as much space as "Standard", but will look nominally better.
Profile
A sizable number of devices, such as handheld video players and DVD players will also play AVI/DivX video. Many are
"DivX Certified" up to a certain image/file size threshold. Check the playback abilities of your device and choose
accordingly. "DivX Home Theater" reaches the full resolution of standard definition video. "DivX Portable" is meant for
handheld players and can be near standard definition quality. "Simple Profile" is compatible with nearly all devices that
play DivX. “Best Compatibility” will play on Windows with no codecs necessary. “Wii” is a special format that will play in
the Photo Channel of a Nintendo Wii. Videos are stored and played back from a SD card.
18
Chapter 7:
MP4
"In this world of 'my codec is better than yours' -- this codec is better."
- Frank Casanova, 2004
19
What Is It?
A modern container format, used with MPEG-4 and H.264 video.
What Plays It?
QuickTime, VLC, some portable players.
More Information
The MP4 container gets its heritage from the QuickTime .mov container. Its native video
formats are MPEG-4 and H.264 (also known as AVC), with AAC audio.
Easy Settings One-by-One
320 pixels wide
By default, VisualHub will create a MP4 file with the same image size as the original video. By checking this box,
VisualHub will constrain the video to 320 pixels across, scaling proportionally. 320x240 is a standard video resolution for
medium-quality Internet distribution.
Quality
If visual quality isn't as important as just getting the message across, you can set the quality slider to "Low". If the video
demands the absolute best quality possible, choose "High" or "Go Nuts". "Go Nuts" sets a data rate near the maximum
attainable quality of the codec. This setting may take over 5 times as much space as "Standard", but will look nominally
better.
The 56K setting will create a file that can stream in realtime over a 56K modem.
H.264 Encoding
H.264 is a newer, more advanced video compression type. Videos compressed with H.264 will look better than the
default MPEG-4 counterparts and take up less disk space. Of course, there's a catch. It takes much longer to compress
to H.264 than MPEG-4. H.264 videos compressed under the MP4 tab are "Main Profile" with one b-frame.
Hint for streaming
This option may be useful to webmasters looking to post completed videos online. Checking this box will create hinted
tracks in the finished video. Hinted tracks allow internet streaming of a video via QuickTime/Darwin Streaming Server. By
default, MP4 videos created by VisualHub are "FastStart" and will begin to play as they are downloaded from a web
server, aka, Progressive Download. Hinted streaming videos never get stored on the downloading user's computer - they
download and play back in real time with no option to save.
20
Chapter 8:
WMV
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod."
- Steve Ballmer, April 2006
21
What Is It?
A Microsoft-created video container format.
What Plays It?
Windows Media Player on Windows, Flip4Mac and Popwire WMV decoders on Mac,
VLC, Xbox360, some portable devices.
More Information
The WMV format is Microsoft's video format for both local use and internet streaming.
The ASF and WMV formats are nearly identical, with just the file extension differentiating the two. VisualHub uses the
WMV8 video codec and WMA9 audio codec.
Easy Settings One-by-One
320 pixels wide
By default, VisualHub will create a WMV file with the same image size as the original video. By checking this box,
VisualHub will constrain the video to 320 pixels across, scaling proportionally. 320x240 is a standard video resolution for
medium-quality Internet distribution.
Quality
If visual quality isn't as important as just getting the message across, you can set the quality slider to "Low". If the video
demands the best quality possible, choose "High" or "Go Nuts". "Go Nuts" sets a data rate near the maximum attainable
quality of the codec. This setting may take over 5 times as much space as "Standard", but will look nominally better.
The 56K setting will create a file that can stream in realtime over a 56K modem.
Compatibility
WMV files created by VisualHub can be played with the following:
Mac OS X with QuickTime Windows Media plugins (Flip4Mac, Popwire). Windows Media Player 9:Mac is unsupported.
Windows 98/Me/2000/XP/Vista with Windows Media Player 7 and up.
Xbox360 with Fall 2006 Update
VLC and MPlayer-based software on any platform.
Playback compatiblity and quality on any other platforms may vary.
Xbox360 Playback
As of the 2006 Xbox fall firmware update, the Xbox360 gained the ability to play back WMV video files accessed in a
variety of different methods:
CDs/DVDs, USB Hard Drives, USB Flash Drives, Microsoft Windows Connect,and Nullriver’s Connect360.
WMVs created by VisualHub can be played back on the Xbox360 by any of these methods.
22
Chapter 9:
MPEG
”The basic scheme is to predict motion from frame to frame in the temporal direction,
and then to use DCT's (discrete cosine transforms) to organize the redundancy in the
spatial directions.
luminance (Y) channel on 16x16 blocks
that you are trying to code, you look for a close match to that block in a previous or future frame
(there are backward prediction modes where later frames are sent first to allow interpolating
between frames).
the close match) are quantized, which means that you divide them by some value to drop bits off the bottom
end. Hopefully, many of the coefficients will then end up being zero.The quantization can change for every
"macroblock" (a macroblock is 16x16 of Y and the corresponding 8x8's in both U and V).
include the DCT coefficients, the motion vectors, and the quantization parameters (and other stuff) is Huffman coded using fixed tables.
The DCT coefficients have a special Huffman table that is two-dimensional in that one code specifies a run-length of zeros and the nonzero value that ended the run. Also, the motion vectors and the DC DCT components are DPCM, (subtracted from the last one) coded.”
The DCT's are done on 8x8 blocks, and the motion prediction is done in the
. In other words, given the 16x16 block in the current frame
The DCT coefficients (of either the actual data, or the difference between this block and
The results of all of this, which
--Berkeley Multimedia Research Center MPEG-1 Document
23
What Is It?
A legacy format supported by virtually all computers.
What Plays It?
Some standalone devices, some DVD players, every computer after 1996.
More Information
MPEG video was created in the early 1990s as a worldwide standard for digital video. It
lives on in many forms today. MPEG video can be played by nearly every computer
without special software, plugins, or codecs needed.
Easy Settings One-by-One
NTSC/PAL
There are two major television formats in the world. NTSC and PAL.
NTSC stands for "North American Television Standards Committee", and as expected from the title, this format is used in
North America. It is also the native format of Japan and northwest South America.
PAL stands for "Phase Alternating Line", and as expected from the title, tells you absolutely nothing helpful, leaving you
lost and confused. It's the format used in the rest of the world, including Europe, Asia, Africa, Australia, and most of
South America. People in Antarctica are too cold to watch TV.
Consult this map for more details: http://en.wikipedia.org/wiki/Image:NTSC-PAL-SECAM.png
For the purpose of MPEG video, SECAM and PAL are identical.
Quality
If visual quality isn't as important as just getting the message across, you can set the quality slider to "Low" or "Tiny". If
the video demands the absolute best quality possible, choose "High" or "Go Nuts". "Go Nuts" sets a data rate near the
maximum attainable quality of the codec. This setting may take over 5 times as much space as "Standard", but will look
nominally better.
This is a personal preference. "Standard" is good for the majority of users and video types. The rest is up to you.
MPEG-2 Encoding
MPEG-2 is a revision to the MPEG format. DVDs use a specialized set of MPEG-2 settings. Don't use this unless you
know why you have to.
24
MPEG Profiles
There are hundreds of devices that use MPEG video to some extent, all with their own specific settings needs. VisualHub
has presets for some of the more popular device formats.
VCD
Creates an MPEG file conforming to the strict VCD 1.1 specifications. VCD was an MPEG-derived format popular in Asia,
and playable by many DVD players.
SVCD
Creates an MPEG file conforming to the SVCD specifications. SVCD was an MPEG2-derived format created by China as
an alternative to the DVD format. It’s playable in some DVD players.
CVD
Creates an MPEG file conforming to the CVD specifications. CVD was an MPEG2-derived format created by China along
with SVCD as an alternative to the DVD format. SVCD won. CVD is still popular with some people, as it’s very similar(and
sometimes drop-in-compatible) to the DVD format. It’s playable in some DVD players.
TiVo
Creates an MPEG file conforming to the specifications
of the TiVo Series 2 DVR. TiVos use an MPEG2-
derived format. Files created by a TiVo unit are
encrypted to only work on specific devices. Standard
MPEG-2 videos formatted specially are able to be
placed onto the TiVo using TiVo Desktop.
You must be running TiVo Desktop 1.9.3 to use this
TiVoGoBack feature.
Run the TiVoGoBack Enabler included in the VisualHub
Disk Image to turn this feature on. You can set the
folder where your TiVo will find converted videos using
the TiVo Desktop System Preferences pane. See the
TiVoGoBack ReadMe for detailed information.
Transport Stream
Creates an MPEG-2 file in a Transport Stream (.ts) container. Many digital TV decoders receive transport streams.
HDTV 720p
Creates an MPEG transport stream conforming to the ATSC HDTV 720p60/50 format. This can be fed to a FireWireequipped HDTV decoder using the freeware VirtualDVHS program.
HDTV 1080i
Creates an MPEG transport stream conforming to the ATSC HDTV 1080i30/25 format. This can be fed to a FireWire-
equipped HDTV decoder using the freeware VirtualDVHS program.
25
Chapter 10:
Flash
"People are all the time asking me, "Mike, how do you do those stupid voices for your
dumb animal characters?", and I say, "I'm Mike. Matt does the voices."
- Mike Chapman
26
What Is It?
A Macromedia and Sorenson-created video format commonly found in Macromedia
Flash .swf files. Used by Google Video and YouTube
What Plays It?
Macromedia/Adobe Flash web browser plugin for all formats, VLC.
More Information
Flash 6 included a video codec to go along with MP3 audio to allow simple video to be
embedded in .swf files. In recent months, its use has exploded due to its inclusion in Google Video and YouTube, among
other community video sites. It's mainly geared towards web playback, due to the limited support outside web browsers.
VisualHub supports the version of Flash video used in Flash 6 and 7.
Easy Settings One-by-One
320 pixels wide
By default, VisualHub will create a Flash .swf file with the same image size as the original video. By checking this box,
VisualHub will constrain the video to 320 pixels across, scaling proportionally. 320x240 is a standard video resolution for
medium-quality Internet distribution.
Quality
If visual quality isn't as important as just getting the message across, you can set the quality slider to "Low". If the video
demands the absolute best quality possible, choose "High" or "Go Nuts". "Go Nuts" sets a data rate near the maximum
attainable quality of the codec. This setting may take over 5 times as much space as "Standard", but will look nominally
better.
The 56K setting will create a file that can stream in realtime over a 56K modem.
Raw .flv format
The default .swf format will automatically play in a web browser as it loads. A raw .flv file is not recognized as-is by the
Flash plugin. It requires a third-party .swf wrapper for playback. Webmasters may choose a raw .flv format if they already
have a flash video-based infrastructure in place.
Specialized Controls
The .swf files outputted by VisualHub automatically play and loop. In order to provide more control, such as Play/Pause
buttons, it’s necessary to output in raw .flv format and use a FLV player solution, such as this:
Xgrid Admin can be used to monitor the activity of your Xgrid cluster.
What Xgrid can’t do
Xgrid Encoding in VisualHub can’t convert QuickTime reference movies. Reference movies use video resources from
•
many locations on a hard drive and can’t be transferred.
Files over 4GB will not be correctly converted.
•
The TwoPass option is ignored.
•
Any packages for video files, such as .iMovieProject and .eyetv files aren’t supported.
•
Conversion from DVD discs or VIDEO_TS folders either won’t work, work slowly, or wear down your DVD drive.
•
32
Chapter 13:
Tidbits
"But the most important rule, the rule you can never forget, no matter how much he cries
or how much he begs...never, never feed him after midnight. Got it?"
- Gremlins, 1984
33
Video Stitching
Video Stitching = Combining all the files in the video list into one massive file big enough to tell your grandkids about.
Stiching is available for the iPod, DV, MP4, AVI, and MPEG formats, and is enabled by selecting the “Stitch Videos
Together” checkbox in the main window.
Important: Every file that is going to be stitched together must have the SAME characteristics as all the other files. This
means the same resolution, framerate and audio quality. To ensure this, it’s best to set these characteristics manually in
the Advanced drawer.
Conversion from DVD
VisualHub is able to read and convert the Main Title from either a VIDEO_TS folder or a non-protected DVD. DVDs that
you’d buy at the store are more likely to be protected - meaning they block regular attempts at copying. You will need to
use DVD ripping software to pull the entire VIDEO_TS folder (or one big .vob file) before VisualHub is able to convert the
video. If the DVD has multiple audio tracks, VisualHub will prompt you with a list as it’s preparing for conversion.
Post-Conversion Actions
VisualHub can perform a few tasks after conversion completes to help people automate things (a little) better. These
actions are located in the “When Done:” pulldown menu on the main window.
Open Enclosing Folder
This will open a new Finder window with the contents of the folder listed in the “Save To” field. If blank, this will open the
folder containing the last-converted file.
Quit VisualHub
Self-explanatory.
Set Computer to Sleep
Will put the computer into Sleep/Suspend mode. Tapping a key on the keyboard or clicking the mouse will wake it up.
Shut Down Computer
Will initiate a shutdown. If there are any unsaved documents open in other applications, the shutdown will cancel.
Pause/Resume Conversion
You may want to pause conversion in VisualHub if you’re running other CPU-intensive programs, or if your laptop starts
burning your crotch. This can be accomplished through the File menu.
You shouldn’t quit VisualHub if you’ve paused conversions until you resume and complete/cancel them. Also, the Time
Remaining indicator will show an inaccurate estimate for the remainder of the file you’re currently converting.
Preferences
Under the VisualHub menu, click “Preferences...”
Low CPU Priority
By default, VisualHub's processing is no more and no less important than every other task on your computer.
Checking this box will make VisualHub "nice", and only use resources that would otherwise be idle.
Default Save Location
Changing this will change the “Save To” field on launch. Leave it blank to use the converted file’s original location.
Turn off Xgrid Controller
This will deactivate the Xgrid Controller process and disable its launch on startup.
Play Sound When Complete
Normally, VisualHub plays a “ding” sound when conversion completes. Uncheck this box to effectively silence VisualHub.
34
Chapter 14:
Troubleshooting
"Son, you tried your hardest and failed miserably. The lesson is: Never try."
- Homer J. Simpson
35
Hey, my video’s out of sync. What gives?
Sometimes, a video file will get out of sync during conversion. It’s usually more noticeable near the end of the video. Two
possible ways to solve this:
1.Switch decoding methods. In the Advanced panel, check the “Force” box and try converting with QuickTime or
ffmpeg Decoding. If your file is a QuickTime movie, try ffmpeg Decoding. if not, try QuickTime Decoding. Both
methods have a different way to keep audio sync and one may work better than the other.
Type “-async 1” into the “Extra ffmpeg Flags” text field in the Advanced panel’s video section. This is yet another
sync method that may work better on some files.
I want to convert a DVD I bought.
That’s not a question.
Converting straight from most purchased DVDs is an entirely different beast. VisualHub can convert unencrypted, or
unprotected DVDs. Files on most store-bought DVD are encrypted (protected). You would need a program to break
through the encryption before the DVD files could be read by VisualHub.
What’s with all these lines in my converted video?
Those are “interlacing” artifacts. Interlacing, in 10 words or less, was a good idea in 1940,
but a horrible idea now. Home movies from a DV camera, or certain DVD footage may
demonstrate interlacing. If your video has these lines, Click the “Deinterlace” checkbox on
the Advanced panel.
How can I speed up VisualHub?
1.Hide the VisualHub window. Progress bars in Mac OS X can use a surprising amount of CPU. Hiding or
minimizing the VisualHub window will prevent the bar from updating.
2.Check for other programs hogging up the processor. Open Activity Monitor in /Applications/Utilities/. There,
you can sort by “% CPU” to see what programs are the most active. VisualHub’s main conversion process is
“ffmpeg” (movtoy4m helps for QuickTime files).
Quit open programs that aren’t vital.
3.For QuickTime files, force ffmpeg Decoding.
QuickTime files use a different decoding method that’s slower, but provides maximum compatibility. Try checking the
“Force” box in the Advanced panel and choose “ffmpeg Decoding” for a potential speed boost. It won’t work well on
all files though.
None of this is helping! What do I do?
Take it easy. Help is a few clicks and some panicked typing away.
Go to the Techspansion Forums and check the Knowledge Base
for some frequently-asked questions. If that doesn’t help, post a
topic in the Support forum.
The log VisualHub offers at the end of encoding is very helpful when solving problems.
Archived log files are available at ~/Library/Logs/Techspansion in your home folder.
http://www.techspansion.com/forums/
36
Chapter 15:
Appendix
"...But what I'd really like to do is drive a flaming bus through a wall of TVs with a stick of
dynamite strapped to my head."
- Pinky, Rocko’s Modern Life
37
(vermiform appendix)
38
Appendix A:
Cheat Codes
"The arcade version of Gradius is really difficult, right? I never played it that much, and
there was no way I could finish the game, so I inserted the so-called Konami code
(laughs)."
- Kazuhisa Hashimoto
39
What in the world is a “cheat code”? How do I rescue the princess?
A “cheat code” in this sense is a very advanced setting for people who want to go above and beyond the GUI. A cheat
code could also be a way to use VisualHub in strange, horrible ways.
Many Cheat Codes are selectable from the Advanced panel. All cheat codes should go in the “Extra ffmpeg Flags”
section in the Advanced drawer unless otherwise noted.