Skip to content

Commit 667382b

Browse files
committed
readme info
1 parent 194a96a commit 667382b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
# About
12
Direct, unobscured and self contained FFmpeg (sys) bindings.
23

4+
By self contained I mean:
5+
* Does not require or link against any FFmpeg system dependencies.
6+
* Does not require a network connection for building.
7+
8+
**The FFmpeg bindings now include doc comments, including struct fields!** See [here](https://docs.rs/ffmpeg-dev/0.2.2/ffmpeg_dev/sys/avcodec/struct.AVCodec.html).
9+
10+
## Example
11+
312
```rust
413
let input_path_cstr = std::ffi::CString::new("path/to/source.mp4").unwrap("to c str");
514

@@ -21,7 +30,7 @@ av_dump_format(
2130
);
2231
```
2332

24-
33+
For the uninitiated, the std includes lots of convenient ffi related utilities. E.g. using `std::slice::from_raw_parts`:
2534
```rust
2635
let ifmt_ctx: AVFormatContext = *ifmt_ctx;
2736

@@ -37,16 +46,10 @@ for stream in std::slice::from_raw_parts(*ifmt_ctx.streams, ifmt_ctx.nb_streams
3746
}
3847
```
3948

40-
By self contained I mean:
41-
* Does not require or link against any FFmpeg system dependencies.
42-
* Does not require a network connection for building.
43-
44-
**The FFmpeg bindings now include doc comments, including struct fields!** See [here](https://docs.rs/ffmpeg-dev/0.2.2/ffmpeg_dev/sys/avcodec/struct.AVCodec.html).
45-
46-
# Stability
49+
## Stability
4750
API bindings should be **practically** stable now.
4851

49-
# Internal Behavior
52+
## Internal Behavior
5053

5154
By default the debug or dev builds compile FFmpeg without optimizations, this is for the purpose of speeding up compilation. Compiling on release mode or setting `opt-level` > 1 will disable this behavior.
5255

0 commit comments

Comments
 (0)