Skip to content

Commit 9c5f8e0

Browse files
author
bwsw
committed
added tiff and jp2 formats
1 parent 9f45772 commit 9c5f8e0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/insight-platform/FFmpeg-Input"
77
readme = "README.md"
88
keywords = ["FFmpeg", "Video"]
99
categories = ["computer-vision"]
10-
version = "0.1.7"
10+
version = "0.1.8"
1111
edition = "2021"
1212
license="Apache-2.0"
1313
rust-version = "1.62"

src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fn is_stream_key_framed(id: Id) -> Result<bool, String> {
2424
| Id::H265
2525
| Id::HEVC
2626
| Id::VP9
27+
| Id::VP8
2728
| Id::AV1
2829
| Id::MPEG1VIDEO
2930
| Id::MPEG2VIDEO
@@ -33,7 +34,7 @@ fn is_stream_key_framed(id: Id) -> Result<bool, String> {
3334
| Id::MSMPEG4V3
3435
| Id::THEORA
3536
| Id::FLV1 => Some(true),
36-
Id::MJPEG | Id::PNG | Id::RAWVIDEO => Some(false),
37+
Id::MJPEG | Id::TIFF | Id::PNG | Id::JPEG2000 | Id::RAWVIDEO => Some(false),
3738
_ => None,
3839
};
3940

test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ffmpeg_input import FFMpegSource, FFmpegLogLevel
22

33
if __name__ == '__main__':
4-
s = FFMpegSource("/home/ivan/graph.png", params={},
4+
s = FFMpegSource("/home/ivan/sample1.jp2", params={},
55
queue_len=100, decode=False,
66
ffmpeg_log_level=FFmpegLogLevel.Debug)
77
s.log_level = FFmpegLogLevel.Trace

0 commit comments

Comments
 (0)