xiongguangjie
51f49d3a89
Fix mp4 record segment bug ( #4008 #4007 )
2024-11-09 19:33:36 +08:00
286897655
8e823b3b74
提升rtsp协议兼容性 ( #4003 )
...
海康解码器播放rtsp流url带了?key=value参数,SETUP时会带着这些参数,导致获取trackid失败
2024-11-09 19:32:18 +08:00
xia-chu
ef11c66fb8
新增语音对讲接口(startSendRtpTalk)
2024-11-09 19:29:04 +08:00
mtdxc
901c381300
新增获取推流推流代理列表和ffmpeg源列表接口 ( #3992 )
2024-11-01 10:47:18 +08:00
wuxingzhong
6729257eab
修复时间戳回退导致超大mp4切片问题 ( #3991 )
...
当出现dts回退时,应该取frame->dts(), 即MIN, 非MAX
2024-10-31 20:11:34 +08:00
xiongguangjie
cc590254a6
fix compile error for ci
2024-10-28 10:59:37 +08:00
xia-chu
18d5fb71f3
增强hls点播功能,每个切片文件夹生成一个m3u8索引文件
2024-10-26 16:42:06 +08:00
xia-chu
4c90a1a95b
Instantly enable recording support for GOP caching
2024-10-18 22:22:13 +08:00
xia-chu
61a93fab6a
MP4 reader supports loading multi files
2024-10-13 02:09:39 +08:00
xia-chu
e4025a6811
Improve timestamp corrector
2024-10-13 00:23:34 +08:00
xiongguangjie
6b2fcf7943
Fix the issue where the hls-fmp4 do not flush data in single audio cases ( #3935 #3937 )
2024-09-29 11:55:58 +08:00
xiongguangjie
de7afaf992
Avoid negative PTS in the RTSP protocol ( #3929 #3815 )
...
Optimaztion for issue #3815 ffmpeg rtsp pull stream has negative pts
2024-09-26 10:59:41 +08:00
Dw9
f3e2a29cbd
Fix crashes where iterators may be invalid ( #3920 )
...
Fix : #3885
2024-09-19 20:16:16 +08:00
alex
4152dcd409
AI automatically translates all comments in the code into English ( #3917 )
2024-09-19 14:53:50 +08:00
Dw9
046de691cb
Fix the issue of RTP sorting cache crashing when the sequence is reset ( #3915 )
2024-09-18 19:09:14 +08:00
xiongguangjie
8f03105baa
Fix bug #3894 of rtsp over http ( #3903 )
2024-09-17 09:44:22 +08:00
Talus
7c914666f2
Fix issue where when RTP timestamp does not change and packet loss occurs, the rtp parser's CommonRtpDecoder never outputs again ( #3891 )
...
Co-authored-by: TalusL <liangzhuohua@genew.com>
2024-09-13 17:44:30 +08:00
Talus
e2ac6dc176
Accelerate the ready speed of certain media that actually only have a single video track but the metadata contains an audio track ( #3885 )
...
加快某些实际上只有单视频track但是metadata包含音频track的媒体Ready速度,比如GB28181 PS流
---------
Co-authored-by: TalusL <liangzhuohua@genew.com>
2024-09-13 14:59:46 +08:00
老衲不出家
e322db0a04
兼容seq计数器重置不规范的rtp流 ( #3860 )
...
rtp seq在重置回退时,之前的逻辑会一直丢数据,修改后将兼容这种不规范的rtp流。
2024-09-05 17:28:33 +08:00
wEnchanters
bd40c24745
startSendRtp接口支持指定接收流的app和vhost参数 ( #3841 )
2024-08-22 19:50:29 +08:00
xiongguangjie
cb1821cf88
Fix addStreamProxy retry bug ( #3830 #3810 #3837 )
...
Fix addStreamProxy retry bug( protocol option overwrite once play
success ), result in some media source not register; it's found by the
issue #3830 #3810
2024-08-22 11:11:04 +08:00
xiongguangjie
ba1a88f202
修复ffmpeg5以上默认不合并帧导致解码失败的bug ( #3809 #3794 )
...
FFmpegDecoder 默认合并帧,ffmpeg 5以上不支持将不完整的帧送入解码器中,根据 issue #3794 做出修改
2024-08-10 11:09:54 +08:00
xia-chu
da704ab2f1
更新并适配ZLToolKit
2024-08-04 20:46:05 +08:00
xiongguangjie
47b8435d7c
修复addStreamProxy拉流代理同协议下开关问题 ( #3779 #3770 )
2024-08-02 21:32:32 +08:00
u7ko4
e3cad7f8fa
支持绑定到指定网卡 ( #3760 )
2024-08-01 11:03:26 +08:00
xia-chu
81aef25583
整理startSendRtp相关接口,新增支持udp被动模式
...
startSendPassive接口指定is_udp为1时则为开启udp被动模式, 被动模式下需要对方先发数据给zlmediakit,然后才能回复rtp数据;
同时在被动模式指定src_port时,不再等待对方连接成功后再返回(而是直接返回成功和端口号,失败通知请监听on_send_rtp_stopped hook)。
2024-07-28 23:37:13 +08:00
xiongguangjie
8398ae17e4
compatible rtsp sdp parse no samplerate for audio ( #3740 )
...
兼容rtsp sdp协商中未声明采样率但是可以通过a 字段中fmtp中有config中解析出来的情况
2024-07-21 20:43:52 +08:00
xia-chu
9463d1291d
修复编译警告
2024-07-21 19:47:36 +08:00
xia-chu
66065f5359
修复rtp推流协议为空的bug
2024-07-21 19:17:12 +08:00
chdahuzi
c6a8118c10
fmp4封装超过一定I帧间隔,强制刷新segment,防止内存上涨 ( #3736 )
2024-07-19 17:10:22 +08:00
张传峰
aad98be5ef
ehome协议推流花屏问题 ( #3720 )
...
https://github.com/ZLMediaKit/ZLMediaKit/issues/3710
当前修改方式 只检测一次 由于第一个数据是256字节需要检测两次 ;现在修改方式是检测3次, 如果失败就不是ehome。后续不需要检测
2024-07-17 11:40:10 +08:00
mtdxc
d735aa1797
Media tuple refactor ( #3715 )
...
Co-authored-by: cqm <cqm@97kid.com>
2024-07-14 09:32:41 +08:00
张传峰
0eb38635ce
国标推流一直打印 'Already existed a same track' ( #3713 )
...
https://github.com/ZLMediaKit/ZLMediaKit/pull/3689
https://github.com/ZLMediaKit/ZLMediaKit/issues/3702#issuecomment-2222326053
2024-07-14 09:27:14 +08:00
waken
9727e03c2e
修复创建单端口udp_server自定义vhost、app为空问题 ( #3714 #3702 )
2024-07-14 09:26:29 +08:00
PioLing
3e7e1a317e
Fix the bug in Win32 that fails to retrieve sizes larger than 4GB. ( #3707 #3702 )
2024-07-10 10:43:14 +08:00
zhang2349
c72e576420
rtp server新增支持自定义vhost和app名称 ( #3693 )
...
代码来自https://github.com/ZLMediaKit/ZLMediaKit/pull/3446 , 增加了vhost
2024-07-09 10:42:10 +08:00
xia-chu
b4fecdc929
防止对象析构时抛异常导致的崩溃
2024-07-05 21:06:11 +08:00
zhang2349
6c3d362b5a
修正finish是true但track不支持,没有执行addTrackCompleted的问题 ( #3689 )
...
加快track类型不支持时媒体的注册速度
2024-07-05 20:55:36 +08:00
xiongguangjie
5b4ec8415d
Fix dahua nvr rtsp record compatible bug ( #3677 #3632 )
2024-07-05 20:54:06 +08:00
xiongziliang
8390d72b78
优化on_publish hook响应太慢导致rtp推流无法秒开的问题
...
由限制缓存个数改成限制缓存时间长度(10秒)
2024-06-28 22:40:44 +08:00
xia-chu
5470049076
精简ProtocolOption相关代码
2024-06-28 19:40:46 +08:00
sgzed
cf6066b36e
bugfix: 修复所有Player的删除器使用同一个线程进行析构导致崩溃的问题 ( #3672 )
...
Player的删除器release_func是static类型,weak_poller不会更新了。后面析构使用的就不是正确的poller线程了。
2024-06-28 16:08:10 +08:00
Lidaofu
5a717186dd
feat: 增加拉流代理rtsp时提供倍速功能支持 ( #3669 )
...
Co-authored-by: lidaofu <lidf@ahtelit.com>
2024-06-28 16:08:08 +08:00
xiongziliang
2bf16e63e1
保证rtp服务器tcp模式下线程安全
2024-06-22 13:04:06 +08:00
Xiaofeng Wang
84dbe4b076
Send config frames once before sending DirectProxy RTP packets ( #3611 )
2024-06-16 09:37:33 +08:00
PioLing
f9f386bc23
修改完善MediaSource事件拦截器 ( #3622 )
2024-06-14 12:59:02 +08:00
PioLing
d34da06766
bugfix: 修复rtp推流观看人数统计异常的问题 ( #3620 #3615 )
2024-06-13 11:41:22 +08:00
xia-chu
8159f4e085
bugfix: 修复rtp服务器单端口tcp模式下访问空指针崩溃的问题
2024-06-12 20:18:50 +08:00
xiongziliang
77d2df1695
移除RtpSelector相关逻辑,优化代码结构
2024-06-09 10:52:10 +08:00
zwcarl
9a5fdd3dac
修复组播bug ( #3602 )
...
当多个客户端拉同一个组播源时,如果此时源被析构,会偶现使用该源的组播对象没有被析构的情况,在RtpMultiCaster的_rtp_reader->setDetachCB回调函数中,先移除该组播对象再通知上层session可以解决此问题
---------
Co-authored-by: zhengwang <carl.zheng@lednets.com>
2024-06-09 10:42:02 +08:00
xiongziliang
4cd735f61d
编码H264时支持时间戳透传,修复时间戳相关问题
2024-06-02 13:34:51 +08:00
xiongziliang
189b02e400
解析rtp时,兼容rtsp服务端发送缓冲区溢出覆盖的bug
2024-06-02 13:11:45 +08:00
KkemChen
373620cfc6
feat: add broadcast event for player count change ( #3562 )
2024-05-23 10:30:11 +08:00
admin
472d7d1e4f
兼容rtsp服务端发送缓冲区溢出覆盖的bug
2024-05-15 14:31:36 +08:00
xia-chu
bbdbd6a3e0
feat: Using kBeatIntervalMS option for rtsp heartbeat interval time and add kRtspBeatType for setting rtsp heartbeat type
2024-05-11 14:41:18 +08:00
xiongguangjie
1c89950ebe
Fix record info size to int64 ( #3527 )
2024-05-11 10:49:33 +08:00
yanggs
046aaa3498
修复拉取指定流时时长信息丢失的问题 ( #3500 )
2024-05-01 13:19:47 +08:00
xia-chu
664d0b67bc
Add the listRtpSender http api
2024-04-21 11:31:43 +08:00
xia-chu
e4de454d5d
Charset default to UTF-8 on Windows
2024-04-20 22:25:21 +08:00
xia-chu
ff70ef233c
Fix bug where ts files are not written into m3u8 file during HLS playback.
2024-04-20 20:00:25 +08:00
xiongguangjie
d8cb75d387
Improve url encode and decode code add user pass encode decode methond ( #3468 )
...
去除url转义的冗余代码,添加用户名与密码的转义
2024-04-13 20:36:15 +08:00
xia-chu
af3ef996b0
Avoid build warnings in the main code
2024-03-30 14:59:28 +08:00
xia-chu
390c374086
Optimize the code
...
1. change param_strs to params
2. move params from MediaInfo to MediaTuple
3. passing MediaTuple as a parameter for some functions
2024-03-30 14:41:20 +08:00
xiongziliang
3e13e69724
BufFix: avoid may change data in splitter
2024-03-24 22:01:56 +08:00
Jacob Su
208f57e2cd
Fix macOS compile error by rename version.h -> ZLMVersion.h ( #3411 #3410 )
2024-03-24 17:18:18 +08:00
johzzy
029813402d
feat: update negotiateSdp and WebRtcArgs ( #3371 )
...
- update negotiateSdp
- update HttpAllArgs and alias
- update onRtcConfigure
- define setWebRtcArgs, handle set_webrtc_cands and setLocalIp
---------
Co-authored-by: xiongziliang <771730766@qq.com>
Co-authored-by: KkemChen <kkemchen@qq.com>
2024-03-23 22:46:30 +08:00
xia-chu
b05f515ccc
Revert "Fix the issue of failing to push streams to FMS 3.0 server"
...
This reverts commit 3b7f16b755 .
2024-03-22 20:50:07 +08:00
xia-chu
49ddde28c0
Refactor code
2024-03-22 20:50:07 +08:00
xia-chu
e972ec5a22
Remove deprecated code
2024-03-22 20:50:07 +08:00
xia-chu
5036aa5ec5
BugFix: crashes when exceptions are thrown during destruction #3402
2024-03-22 20:50:07 +08:00
百鸣
ff43fa5075
Fix the issue of abnormal timestamps during MP4 recording. ( #3363 )
...
Co-authored-by: xingqiao <xingqiao@uni-ubi.com>
2024-03-16 22:01:06 +08:00
haorui wang
3b7f16b755
Fix the issue of failing to push streams to FMS 3.0 server. ( #3362 )
...
[how]
1. AMF 为简单类型时填插 AMF Null (参考 OBS 以及实际测试)
2. createStream 前附加 releaseStream 和 FCPublish, 兼容旧 FMS3.0
3. 正确处理 RTMP Header fmt 为 1 和 2 的业务逻辑
2024-03-16 21:58:33 +08:00
xia-chu
50f65c4ba4
Random port pool ensures that both UDP and TCP modes are available simultaneously
2024-03-16 21:53:30 +08:00
xia-chu
1930d909f9
Fix the thread safety issue caused by poller thread switching when paced sender enabled
2024-03-16 21:53:30 +08:00
xiongguangjie
c9c2706843
avoid addstreamproxy rtsp user or pass contain +
2024-03-16 21:52:24 +08:00
xiongguangjie
af155ef87a
no track throw error avoid addstreamproxy already exist
2024-03-16 21:52:24 +08:00
jamesZHANG500
03c93d0b23
Add config for save fmp4 record files ( #3356 )
2024-03-10 16:19:02 +08:00
xiongguangjie
fe61b572e0
Fix hls fmp4 clear cache bug ( #3355 )
...
Fix hls fmp4 clear cache delete init.mp4 result in play failed for #3348
2024-03-08 11:04:59 +08:00
waken
79b2aa6adc
openRtpServer接口增加单视频参数,加快单视频流注册速度 ( #3342 )
...
only_audio -> only_track
2024-03-05 17:06:31 +08:00
张传峰
ffdc13bfb9
RTP proxy通过UDP收流,调整udp recv socket buffer size成配置 ( #3336 )
...
国标推流有些情况需要UDP方式接收流,端口复用同一个UDP端口可能需要根据服务器性能
2024-03-05 10:42:22 +08:00
johzzy
f49aed7a32
srt optimization code for query poller ( #3334 )
...
- add querySrtTransport, improve code.
- update SrtTransportManager key
- fix some warning
2024-03-02 18:25:32 +08:00
夏楚
24ad9c9b9e
Support mpegts rtp payload in startSendRtp ( #3335 )
2024-03-02 16:53:53 +08:00
gongluck
5a6364bae2
Add datachannel c apis and callbacks( #3328 )
...
增加datachannel数据收发的回调通知 #3326,和控制datachannel回显的开关
---------
Co-authored-by: xiongziliang <771730766@qq.com>
2024-03-02 16:52:51 +08:00
xiongguangjie
06abbd0eb7
rtp send rtp g711 audio can config duration ( #3325 )
...
optimization for this
[issue](https://github.com/ZLMediaKit/ZLMediaKit/issues/3316 )
2024-03-02 16:40:13 +08:00
xiongziliang
81b08af0ce
Ensure thread safety of player and pusher
2024-02-07 23:06:42 +08:00
sandro-qiang
ceae040a7a
Fix http url path and component's coding ( #3237 #3181 )
2024-01-28 19:18:36 +08:00
xiongziliang
cfe9a31ca6
Fix http cross domain issues
2024-01-27 21:29:10 +08:00
chdahuzi
56bdb14baf
解决流名被替换后,getRtpInfo等接口无法使用新流名的问题 ( #3265 )
2024-01-27 20:55:57 +08:00
PioLing
fdc5bfac26
Add win32 mmap ( #3229 )
2024-01-18 11:04:27 +08:00
chdahuzi
8d951f06a0
修复rtp udp推流时,调用close_stream延时3秒才注销的bug ( #3226 )
2024-01-17 18:11:56 +08:00
xiongziliang
6514be74f1
Prevent access to nullptr when cloning a track
2024-01-15 20:34:17 +08:00
Seto
27217cb1e6
Fix _media_src setIndexFile by mistake for include_delay.
2024-01-06 18:42:57 +08:00
xiongziliang
8048cd886b
Fix typo error of VideoTrackImp
2024-01-06 18:17:51 +08:00
SetoKaiba
b6cbbb4339
Add hls_delay feature ( #3158 )
2024-01-03 09:05:15 +08:00
xiongziliang
519cce8c29
Add data alignment declaration
2023-12-31 22:15:51 +08:00
xiongziliang
f382f1fa95
Replacing switch case with codec map
...
Prevent the occurrence of multiple case with same value
2023-12-31 22:14:58 +08:00
xiongguangjie
9d68b668fc
Add http pipelining request support ( #3154 )
...
Support recv multi http request before reponse it.
Co-authored-by: 夏楚 <771730766@qq.com>
2023-12-23 21:27:28 +08:00
PioLing
c7f2f9e883
Change fillPicture (av_image_fill_arrays() ) align size from 1 to 32 ( #3142 )
2023-12-18 16:28:00 +08:00
xiongziliang
e593ef5fef
Change av_image_fill_arrays align size from 1 to 32
...
To avoid crash in some cases
2023-12-17 18:22:58 +08:00
xiongziliang
189f787746
Disable enhanced-rtmp H265 default
2023-12-17 18:10:47 +08:00