2

Я пытался собрать что-нибудь вместе, чтобы получить RTSP-канал с IP-камеры и передать его по HTTP.

Я пытаюсь получить информацию о моем приложении домашней автоматизации, которое не поддерживает RTSP. Я хочу направить приложение HA на сервер Linux, который будет передавать поток. Я установил Ubuntu 12.04 и FFMPEG.

Вот что я придумала

ffmpeg -i "rtsp://us:pw@192.168.1.xx:554/Streaming/channels/301" http://localhost:1025/monitoring1.ffm

Это мой ffserver.conf

indaddress 0.0.0.0
Port 1025
<Feed monitoring1.ffm>
File /tmp/monitoring1.ffm
FileMaxSize 50M
ACL allow 127.0.0.1
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Feed>

<Stream monitoring1.mjpg>
Feed monitoring1.ffm
Format mpjpeg
VideoCodec mjpeg
VideoFrameRate 22
VideoBufferSize 80
VideoSize 1920x1088
NoAudio
</Stream>

Вот ошибка, которую я получаю

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 1000.00 (1000/1)
Input #0, rtsp, from 'rtsp://un:pw@192.168.1.55:554/Streaming/channels/301':
  Metadata:
    title           : Media Server V3.1.1
    comment         : Media Server Session Description : standard
  Duration: N/A, start: 0.033000, bitrate: N/A
    Stream #0.0: Video: h264 (Main), yuv420p, 1920x1080, 1k tbr, 90k tbn, 180k tbc
[tcp @ 0x1014060] TCP connection to localhost:1025 failed: Connection refused
http://localhost:1025/monitoring1.ffm: Input/output error

0