Skip to content

feat: Add hardware acceleration, x265 codec options, and image-to-vid… #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ildrm
Copy link

@ildrm ildrm commented May 9, 2025

…eo conversion

  • feat: Add hardware acceleration and x265 codec options

This commit introduces several new features:

  • Added withHardwareAcceleration method to MediaExporter and HLSExporter to enable hardware acceleration using specified codecs (e.g., 'h264_nvenc', 'hevc_nvenc').
  • Added useX265 method to HLSExporter to enable the x265 codec for HLS encoding.
  • Added toVideoFromImage method to MediaExporter to convert an image to a video with a specified duration.
  • Added useX265 and withHardwareAcceleration methods to MediaOpener for easy access.
  • Updated Media class to resolve and validate temporary paths.
  • Improved error handling by including FFmpeg error output in exception messages.
  • feat: Implement image-to-video conversion

Added ImageFormat class to handle image-to-video conversion with specified duration.

  • fix: Improve temporary file handling and error reporting
  • Fixed an issue where temporary files were not being handled correctly.
  • Improved error reporting by including FFmpeg error output in exception messages.
  • Added validation for temporary paths in the Media class.

…eo conversion

* feat: Add hardware acceleration and x265 codec options

This commit introduces several new features:

- Added `withHardwareAcceleration` method to `MediaExporter` and `HLSExporter` to enable hardware acceleration using specified codecs (e.g., 'h264_nvenc', 'hevc_nvenc').
- Added `useX265` method to `HLSExporter` to enable the x265 codec for HLS encoding.
- Added `toVideoFromImage` method to `MediaExporter` to convert an image to a video with a specified duration.
- Added `useX265` and `withHardwareAcceleration` methods to `MediaOpener` for easy access.
- Updated `Media` class to resolve and validate temporary paths.
- Improved error handling by including FFmpeg error output in exception messages.

* feat: Implement image-to-video conversion

Added `ImageFormat` class to handle image-to-video conversion with specified duration.

* fix: Improve temporary file handling and error reporting

- Fixed an issue where temporary files were not being handled correctly.
- Improved error reporting by including FFmpeg error output in exception messages.
- Added validation for temporary paths in the `Media` class.
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