- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我的 RTSP 服务器有问题 ultragrid .
我下载 Ultragrid-master,git 源代码,我运行 autogen.sh
接下来我运行 ./configure --enable-rtsp-server
,现在我已经启用了所有依赖项 liblivemedia-dev 的 rtsp 服务器。但是当我制作文件时出现此错误。
配置步骤
./configure --enable-portaudio --enable-rtsp-server
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking whether byte ordering is bigendian... no
checking whether char is unsigned... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking size of int *... 8
checking whether byte ordering is bigendian... (cached) no
checking size of size_t... 8
checking GIT presence... checking OS family... Linux
checking OS kernel version (major)... 3
checking OS kernel version (minor)... 19
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for if_nametoindex... yes
checking for strtok_r... yes
checking for drand48... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t in <stdint.h>... yes
checking for uint16_t in <stdint.h>... yes
checking for uint32_t in <stdint.h>... yes
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking for timer_create in -lrt... yes
checking for sin... no
checking for main in -lieee... yes
checking for sched_setscheduler... yes
checking for pthread_create in -lpthread... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking whether X11 headers are broken... no
checking dvs_clib.h usability... no
checking dvs_clib.h presence... no
checking for dvs_clib.h... no
checking for sv_open in -ldvsoem... no
checking for ./DeckLink/Linux/DeckLinkAPI.h... no
checking for ./DeckLink/Linux/DeckLinkAPIDispatch.cpp... no
checking for main in -lDeckLinkAPI... no
checking how to run the C++ preprocessor... g++ -E
checking BlueVelvet.h usability... no
checking BlueVelvet.h presence... no
checking for BlueVelvet.h... no
checking for BlueVelvetFactory in -lBlueVelvet64... no
checking for hanc_decoder_ex in -lBlueANCUtils64... no
checking for VideoMasterHD_Core.h... no
checking for VideoMasterHD_Sdi.h... no
checking for VideoMasterHD_Sdi_Audio.h... no
checking SDL/SDL.h usability... no
checking SDL/SDL.h presence... no
checking for SDL/SDL.h... no
SDL.h not found.
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for RTSP... no
checking for /usr/include/liveMedia/liveMedia.hh... yes
checking for RESIZE... no
checking for BLANK... no
checking GL/glew.h usability... no
checking GL/glew.h presence... no
checking for GL/glew.h... no
checking for GL/gl.h... no
checking for GL/glx.h... no
configure: WARNING: OpenGL headers (gl.h, glx.h) not found or not usable.
checking for GL/glx.h... (cached) no
checking for GL/gl.h... (cached) no
checking for glBindTexture in -lGL... no
checking for glXCreateNewContext in -lGL... no
checking for XCreateWindow in -lX11... yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking X11/Xutil.h usability... yes
checking X11/Xutil.h presence... yes
checking for X11/Xutil.h... yes
checking for XGetImage in -lX11... yes
checking for XFixesGetCursorImage in -lXfixes... no
checking X11/extensions/Xfixes.h usability... no
checking X11/extensions/Xfixes.h presence... no
checking for X11/extensions/Xfixes.h... no
checking for nvcc... no
checking for LIBGPUJPEG... no
checking for main in -lsail... no
checking for main in -lsail... (cached) no
checking for /usr/local/sage/include/sail.h... no
checking portaudio.h usability... yes
checking portaudio.h presence... yes
checking for portaudio.h... yes
checking for Pa_GetDeviceCount in -lportaudio... yes
checking jack/jack.h usability... yes
checking jack/jack.h presence... yes
checking for jack/jack.h... yes
checking for jack_client_new in -ljack... yes
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for snd_pcm_open in -lasound... yes
checking for TEXT... no
checking for V4L2... no
checking for LIBAVCODEC... no
checking for LIBAVUTIL... no
checking for CURSES... no
checking for CURSES... no
checking for CRYPTO... yes
checking for AES_ctr128_encrypt... yes
checking for VIDEO_MIX... no
checking for LAVC_HWDEC... no
UltraGrid configuration summary:
Target ...................... x86_64-unknown-linux-gnu
Debug output ................ no
Profiling support ........... no
IPv6 support ................ yes
RT priority ................. no
Standalone modules .......... no
License ..................... GPLv2
iHDTV support ............... no
OpenSSL-libcrypto ........... yes
CUDA support ................ no (host code compiler: default)
Library live555 ............. yes
Syphon ...................... no
AJA ......................... no
AV Foundation ............... no
Bluefish444 ................. no (audio: no)
DeckLink .................... no
DirectShow .................. no
DELTACAST ................... no
DVS ......................... no
OpenGL ...................... no
Quicktime ................... no
SAGE ........................ no
SDL ......................... no
Screen Capture .............. yes
V4L2 ........................ no
RTSP Capturer Client ........ no
SW Video Mix ................ no
Portaudio ................... yes
ALSA ........................ yes
CoreAudio ................... no
JACK ....................... yes
JACK transport .............. no
Realtime DXT (OpenGL) ....... no
JPEG ........................ no
JPEG to DXT ................. no
CUDA DXT .................... no
UYVY dummy compression ...... no
Libavcodec .................. no
blank capture filter ........ no
resize capture filter ....... no
text postprocess and filter . no
RTSP Server ................. yes
scale postprocessor ......... no
testcard extras ............. no
GPU accelerated LDGM ........ no
MCU-like video mixer ........ no
Libavcodec hw decoding ...... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
犯步错误
make
mkdir -p src src/audio src/audio/capture src/audio/codec src/audio/playback src/capture_filter src/compat src/crypto src/hd-rum-translator src/ihdtv src/rtp src/rtsp src/utils src/video_capture src/video_compress src/video_decompress src/video_display src/video_rxtx src/vo_postprocess ag_plugin bin cuda_dxt dxt_compress ldgm/src ldgm/matrix-gen lib lib/ultragrid
touch src/dir-stamp
gcc -std=gnu99 -g -O2 -I. -fPIC -msse4 -pipe -W -Wall -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/audio/capture/alsa.c -o src/audio/capture/alsa.o
gcc -std=gnu99 -g -O2 -I. -fPIC -msse4 -pipe -W -Wall -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/audio/capture/jack.c -o src/audio/capture/jack.o
gcc -std=gnu99 -g -O2 -I. -fPIC -msse4 -pipe -W -Wall -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/audio/capture/portaudio.c -o src/audio/capture/portaudio.o
gcc -std=gnu99 -g -O2 -I. -fPIC -msse4 -pipe -W -Wall -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/audio/playback/alsa.c -o src/audio/playback/alsa.o
gcc -std=gnu99 -g -O2 -I. -fPIC -msse4 -pipe -W -Wall -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-prototypes -Wmissing-declarations -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/audio/playback/jack.c -o src/audio/playback/jack.o
g++ -g -O2 -I. -std=gnu++11 -fPIC -msse4 -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/audio/playback/portaudio.cpp -o src/audio/playback/portaudio.o
g++ -g -O2 -I. -std=gnu++11 -fPIC -msse4 -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/crypto/openssl_decrypt.cpp -o src/crypto/openssl_decrypt.o
g++ -g -O2 -I. -std=gnu++11 -fPIC -msse4 -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/crypto/openssl_encrypt.cpp -o src/crypto/openssl_encrypt.o
g++ -g -O2 -I. -std=gnu++11 -fPIC -msse4 -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/rtsp/BasicRTSPOnlyServer.cpp -o src/rtsp/BasicRTSPOnlyServer.o
g++ -g -O2 -I. -std=gnu++11 -fPIC -msse4 -I/usr/include/groupsock -I/usr/include/liveMedia -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -g -DHAVE_CONFIG_H -DPATH_PREFIX='"/usr/local"' -DLIB_DIR='"/usr/local/lib"' -Wall -Wextra -Wpointer-arith -DGF_BITS=16 -D_GNU_SOURCE -Isrc -I. -I./src -I./test -Idxt_compress -I./speex-1.2rc1/include -c src/rtsp/BasicRTSPOnlySubsession.cpp -o src/rtsp/BasicRTSPOnlySubsession.o
src/rtsp/BasicRTSPOnlySubsession.cpp: In member function ‘virtual void BasicRTSPOnlySubsession::startStream(unsigned int, void*, void (*)(void*), void*, short unsigned int&, unsigned int&, void (*)(void*, u_int8_t), void*)’:
src/rtsp/BasicRTSPOnlySubsession.cpp:243:11: error: ‘struct msg_sender’ has no member named ‘port’
msgV1->port = ntohs(Vdestination->rtpPort.num());
^
src/rtsp/BasicRTSPOnlySubsession.cpp:272:11: error: ‘struct msg_sender’ has no member named ‘port’
msgA1->port = ntohs(Adestination->rtpPort.num());
^
src/rtsp/BasicRTSPOnlySubsession.cpp: In member function ‘virtual void BasicRTSPOnlySubsession::deleteStream(unsigned int, void*&)’:
src/rtsp/BasicRTSPOnlySubsession.cpp:304:11: error: ‘struct msg_sender’ has no member named ‘port’
msgV1->port = rtp_port;
^
src/rtsp/BasicRTSPOnlySubsession.cpp:334:11: error: ‘struct msg_sender’ has no member named ‘port’
msgA1->port = rtp_port_audio;
^
make: *** [src/rtsp/BasicRTSPOnlySubsession.o] Error 1
我在 linux ubuntu 上测试。
有谁能够帮助我?
最佳答案
这是因为您使用的 live555 版本与 ultragrid 不兼容。
此提交中未构建的代码已更改 ea1971c116dddee7a7cffe014c9a6d98f8d969fd , 表示要使用的 live555 版本。
为了使用推荐的 live 版本进行构建,您可以这样进行:
git clone https://github.com/xanview/live555
pushd live555
git checkout 35c375c
./genMakefile linux
make PREFIX=/tmp/live install
popd
./configure --enable-rtsp-server --with-live555=/tmp/live
make
关于linux - Ultragrid RTSP 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43990787/
我有一个简单的 Rtsp 客户端...客户端将 Rtsp 命令发送到 Rtsp 服务器并从服务器获取 RTP 数据包。 The problem is that after a time( about
所以我正在尝试创建一个流式传输音乐的 RTSP 服务器。 我不明白服务器如何播放音乐,不同的请求会得到当时正在播放的内容。 所以,整理我的问题: 1)服务器如何播放音乐文件? 2) 对服务器的请求如何
我已经安装 gst-rtsp-server我想尝试一个简单的代码。但是在编译时我收到以下错误: In function `main': test-launch01.c:(.text+0x64): un
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,因为
我刚刚开始研究流媒体库和底层协议(protocol)。我了解 rtsp/rtp 流媒体以及这两种协议(protocol)的用途。但是,如果我们需要 IP 地址、编解码器和 rtsp/rtp 协议(pr
我想从 Live-CAM 捕获 Rtsp 流,然后我想将其重新流式传输到另一个 Rtsp 服务器。 基本上,我的计算机将使用 FFMpeg 作为中继服务器。 我已经尝试过这个临时命令,但我无法让它工作
我正在使用 java web 应用程序使用 rtsp 从 IP 摄像机检索视频; rtsp url 在 url 本身中嵌入了用户名/密码,这似乎很不安全。例如rtsp://用户:密码@ip/... 有
对不起,我的英语不好 我正在为 rtsp 通信程序工作 此 RTSP 服务器在我的 SETUP 请求中回复 459 错误(不允许聚合操作) 我对此一无所知。 请帮我。我做错了什么? ==== Mess
对于这个问题的普遍性,我深表歉意。我尝试了很多东西,但似乎没有任何效果。我有服务器? (我们称它为 服务器 A)驻留在局域网中,那里也有一个 IP 网络摄像头。该网络摄像头不断在地址上提供 RTSP
对于这个问题的普遍性,我深表歉意。我尝试了很多东西,但似乎没有任何效果。我有服务器? (我们称它为 服务器 A)驻留在局域网中,那里也有一个 IP 网络摄像头。该网络摄像头不断在地址上提供 RTSP
我有一个 RTSP 视频源 (h265),我可以使用 VLC 显示它。我想将流分成两部分,一个以原始分辨率(使用 h265 编码),另一个以新的较低分辨率(使用 h264 编码)。这两个新流也应该是
实时流协议(protocol) (RTSP) 版本 1.0 发布为 RFC 2326 1998 年。 现在将近 20 年后,2.0 版发布为 RFC 7826 2016 年 12 月。 我想知道这些更
我想使用 Kurento 作为媒体服务器,它将 WebRTC 作为输入并提供 RTSP 流作为 url:rtsp://kurento/streamName 这可能吗? 我看到了https://gith
我正在使用 rtsp-simple-server ( https://github.com/aler9/rtsp-simple-server ) 并向 RTSP 服务器提供 FFMPEG 流。 我使用
关注:https://github.com/kyriesent/node-rtsp-stream和 How to display IP camera feed from an RTSP url ont
我目前有一个采用 H.264 编码的 IP 摄像机流式视频 (RTSP)。 我想使用 FFmpeg 将此 H.264 编码流转换为另一个 RTSP 流,但 MPEG-2 编码。我该怎么做?我应该使用哪
我目前正在为 Android 设备开发通过 RTSP/UDP 进行的视频流。我的目标是通过 4G 蜂窝网络流式传输视频。我面临的问题是所使用的方法不适用于 Samsung Galaxy Core SM
获取 [rtsp @ 000002aa9df0cb80] 方法设置失败:500 内部服务器错误 当我尝试在 opencv python 中流式传输 rtsp 相机但一段时间后它可以正常工作几分钟并且不
我是这个论坛的新手,我的英语水平不是最好的! 我有一个网站,在那里我发布了摄像机的视频流,以显示在嵌套时间现场发生的事情!一个具有高 IT 技能的人为我构建了一个小服务器用于重新流 (Datarhei
我收到一个 HTTP 错误 400,以响应下面显示的函数正在处理的以下 RTSP URL。 描述 rtsp://root:pass@192.168.1.47/axis-media/media.amp
我是一名优秀的程序员,十分优秀!