Platforms to show: All Mac Windows Linux Cross-Platform

JPEGMovieMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class JPEG MBS Images Plugin 17.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A class to write a movie with JPEGs.
Example
// get a picture
Var p as Picture = LogoMBS(500)

// start movie building
Var m as new JPEGMovieMBS

m.Width = 500
m.Height = 500
m.SecondsPerFrame = 0.5

// add frames where we count up
for i as integer = 1 to 20
Var c as new Picture(500, 500)
Var g as Graphics = c.Graphics
g.ForeColor = &c000000
g.TextSize = 50
g.DrawPicture p, 0, 0
g.DrawString str(i), 20, 50

Var j as string = c.GetData(c.FormatJPEG)
m.AddFrame j

next

// generate movie
Var MovieData as string = m.BuildMovie

// and write to file
Var f as FolderItem = SpecialFolder.Desktop.Child("test.mov")
Var b as BinaryStream = BinaryStream.Create(f, true)
b.Write MovieData

This is a self written class to create a QuickTime Movie with one video track using JPEG images.
You can use this to quickly write a slideshow video if needed.

Does play in Quicktime player and VLC, but not Windows Media Player.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Videos

Release notes


The items on this page are in the following plugins: MBS Images Plugin.


JPEGImporterMBS   -   JPEGTransformationMBS


The biggest plugin in space...