私はAxis P1347とAxis P1357の2台のカメラを持っています。 ffmpeg
はP1347で400 Bad Request
を取得しますが、すべてがP1357で正常に機能します。しかしAxis P1347のffmpegは400の不正リクエストを返しますが、Axis 1357の動作は
rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1
、ffmpegので同じURLがために、以下を与える:
は、私は次のURLを使用してアクシスP1347カメラからVLCを使用して成功しストリームRTSPビデオにできています軸P1347カメラ:
[email protected]:/home/ubuntu4# ffmpeg -re -v verbose -i "rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1"
ffmpeg version git-2016-05-02-9fcb59c Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 55. 23.100/55. 23.100
libavcodec 57. 38.100/57. 38.100
libavformat 57. 35.100/57. 35.100
libavdevice 57. 0.101/57. 0.101
libavfilter 6. 44.100/6. 44.100
libswscale 4. 1.100/4. 1.100
libswresample 2. 0.101/2. 0.101
libpostproc 54. 0.100/54. 0.100
rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1: Server returned 400 Bad Request
同じffmpegのコマンドはほぼ同じアクシスP1357カメラとの素晴らしい作品:VLCが正しい、映像を表示することができるかどうかは明らか
[email protected]:/home/ubuntu4# ffmpeg -re -rtsp_transport tcp -i "rtsp://10.8.3.90:554/axis-media/media.amp?videocodec=h264&audio=1"
ffmpeg version git-2016-05-02-9fcb59c Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 55. 23.100/55. 23.100
libavcodec 57. 38.100/57. 38.100
libavformat 57. 35.100/57. 35.100
libavdevice 57. 0.101/57. 0.101
libavfilter 6. 44.100/6. 44.100
libswscale 4. 1.100/4. 1.100
libswresample 2. 0.101/2. 0.101
libpostproc 54. 0.100/54. 0.100
Input #0, rtsp, from 'rtsp://10.8.3.90:554/axis-media/media.amp?videocodec=h264&audio=1':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.083300, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 2592x1944 [SAR 1:1 DAR 4:3], 12 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
rtsp
がオンと取り組んでいますか?では、なぜVLCはカメラで動作しますが、ffmpegでは動作しませんか?注意ffmpegがインストールされ、同様のカメラで正しく動作します。