
Ich habe versucht, etwas zusammenzuschustern, um einen RTSP-Feed von einer IP-Kamera zu nehmen und ihn per HTTP weiterzuübertragen.
Ich versuche, den Feed in meine Heimautomatisierungs-App zu bekommen, die RTSP nicht unterstützt. Ich möchte die HA-App auf den Linux-Server richten, der den Stream speist. Ich habe Ubuntu 12.04 und FFMPEG installiert.
Hier ist, was mir eingefallen ist
ffmpeg -i "rtsp://us:[email protected]:554/Streaming/channels/301" http://localhost:1025/monitoring1.ffm
Dies ist meine 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>
Hier ist der Fehler, den ich bekomme
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:[email protected]: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