imsjt / rtspserver Goto Github PK
View Code? Open in Web Editor NEWRTSP服务器,支持传输H.264和AAC格式的音视频
RTSP服务器,支持传输H.264和AAC格式的音视频
[rtsp @ 0x7f4c7c000bc0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://172.16.4.225:8554/live':
now here h.264 frame is ready
can add h.265 rtsp server?
/RtspServer/src/extend/v4l2/V4l2MediaSource.cpp:224:12: error: ‘X264_CSP_YUYV’ was not declared in this scope
mCsp = X264_CSP_YUYV;
拜读完楼主的代码,十分佩服,决定拿来用一下,感谢楼主的分享,学到了许多有用的技术~
另外,对于内存管理模块的作用,我感觉并不是很重要,楼主设计的内存管理模块,十分精致,可是我觉得那些管理的策略,只适用于内存资源极度匮乏的硬件上,如果内存资源充足,我认为没有什么必要。
考虑到这个rtsp server一般运行在资源充足的设备上,我建议直接new相应的对象,更进一步,可以采用智能指针来做,避免裸指针,希望和楼主交流一下
使用的gcc版本为gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-
请教几个小问题
1、该RtspServer 能支持几路输出呢,延时情况怎么样呢?
2、代码遵循什么协议呢?是否可以商用
编译后运行 example/test.h264 直接报
Segmentation fault (core dumped)
就退出了
RtspServer/src/net/RtspConnection.cpp
Line 158 in 32d2fbc
1.运行./v4l2_rtsp_server /dev/video0
2. 用vlc打开rtsp://192.168.199.221:8554/live
3. 再关闭后报错
x264 [info]: using cpu capabilities: none!
x264 [info]: profile High 4:2:2, level 2.2, 4:2:2, 8-bit
Play the media using the URL "rtsp://192.168.199.221:8554/live"
malloc(): unsorted double linked list corrupted
Aborted
h264_rtsp_server.cpp :
H264FileMediaSource::H264FileMediaSource(UsageEnvironment* env, std::string& file)
{
for(int i = 0; i < DEFAULT_FRAME_NUM; ++i)
mEnv->threadPool()->addTask(mTask);
}
1、您好,我对上面这部分代码不太明白这部分用意。这部分使用线程池,为什么默认为4个任务呢?线程池调用执行readFrame() 进行生产者进行数据提取,在h264_rtsp_server.cpp 中仅是从文件中提取h264数据,这时4个任务对应着4个线程,这里采用线程池,是不是仅为了加速还是什么原因呢?
PS:我测试了下,一个任务同样可以支持多路播放。
2、生产者直接放入queue中,消费者则定时的从queue中取数据,二者之间会不会出现数据缓存过多,造成的延时问题呢?
请问这个项目是什么license?
你好,我使用v4l2想查看摄像头的图像,连接的是罗技C270i相机,编译没问题,运行后,相机上的指示灯亮了,但是VLC中没有图像,是黑屏状态,请问是什么问题造成的?
启动延迟时间随文件大小增长而增长,楼主的example非常小是有几百KB,故感觉不出来,可以确定的是vlc发起的连接请求这边接收的非常及时,可以说是即时接收,但是要等个30s才能播放出画面(pc端,arm上更久),这期间程序在做什么事情?并且播放过程中容易出现画屏的现象
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.