Coder Social home page Coder Social logo

rtspserver's People

Contributors

imsjt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtspserver's Issues

Could not find codec parameters for stream 0

[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':

编译

/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相应的对象,更进一步,可以采用智能指针来做,避免裸指针,希望和楼主交流一下

ubuntu 运行 v4l2_rtsp_server 问题

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

there are some question about threadpool and task ?

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中取数据,二者之间会不会出现数据缓存过多,造成的延时问题呢?

VLC打开URL时可能会崩溃

经排查,是使用了已释放的内存导致崩溃,在Allocator::dealloc函数里,释放内存free(p)之后,需要加一个return,然后就可以了
image

黑屏

你好,我使用v4l2想查看摄像头的图像,连接的是罗技C270i相机,编译没问题,运行后,相机上的指示灯亮了,但是VLC中没有图像,是黑屏状态,请问是什么问题造成的?

播放大的h264文件时vlc观看有非常大的启动延迟现象,文件70MB时可达30s

启动延迟时间随文件大小增长而增长,楼主的example非常小是有几百KB,故感觉不出来,可以确定的是vlc发起的连接请求这边接收的非常及时,可以说是即时接收,但是要等个30s才能播放出画面(pc端,arm上更久),这期间程序在做什么事情?并且播放过程中容易出现画屏的现象

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.