Skip to content

Commit c75e45a

Browse files
authored
Create ffmpeg.markdown
1 parent 129003d commit c75e45a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

source/_components/ffmpeg.markdown

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout: page
3+
title: "FFmpeg"
4+
description: "Instructions for how to integrate FFmpeg within Home Assistant."
5+
date: 2016-09-14 00:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: sleepiq
11+
ha_category: Hub
12+
featured: true
13+
---
14+
15+
<p class='note'>
16+
You need a `ffmpeg` binary in your system path. On Debain 8 you can install it from backports. If you want Hardware support on a Raspberry Pi you need tobuild from source by yourself. Windows binary are avilable on the [FFmpeg](http://www.ffmpeg.org/) website.
17+
</p>
18+
19+
To set it up, add the following information to your `configuration.yaml` file:
20+
21+
```yaml
22+
ffmpeg:
23+
ffmpeg_bin: /usr/bin/ffmpeg
24+
run_test: True
25+
```
26+
27+
Configuration variables:
28+
29+
- **ffmpeg_bin** (*Optional*): Default 'ffmpeg'. Set the ffmpeg binary.
30+
- **run_test** (*Optional*): Default True. Check if `input` is usable by ffmpeg.
31+
32+
### {% linkable_title Troubleshooting %}
33+
34+
In most of case, `ffmpeg` autodetect all needed options to read a video/audio stream or file. But it is possible in rare cases that's needed to set a option to help `ffmpeg`. Per default `ffmpeg` use 5 seconds to detect all options or abort.
35+
36+
First check, if your stream playable by `ffmpeg` with (use option `-an` or `-vn` to disable video or audio stream):
37+
38+
```
39+
$ ffmpeg -i INPUT -an -f null -
40+
```
41+
42+
Now you can see what going wrong. Following list could be help to solve your trouble:
43+
44+
- `[rtsp @ ...] UDP timeout, retrying with TCP`: You need to set RTSP transport in the configuration with: `input: -rtsp_transport tcp -i INPUT`
45+
- `[rtsp @ ...] Could not find codec parameters for stream 0 (Video: ..., none): unspecified size`: FFmpeg need more data or time for autodetect. You can set the `analyzeduration` and/or `probesize` option, play with this value. If you know the needed value you can set it with: `input: -analyzeduration xy -probesize xy -i INPUT`. More information about that can be found on [FFmpeg](https://www.ffmpeg.org/ffmpeg-formats.html#Description).

0 commit comments

Comments
 (0)