Expand description
Video decoding library.
Re-exports§
pub use re_mp4::TrackId;pub use re_mp4::TrackKind;pub use re_quota_channel::Receiver;pub use re_quota_channel::Sender;pub use re_quota_channel::TryRecvError;pub use re_span::Span;pub use stable_index_deque::StableIndexDeque;pub use time::Time;pub use time::Timescale;
Modules§
- player
- Video player for decoding video frames over time.
Structs§
- AnnexB
Stream State - Chunk
- One chunk of encoded video data, representing a single
crate::SampleMetadata. - Decode
Settings - Settings for video decoding.
- Decoded
Frame Content - CPU-side data for a decoded frame.
- FFmpeg
Version - A successfully parsed
FFmpegversion. - Frame
- One decoded video frame.
- Frame
Info - Meta information about a decoded video frame, as reported by the decoder.
- Mp4Transcode
Options - How to transcode an mp4 stream.
- Sample
Metadata - Samples
Statistics - Meta information about the video samples.
- Transcoded
Mp4 - A streaming iterator over the transcoded, fragmented mp4 that
ffmpegwrites to stdout, yielded as raw byte chunks that do not align to mp4 box or GOP boundaries (the caller must reframe them). - Video
Data Description - Description of video data.
- Video
Encoding Details - Various information about how the video was encoded.
Enums§
- AnnexB
Stream Write Error - Chroma
Subsampling Modes - Chroma subsampling mode.
- Decode
Error - Decode
Hardware Acceleration - How the video should be decoded.
- Detect
GopStart Error - Failure reason for
detect_gop_start. - FFmpeg
Error - FFmpeg
Version Parse Error - GopStart
Detection - Result of a successful GOP detection.
- HwAccel
- Hardware-acceleration preference for transcoding.
- Pixel
Format - Pixel format/layout used by
FrameContent::data. - Sample
Metadata State - The state of the current sample.
- Video
Codec - The basic codec family used to encode the video.
- Video
Delivery Method - Distinguishes static videos from potentially ongoing video streams.
- Video
Load Error - Errors that can occur when loading a video.
- Video
Source - A single sample in a video.
- YuvMatrix
Coefficients - Yuv matrix coefficients used by
PixelFormat::Yuv. - YuvPixel
Layout - Pixel layout used by
PixelFormat::Yuv. - YuvRange
- Yuv value range used by
PixelFormat::Yuv.
Constants§
- AV1_
TEST_ INTER_ FRAME - AV1 inter-frame (non-keyframe) for testing (generated with ffmpeg)
- AV1_
TEST_ KEYFRAME - Small 64x64 AV1 keyframe for testing (generated with ffmpeg)
Traits§
- Async
Decoder - Interface for an asynchronous video decoder.
Functions§
- channel
- Create a channel for use with
new_decoder. - detect_
gop_ start - Try to determine whether a frame chunk is the start of a GOP.
- enabled_
features - ffmpeg_
download_ url - Download URL for the latest version of
FFmpegon the current platform. None if the platform is not supported. - is_
start_ of_ gop - Is the given sample the start of a GOP (i.e. a keyframe/sync).
- new_
decoder - Creates a new async decoder for the given
videodata. - transcode_
mp4 - Re-encode the mp4 at
input_pathinto a B-frame-free, stream-friendly fragmented mp4 (onefrag_keyframefragment per GOP,empty_moovinit segment up front), applying the transforms inoptions. - write_
avc_ chunk_ to_ annexb - Write an H.264 chunk to an Annex B stream without state tracking.
- write_
avc_ chunk_ to_ nalu_ stream - write_
hevc_ chunk_ to_ annexb - Write an H.265 chunk to an Annex B stream without state tracking.
- write_
hevc_ chunk_ to_ nalu_ stream - write_
length_ prefixed_ nalus_ to_ annexb_ stream
Type Aliases§
- Decode
Result - Frame
Content - Data for a decoded frame on native targets.
- Frame
Number - A frame’s index in presentation order.
- Frame
Result - Keyframe
Index - An index into
VideoDataDescription::keyframe_indices, not stable between mutations. - Sample
Index - Index used for referencing into
VideoDataDescription::samples.