live555: The input frame data was too large for our buffer size

采用Live555作为流媒体服务器端,进行RTSP的请求的时候,会出现如下的提示:

MultiFramedRTPSink::afterGettingFrame1(): The input frame data was too large for our buffer size (100452).  13457 bytes of trailing data was dropped!  Correct this by increasing "OutPacketBuffer::maxSize" to at least 113457, *before* creating this ‘RTPSink‘.  (Current value is 100000.)

To solve this, you need to make the following changes to your code:

1. Go to “live/liveMedia/MultiFramedRTPsource.cpp” and change “ increaseReceiveBufferTo(env, RTPgs->socketNum(), 2000000);”
    2. go to “live/liveMedia/StreamParser.cpp” and increase BANK_SIZE to 300000 or 600000.
(This will also help remove StreamParser Error that you might encounter!)
    3. In “live/liveMedia/MediaSink.cpp” change the value of unsigned OutPacketBuffer::max size to 600000.
    4. In “mediaServer/DynamicRTSPServer.cpp”, change OutPacketBuffer::maxSize to 600000 at all places where it is defined.
    5. *Most importantly, you need to change the code in your own program, more so than the libraries themselves. This means that if you just do what pt.5 tells you to, you can avoid pts 1-4. Therefore, in your code change OutPacketBuffer::maxsize to 600000 (Our code file is testH264VideoStreamer.cpp so we made the above change in that. Note: testH264VideoStreamer.cpp lies in testProgs directory). You NEED to change this value in your code before you create any RTP sinks.
    6. Also to allow for more holistic changes, go to “testProgs/playCommon.cpp” and change the value of fileSinkBufferSize to 600000.
 ///////////////////////////////////////////////WHAT ELSE CAN BE DONE////////////////////////////////////////////////////////
    It is more advisable to reduce the buffer size of your stream by increasing compression levels. Also you would need to increase the buffer size of vlc player to allow for smooth streaming. To do so, go to VLC-> Tools -> Preferences -> Select “Show All” -> Click on Stream Output -> Change “stream output muxer caching” to a suitable value in ms. (1500 - 3000)

参考

http://blog.csdn.net/li_wen01/article/details/59520914

时间: 2024-10-18 02:31:54

live555: The input frame data was too large for our buffer size的相关文章

How to read frame data (Fighting Game)

How to read frame data Here's what the text on the frame data pages means. Move: The name of the attack you're using. Startup: The number here represents how many frames of animation take place before this move is capable of hitting your opponent. Ac

dubbo报错Data length too large: 10710120处理,及服务提供者协议配置详细说明

工作中遇到以下报错信息 [plain] view plain copy cause: java.io.IOException: Data length too large: 10710120, max payload: 8388608, channel: NettyChannel [channel=[id: 0x09396776, /10.195.2.51:48887 => /10.195.2.21:20881]] java.io.IOException: Data length too lar

InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!

问题描述: centos 安装MySQL $yum install mysql-server 安装之后执行命令mysql 报错: 查看mysql的启动日志: [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevan

auto-extending data file ./ibdata1 is of a different size auto-extending data file ./ibdata1 is of a different size

160315 17:08:19 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data160315 17:08:19 [Warning] Using unique option prefix thread_cache instead of thread_cache_size is deprecated and will be removed in a future release. Please u

ffmpeg 错误 real-time buffer [USB2.0 Camera] [video input] too full or near too full (101% of size: 30412)

利用ffmpeg 获取USB 或者本地摄像机视频,并将视频编码后保存本地文件或者发送到远端流媒体服务经常会出现 类似real-time buffer [USB2.0 Camera] [video input] too full or near too full (101% of size: 30412) 这样的错误,其根本 原因是编码的速度太慢导致过多的图片数据保存在缓存内,缓存区空间太小或满了就会报错.如何解决这个问题呢? 有两条思路:1加快编码速度,可以选择硬件编码.2是读取视频包跟编码分两

mysql5.7.12/13在安装新实例时报错:InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero

.bin/mysqld --initialize-insecure --basedir=xxx --datadir=xxx 然后 .bin/mysqld_safe --defaults-file=xxx --user=mysql & 抛错: InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file:

[CareerCup] 10.2 Data Structures for Large Social Network 大型社交网站的数据结构

10.2 How would you design the data structures for a very large social network like Facebook or Linkedln? Describe how you would design an algorithm to show the connection, or path, between two people (e.g., Me -> Bob -> Susan -> Jason -> You).

data process for large scale datasets

Kmeans:   总体而言,速度(单线程): yael_kmeans > litekmeans ~ vl_kmeans 1.vl_kemans (win10 + matlab 15 + vs13编译有问题,但win7 + matlab13 +vs12可以) 2.litekmeans (直接使用,single form更快) http://www.cad.zju.edu.cn/home/dengcai/Data/code/litekmeans.m 3.yael_kmeans (multithre

庖丁解牛-----Live555源码彻底解密(RTP打包)

本文主要讲解live555的服务端RTP打包流程,根据MediaServer讲解RTP的打包流程,所以大家看这篇文章时,先看看下面这个链接的内容; 庖丁解牛-----Live555源码彻底解密(根据MediaServer讲解Rtsp的建立过程) http://blog.csdn.net/smilestone_322/article/details/18923139 在收到客户端的Play命令后,调用StartStream函数启动流 void OnDemandServerMediaSubsessi