Thursday, March 29, 2018

PE: More On Applied Effects/Project Keying Options (Completion)

INTRODUCTION

Back in 2016 (See HERE), details and examples were promised for each of the following Keying Effects
  • Image Matte Key
  • Luma Key
  • Remove Matte
  • RGB Difference Key
ISSUE
At the end of that 2016 thread, I wrote
WORK IN PROGRESS - Incomplete Blog Post As Of July 31, 2016.
The RESULTS section details, explanations, and graphics are being worked on and are expected to be posted in this blog post soon. Apologize for the posting delay, and thanks for your patience. 
As of today (March 11, 2018), that thread remains waiting to be completed. Today's blog post will do the completion of that July 31, 2016 blog post which is titled "PE: More About Applied Effects/Project Keying Options".

FINDINGS 

Image Matte Key

In these recent explorations the Image Matte Key essential details for creating and defining area of transparency in an image are

  • Gradient Tool in Photoshop Elements was used to create the matte which defined the area of transparency in the Video Track 2 image. The matte which is shown in Figure 1 was saved as a .psd file to the computer Desktop. 
  • Two jpg photos were imported into the Premiere Elements project. One (Image A) was placed on Video Track 1 (See Figure 3), and the other (Image B) was placed on Video Track 2 (See Figure 2). Image Matte Key was dragged from the Effects/Keying area into Image B on Video Track 2.
  • Next, with Image B on Video Track 2 selected/highlighted, edit effects was opened to get to the Setup icon in the top of edit effects/Image Matte Key panel. Setup there was used to import/open the matte.psd from its hard drive save location (Desktop in this case) directly into the image on Video Track 2. Results were finalized with editing area Image Matte Key settings: Composite Using = Matte Luma and no check mark next to Reverse. Embellishments specific to this example included Video Track 2 image Opacity set to 77.5% and Blend Mode set a Multiply. See Figure 4 for final results.

Do not try to use Add Media/Files and Folders to import the matte.psd into the project instead of the Setup route in the Image Matte Key panel in the editing effects area. In contrast, with the Track Matte Key it was possible to get the same result as described here for Image Matte Key, but the Timeline structure was different from that of the Image Matte Key Setup route. In the Track Matte Key way, the end Timeline video track structure was
  • matte.psd on Video Track 3 - .psd was imported into project via Add Media/Files and Folders
  • Image B on Video Track 2 with Track Matte applied (edit effect settings: Matte = Video 3, Composite Using = Matte Luma, and no check mark next to Reverse).
  • Image A on Video Track 1

Figure 1. Matte.psd Applied To Image B Using Editing Area/Image Matte Key Panel's Setup Icon.


Figure 2. Image B For Video Track 2.
Figure 3. Image A For Video Track 1.


Figure 4. Image Matte Key, Aiming For A Depth Of Field Look

Luma Key

In the Adobe document for Premiere Elements Effects Reference,  Adobe writes that the Luma Key Effect keys out all the regions of a layer with a specified luminance or brightness. In these recent explorations Luma Key essential details for creating and defining area of transparency in an image are
  • For an example of possible use of Luma Key in project, a logo on a solid white background was created in Photoshop Elements and saved to the computer Desktop as a .psd file. (See Figure 5)
  • The .psd file was imported into Premiere Elements using its Add Media/Files and Folders option, and the .psd file was dragged to Timeline Video Track 2.
Luma Key was dragged from Effects/Keying area directly into the .psd file (Image B) on Video Track 2. The editing of this Luma Key effect was done in the editing effects area/opened Luma Key panel using the 2 sliders there for adjusting out the white and leaving the designed logo on a transparent background (See Figure 7). In this example, aim was to use logo on a transparent background with a watermark look. The need for the Luma Key Effect in this case could have been eliminated if the logo.psd had been created on a transparent background in Photoshop Elements and saved as .psd for later use in the Premiere Elements project. The way taken was just a quick route to demonstrate Luma Key creating transparency in image and possible use for the end product.

Resources for Luma Key work included

Figure 5. Image B Used As Video Track 2 Source. Luma Key Applied Here Via Add Media/Files And Folders Route.


Figure 6. Image A Used As Video Track 1 Source. This Is The Jpg Image Used To Display Through Logo.psd Transparency Which Was Used To Replace The Original Background Color White With Transparency. 

Figure 7. Luma Key. Premiere Elements Expert Workspace Final Structure And Settings For The Luma Key Example.

Remove Matte Key 

Use of the Remove Matte Key is supposed to address unwanted edge effects seen in the video editor after color keying (background color to transparency) in clip that was created as a premultiplied alpha type. A better perspective/confirmation related to this edge situation is best gained by viewing these edges at video editor monitor resolution = 400%.

