IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 网络协议 -> TestPattern error -> 正文阅读

[网络协议]TestPattern error

[mpegts @ 0x7f77740027c0] PES packet size mismatch
[mpegts @ 0x7f77740027c0] Packet corrupt (stream = 1, dts = 84151592).
read_time:126
[h264 @ 0x7f7774022c00] error while decoding MB 64 29, bytestream -6
againV
read_time:3
[aac @ 0x7f777402e780] decode_band_types: Input buffer exhausted before END element found
@@@Invalid data found when processing input@@@
//这个是udp缓存的问题

Assertion desc failed at libswscale/swscale_internal.h:674
//这个是没收到流信息
-d 2
断音

udp中断报错
[h264 @ 0x7fd39c02e200] error while decoding MB 32 41, bytestream -7
[h264 @ 0x7fd39c02e200] concealing 3257 DC, 3257 AC, 3257 MV errors in I frame

av_read_frame返回值为-5 EIO打印日志为
@@@Input/output error@@@
//5min

/home/deviser/UHD4000R/livepush --config /home/deviser/UHD4000R/devices/0080000103/livepush.config --srcip 192.168.100.77 --srcport 25403 --dstip 192.168.100.78 --dstport 6017 --dev 1000012146 --magic 1180000103 --workmode 0 --type ipc --board-id -1 --url rtmp://192.168.100.150/live/gx1234

udp之前3.5s 2M时
udp之前6s 500K

用推mp4,一个半小时不崩

/home/deviser/UHD4000R/Receiver.sh &

[udp @ 0x7f7a340032c0] attempted to set receive buffer to size 104857600 but it only ended up set as 33554432

buffer_size=size
Set the maximum UDP socket buffer size in bytes.
fifo_size=units
Set the UDP receiving circular buffer size, expressed as a number of packets with size of 188 bytes. If not specified defaults to 7*4096.
overrun_nonfatal=1|0
Survive in case of UDP receiving circular buffer overrun. Default value is 0.

以上来自ffmpeg官方文档http://ffmpeg.org/ffmpeg-all.html

1080i50 9分钟13535~~13500 nobuffer如下:

URL = "udp://127.0.0.1:6017";
    //URL = "srt://192.168.100.78:8080?streamid=live.sls.com/live/test";
     AVDictionary *options = NULL;
    // ic->flags |= AVFMT_FLAG_NOBUFFER;//CODEC_FLAG_LOW_DELAY;AVIO_FLAG_NONBLOCK
    // ic->flags |= AVIO_FLAG_NONBLOCK;
    // ic->flags |= AVFMT_FLAG_NONBLOCK;
// URLContext
    // av_dict_set_int(&options, "timeout", 6, 0);
    //  av_dict_set(&options, "stimeout", "5", 0);//milliseconds
     av_dict_set(&options, "fflags", "nobuffer", 0);
        avformat_alloc_output_context2(&ic, 0, "mpegts", URL);
     int re = avformat_open_input(&ic, URL, NULL, &options);

1080i50 4分钟 6000~~6120

9分钟 13500~~13620

带音频睡眠 1080i50
15分钟 22500 ~~22500
20分钟 30027~~30000
用的下面配置

    avcodec_register_all();
    av_register_all();
    avformat_network_init();
    ic = avformat_alloc_context();
    //URL = "srt://127.0.0.1:8080?streamid=live.sls.com/live/test1";
    URL = "udp://127.0.0.1:6017";
     AVDictionary *options = NULL;
     //ic->flags |= AVFMT_FLAG_NOBUFFER;//CODEC_FLAG_LOW_DELAY;AVIO_FLAG_NONBLOCK
     //ic->flags |= AVIO_FLAG_NONBLOCK;
    // ic->flags |= AVFMT_FLAG_NONBLOCK;
// URLContext
    // av_dict_set_int(&options, "timeout", 6, 0);
    //  av_dict_set(&options, "stimeout", "5", 0);//milliseconds
     // ic->flags |= AVFMT_FLAG_GENPTS;
      //  ic->flags |= AVFMT_GENERIC_INDEX;
    //    ic->max_index_size = 99;
    av_dict_set(&options, "buffer_size", "33554432", 0);
    av_dict_set(&options, "reuse", "1", 0);
    av_dict_set(&options, "fifo_size", "30554432", 0);//200Mb
    av_dict_set(&options, "max_delay", "2000000", 0);
     int re = avformat_open_input(&ic, URL, NULL, &options);
  网络协议 最新文章
使用Easyswoole 搭建简单的Websoket服务
常见的数据通信方式有哪些?
Openssl 1024bit RSA算法---公私钥获取和处
HTTPS协议的密钥交换流程
《小白WEB安全入门》03. 漏洞篇
HttpRunner4.x 安装与使用
2021-07-04
手写RPC学习笔记
K8S高可用版本部署
mySQL计算IP地址范围
上一篇文章      下一篇文章      查看所有文章
加:2022-06-04 00:06:32  更:2022-06-04 00:06:50 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/19 14:17:32-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码