You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/api.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,24 @@
3
3
This program has a simple API that can be used to integrate it into other Python programs.
4
4
5
5
The API docs are [available here](https://htmlpreview.github.io/?https://github.com/slhck/ffmpeg-normalize/blob/master/docs-api/ffmpeg_normalize.html).
6
+
7
+
## Custom Environment Variables
8
+
9
+
If you need to pass custom environment variables to ffmpeg (e.g., for setting `LD_LIBRARY_PATH` or other runtime configuration), use the `ffmpeg_env` context manager:
10
+
11
+
```python
12
+
import os
13
+
from ffmpeg_normalize import FFmpegNormalize, ffmpeg_env
14
+
15
+
# Create a custom environment with additional variables
0 commit comments