FFmpeg error

Hello!

I’m Having trouble with FFmpeg. Managed to install FFmpeg (thanks @masterkenobi!) but now I’ve encountered the following issue:

[rtsp @ 0x357a1d0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://username:[email protected]:10554/tcp/av0_0':
  Metadata:
    title           : streamed by the VSTARCAM RTSP server
  Duration: N/A, bitrate: 64 kb/s
    Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
Output #0, null, to 'pipe:':
Output file #0 does not contain any stream

Can anyone help me out? :slight_smile:

Hello again…

Still haven’t been able to solve this. Has anyone who’s gotten this to work give me a hand?

My HASS log says this:

16-10-08 19:31:23 haffmpeg.tools: Timeout reading test.
16-10-08 19:31:23 haffmpeg.core: Timeout while waiting of FFmpeg
16-10-08 19:31:23 homeassistant.components.ffmpeg: FFmpeg ‘rtsp://username:[email protected]:10554/tcp/av0_0’ test fails!

Managed to solve it just now thanks to this thread:

What I did to solve it was make my configuration like this:

camera:
  - platform: ffmpeg
    input: -rtsp_transport tcp -i rtsp://username:[email protected]:10554/tcp/av0_0
    name: FFmpeg
    ffmpeg_bin: /usr/local/bin/ffmpeg
    extra_arguments: -q:v 2

I used to have it as input: rtsp://username:[email protected]:10554/tcp/av0_0

Turns out I needed to add the -rtsp transport tcp -i part to it.