1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Example that builds a [`MediaInfoContext`] once and parses every
//! media file listed on the command line through the same context.
//!
//! This is the recommended shape for batch workloads — asset scanners,
//! import pipelines, directory walks — because the MediaInfo shared
//! library is loaded exactly once instead of on every call.
//!
//! Run with:
//!
//! ```text
//! cargo run --example batch_parse -- tests/data/sample.mp4 tests/data/sample.mkv
//! ```
use MediaInfoContext;
use env;