Luke Street
18c05b75f6
Add + ?Sized to AsRef<Path> generic parameters
...
Without `+ ?Sized`, `&Path` can't be used as the input parameter, since `Path` is unsized.
2024-04-01 12:58:43 -06:00
Luke Street
0e704f2bc9
Context time_base / frame_rate adjustments
...
- Moves `time_base` from `Decoder` and `set_time_base` from `Encoder` to the base `Context` to unify the API for both types.
- Adds `packet_time_base` and `set_packet_time_base` to `Decoder`.
- Moves `set_frame_rate` from `Encoder` to `Context` and adds a `frame_rate` getter.
2024-04-01 12:58:41 -06:00
Luke Street
cf12c76cbc
Add Sink::time_base
...
Calls `av_buffersink_get_time_base`.
2024-04-01 12:58:29 -06:00
Luke Street
c239937c50
Add Packet::time_base/set_time_base
...
Allows inspecting and adjusting the packet's time_base.
2024-04-01 12:58:25 -06:00
Luke Street
2ca7efd582
Add Output::add_stream_with(&Context)
...
Calls `avcodec_parameters_from_context` to set the stream attributes from an AVCodecContext.
2024-04-01 12:54:59 -06:00
Luke Street
2c38f000a5
Add Context::new_with_codec
...
Allows calling `avcodec_alloc_context3` with an AVCodec, setting the default values.
2024-04-01 12:54:59 -06:00
Luke Street
7871f3b953
Make Codec const (AVCodec is not mutable)
2024-04-01 12:54:59 -06:00
Polochon-street and GitHub
c53730e7ab
Fix raspberry pi support ( #171 )
2024-01-03 21:35:17 +01:00
AdrianEddy and GitHub
849eeb8d86
FFmpeg 6.1 support ( #165 )
2023-12-03 19:55:27 +01:00
AdrianEddy
8cfbf82e08
Fix building previous versions
2023-03-13 19:22:28 +01:00
AdrianEddy and GitHub
64ae502f34
Merge branch 'zmwangx:master' into master
2023-03-13 16:07:38 +01:00
Polochon-street
1e58806354
Fix clippy (again)
2023-03-12 13:58:15 +01:00
AdrianEddy
10733b732f
Add ffmpeg 6.0 support
2023-02-27 12:06:58 +01:00
AdrianEddy
baf16ed864
Don't crash, just warn
2022-12-14 05:57:54 +01:00
AdrianEddy
792db4cc98
Make it compile with ffmpeg-master
2022-12-01 18:10:30 +01:00
Polochon-street
022eaa28cf
Fix clippy
2022-09-07 23:49:28 +02:00
Polochon-street
b6b2311fcf
Bump to 5.1.1
2022-08-08 18:37:14 +02:00
Josh Holmer
a0d7fdb30f
Fix get best stream
2022-02-20 18:15:08 -05:00
Polochon-street
22ad8b9598
Bump version to use ffmpeg 5
2022-02-11 17:58:42 +01:00
Polochon-street and GitHub
1955c3ddeb
Merge pull request #76 from zmwangx/fix-linting
...
Fix linting errors
2021-10-02 23:30:31 +02:00
Polochon-street
f559e13afc
Fix linting errors
2021-10-02 22:51:32 +02:00
lifningand lifning
d5e9f34b6a
fix build on platforms where std::os::raw::c_char is not i8
...
c_char may be i8 or u8, depending on target platform: https://doc.rust-lang.org/std/os/raw/type.c_char.html
2021-07-28 13:18:27 -07:00
Polochon-street
19ab5f67ad
Fix linting errors
2021-07-07 16:52:30 +02:00
Zero
9c7ecb9b53
Initial ffmpeg 4.4 support
2021-05-06 17:08:45 -04:00
Bojan Šernek and Zhiming Wang
dc2a82f890
software::resampling::Context: add get_with method ( #41 )
...
get_with allows setting additional options not covered by swr_alloc_set_opts.
Signed-off-by: Zhiming Wang <i@zhimingwang.org >
2020-12-13 10:39:04 +08:00