Commit Graph

11 Commits

Author SHA1 Message Date
pacnpal
dfba1a4e30 fix imports 2024-11-14 23:05:16 +00:00
pacnpal
e5ea9f7bed fix: Update imports for Red-DiscordBot compatibility
- Modified imports to use full package paths
- Fixed circular import issues
- Updated imports to work within cog structure
2024-11-14 22:33:18 +00:00
pacnpal
9aeafb63f4 fix: Update import path to use relative imports
- Changed import statement to use relative imports (.ffmpeg) for better package compatibility
2024-11-14 22:30:45 +00:00
pacnpal
2a50395bd7 fix: Add package __init__.py and fix imports
- Added videoarchiver/__init__.py to make it a proper package
- Fixed import statement in ffmpeg_manager.py to use local imports
2024-11-14 22:29:42 +00:00
pacnpal
5454630591 refactor: Split FFmpeg manager into modular components
- Created ffmpeg package with specialized modules
- Improved Docker compatibility using /tmp
- Better permission handling
- More robust error handling
- Separated concerns for easier maintenance
- Simplified imports through __init__.py
2024-11-14 22:26:32 +00:00
pacnpal
049ea863f0 fix tmp handling 2024-11-14 22:08:09 +00:00
pacnpal
5eeba4fa05 fix tmp handling 2024-11-14 22:03:56 +00:00
pacnpal
41c7926f79 Fix ffmpeg 2024-11-14 21:53:46 +00:00
pacnpal
6d25ea8e11 Fix ffmpeg 2024-11-14 21:44:41 +00:00
pacnpal
29186fc372 Improve video compression and error handling
- Add better video content analysis for optimal encoding
- Add better dark scene and motion detection
- Add better audio quality preservation
- Add better GPU detection with fallback
- Add proper exception handling and logging
- Add retries with exponential backoff
- Add better resource cleanup and management
- Add better file permission handling
- Add better process management
2024-11-14 20:36:48 +00:00
pacnpal
d61d1508f5 Improve video processing reliability and resource management
FFmpeg Manager improvements:
- Add better GPU detection with fallback options
- Add video content analysis for optimal encoding
- Add advanced encoding parameters and two-pass encoding
- Add dynamic audio bitrate scaling
- Add better error handling for encoders

Utils improvements:
- Add temporary directory management
- Add better file cleanup with retries and timeouts
- Add download retries and video verification
- Add thread pool cleanup improvements
- Add proper resource cleanup
- Add better error handling throughout
- Fix potential resource leaks
2024-11-14 20:05:22 +00:00