Skip to content

Crash fixes, performance improvements and some code refactoring#4

Open
randompooper wants to merge 3 commits into
hellfire3d:masterfrom
randompooper:for-pull
Open

Crash fixes, performance improvements and some code refactoring#4
randompooper wants to merge 3 commits into
hellfire3d:masterfrom
randompooper:for-pull

Conversation

@randompooper

Copy link
Copy Markdown
  • Fix invalid timestamps; they were cause for ffmpeg fails
  • Use ffmpeg fast (inexact) seek to process videos faster
  • Parallelize clip creation for a faster pooping process
  • Fix issues with ffmpeg failing by removing need for quoting file names. Thanks to this file names with spaces and quotes are supported
  • Change above also introduced compatibility with Linux systems
  • Remove unnecessary re-encoding for effects
  • Allow all media formats supported by ffmpeg. It will be converted to mp4
  • Halved chance of squidward effect being applied

Appropriate PR will be made to YTPPlusUI

Example of invalid timestamp produced: 00:02:60.354
Here can't be more than 60 seconds
- Use fast (inexact) seek to process videos faster
- Parallelize clip creation for a faster pooping process
- Possibly fix issues with ffmpeg failing (file name issues, unquoting, quoting where necessary, etc)
- Fix incompatibility with Linux systems (removed quotes where unnecessary)
- Allow all media formats supported by ffmpeg (it is still converted to mp4 though)
- Halved chance of squidward effect being applied
- Mostly minor refactoring around the code (add pseudorandom prefixes to temporary files, reduce concatenation frequency, etc)
- construct command lines using arrays instead of string concatenation to support file names with white spaces and quotes
- move ffmpeg and magick execution to Utilities
- remove unused getVideoLength function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant