Skip to content

Commit

Permalink
Release 25.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Aug 31, 2024
1 parent 4f6a7d1 commit b98ce5f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion auto_editor/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "25.1.0rc1"
__version__ = "25.1.0"
13 changes: 2 additions & 11 deletions auto_editor/formats/fcp11.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def fraction(val: int) -> str:
else:
clips = []

def make_clip(ref: str, clip: TlVideo | TlAudio, speed_warn: bool) -> bool:
def make_clip(ref: str, clip: TlVideo | TlAudio) -> None:
clip_properties = {
"name": proj_name,
"ref": ref,
Expand All @@ -147,7 +147,6 @@ def make_clip(ref: str, clip: TlVideo | TlAudio, speed_warn: bool) -> bool:
# See the "Time Maps" section.
# https://developer.apple.com/documentation/professional_video_applications/fcpxml_reference/story_elements/timemap/

speed_warn = True
timemap = SubElement(asset, "timeMap")
SubElement(timemap, "timept", time="0s", value="0s", interp="smooth2")
SubElement(
Expand All @@ -157,19 +156,11 @@ def make_clip(ref: str, clip: TlVideo | TlAudio, speed_warn: bool) -> bool:
value=fraction(src_dur),
interp="smooth2",
)
return speed_warn

warn = False
for my_ref in all_refs:
for clip in clips:
warn = make_clip(my_ref, clip, warn) or warn
make_clip(my_ref, clip)

if resolve and warn:
log.warning(
"DaVinci Resolve may take a very long time when importing timelines with "
"speed effects. Consider switching to Premiere Pro, "
"Final Cut Pro, or ShotCut (free)"
)
tree = ElementTree(fcpxml)
indent(tree, space="\t", level=0)
tree.write(output, xml_declaration=True, encoding="utf-8")
14 changes: 14 additions & 0 deletions changelogs/2024.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 25.1.0

## Features
- Add the DaVinci Resolve FCP7 backend. It's not the default since their are known issues, but it is available if you're having other issues with the FCP11 backend.
- Add `--config` flag option. When set, it will look for `./config.pal`. If found, it allows extending auto-editor by adding new editing methods by defining new procedures.

## Fixes
- Fix "divide by zero error" when editing subtitle streams when a speed is exactly 0.
- Removed the "speed" warning for the DaVinci Resolve FCP11 backend because it appears to not be true anymore for DaVinci Resolve 19 (maybe 18?) and newer.
- Allow including/excluding the Palet standard environment for applications like pyinstaller.

**Full Changelog**: https://github.com/WyattBlue/auto-editor/compare/25.0.1...25.1.0


# 25.0.1

## Fixes
Expand Down

0 comments on commit b98ce5f

Please sign in to comment.