Fade Effect in Subtitles with Muxman


The fade effect is used to apply a transitional effect on subtitles. It changes the contrast but not the color of subtitles. A common use of the fade effect allows subtitles to fade in or fade out with a scene. An example of this is seen here. This fade out effect was made with Muxman with help from Aegisub for the subtitles and timing. This tutorial will show you how to create these fade effects.


Software used

Aegisub

Avisynth 2.5

DGIndex

Muxman Professional

Notepad

Procedure

Download the latest Avisynth 2.5 and install it. Also, download the latest DGIndex which is part of the DGMPGDec package and extract its contents to a directory. Now demux your DVD with PgcDemux. Start DGIndex, select File > Open, and select the video file (m2v file) that was created when you demuxed your DVD. You should see some video on the screen. Next, select File > Save Project and type in a name for the index file (d2v file). Wait a few minutes for the program to index the video file. Finally, close DGIndex when the indicator on the time line reaches the end.

DGIndex after Opening a Video File

DGIndex after Opening a Video File

Now, we need to create a script file for Avisynth. Start Notepad and copy the text below into it. Replace the “…” with the path to the location of the file. Save the text file with the file extension “avs”.

LoadPlugin(“...\DGDecode.dll”)
MPEG2Source(“...\VideoFile.d2v”)
Avisynth Script File for This Tutorial

Avisynth Script File for This Tutorial

Start Aegisub and load your subtitle script. Load your Avisynth script file (avs file) as your video file through the menu Video > Open Video. Next, select the line number that you want to apply the fade effect. For a fade in, the subtitle will go from being transparent to opaque. A fade out is the opposite as it goes from opaque to transparent. Decide which effect(s) you want to use on that subtitle.

Fade Out in Aegisub

First, switch the display to Frame instead of Time. With the line still selected, advance the video one frame at a time until you see the video start to fade out or become transparent. Remember that frame number. Move the video forward and backward to verify that you have selected the correct frame. Now subtract the current frame from the End Time in frames of that line. The difference will be the duration of the fade out in frames. Write down this number for the fade out unless you want to repeat the whole process again. I usually write it as a comment on the same line number in Aegisub.

Determining the Duration of a Fade Out in Aegisub

Determining the Duration of a Fade Out in Aegisub

In the example above, the fade out in the video begins at frame 138. The current line ends at frame 151. Subtract 138 from 151, which is 13, to get the duration of the fade out. I also put 13 frames for the fade out as a comment by putting my note between the curly brackets.

Fade In in Aegisub

First, switch the display to Frame instead of Time. With the line still selected, advance the video one frame at a time until the video becomes entirely solid and no other transparencies are visible. Remember that frame number. Move the video forward and backward to verify that you have selected the correct frame. Now subtract the Start Time in frames of that line from the current frame. The difference will be the duration of the fade in in frames. Write down this number for the fade in unless you want to repeat the whole process again. I usually write it as a comment on the same line number in Aegisub.

Determining the Duration of a Fade In in Aegisub

Determining the Duration of a Fade In in Aegisub

In the example above, the fade in in the video stops at frame 126. The current line starts at frame 112. Subtract 112 from 126, which is 14, to get the duration of the fade in. I also put 14 frames for the fade in as a comment by putting my note between the curly brackets.

After determining the durations for the fade in and fade out effects on your subtitles, export the script in the ssa file type. Process it in MaestroSBT with your desired options (Timing, Styles, etc.) but set the rendering to the File Format Script of .sst (Scenarist) and Bitmaps to Windows BMP 4 bits (compressed). In Muxman Professional, load your video, audio, chapters, and subtitle files and set their properties (Language, Extension, Delay, etc.) as usual.

Muxman Professional Version

Muxman Professional Version

In the SubPictures section, select the stream you want to add the fade effect to and then click on the “manage” button. In the “Subpicture Multi-File Manager” window, double click on the subpicture that corresponds to the line number in Aegisub that you determined the number of frames earlier for the fade in, fade out, or both. In the “Subpicture Conversion Values” window, select Controls > Buttons / Highlights / Effects. The title of the window should change to “View Subs, Edit Effects, Edit Buttons”. Now, focus on the lower-right part of the window.

“View Subs, Edit Effects, Edit Buttons” Window

“View Subs, Edit Effects, Edit Buttons” Window

Fade Out in Muxman

Select “Fade” as the effect. Set the “to” to transparent by clicking on the down arrows. Notice the corresponding color in the subpicture in the preview will disappear when it has been set to transparent. Set the duration to number frames you determined earlier in Aegisub. Also, set the delay to the negative equivalent of the duration of frames since you want the effect to start the same number of frames before the end of that subpicture. Finally, click the “+Add” button. The fade effect you just created should now be in the included in the “Effect” dropdown box. Close the window and repeat for the other subpictures.

13 Frame Fade Out

13 Frame Fade Out

The above example has the subpicture fading out from opaque to transparent. It starts 13 frames before the end and lasts for 13 frames. The fade out effect will end at the same time as the subpicture leaves the screen on the DVD.

Fade In in Muxman

First, set the “Initial color” to transparent by clicking on the down arrows. Notice the corresponding color in the subpicture in the preview will disappear when it has been set to transparent. Next, select “Fade” as the effect. Set the “to” to opaque by clicking on the up arrows. Notice the corresponding color in the subpicture in the preview will become opaque this time. Set the duration to number frames you determined earlier in Aegisub. Set the delay to 0 so that the effect starts as soon as the subpicture begins. Finally, click the “+Add” button. The fade effect you just created should now be in the included in the “Effect” dropdown box. Close the window and repeat for the other subpictures.

14 Frame Fade In

14 Frame Fade In

The above example has the subpicture fading in from transparent to opaque. The fade in effect will start as soon as the subpicture is displayed on the screen. It will last for 14 frames.

After closing the “View Subs, Edit Effects, Edit Buttons” window, on the “Subpicture Multi-File Manager” window, there should be an “E” after the subpicture name when an effect has been applied. Close this window and repeat the process of adding the fade effects to the other streams. Finally, start the muxing process after applying all your fade effects.

SubPicture Multi-File Manager after an Effect Has Been Applied

SubPicture Multi-File Manager after an Effect Has Been Applied

Enjoy having the fade in and fade out effects on your subtitles.

Notes

  • Try not to use more than 20 frames for any fade effect as there are only 16 opacity levels in the DVD-Video specification. Slow fades will likely show some visible “stepping.”
  • When applying both a fade in and fade out to the same subpicture, add the fade in effect first. Then add the fade out effect afterwards.
Advertisements

3 thoughts on “Fade Effect in Subtitles with Muxman

  1. Thanks radkongo. I think this’ll come in really handy.
    One question; I assume this effect is for the whole bmp file?
    I ask as I have a DVD now where I have a sign which could use this effect, but while the sign is still displayed, dialogue subs appear.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s