Releases: ThreadsStyling/video-renderer
Releases 路 ThreadsStyling/video-renderer
v1.0.2
v1.0.1
v1.0.0
1.0.0 (2019-08-13)
Bug Fixes
- 馃悰 align text at top to match ffmpeg (36ad07d)
- 馃悰 clone loop assets to avoid dispose on base asset (58a8a28)
- 馃悰 don't mutate background input in overlay filter (6640b50)
- 馃悰 don't mutate input of "drawtext" filter (dc6a815)
- 馃悰 ensure the video is ready to play before resolving (0a999d5)
- 馃悰 made sure empty cache outputs a new object (2f44662)
- 馃悰 make transparent pixel really transparent (e0f481c)
- 馃悰 pad like ffmpeg does (ba0153e)
- 馃悰 position "drawtext" background same as ffmpeg (d5c5360)
- 馃悰 proper dispose and several renames (0abc743)
- 馃悰 put heuristic back but as percentage of font size (03dc11c)
- 馃悰 remove 2px heuristic (2cafc5f)
- 馃悰 reuse the same canvas for all text measuring (a835adb)
- 馃悰 sanitise text input that breaks ffmpeg (46b8d1b)
- 馃悰 use real text sizes for text canvas sizes (cf6b216)
- account for disconnected letters (e315279)
- allow placeholder to work with all images (d4541d5)
- clear canvas on each frame for scale (#28) (4d35598)
- don't draw one last frame after dispose has already been called (#15) (ce45b82)
- enable cors for cross origin requests by default (#27) (0912c9c)
- maximum call stack exceeded (#14) (b7dcc52)
- measure text offset to prevent cropping (d1c7c6e)
- remain paused on seeking and set asset, remain "playing" if asset is null (#13) (ddde09d)
- rename variable (968e2c0)
- use replace in drawbox filter (17b8388)
Code Refactoring
- 馃挕 use Asset.fromVideo and Asset.fromVideoWithAlpha (c861f4a)
Features
- 馃幐 add "blend" complex filter (a7086da)
- 馃幐 add "crop" complex filter (444885f)
- 馃幐 add "pad" complex filter (951ca56)
- 馃幐 add "th" text height expression to "drawtext" filter (98d9ba4)
- 馃幐 Add drawtext filter (8580b50)
- 馃幐 add filter checks as per review (ade5314)
- 馃幐 add image asset type and getImage() method (a269dc6)
- 馃幐 basic canvas pool (cd95ef5)
- 馃幐 better rotation implementation (d7a27fc)
- 馃幐 cleanup cache records using set (c232e5c)
- 馃幐 create transparent 1x1 pixel asset (c6d5bb8)
- 馃幐 disposing canvas only present in old cache (fc8a5a9)
- 馃幐 evaluate "drawtext" expressions in "x" and "y" args (4428ad8)
- 馃幐 exposing text measure logic as an util (a9b6936)
- 馃幐 finish loadImage() method (df89dc4)
- 馃幐 implement rotate filter compativle with ffmpeg (f2a00d1)
- 馃幐 implement scale filter (abc03b0)
- 馃幐 naive rotation implementation (e6cd245)
- 馃幐 register all filters automtically (3d05a1e)
- 馃幐 using canvas pool to contain canvases (4493269)
- add basic drawbox support and format noop (de7e5b3)
- add noop loop filter (28dfaf7)
- added withPlaceholder static method (#34) (f1f9a8a)
- allow it to behave as it did before without fps (43ae77c)
- rename to video-renderer & open source (#3) (62f87f6)
- support explicitly disposing assets (#12) (fa86a45)
- support fps in render function (6ecff0a)
Performance Improvements
- 鈿★笍 don't hard code text measure canvas dimensions (02b2e8d)
- 鈿★笍 improve rotate filter (f736e82)
- support caching filters and skipping re-renders (#16) (92d36c4)
BREAKING CHANGES
- cross origin requests default to having cors enabled. You can pass
{crossOrigin: CorsMode.Disabled}
to return to the old behaviour, but assets fetched withCorsMode.Disabled
will not work in some filters. - FilterCache is now an object containing the previous hash but also a
list of all records, this offers a performance boost by making sure all
assets are disposed when they are no longer necessary - This change registers all filters automatically, filter registration
methods have been removed. - Removes loadVideo(), loadVideoWithAlpha() and AssetKind