Skip to content

Commit

Permalink
Improve error handling of srt and add support for 2.7k and 4k on boar…
Browse files Browse the repository at this point in the history
…d dvr video as input (#43)

* Initial attempt at adding debug srt processing

Currently it can parse debug srt, but is bypassing srt parsing completelly.

* Far from fluent in rust, but got the job done

* Lets try to break things

* Fix lint errors

* More lint fixes

* add missing ,

* Add pedantic ,

* more lint fixes

* trigger branch build

* Update workflows on branch, trigger actions

* Update release.yaml

* Add font sizes for 2.7k and 4k video

* fix 2.7k font

* increase bitrate limit to 160mbps

* revert workflows

* Fix clippy lints

* Update changelog

* One more clippy lint

* Add side by side font support for INAV (2 pages)

Also add 3 pages for completeness.

Considered renaming 4 colors to 4 pages, but didn't think it was needed.

* Add font auto scale

* Add race font size and scaling.

Fix detection to also consider height, to remove ambiguity between font sizes.

* Lint fixes

* Hopefully fix the crash when the font does not contain a character

* make clippy happy

* Code improvements

* Update changelog

* Clippy lints

---------

Co-authored-by: Alexander van Saase <[email protected]>
Co-authored-by: Marcelo Bezerra <>
  • Loading branch information
mmosca and avsaase authored Mar 23, 2024
1 parent d4654e2 commit 345deac
Show file tree
Hide file tree
Showing 13 changed files with 1,032 additions and 605 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Load last used OSD font file on startup (@dz0ny).
- Option to render video with a chroma key background instead of the input video so the OSD can be overlayed in a video editor.
- Support for Betaflight 4.5 four color fonts.
- Support for INAV two color fonts ([#43](https://github.com/avsaase/walksnail-osd-tool/pull/43), @mmosca).
- Support for 4K and 2.7K DVR ([#43](https://github.com/avsaase/walksnail-osd-tool/pull/43), @mmosca).

### Fixed

Expand Down
Loading

0 comments on commit 345deac

Please sign in to comment.