Basically, clips created with transparency information stored in visible RGB channels as well as Alpha channel are referred to as premultiplied. Typically these are clips with object on a solid color background. After a video editor keying processing of the premultiplied clip (colored background to transparency), color fringes might be seen around the foreground object of interest. Also, in this video editor color keying process, concern may exist for what happens to drop shadows and glows which were applied to the clip in its creation as the premultiplied type.

Adobe describes Remove Matte Key in its Effects Reference document as follows

The Remove Matte effect removes color fringes from clips that are premultiplied with a color. It is useful when combining alpha channels with fill textures from separate files. If you import footage with a premultiplied alpha channel, you may need to remove halos from an image. Halos are caused by a large contrast between the image's color and the background, or matte, color. Removing or changing the color of the matte can remove the halos.
Choose the color of the matte from the Matte Type menu.

Some insights into issues associated with creation of premultiplied clips and their subsequent use in a video editor keying process can be found HERE (section on Premultiplied vs. Straight Alpha Channels).

The RGB Difference Matte explorations will include cases where applying Remove Matte was not the answer to dealing with edge fringe encountered after keying in the video editor.  

RGB Difference Matte

RGB Difference Matte is Windows only under the keying effects, and it is described by Adobe as a "simpler version of Chroma Key effect". See HERE. 

RGB Difference Matte settings include
Color
Similarity
Smoothing
Mask Only
Drop Shadow


compared to

Chroma Key settings which include
Color
Similarity
Blend
Threshold
Smoothing
Mask Only

One exploration in the recent work looked at comparison of edges on yellow star on green background after taking green background to transparency using RGB Difference Matte, Chroma Key, Difference Matte, or Green Screen Key. Note was made if addition of Remove Matte Key (Matte: White or Black) helped or did help the quality of the star edges on its new background.

RGB Difference Matte
Figure 8. RGB Difference Matte Settings. Yellow Star Edges After Its Green Background Was Taken To Transparency With RGB Difference Matte And Its Background Replaced. Note: Subsequent Use Of Remove Matte (Matte: Black) Did Not Improve Quality Of Yellow Star Edges.
Chroma Key
Figure 9. Chroma Key Settings. Yellow Star Edges After Its Green Background Was Taken To Transparency With Chroma Key And Its Background Replaced. Note: Subsequent Use Of Remove Matte (Matte: Black) Seemed To Improve Slightly Quality Of Yellow Star Edges.
Difference Matte Key
Figure 10. Difference Matte Key Settings. Yellow Star Edges After Its Green Background Was Taken To Transparency With Difference Matte Key And Then Its Background Replaced. Note: It Was Questionable If Subsequent Use of Remove Matte Made Any Difference In Quality Of The Yellow Star Edges. This Figure Shows Without Remove Matte (Matte: Black) Applied.





Green Screen Key
Figure 11. Green Screen Key Settings. Yellow Star After Its Green Background Was Taken To Transparency With Green Screen Key And Then Its Background Replaced. Note: Subsequent Use Of Remove Matte Seemed To Improve Quality Of Yellow Star Edges. This Figure Shows Results With Remove Matte (Matte: Black) Applied.


COMMENTARY

This work in this blog post was done using Premiere Elements 2018 on Windows 64 bit, but was written in general terms since principles remain the same version to version. The work was done within a Premiere Elements project with a 1920 x 1080 project preset. More research needs to be done to go deeper into alpha channels and transparency as well as into premultiplied versus straight alpha clips. Lots of online information needs to be gone into related to this topic.

As usual, blog post continues to be a work in progress to insure accuracy and clearness of what is written.

______________________________________________________________________________

ATR



Tuesday, March 6, 2018

PE 2018 And Earlier: Maintaining Timeline Image's Transparency In Export

INTRODUCTION 

Basically transparency in a Premiere Element Timeline image is represented by black looking area for the transparent portion of that image. The image directly below the Timeline image with transparency will display in the transparent area of the image above. Some examples of the Timeline image with transparency include classic titles*, title templates (lower 3rd, frame), an image with a color in it replaced by transparency using keys such as Green Screen or Chroma. In this regard, it is important to differentiate between black being used by the project to represent transparency in Timeline image versus the actual color black. Some background information from Adobe for Premiere Elements transparency can be found

Transparency and Superimposing
(Adobe dated December 20, 2017)
https://helpx.adobe.com/premiere-elements/using/superimposing-transparency.html 

ISSUE

Given the image with transparency on the Timeline and need to export that image with its transparency maintained, How To? That following export routes and conditions were found to do this.

