Escolar Documentos
Profissional Documentos
Cultura Documentos
1. Introduction 1
3. A Demo Project 7
3.1. Add a Source to your Project . . . . . . . . . . . . . . . . . . . . . . 7
3.2. Add Scenes and Transitions to your Project . . . . . . . . . . . . . . 9
3.3. The Scenes List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.4. Assign Filter Chains and Transition Effects . . . . . . . . . . . . . . 14
3.5. Moving of Scenes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.6. Filter Chain Presets . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.7. Previews of Scenes and Filter Chain Presets . . . . . . . . . . . . . . 18
3.8. Compare Filter Chain Presets . . . . . . . . . . . . . . . . . . . . . . 18
3.9. The Bitrate Calculator . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.10. The Video Encoders: CCE, HC-Encoder and x264 . . . . . . . . . . . 22
3.11. SoundOut . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4. Miscellaneous Features 26
4.1. The Project Notice Dialog Window . . . . . . . . . . . . . . . . . . . 26
4.2. The Encoded Scenes Overview Dialog Window . . . . . . . . . . . . . 26
4.3. The Encoded Project Filter Chain Presets Overview Dialog Window . . 28
4.4. Preview Encoded Project Filter Chain Presets . . . . . . . . . . . . . 28
A. Internet Addresses 31
Bibliography 35
Index 36
List of Figures 38
List of Tables 39
iii
1. Introduction
This guide doesn’t cover all aspects of AVStoMPEG. It should only give you a first
aid, how to use this software.
AVStoMPEG is a tool for video cutting, filtering and encoding. It uses Avisynth for
the cutting and filtering part and HC-Encoder 1 , CCE 2 and x264 3 for the encoding
part. It provides a graphical user interface for many Avisynth Plugins4 as well as
versatile video previews with the possibility to compare a filtered or encoded video
with the original video. More details will be described in the following chapters.
1
A free MPEG-2 video encoder. The use of HC-Encoder is optional, but recommended.
2
CCE is an abbreviation for CINEMA CRAFT® Encoder, a commercial MPEG-2 video encoder.
The use of CCE is optional.
3
An open source MPEG-4 AVC video encoder. The use of x264 is optional, but recommended.
4
The user can insert his own Avisynth scripts or some lines of Avisynth script code in a filter chain,
too.
1
2. Installation and the first Start
2.1. Installation Process
Start the AVStoMPEG\v13.xxxx.xxxx.xxxx_Complete_Setup.exe. You will see the
Welcome dialog window (Figure 2.1 on page 3). Click the Next button. The following
dialog window shows you the readme text (Figure 2.2 on page 3). You should read
this text before you check the radiobutton to accept the license agreement and click
the Next button. On the next dialog window (Figure 2.3 on page 4) you can choose
which components you want to install:
HC-Encoder A free high quality MPEG-2 video encoder1 . Install this, if you want
to encode your videos as MPEG-2 files and it isn’t already installed on your
system.
x264 A free open source high quality MPEG-4 AVC video encoder2 . Install this,
if you want to encode your videos as MPEG-4 AVC files and it isn’t already
installed on your system.
DGIndex Necessary to prepare3 MPEG-2 source files4 . Install this, if you have
MPEG-2 source files and it isn’t already installed on your system.
DGAVCIndex Necessary to prepare5 MPEG-4 source files6 . Install this, if you have
MPEG-4 source files and it isn’t already installed on your system.
Avisynth A very powerful tool for video post-production7 . You need this, if it isn’t al-
ready installed on your system! I recommend, to read the article on Wikipedia8
to get an overview of Avisynth.
1
Homepage HC-Encoder http://www.bitburners.com/HC_Encoder/
2
Homepage x264 http://x264.nl/
3
DGIndex generates index files (used for previews) and optionally demultiplexes MPEG-2 encoded
files.
4
Homepage DGIndex http://neuron2.net/dgmpgdec/dgmpgdec.html
5
DGAVCIndex generates index files (used for previews) and optionally demultiplexes MPEG-4
encoded files.
6
Homepage DGAVCIndex http://neuron2.net/dgavcdec/dgavcdec.html
7
Homepage Avisynth http://avisynth.org/mediawiki/Main_Page
8
Avisynth article on Wikipedia: http://en.wikipedia.org/wiki/AviSynth
2
2. Installation and the first Start
3
2. Installation and the first Start
All supported Avisynth Plugins All needed Avisynth Plugins. You need these Plug-
ins. If you don’t want to install them now: AVStoMPEG’s about dialog window
shows you which Avisynth Plugins (and which versions of them) are supported.
Helix YUV-Codecs You need this codec, if you want to preview videos in YV12
color space and you don’t have already an appropriate codec installed on your
system.
Make your decision, then click the Next button. This dialog window (Figure 2.4 on
page 5) allows you to choose an install directory. AVStoMPEG, HC-Encoder, x264 ,
DGIndex and DGAVCIndex will be installed in that directory, whereas Avisynth
and the Helix YUV-Codecs have separate installers that allow you to choose other
directories. Click the Install button, to start the installation process.
4
2. Installation and the first Start
Table 2.1.: Overview of needed Components for different MPEG Source Types
Source Type Needed Software Component
MPEG-2 DGIndex
MPEG-4 AVC DGAVCIndex
MPEG-2 videos, you should check use DGIndex. If your sources include MPEG-4
AVC videos, you should check use DGAVCIndex. Check use Media Player 9 , if you
want to preview and play encoded scenes. The AVStoMPEG projects directory will
be the directory in which AVStoMPEG saves your projects. Encoded files will be
saved in the subdirectory Output. Restart AVStoMPEG after you changed one or
more paths in this dialog window. For an overview of needed software components
see tables 2.1 and 2.2.
9
The selected Media Player must be able to play MPEG-2 and MPEG-4 files. I recommend
SMPlayerhttp://smplayer.sourceforge.net/.
Table 2.2.: Overview of needed Components for different MPEG output File Types
Output Type Needed Software Component
MPEG-2 HC-Encoder (or CCE)
MPEG-4 AVC x264
5
2. Installation and the first Start
6
3. A Demo Project
Start AVStoMPEG. In the toolbar click the button New Project . In the following
dialog window (Figure 3.1 on page 7) type a name for your project1 and click OK.
Now you will see some information about your new project on the Project tab: the
name of your project, the directory where it is saved, the frame count and the scene
count. Until now you have no scenes added to your project, so your frame count is
0. But this will soon change!
1
A project name must be a valid filename.
8
Homepage MediaInfo http://mediainfo.sourceforge.net/en
7
3. A Demo Project
Table 3.1.: Supported File Types for the Avisynth Source Filters
Source Filter Source File Types
AVISource *.avi
AVCSource *.264, *.H264, *.avc, *.m2t, *.m2ts, *.mts, *.tp, *.ts, *.trp
DirectShowSource2 *.3gp, *.avi, *.m2ts, *.m2v, *.mkv, *.mov, *.mp4, *.mpg,
*.mpv, *.vob, *.wmv
MPEG2Source *.vob, *.mpg, *.mpeg, *.m1v, *.m2v, *.mpv
FFVideoSource3 *.avi, *.flv, *.m4v, *.mkv, *.mov, *.mp4, *.mpg, *.vob,
*.wmv
QTInput4 *.m4v, *.mov, *.mp4
bassAudioSource5 *.aac, *.ac3, *.aiff, *.ape, *.flac, *.m4a, *.mp2, *.mp3,
*.ogg, *.wav, *.wma, *.wv
NicAudio *.ac3, *.aiff, *.au, *.bwf, *.caf, *.dts, *.mpa, *.mp1, *.mp2,
*.mp3, *.lpcm, *.raw, *.rf64, *.wav, *.w64
6
FFAudioSource *.ac3, *.avi, *.flv, *.m4a, *.mov, *.mp2, *.mp3, *.mp4,
*.mpg, *.wmv
WAVSource *.wav
7
ImageSource *.bmp, *.jpg, *.png, *.tif, *.tiff
8
3. A Demo Project
9
3. A Demo Project
10
3. A Demo Project
11
3. A Demo Project
12
3. A Demo Project
13
3. A Demo Project
to assign transition effects, too. More details about filter chains and transition effects
are described in Section 3.4. Another interesting column in the Scenes List is the
Notice column. This column is editable. So you can insert a descriptive text that lets
you easily identify a scene later. The Info column informs you, when a filter chain or
transition effect has been assigned. The Source Type and Source File columns inform
you about the source file, from which you cut a scene and which source filter you use.
The Dest. Properties and Source Properties columns show some important properties
of your scenes. If you want to assign a transition between two scenes, or if you later
want to concatenate two encoded scenes, you can immediately decide, if two scenes
fit together. If some properties of a scene have to be adjusted, you can adjust the
assigned filter chain.
11
The same applies to transition effects of scene transitions.
14
3. A Demo Project
and assign a new filter chain to the first scene. Select the tab Filter Chain (Figure
3.7 on page 16) . On the left side of this tab is a groupbox with two controls:
Active Filter Chain listview This is a list of filters of the current filter chain.
Double click on Avisynth Functions and Plugins in the Available Filters treeview
to expand the list of available filter categories. Then double click on Denoisers.
This will show the available denoising filters. All entries of this category are blue
colored and end with (Plugin). This means, that these filters are available through
Avisynth Plugins. Avisynth built-in filters are simply green colored. You may expand
the category Color Space Conversions to check this. Now double click the entry
FFT3DFilter (Plugin). The entry will immediately be added to the Active Filter
Chain list and dissapears from the Available Filters treeview. The parameters tab
of FFT3DFilter will be activated and shown. You can adjust them, until you are
satisfied with the result. Don’t forget to save your filter chain, before you preview
your video! I suggest, you save it as a Project Filter Chain Preset. Later, when you
are satisfied with the result, you can assign it to the checked scene(s) of the Scenes
List. If you created a filter chain, from which you think it might be useful for your
later projects, you can save it as a Global Filter Chain Preset or copy it to the Global
Filter Chain Presets, too. For more details see Section 3.6.
15
3. A Demo Project
16
3. A Demo Project
17
3. A Demo Project
This will close this dialog window. The preset list should now contain your preset
as a new entry. If you wish, you can change the name of a preset later by clicking
on it with the right mouse button. A context menu will appear (Figure 3.10 on page
19). Click Edit selected Filter Chain Preset Name and Description. With the context
menu you can also copy or move a selected filter chain preset from one list to another
and your can view an Avisynth script of a selected filter chain preset. Beside this,
you can encode Project Filter Chain Presets with CCE or HC-Encoder as a MPEG-2
file or with x264 as a MPEG-4 AVC file. The column Encoder shows you, if a preset
has already been encoded. This option enables you to show a preview of an encoded
filter chain before you assign it to a scene. If you are satisfied with the result of your
filtered scene, you can directly assign an encoded preset to the scene, to which it
belongs via the context menu.
18
3. A Demo Project
19
3. A Demo Project
20
3. A Demo Project
21
3. A Demo Project
Filter Chain. Then adjust its parameter Saturation to the value 9 and click the New
button in the Project Filter Chain Presets groupbox. Give it a meaningful name,
e.g. My Tweak filter chain and save it. Now we will compare this filter chain with
the filter chain preset that we created in chapter Section 3.6 on page 15. Set the
checkboxes in the first column of the Project Filter Chain Presets list checked for
the two preset rows My Tweak filter chain and My first filter chain 14 . The second
column now should contain two new entries: Left Side15 and Right Side 16 . You will
recognize, that the toolbar button is enabled now. Click this button now to show
the preview dialog window. This window is very similar to the window we saw, when
we compared our assigned filter chain to the unfiltered source video. There are no
new controls on it, so you should be familiar with it.
Project Filter Chain Preset files are saved in a project’s directory, are only visible
when the project is loaded and can be encoded. Global Filter Chain Preset files are
available for every project, but before you can encode a Global Filter Chain Preset,
you will have to copy it to the Project Filter Chain Presets datagrid. This is the
difference between the Global Filter Chain Presets and Project Filter Chain Presets.
A comparison of two Global Filter Chain Presets works in the same way as to compare
two Project Filter Chain Presets.
14
This works apparently for every other Project Filter Chain Preset.
15
The scene filtered by this filter chain will be shown in the left frame in the preview dialog window.
16
The scene filtered by this filter chain will be shown in the right frame in the preview dialog
window.
17
DVD 5, DVD 9...
22
3. A Demo Project
software, whereas HC-Encoder is free. Both encoders are able to produce videos of
very high quality. HC-Encoder has the limitation that it only supports YV12 color
space videos as input but has the advantage that it allows the output of videos with
HD resolution up to 1080p and it supports bitrates up to 35 Mbit/s. If you decide to
encode a scene with HC-Encoder, you have to make sure, that it is in YV12 color space
after it passes the last filter of its assigned filter chain. If you have CCE installed, and
an assigned filter chain allows a fast processing, you might decide to use CCE, because
it is significantly faster than HC-Encoder. If you need extremely low bitrates, you
might want to use the x264 encoder. This encoder is much slower than the MPEG-2
encoders, but produces very good video quality, even for extremely low bitrates. x264
encodes videos as MPEG-418 H.26419 raw bytestream files. These files are not DVD
compatible, but to encode your videos as a MPEG-4 files might be a good choice, if
you want to upload them to the Internet. The encoder settings depend on your filtered
video and the later usage of your video. You may save some filter chains as Project
Filter Chain Presets and encode them with different parameter settings20 before you
assign a preset ultimately to a scene. After adjusting the encoding parameters, you
can start the encoding process. There are three splitbuttons in the toolbar. One
for CCE , one for HC-Encoder and one for the x264 encoder. All of
them allow you to encode the checked scene(s) as single videos. If you checked e.g. 6
scenes, you will get 6 videos. This enables you to do batch encoding, e.g. if you have
several completely different videos and all must be encoded as MPEG-2 or MPEG-4
18
For more information about MPEG-4 see [2].
19
For further information about the H.264/AVC Advanced Video Coding Standard see [7] and [3].
20
If you need some good advice, there is a good forum on Doom 9 http://www.doom9.org. The
developer of HC-Encoder (Doom 9 forum member name: hank315 ) uses this forum, too.
23
3. A Demo Project
24
3. A Demo Project
videos.
3.11. SoundOut
If SoundOut is activated for a scene of your Scenes List and this scene is selected, the
SoundOut tab is activated. This allows you to specify the audio output format and to
adjust the available parameters for the audio track of this scene. If you encode a scene
as described in Section 3.10 on page 22, the audio part of the scene will be encoded
automatically. But in some cases it might be useful to encode the audio part of a
scene separately. To export the audio part of a scene, click the toolbar button ,
this will save the audio output in the in the project’s subdirectory Output. SoundOut
is not available for Project Filter Chain Presets. That means, if you encode a Project
Filter Chain Preset for a preview and later decide to assign this filter chain to a
scene, you will have to export the audio part separately.
25
4. Miscellaneous Features
4.1. The Project Notice Dialog Window
Especially for large projects, you may want to save some general notices about your
project. You can do this by clicking the toolbar button . This will show the Project
Notice dialog window , which enables you to save some plain text. This dialog window
is non-modal dialog window, that means you can leave this window open during you
work on your project.
1
For audio parts this should not be necessary, because audio encoding is much faster than video
encoding.
2
The frame counts are not equal, if transitions are in use.
3
A media player must have been configured in the AVStoMPEG Options dialog window.
26
4. Miscellaneous Features
27
4. Miscellaneous Features
4
The following players have been tested: VLC Media Player, MPlayer, Media Player Classic -
Home Cinema, Windows Media Player with NVIDIA DVD Decoder. I recommend MPlayer
with SMPlayer GUI.
5
A media player must have been configured in the AVStoMPEG Options dialog window.
6
The entries of the red cells show the name(s) of the encoder(s) that encoded a preset.
7
This will delete the encoded file, but not the Project Filter Chain Preset.
28
4. Miscellaneous Features
Figure 4.3.: Encoded Project Filter Chain Presets - Overview Dialog Window
29
4. Miscellaneous Features
options click Preview Options.... This will show the Preview Encoded Scene - Options
dialog window (Figure 4.5 on page 30).
30
A. Internet Addresses
31
A. Internet Addresses
32
B. Main Window Toolbar Reference
33
B. Main Window Toolbar Reference
34
Bibliography
[1] Mauricio Alvarez, Esther Salamí, Alex Ramirez, and Mateo Valero. A performance
characterization of high definition digital video decoding using H.264/AVC. IN
WORKLOAD CHARACTERIZATION SYMPOSIUM, 2005. PROCEEDINGS
OF THE IEEE INTERNATIONAL, 2005:24—33, 2005.
[2] Hari Kalva, Lai tee Cheok, and Alexandros Eleftheriadis. MPEG-4 systems and
applications. DEMONSTRATION, ACM MULTIMEDIA ’99, 1999.
[3] Maxine Lee and Alex Moore Group. 1 introduction h.264 encoder design. 2006.
[4] Olivia Nemethova and Michal Ries. Quality assessment for h.264 coded Low-Rate
and low-Resolution video sequences. PROC. OF CONFERENCE ON INTER-
NET AND INFORMATION TECHNOLOGIES, pages 136—140, 2004.
[6] Gary J Sullivan, Senior Member, Ieee, and Thomas Wiegand. Video compression
- from concepts to the H.264/AVC standard. PROCEEDINGS OF THE IEEE,
93:18—31, 2005.
[7] Gary J Sullivan, Pankaj Topiwala, and Ajay Luthra. The H.264/AVC advanced
video coding standard: Overview and introduction to the fidelity range extensions.
SPIE CONFERENCE ON APPLICATIONS OF DIGITAL IMAGE PROCESS-
ING XXVII, 5558:454—474, 2004.
[8] Xiaosong Zhou, Eric Q Li, and Yen kuang Chen. Implementation of h.264 decoder
on General-Purpose processors with media instructions. IN PROCEEDINGS OF
SPIE CONFERENCE ON IMAGE AND VIDEO COMMUNICATIONS AND
PROCESSING, 5022:224—235, 2003.
35
Index
1080p, 23 FFT3DFilter, 15
Filter, 7, 9, 15–19, 22, 23, 25, 28–30
AVC, 1, 2, 4, 5, 18, 23 filter, 9, 14, 15, 18, 22, 23
AVISource, 7 filter’s, 18
Avisynth, 1, 2, 4, 9, 15, 18 Filtered, 21
Avisynth, 4 filtered, 1, 18, 22, 23
batch, 23 filtering, 1, 18
Bitrate, 22, 23 filters, 9, 15
bitrate, 22, 23 Global, 22
bitrates, 23
H.264, 23
CCE, 1, 4, 5, 18, 22, 23 HC-Encoder, 1, 2, 4, 5, 18, 22, 23
Codec HD, 23
codec, 4
Codecs, 4 Internet, 23
Color Space, 15
Concatenate, 26 Left Side, 22
concatenated, 26 Media Player, 5, 28
Decoder, 28 media player, 26, 28
decoding, 28 Media Player Classic, 28
demultiplex, 2 MPEG-2, 1, 2, 4, 5, 18, 22, 23, 26, 28
DGAVCIndex, 2, 4, 5 MPEG-4, 1, 2, 4, 5, 18, 22, 23, 28
DGIndex, 2, 4, 5 MPlayer, 28
disc, 22 Notice, 14, 26
DVD, 23, 26, 28 notices, 26
Encoder, 18, 22, 24, 26, 28 NVIDIA, 28
encode, 2, 18, 22, 23, 25, 26 Options, 4
Encoded, 5, 26–30 Output, 5, 25
encoded, 1, 2, 18, 23, 26, 28
encoder, 2, 22, 23, 28 Preset, 15, 17, 18, 22, 28, 30
Encoders, 28 Preset, 25
encoders, 23 preset, 18, 22, 28
encodes, 23 Presets, 15, 17–19, 22, 23, 28, 29
encoding, 1, 23, 26 presets, 28
36
Index
Right Side, 22
Transition, 9
transition, 9, 14
transition effect, 9, 14
transition effects, 14
Transitions, 26
transitions, 14, 26
VLC, 28
Wikipedia, 2
Windows Media Player, 28
x264, 2, 4, 5, 18, 23
YV12, 4, 23
37
List of Figures
2.1. Setup: Welcome Dialog Window . . . . . . . . . . . . . . . . . . . . . 3
2.2. Setup: Read me Dialog Window . . . . . . . . . . . . . . . . . . . . . 3
2.3. Setup: Choose Components to Install . . . . . . . . . . . . . . . . . . 4
2.4. Setup: Choose Installation Directory . . . . . . . . . . . . . . . . . . 5
2.5. AVStoMPEG Options Dialog Window . . . . . . . . . . . . . . . . . 6
38
List of Tables
2.1. Overview of needed Components for different MPEG Source Types . 5
2.2. Overview of needed Components for different MPEG output File Types 5
39