|
发表于 2018-10-25 14:44:29
|
显示全部楼层
用楼主的命令行测试提示出错。rtsp源访问是ok的,用工具测试正常。
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]:554/h264/ch1/main/av_stream -an -f null -
ffmpeg version 3.4.4 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --disable-shared --prefix=/usr/local --disable-opencl --disable-thumb --disable-pic --disable-stripping --enable-small --enable-ffmpeg --enable-ffplay --enable-ffserver --enable-ffprobe --disable-doc --disable-htmlpages --disable-podpages --disable-txtpages --disable-manpages --disable-everything --enable-libx264 --enable-encoder=libx264 --enable-decoder=h264 --enable-encoder=aac --enable-decoder=aac --enable-encoder=ac3 --enable-decoder=ac3 --enable-encoder=rawvideo --enable-decoder=rawvideo --enable-encoder=mjpeg --enable-decoder=mjpeg --enable-demuxer=concat --enable-muxer=flv --enable-demuxer=flv --enable-demuxer=live_flv --enable-muxer=hls --enable-muxer=segment --enable-muxer=stream_segment --enable-muxer=mov --enable-demuxer=mov --enable-muxer=mp4 --enable-muxer=mpegts --enable-demuxer=mpegts --enable-demuxer=mpegvideo --enable-muxer=matroska --enable-demuxer=matroska --enable-muxer=wav --enable-demuxer=wav --enable-muxer='pcm*' --enable-demuxer='pcm*' --enable-muxer=rawvideo --enable-demuxer=rawvideo --enable-muxer=rtsp --enable-demuxer=rtsp --enable-muxer=rtsp --enable-demuxer=sdp --enable-muxer=fifo --enable-muxer=tee --enable-parser=h264 --enable-parser=aac --enable-protocol=file --enable-protocol=tcp --enable-protocol=rtmp --enable-protocol=cache --enable-protocol=pipe --enable-filter=aresample --enable-filter=allyuv --enable-filter=scale --enable-libfreetype --enable-indev=v4l2 --enable-indev=alsa --enable-omx --enable-omx-rpi --enable-encoder=h264_omx --enable-mmal --enable-hwaccel=h264_mmal --enable-decoder=h264_mmal
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, rtsp, from 'rtsp://admin:[email protected]:554/h264/ch1/main/av_stream':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.128000, bitrate: N/A
Stream #0:0: Video: h264, yuv420p(progressive), 1280x720, 15 fps, 25 tbr, 90k tbn, 30 tbc
Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
[NULL @ 0x249ee00] Requested output format 'null' is not a suitable output format
pipe:: Invalid argument
如果换成下面的截取30秒的视频存为test.mp4看了视频都正常的。
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]:554/h264/ch1/main/av_stream -an -t -f mp4 test.mp4 -y
这是配置正确还是不正确?
然后HA里配置出不来图像,log如下 ,其中192.168.50.150是我所用的本地电脑的本机IP地址。
2018-10-25 14:40:44 INFO (MainThread) [homeassistant.components.http.view] Serving / to 192.168.50.150 (auth: False)
2018-10-25 14:40:44 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/authorize to 192.168.50.150 (auth: False)
2018-10-25 14:40:45 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/providers to 192.168.50.150 (auth: False)
2018-10-25 14:40:45 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/login_flow to 192.168.50.150 (auth: False)
2018-10-25 14:40:55 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/login_flow/ddfbef1813954c0a95bca5d230487ebd to 192.168.50.150 (auth: False)
2018-10-25 14:40:57 INFO (MainThread) [homeassistant.components.http.view] Serving / to 192.168.50.150 (auth: False)
2018-10-25 14:40:57 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/token to 192.168.50.150 (auth: False)
2018-10-25 14:40:57 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.50.150 (auth: False)
2018-10-25 14:41:06 INFO (MainThread) [homeassistant.components.http.view] Serving /api/camera_proxy_stream/camera.ezviz to 192.168.50.150 (auth: False) |
|