Releases: alec-c4/ffmpeg_core
Releases · alec-c4/ffmpeg_core
v0.5.0
Added
- Probe — extended metadata:
subtitle_streams— array of subtitle streamschapters— file chapters (requires ffprobe-show_chapters)format_name— container format name (mp4, mkv, avi…)tags— file-level tags (title, artist, etc.)audio_sample_rate— sample rate of the first audio streamaudio_channels— channel countaudio_channel_layout— channel layout string (stereo, 5.1…)pixel_format— video pixel format (yuv420p, etc.)has_video?/has_audio?— stream presence predicatesexif— EXIF tags merged from format and video stream tags (FFmpeg 8.1)
- Movie — new operations:
cut(output, start_time:, duration:)/cut(output, start_time:, end_time:)— lossless trim via-c copyextract_audio(output, codec:)— extract audio track to filescreenshots(output_dir, count:)— extract multiple screenshots at equal intervals
- Hardware acceleration — AV1 and D3D12 support (FFmpeg 8.0/8.1):
- AV1 via
:nvenc(av1_nvenc),:vaapi(av1_vaapi),:vulkan(av1_vulkan) - D3D12 via
:d3d12(h264_d3d12va) for Windows
- AV1 via
Changed
Probe#probe!now passes-show_chaptersto ffprobe
0.4.0
0.3.0
Added
- Remote Input Support: Movie.new now accepts HTTP, HTTPS, RTMP, and RTSP URLs.
- Crop Support: Added crop option to transcode (e.g., crop: { width: 100, height: 100, x: 10, y: 10 }).
- Advanced Metadata: Added video_profile and video_level to Probe.
- Rotation detection from side_data_list for better compatibility with newer video formats.
Fixed
- Rotation Geometry: Probe#width and Probe#height now correctly swap values if the video is rotated 90 or 270 degrees.
0.2.0
Added
- Real-time progress reporting in
Movie#transcodevia block yielding (0.0 to 1.0) - Support for video and audio filters (
video_filter,audio_filter) - Support for quality settings (
preset,crf) - Enhanced metadata in
Probe: addedrotation,aspect_ratio, andaudio_streams - Comprehensive modular test suite for
TranscoderandScreenshot
Changed
Transcodernow usesOpen3.popen3for non-blocking execution and progress parsing- Improved RSpec testing style (using
have_receivedspies)
v0.1.1
0.1.0
Initial release
Added
FFmpegCore::Movie- main API for working with video filesFFmpegCore::Probe- extract video metadata using ffprobeFFmpegCore::Transcoder- transcode videos with various optionsFFmpegCore::Screenshot- extract screenshots from videosFFmpegCore::Configuration- thread-safe global configuration- Automatic ffmpeg/ffprobe binary detection
- Comprehensive error classes with detailed context