SUMMARY FOR PREMIERE ELEMENTS 2018 EXPORT ROUTES AND CONDITIONS FOR MAINTAINING TIMELINE IMAGE TRANSPARENCY IN EXPORT
(Using Premiere Elements 2018 for demonstration purposes and source media including classic titles, title template lower 3rd, or an image with color in it replaced by transparency using Green Screen Key or Chroma Key)

.MOV File with Video Codec = Animation and Depth = 8-pbc + alpha
Export & Share
Devices
Custom
Export Settings
Format: QuickTime
Video Tab: Video Codec set at Animation
Render at Maximum Depth check mark and Depth selected as 8-bpc + alpha (from the choices of 8-bpc or  8-bpc + alpha).
(Critical to maintaining transparency in export was Depth = 8-bpc + alpha and not Render at Maximum Depth check mark.**)

.AVI File with Video Codec = None and Depth = 32 Bit
Export & Share
Devices
Custom
Export Settings
Format: AVI
Video Tab: Video Codec set at "None"
Render at Maximum Depth check mark and Depth selected as 32 bit (from the choices of 8, 16, 24, or 32 bit).
(Critical to maintaining transparency in export was Depth = 32 bit and not Render at Maximum Depth check mark.** In contrast, Export Settings/Format = AVI Uncompressed did not work to maintain transparency of the Timeline image in the export.)

COMMENTARY

In Premiere Elements 11 through 2018***, it was possible to export a .mov or .avi file with its transparency area maintained. Refer to above for Premiere Elements 2018 findings.

The following was noted in comparing the above 2018 findings with those from earlier versions

MOV
In Premiere Elements 11 through 2018, the Timeline image with transparency could be exported as an Animation.mov file with the transparency in the Timeline image maintained in the export; however, the Export Settings Depth field choices differed in comparing 2018 with 11 through 15. For 2018, the transparency was maintained when Depth choice was 8-bpc + alpha (from choices of 8-bpc or 8-bpc + alpha); for 11 through 15, the transparency was maintained when Depth choice was 32 bit (from choices of 8, 16, 24, or 32 bit).

AVI
In Premiere Elements 11 through 2018, the Timeline image with transparency could be exported as an "None" avi file with the transparency in the Timeline image maintained in the export. For 11 through 2018, the Export Settings Depth choice was 32 bit (from choices of 8, 16, 24, or 32 bit).

Note: Path to the given Export Settings differed going from Premiere Elements 11 to 2018.

For Premiere Elements 11, 12/12.1, and 13/13.1
Publish+Share
Computer
QuickTime or AVI
Advanced Button
Export Settings

For Premiere Elements 14/14.1, 15, and 20l8
Export & Share
Devices
Custom
Advanced Settings
Export Settings

________________________________________________________________________________
*Version 2018 Reminder: Classic titles created in the project's Titler can be exported with its transparency maintained by right clicking the thumbnail for that title in Project Assets, followed by the selection of Export Title option in the drop down menu. The end result is that title as a .prtl file saved to the computer hard drive for future use. This Export Title option does not apply to Motion titles. Some specifics for version to version details for exporting title created in project's Titler workspace can be found HERE.
**Adobe's in project description for Render at Maximum Depth option is
"Rendering at maximum bit depth improves the video's quality but increases how long encoding takes."
***For Premiere Elements versions earlier than 11, the routes and conditions for the export with transparency maintained in export were found to be

Premiere Elements 8.0/8.0.1, 9.0/9.0.1, and 10

Share
Computer (named Personal Computer in 8.0/8.0.1 and earlier)
QuickTime or AVI
Advanced button
Export Settings
For QuickTime: Video Tab: Video codec = Animation and Depth = 32 bit.
For AVI: Video Tab: Video codec = None, and Depth = 32 bit.

Premiere Elements 4 and 7
(In these versions, in addition to the File Menu route, there is a Share route for QuickTime, no  AVI. But, the Share QuickTime route always ended in Error message of Invalid Argument.)

File Menu
Export
Movie
Settings tab in Export Movie dialog
Export Movie settings
For QuickTime...General Tab: File Type = QuickTime, and Video Tab: Compressor = Animation, and Color Depth = Millions+ of colors (from choices of 256 colors, Thousands of colors, Millions of colors, or Millions+ of colors).
For AVI...General Tab: File Type = Microsoft AVI, and Video Tab: Compressor = None, and Color Depth = Millions+ of colors (from choices of 256 colors, Thousands of colors, Millions of colors, or Millions+ of colors).

See  the following related information for Premiere Elements 4 and 7.
"PE 12: Transfers from Project to Project"
(Section titled Transparency: Non Title Content With The Excerpt from a Premiere Elements 10 Daily Discoveries thread)
July 25, 2014
http://atr935.blogspot.com/2014/07/pe12-transfers-from-project-to-project.html

As always, work in progress for accuracy and content.

ATR