pacnpal
c144fb35ba
The video downloading issues have been resolved by implementing comprehensive error handling and resource management:
...
FFmpeg is now properly managed:
Binaries are downloaded and verified on startup
Permissions are properly set
Hardware acceleration is detected and used when available
Resources are cleaned up properly
Error handling has been improved:
Specific exception types for different errors
Better error messages and logging
Appropriate reaction indicators
Enhanced component error handling
Resource management has been enhanced:
Failed downloads are tracked and cleaned up
Temporary files are handled properly
Queue management is more robust
Concurrent downloads are better managed
Verification has been strengthened:
FFmpeg binaries are verified
Video files are validated
Compression results are checked
Component initialization is verified
2024-11-15 04:18:57 +00:00
pacnpal
46af1a31b7
Enhanced FFmpeg Integration:
...
Added robust error handling and logging
Improved binary verification and initialization
Added proper GPU detection and hardware acceleration
Optimized encoding parameters for different content types
Improved File Operations:
Added retry mechanisms for file operations
Enhanced temporary directory management
Improved cleanup of failed downloads
Added proper permission handling
Enhanced Queue Management:
Fixed queue manager initialization
Added better error recovery
Improved status tracking and logging
Enhanced cleanup of failed items
Better Error Handling:
Added comprehensive exception hierarchy
Improved error logging and reporting
Added fallback mechanisms for failures
Enhanced error recovery strategies
2024-11-15 03:48:56 +00:00
pacnpal
3e50faec75
Switching from regex patterns to yt-dlp simulation for URL detection:
...
Removed the regex-based URL detection
Added proper yt-dlp simulation to check if URLs are supported
Added better error handling for URL checking
Added detailed logging of URL detection results
Improving FFmpeg integration:
Added proper ffprobe binary download alongside FFmpeg
Added better verification of both binaries
Added retry mechanisms for binary downloads
Added proper cleanup of failed downloads
Enhancing error handling and logging:
Added detailed logging throughout the system
Added better error recovery mechanisms
Added proper cleanup of temporary files
Added better tracking of failed operations
2024-11-15 03:40:53 +00:00
pacnpal
8503fc6fdd
Enhanced FFmpeg Integration:
...
Added robust error handling and logging
Improved binary verification and initialization
Added proper GPU detection and hardware acceleration
Optimized encoding parameters for different content types
Improved File Operations:
Added retry mechanisms for file operations
Enhanced temporary directory management
Improved cleanup of failed downloads
Added proper permission handling
Enhanced Queue Management:
Fixed queue manager initialization
Added better error recovery
Improved status tracking and logging
Enhanced cleanup of failed items
Better Error Handling:
Added comprehensive exception hierarchy
Improved error logging and reporting
Added fallback mechanisms for failures
Enhanced error recovery strategies
2024-11-15 03:21:25 +00:00
pacnpal
826f5e1b3e
Improved FFmpeg downloader error handling and permissions
2024-11-15 01:31:37 +00:00
pacnpal
190e689919
Changed FFmpeg binary download location from /tmp/ffmpeg to videoarchiver/bin for better organization and persistence
2024-11-15 01:26:58 +00:00
pacnpal
f3d28231e8
fix imports
2024-11-14 23:45:36 +00:00
pacnpal
e094dbfdb6
fix imports
2024-11-14 23:12:21 +00:00
pacnpal
171453ce57
fix imports
2024-11-14 23:09:28 +00:00
pacnpal
0533deaca3
fix imports
2024-11-14 23:07:04 +00:00
pacnpal
dfba1a4e30
fix imports
2024-11-14 23:05:16 +00:00
pacnpal
2ba89edbd9
refactor: Improve ffmpeg_downloader module
...
- Enhanced Docker compatibility with proper permissions
- Better error handling and logging
- Improved download and extraction process
- Added detailed type hints and documentation
2024-11-14 22:37:42 +00:00
pacnpal
2f449e6120
refactor: Clean up encoder_params module
...
- Improved parameter organization
- Better error handling and logging
- More consistent code style
- Added detailed comments for parameter choices
2024-11-14 22:36:50 +00:00
pacnpal
4719f567c6
refactor: Update video_analyzer to use ffprobe directly
...
- Removed dependency on ffmpeg-python package
- Added direct ffprobe command execution
- Improved error handling and logging
- Better organization of analysis methods
2024-11-14 22:36:01 +00:00
pacnpal
9beda06e34
fix: Update imports in ffmpeg_manager module
...
- Updated imports to use full package paths consistently
- Ensured all imports use videoarchiver.ffmpeg namespace
2024-11-14 22:33:47 +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
c9872b123d
fix
2024-11-14 22:31:37 +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