Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changes.d/pr-641.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[scuffle-ffmpeg]]
breaking = true
category = "feat"
description = "Added support for FFMPEG 8.0"
authors = ["@devilish-crow"]
6 changes: 4 additions & 2 deletions crates/ffmpeg/src/enums/av_fmt_flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ nutype_enum! {
/// Allows flushing of buffered data.
/// - **Used for**: Streaming formats that support mid-stream flushing.
/// - **Equivalent to**: `AVFMT_ALLOW_FLUSH`
AllowFlush = AVFMT_ALLOW_FLUSH as _,
/// Deprecated in FFMPEG 8.0, see https://ffmpeg.org/pipermail/ffmpeg-devel/2023-September/314836.html
/// AllowFlush = AVFMT_ALLOW_FLUSH as _,

/// The format does not require strict timestamp ordering.
/// - **Used for**: Formats where out-of-order timestamps are common.
Expand Down Expand Up @@ -231,7 +232,8 @@ nutype_enum! {
/// - **Used for**: Ensuring synchronization in multi-stream files.
/// - **Binary representation**: `0b0100000000000000`
/// - **Equivalent to**: `AVFMT_FLAG_SHORTEST`
Shortest = AVFMT_FLAG_SHORTEST as _,
/// Deprecated in FFMPEG 8.0, see https://ffmpeg.org/pipermail/ffmpeg-devel/2023-August/313668.html
/// Shortest = AVFMT_FLAG_SHORTEST as _,

/// **Automatically apply bitstream filters**.
/// - **Used for**: Simplifying format conversions.
Expand Down
2 changes: 1 addition & 1 deletion crates/ffmpeg/src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ impl VideoFrame {

/// Returns true if the frame is a keyframe.
pub const fn is_keyframe(&self) -> bool {
self.0.0.as_deref_except().key_frame != 0
(self.0.0.as_deref_except().flags & AV_FRAME_FLAG_KEY as i32) != 0
}

/// Returns the picture type of the frame.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ expression: packets
47104,
),
duration: Some(
992,
1024,
),
pos: Some(
247025,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: crates/ffmpeg/src/io/output.rs
expression: get_boxes!(output)
snapshot_kind: text
---
[
Ftyp(
Expand Down Expand Up @@ -445,7 +444,7 @@ snapshot_kind: text
BoxHeader {
box_type: b"udta",
},
b"\0\0\0Ymeta\0\0\0\0\0\0\0!hdlr\0\0\0\0\0\0\0\0mdirappl\0\0\0\0\0\0\0\0\0\0\0\0,ilst\0\0\0$\xa9too\0\0\0\x1cdata\0\0\0\x01\0\0\0\0Lavf61.7.100",
b"\0\0\0Ymeta\0\0\0\0\0\0\0!hdlr\0\0\0\0\0\0\0\0mdirappl\0\0\0\0\0\0\0\0\0\0\0\0,ilst\0\0\0$\xa9too\0\0\0\x1cdata\0\0\0\x01\0\0\0\0Lavf62.3.100",
),
),
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: crates/ffmpeg/src/io/output.rs
expression: get_boxes!(output)
snapshot_kind: text
---
[
Ftyp(
Expand Down Expand Up @@ -1123,7 +1122,7 @@ snapshot_kind: text
BoxHeader {
box_type: b"udta",
},
b"\0\0\0Ymeta\0\0\0\0\0\0\0!hdlr\0\0\0\0\0\0\0\0mdirappl\0\0\0\0\0\0\0\0\0\0\0\0,ilst\0\0\0$\xa9too\0\0\0\x1cdata\0\0\0\x01\0\0\0\0Lavf61.7.100",
b"\0\0\0Ymeta\0\0\0\0\0\0\0!hdlr\0\0\0\0\0\0\0\0mdirappl\0\0\0\0\0\0\0\0\0\0\0\0,ilst\0\0\0$\xa9too\0\0\0\x1cdata\0\0\0\x01\0\0\0\0Lavf62.3.100",
),
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ expression: audio_frames
47104,
),
duration: Some(
992,
1024,
),
best_effort_timestamp: Some(
47104,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
source: crates/ffmpeg/src/encoder.rs
expression: "&boxes"
snapshot_kind: text
---
[
Ftyp(
Expand Down Expand Up @@ -742,7 +741,7 @@ snapshot_kind: text
BoxHeader {
box_type: b"udta",
},
b"\0\0\0Ymeta\0\0\0\0\0\0\0!hdlr\0\0\0\0\0\0\0\0mdirappl\0\0\0\0\0\0\0\0\0\0\0\0,ilst\0\0\0$\xa9too\0\0\0\x1cdata\0\0\0\x01\0\0\0\0Lavf61.7.100",
b"\0\0\0Ymeta\0\0\0\0\0\0\0!hdlr\0\0\0\0\0\0\0\0mdirappl\0\0\0\0\0\0\0\0\0\0\0\0,ilst\0\0\0$\xa9too\0\0\0\x1cdata\0\0\0\x01\0\0\0\0Lavf62.3.100",
),
),
],
Expand Down
Loading