CN110933506B - 一种编解码无缝切换方法及系统 - Google Patents
一种编解码无缝切换方法及系统 Download PDFInfo
- Publication number
- CN110933506B CN110933506B CN201911113610.1A CN201911113610A CN110933506B CN 110933506 B CN110933506 B CN 110933506B CN 201911113610 A CN201911113610 A CN 201911113610A CN 110933506 B CN110933506 B CN 110933506B
- Authority
- CN
- China
- Prior art keywords
- decoding
- code stream
- coding
- new
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000009432 framing Methods 0.000 claims description 9
- 230000003044 adaptive effect Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/64—Addressing
- H04N21/6405—Multicasting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/64—Addressing
- H04N21/6408—Unicasting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64746—Control signals issued by the network directed to the server or the client
- H04N21/64761—Control signals issued by the network directed to the server or the client directed to the server
- H04N21/64776—Control signals issued by the network directed to the server or the client directed to the server for requesting retransmission, e.g. of data packets lost or corrupted during transmission from server
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
本发明公开了一种编解码无缝切换方法及系统,包括编码器和解码器,所述编码器主要包括编码控制单元和码流发送单元,解码器主要包括解码控制单元和多个解码通道,每个解码通道可独立完成音视频解码,解码控制单元主要响应用户的切换请求以及向编码控制单元发送请求控制,所述解码通道包括2个码流接收单元、切换单元和解码单元,本发明可以在解码输出端切换不同的编码视频源时,实现无缝切换,缩减从发出切换指令到完成切换时间。
Description
技术领域
本发明涉及视频编解码传输技术领域,具体涉及一种编解码无缝切换方法及系统。
背景技术
在分布式显控领域,解码输出端经常要求输出不同的编码视频源,现有的方法是先停止点播当前编码源,解码输出保持最后一帧,然后点播新的编码源。
现有方法具有缺陷,在停止点播当前编码源和再点播新的编码源过程中,会存在一断时间解码输出画面保持不变的状态,也会存在因为不同编码源I帧间隔设置的不同导致这段画面静止的时间不一致,导致用户体验变差。
《CN201811181905》提出了一种视频流无缝切换方法及装置,用于在线直播领域,可实现同一个视频源不同清晰度之间无缝切换,不适合不同视频源之间的切换,而且切换时效性小于8s,实时性不高。
《CN201610951766》提出了一种直播流无缝切换方法及装置,用于IPTV直播领域,可实现不同视频源无疑切换,切换的时间点在于收到新信号源的IDR帧后,旧的信号源输出也为IDR帧的时候。会存在因为不同信号源I帧间隔设置的不同,导致从发出切换指令到完成切换的时间会较大,也不确定,也会导致新信号源整体延时增加两个IDR之间的间隔时间,降低了实时性。本发明的目的是在解码输出端切换不同的编码视频源时,实现无缝切换,缩减从发出切换指令到完成切换时间。
发明内容
有鉴于此,本发明提供了一种编解码无缝切换方法及系统。
本发明提供一种编解码无缝切换系统,包括编码器和解码器,所述编码器包括编码控制单元和码流发送单元,所述解码器包括解码控制单元和多个解码通道,所述每个解码通道可独立完成音视频解码,所述解码控制单元主要响应用户的切换请求以及向编码控制单元发送请求控制,所述解码通道包括2个码流接收单元、切换单元和解码单元。
一种编解码无缝切换方法,包括以下步骤:
步骤1:解码控制单元收到切换指令后向新的编码器发送点播请求,如果当前使用的是码流接收单元1,则在码流接收单元2接收新的编码器发送过来的新的编码码流并完成组帧;如果当前使用的是码流接收单元2,则在码流接收单元1接收新的编码码流并完成组帧,2个码流接收单元接收的视频帧都发给切换单元;
步骤2:解码控制单元在新的码流接收单元准备好后,立即向所述新的编码器发送强制I帧请求,所述新的编码器在下一帧发出I帧;
步骤3:切换单元检测新视频帧的类型,如果不是I帧,则继续将旧的视频帧发送给后级解码单元,同时将新的视频帧丢弃;如果是I帧,则将新的视频帧I发送给后级解码单元,并产生切换完成信号;
步骤4:解码控制单元收到切换完成信号后向旧的编码器发送停止点播请求,并释放相关资源。
进一步地,所述2个码流接收单元可交替接收新、旧编码码流。
进一步地,所述每个码流接收单元支持包括RTSP/RTP/UDP的网络协议,支持丢包重传,支持单播和组播,并根据相应的协议进行组帧。
进一步地,所述解码控制单元完成音视频自适应解码。
进一步地,所述切换单元完成新、旧编码码流的无缝切换。
进一步地,所述编码控制单元收到点播请求后通知码流发送单元按照指定协议发送码流。
进一步地,所述编码控制单元收到停止点播请求后通知码流发送单元结束发送码流。
进一步地,视频编码算法支持包括H264、H265、MJPEG以及MPEG4,音频编码算法支持包括G711和AAC。
本发明提供的技术方案带来的有益效果是:在解码输出端切换不同的编码视频源时,实现无缝切换,缩减从发出切换指令到完成切换时间。
附图说明
图1是本发明一种编解码无缝切换方法及系统的方法流程图;
图2是本发明一种编解码无缝切换方法及系统的编码器组成图;
图3是本发明一种编解码无缝切换方法及系统的解码器组成图;
图4是本发明一种编解码无缝切换方法及系统的详细流程图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地描述。
请参考图1,本发明的实施例提供了一种编解码无缝切换方法及系统。
本发明提供一种编解码无缝切换系统,如图2和图3所示,包括编码器和解码器,所述编码器包括编码控制单元和码流发送单元,所述解码器包括解码控制单元和多个解码通道,所述每个解码通道可独立完成音视频解码,所述解码控制单元主要响应用户的切换请求以及向编码控制单元发送请求控制,所述解码通道包括2个码流接收单元、切换单元和解码单元。
一种编解码无缝切换方法,包括以下步骤:
步骤1:解码控制单元收到切换指令后向新的编码器发送点播请求,如果当前使用的是码流接收单元1,则在码流接收单元2接收新的编码器发送过来的新的编码码流并完成组帧;如果当前使用的是码流接收单元2,则在码流接收单元1接收新的编码码流并完成组帧,2个码流接收单元接收的视频帧都发给切换单元;
步骤2:解码控制单元在新的码流接收单元准备好后,立即向所述新的编码器发送强制I帧请求,所述新的编码器在下一帧发出I帧;
步骤3:切换单元检测新视频帧的类型,如果不是I帧,则继续将旧的视频帧发送给后级解码单元,同时将新的视频帧丢弃;如果是I帧,则将新的视频帧I发送给后级解码单元,并产生切换完成信号;
步骤4:解码控制单元收到切换完成信号后向旧的编码器发送停止点播请求,并释放相关资源。
所述2个码流接收单元可交替接收新、旧编码码流,所述每个码流接收单元支持包括RTSP/RTP/UDP的网络协议,支持丢包重传,支持单播和组播,并根据相应的协议进行组帧,所述解码控制单元完成音视频自适应解码。
所述切换单元完成新、旧编码码流的无缝切换,所述编码控制单元收到点播请求后通知码流发送单元按照指定协议发送码流,所述编码控制单元收到停止点播请求后通知码流发送单元结束发送码流,视频编码算法支持包括H264、H265、MJPEG以及MPEG4,音频编码算法支持包括G711和AAC。
在不冲突的情况下,本文中上述实施例及实施例中的特征可以相互结合,以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (7)
1.一种编解码无缝切换方法,其特征在于,包括以下步骤:
步骤1:解码控制单元收到切换指令后向新的编码器发送点播请求,如果当前使用的是码流接收单元1,则在码流接收单元2接收新的编码器发送过来的新的编码码流并完成组帧;如果当前使用的是码流接收单元2,则在码流接收单元1接收新的编码码流并完成组帧,2个码流接收单元接收的视频帧都发给切换单元;
步骤2:解码控制单元在新的码流接收单元准备好后,立即向所述新的编码器发送强制I帧请求,所述新的编码器在下一帧发出I帧;
步骤3:切换单元检测新视频帧的类型,如果不是I帧,则继续将旧的视频帧发送给后级解码单元,同时将新的视频帧丢弃;如果是I帧,则将新的视频帧I发送给后级解码单元,所述切换单元完成新、旧编码码流的无缝切换,并产生切换完成信号;
步骤4:解码控制单元收到切换完成信号后向旧的编码器发送停止点播请求,并释放相关资源。
2.根据权利要求1所述一种编解码无缝切换方法,其特征在于,所述2个码流接收单元可交替接收新、旧编码码流。
3.根据权利要求1所述一种编解码无缝切换方法,其特征在于,所述每个码流接收单元支持包括RTSP/RTP/UDP的网络协议,支持丢包重传,支持单播和组播,并根据相应的协议进行组帧。
4.根据权利要求1所述一种编解码无缝切换方法,其特征在于,所述解码控制单元完成音视频自适应解码。
5.根据权利要求1所述一种编解码无缝切换方法,其特征在于,所述编码控制单元收到点播请求后通知码流发送单元按照指定协议发送码流。
6.根据权利要求1所述一种编解码无缝切换方法,其特征在于,所述编码控制单元收到停止点播请求后通知码流发送单元结束发送码流。
7.根据权利要求1所述一种编解码无缝切换方法,其特征在于,视频编码算法支持包括H264、H265、MJPEG以及MPEG4,音频编码算法支持包括G711和AAC。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911113610.1A CN110933506B (zh) | 2019-11-14 | 2019-11-14 | 一种编解码无缝切换方法及系统 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911113610.1A CN110933506B (zh) | 2019-11-14 | 2019-11-14 | 一种编解码无缝切换方法及系统 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110933506A CN110933506A (zh) | 2020-03-27 |
CN110933506B true CN110933506B (zh) | 2021-10-22 |
Family
ID=69852939
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911113610.1A Active CN110933506B (zh) | 2019-11-14 | 2019-11-14 | 一种编解码无缝切换方法及系统 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110933506B (zh) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310919A (zh) * | 1998-09-16 | 2001-08-29 | Actv公司 | 压缩数字数据无缝视频切换系统 |
CN1345515A (zh) * | 1999-11-23 | 2002-04-17 | 皇家菲利浦电子有限公司 | Mpeg视频流的无缝切换 |
CN1960450A (zh) * | 2006-09-05 | 2007-05-09 | 中兴通讯股份有限公司 | 一种多媒体广播的频道切换方法和装置 |
CN101184228A (zh) * | 2006-11-13 | 2008-05-21 | 中兴通讯股份有限公司 | 视频序列的快速切换方法 |
CN102939766A (zh) * | 2010-06-14 | 2013-02-20 | 汤姆森特许公司 | 接收器和接收器侧使用单个解码器使能信道变化的方法 |
CN109246462A (zh) * | 2018-10-11 | 2019-01-18 | 苏宁易购集团股份有限公司 | 一种视频流无缝切换方法及装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010023504A1 (en) * | 2008-08-26 | 2010-03-04 | Csir | A method of switching from a first encoded video stream to a second encoded video stream |
-
2019
- 2019-11-14 CN CN201911113610.1A patent/CN110933506B/zh active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310919A (zh) * | 1998-09-16 | 2001-08-29 | Actv公司 | 压缩数字数据无缝视频切换系统 |
CN1345515A (zh) * | 1999-11-23 | 2002-04-17 | 皇家菲利浦电子有限公司 | Mpeg视频流的无缝切换 |
CN1960450A (zh) * | 2006-09-05 | 2007-05-09 | 中兴通讯股份有限公司 | 一种多媒体广播的频道切换方法和装置 |
CN101184228A (zh) * | 2006-11-13 | 2008-05-21 | 中兴通讯股份有限公司 | 视频序列的快速切换方法 |
CN102939766A (zh) * | 2010-06-14 | 2013-02-20 | 汤姆森特许公司 | 接收器和接收器侧使用单个解码器使能信道变化的方法 |
CN109246462A (zh) * | 2018-10-11 | 2019-01-18 | 苏宁易购集团股份有限公司 | 一种视频流无缝切换方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN110933506A (zh) | 2020-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5363473B2 (ja) | 改善されたメディア・セッション管理の方法と装置 | |
US7870465B2 (en) | Reducing channel-change time | |
US8488066B2 (en) | System and method for fast digital channel changing | |
US8760490B2 (en) | Techniques for a rate-adaptive video conference bridge | |
EP2518910A1 (en) | Seamless handover of multicast sessions in internet protocol based wireless networks using staggercasting | |
CN101686391A (zh) | 视频编码/解码方法、装置与视频播放方法、装置及系统 | |
WO2007007496A1 (ja) | 多地点会議システム、多地点会議方法及びプログラム | |
US9749379B2 (en) | Apparatus and method for receiving video service in hybrid network | |
CN103686221A (zh) | 一种适应公用无线网络实现音视频流畅播出的方法 | |
CN101938456A (zh) | 一种减小媒体延迟的方法、设备及系统 | |
KR102662292B1 (ko) | 스마트 tv의 영상을 미러링하는 스마트폰 및 미러링 방법 | |
CN103780907A (zh) | 一种视频数据流量整形的方法和装置 | |
KR100972092B1 (ko) | Iptv 방송 서비스 시스템 및 그 방법 | |
KR20050038646A (ko) | 멀티미디어 데이터를 스트리밍하는 방법 | |
CN105376595A (zh) | 一种视频混合编码系统和方法 | |
US20140321556A1 (en) | Reducing amount of data in video encoding | |
EP2324635A1 (en) | Subdivision of media streams for channel switching | |
CN105763941A (zh) | 一种频道切换方法和系统 | |
CN110933506B (zh) | 一种编解码无缝切换方法及系统 | |
CN103269448A (zh) | 基于rtp/rtcp反馈预警算法实现音视频同步方法 | |
US8208561B2 (en) | Technique for media frame decoding | |
Kim et al. | An adaptive buffering method for practical HTTP live streaming on smart OTT STBs | |
KR100981247B1 (ko) | Iptv 방송 서비스 시스템, 및 iptv 방송 서비스 시스템에 있어서의 채널 전환 방법 | |
KR101992533B1 (ko) | 실시간 iptv 방송에서의 채널 전환 시스템 | |
EP2908516A1 (en) | Process for transmitting an ongoing video stream from a publisher to a receiver through a MCU unit during a live session |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A seamless switching method and system for encoding and decoding Effective date of registration: 20231226 Granted publication date: 20211022 Pledgee: Wuhan area branch of Hubei pilot free trade zone of Bank of China Ltd. Pledgor: WUHAN XINGTU XINKE ELECTRONIC Co.,Ltd. Registration number: Y2023980073771 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |