CN116366882A - 超高清视频文件的快速预览查看方法 - Google Patents

超高清视频文件的快速预览查看方法 Download PDF

Info

Publication number
CN116366882A
CN116366882A CN202310307123.9A CN202310307123A CN116366882A CN 116366882 A CN116366882 A CN 116366882A CN 202310307123 A CN202310307123 A CN 202310307123A CN 116366882 A CN116366882 A CN 116366882A
Authority
CN
China
Prior art keywords
ultra
high definition
picture
video file
screenshot
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.)
Pending
Application number
CN202310307123.9A
Other languages
English (en)
Inventor
孙彦龙
纪亭
郑菲
吴奕刚
孙伟涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Arcvideo Technology Co ltd
Original Assignee
Hangzhou Arcvideo Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Arcvideo Technology Co ltd filed Critical Hangzhou Arcvideo Technology Co ltd
Priority to CN202310307123.9A priority Critical patent/CN116366882A/zh
Publication of CN116366882A publication Critical patent/CN116366882A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/48Matching video sequences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing 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
    • H04N21/234345Processing 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 the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing 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
    • H04N21/234381Processing 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 by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440245Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明公开了一种超高清视频文件的快速预览查看方法,包括以下步骤:对超高清视频文件进行编码处理环节时,获取视频每一个GOP中的I帧画面;根据超高清的实际尺寸提取I帧画面中的像素点,并拼合成低分辨率的画面作为当前画面的截图;在当前GOP中,将处理好的截图画面的数据存入对应时间点的SEI中;客户端将获取的超高清视频文件中的SEI信息全部提取,按照每一周期一个GOP获取一个视频当前截图画面,通过截图定位视频文件中对应的画面并查看。

Description

超高清视频文件的快速预览查看方法
技术领域
本发明属于视频处理技术领域,具体涉及一种超高清视频文件的快速预览查看方法。
背景技术
超高清(UltraHigh-Definition,UltraHD)是指国际电信联盟最新批准的信息显示“4K分辨率(3840×2160像素)”的正式名称。但实际平时生活中,超高清是一个泛用的定义,泛指那些高于现有常见的高清(1920x1080像素)的分辨率。除了原本的4K的概念,也可以指代更高的分辨率,例如,6K(5760×3240像素),8K(7680×4320像素),12K(11520×6480像素),16K(15360×8640像素),32K(30720×17280像素),64K(61440×35640像素),甚至128K(122880×71820像素)。这些超高清的视频文件中,极高的分辨率带来的是细腻显示效果,但同样的,超高清也意味着占用更多的存储和运算能力。作为常见的超高清源容量是巨大的,举例来说,4K的视频文件,18分钟的未压缩视频达3.5TB。目前,即使使用较主流的视频编解码设备处理,除了占用空间依然不小外,在原视频的编码压缩,以及将视频文件解码处理重新呈现都需要设备极强的运算能力。
目前主流的笔记本电脑可以通过调用解码优化后的内置硬件,实现4K视频文件解码播放的操作,但是更高一些的分辨率的视频文件,往往无法完成。更高分辨率的素材需要更强的硬件设备来完成解码处理操作,而更强的硬件设备,也意味着价格也非常高。而实际上,除了直接对素材进行编辑处理外,更多的应用场景中,只是希望对超高清视频文件本身内容进行大致的预览即可,不需要将素材整体进行解码处理查看。甚至常用的有些视频业务操作场景,还是主要是基于Web页面操作,这块业务其实只是对素材内容进行简单的查看即可,但如果是这些超高清视频文件,需要通过浏览器查看,查看操作对设备和浏览器都是不小的负担。为了完成查看的操作,不得不购买非常高昂的设备来实现查看的功能,大大增加了成本的支出。
发明内容
鉴于以上存在的问题,本发明提供一种超高清视频文件的快速预览查看方法。
为解决上述技术问题,本发明采用如下的技术方案:
一种超高清视频文件的快速预览查看方法,包括以下步骤:
对超高清视频文件进行编码处理环节时,获取视频每一个GOP中的I帧画面;
根据超高清的实际尺寸提取I帧画面中的像素点,并拼合成低分辨率的画面作为当前画面的截图;
在当前GOP中,将处理好的截图画面的数据存入对应时间点的SEI中;
客户端将获取的超高清视频文件中的SEI信息全部提取,按照每一周期一个GOP获取一个视频当前截图画面,通过截图定位视频文件中对应的画面并查看。
一种可能的实现方式中,所述根据超高清的实际尺寸提取I帧画面中的像素点包括:截图采用采样点的方式,在按像素点块的像素集合中,取一中心像素点为当前像素点块集合的特征像素点,在每个像素点块单元区域中,获取同一位置像素点作为当前像素点块单元区域采样。
一种可能的实现方式中,所述像素点块的的大小为4x4的整数倍。
一种可能的实现方式中,所述截图画面的数据包括像素点的RGB值。
一种可能的实现方式中,所述周期为1-2秒一个GOP。
采用本发明具有如下的有益效果:通过原始的视频文件在编码阶段获取视频中一部分画面进行处理,并将对应的画面进一步处理做成一系列的截图,并增加到视频的附加数据中。后续实际对该素材进行预览时,可以通过加载和处理附加数据得到该超高清视频文件的画面截图。由于数据处理量大大缩小,不但减少了解码播放需要的加载耗时,也更利于低性能设备对视频文件的查看,甚至可以通过浏览器支持Web页面对超高清内容的查看和预览。
附图说明
图1为本发明实施例的超高清视频文件的快速预览查看方法的步骤流程图;
图2为本发明一具体应用实例中画面拼接示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,所示为本发明实施例的一种超高清视频文件的快速预览查看方法的步骤流程图,包括以下步骤:
S10,对超高清视频文件进行编码处理环节时,获取视频每一个GOP中的I帧画面;
S20,根据超高清的实际尺寸提取I帧画面中的像素点,并拼合成低分辨率的画面作为当前画面的截图;
S30,在当前GOP中,将处理好的截图画面的数据存入对应时间点的SEI中,即只需要根据SEI的定义的方式,将数据信息保存,然后继续编码就可以;其中截图画面的数据包括像素点的RGB值;
S40,客户端将获取的超高清视频文件中的SEI信息全部提取,按照每一周期一个GOP获取一个视频当前截图画面,通过截图定位视频文件中对应的画面并查看。
本发明一实施例中,S10中,所谓视频文件是一个经过编码的图片集合,播放的视频是由一系列连贯的图片组成,为了保证画面内容的一致性和连贯性,这些相连的图片前后大部分的画面内容往往基本一样。编码的最本质的目的就是将这些存在大量冗余信息图片进行合理的编码,可以使更小的存储空间来存放。其中就涉及画面组,英文表示为GroupofPictures(GOP)。一个GOP是一组连续的画面。GOP是序列中的一个图片集,用来辅助随机存取。GOP的第一个图像必须为I帧,能保证GOP不需要参考其他图像,可以独立解码。以MPEG为例,MPEG编码将画面(即帧)分为I、P、B三种,I是内部编码帧,P是前向预测帧,B是双向内插帧。简单地讲,I帧是关键帧,可以理解为一个完整的画面,而P帧和B帧记录的是相对于I帧的变化,P帧表示跟前一帧的差别,B帧表示前后帧差别。没有I帧,P帧和B帧就无法解码。也就是说在一个GOP中I帧可以直接解码,而剩余的P帧和B帧需要在I帧基础上进行编码处理。故本发明实施例中,通过在对超高清视频文件本身进行编码处理的环节时,获取视频每一个GOP中的I帧画面进行处理,根据上述GOP的定义,I帧是最容易获取并处理的数据。当在对应对应的GOP中获取I帧之后,就完成了第一步。
本发明一实施例中,S20中,为了减少之后业务处理的性能要求,在获取超高清视频当前GOP中的画面后,根据超高清的实际尺寸提取画面中的像素点,并拼合成高清甚至更低分辨率的画面,作为当前画面的截图。图片是由像素点组成的,以常见的高清的画面1920x1080为例,表示当前图像有横排1920个像素点,竖列1080个像素点,合计2,073,600个像素点,约200万个像素点组成。而每个像素点由8bitRGB来标识当前画面颜色,而当作为超高清画面处理时,画面除了像素点本身大大超出了高清的1920x1080的数量,单个像素点也由10bit的颜色空间来描述。为了减少编码的性能消耗,直接按像素点位的方式提取像素点作为作为截图是性能较优的方案。根据超高清的实际尺寸提取I帧画面中的像素点包括:截图采用采样点的方式,在按像素点块的像素集合中,取一中心像素点为当前像素点块集合的特征像素点,在每个像素点块单元区域中,获取同一位置像素点作为当前像素点块单元区域采样。
一具体应用实例中,参见图2,所示为截图采用采样点的方式,按每4x4的像素点块的像素集合中,取中心偏下处色块为当前像素集合的特征色块。在每一个4x4的像素点块的像素集合中,取得的特征色块都为相同的位置。通过以上采样点的方式,当前图片可以缩小到原始大小的1/16,当然,针对8K等超高清视频文件素材,也可以可以考虑采用8x8,甚至16x16的像素块单元,获取中心点的像素点,并作为当前区域的采样信息。
本发明一实施例中,常见的画面编码中,都可以自定义存放数据,也就是采用辅助增强信息(SupplementalEnhancementInformation,SEI),用于提供与图像编解码无关的补充信息。以常见的视频编码H.264为例,SEI有如下优点:(1)不依赖于相关协议,rtsp和rtmp都可以传输SEI数据包,其他协议只要播放端支持SEI解析则仍可以使用。(2)兼容性好,如果播放端不支持自定义SEI数据解析,则将SEI数据丢给H264解码器,解码器会忽略SEI数据包,并不影响正常播放。(3)SEI数据包在视频帧中携带,完全和视频保持同步。因此S30中,只需要根据SEI的定义的方式,将数据信息保存,然后继续编码即可。
通过以上设置的超高清视频文件的快速预览查看方法,在超高清视频文件编码的每个GOP中重复S10至S30的步骤,也就是将每个GOP中的关键画面,处理成截图后,保存。视频的中所有GOP处理做成一系列的截图,并增加到视频的附加数据中。客户端将获取的视频素材中的SEI信息全部提取,按照周期1-2秒一个GOP,也就是1-2秒获取一个视频当前画面的截图,通过这些截图,可以很方便的定位视频素材中对应的画面并查看,而不需要对整个超高清素材进行解码处理。后续实际对该素材进行预览时,可以通过加载和处理附加数据得到该超高清视频文件的画面截图。由于数据处理量大大缩小,不但减少了解码播放需要的加载耗时,也更利于低性能设备对视频文件的查看,甚至可以通过浏览器支持Web页面对超高清内容的查看和预览。
应当理解,本文所述的示例性实施例是说明性的而非限制性的。尽管结合附图描述了本发明的一个或多个实施例,本领域普通技术人员应当理解,在不脱离通过所附权利要求所限定的本发明的精神和范围的情况下,可以做出各种形式和细节的改变。

Claims (5)

1.一种超高清视频文件的快速预览查看方法,其特征在于,包括以下步骤:
对超高清视频文件进行编码处理环节时,获取视频每一个GOP中的I帧画面;
根据超高清的实际尺寸提取I帧画面中的像素点,并拼合成低分辨率的画面作为当前画面的截图;
在当前GOP中,将处理好的截图画面的数据存入对应时间点的SEI中;
客户端将获取的超高清视频文件中的SEI信息全部提取,按照每一周期一个GOP获取一个视频当前截图画面,通过截图定位视频文件中对应的画面并查看。
2.如权利要求1所述的超高清视频文件的快速预览查看方法,其特征在于,所述根据超高清的实际尺寸提取I帧画面中的像素点包括:截图采用采样点的方式,在按像素点块的像素集合中,取一中心像素点为当前像素点块集合的特征像素点,在每个像素点块单元区域中,获取同一位置像素点作为当前像素点块单元区域采样。
3.如权利要求2所述的超高清视频文件的快速预览查看方法,其特征在于,所述像素点块的的大小为4x4的整数倍。
4.如权利要求1所述的超高清视频文件的快速预览查看方法,其特征在于,所述截图画面的数据包括像素点的RGB值。
5.如权利要求1所述的超高清视频文件的快速预览查看方法,其特征在于,所述周期为1-2秒一个GOP。
CN202310307123.9A 2023-03-27 2023-03-27 超高清视频文件的快速预览查看方法 Pending CN116366882A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310307123.9A CN116366882A (zh) 2023-03-27 2023-03-27 超高清视频文件的快速预览查看方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310307123.9A CN116366882A (zh) 2023-03-27 2023-03-27 超高清视频文件的快速预览查看方法

Publications (1)

Publication Number Publication Date
CN116366882A true CN116366882A (zh) 2023-06-30

Family

ID=86906615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310307123.9A Pending CN116366882A (zh) 2023-03-27 2023-03-27 超高清视频文件的快速预览查看方法

Country Status (1)

Country Link
CN (1) CN116366882A (zh)

Similar Documents

Publication Publication Date Title
CN108810622B (zh) 视频帧的提取方法、装置、计算机可读介质及电子设备
US11785215B2 (en) Encoding method, decoding method, encoding/decoding system, encoder, and decoder
US20200036983A1 (en) Picture file procesing method and apparatus, and storage medium
KR101187550B1 (ko) 입체적 3d-비디오 이미지 디지털 코딩 시스템 및 방법
CN110198492B (zh) 一种视频的水印添加方法、装置、设备及存储介质
TW201008289A (en) Fragmented reference in temporal compression for video coding
KR20090116728A (ko) 비디오 하드웨어에서 화상 압축을 위한 구조
EP3609188A1 (en) Picture file processing method and system, and storage medium
TWI605704B (zh) 重組影像檔案的方法
JP2010212811A (ja) 動画像符号化装置及び動画像復号化装置
CN109963176A (zh) 视频码流处理方法、装置、网络设备和可读存储介质
US8306346B2 (en) Static image compression method and non-transitory computer readable medium having a file with a data structure
US8731311B2 (en) Decoding device, decoding method, decoding program, and integrated circuit
CN111193928A (zh) 用于传递视频中的感兴趣区域信息的方法和设备
CN116366882A (zh) 超高清视频文件的快速预览查看方法
JP2013518458A (ja) デジタルビデオストリーム内の情報及び/又はアプリケーションデータを転送する方法、及び、ビデオストリームを生成及び再生するための関連装置
CN110087072A (zh) 图像处理装置
CN114727116A (zh) 编码方法及装置
CN101926168A (zh) 多屏幕显示设备
CN111212288B (zh) 视频数据的编解码方法、装置、计算机设备和存储介质
JP4209783B2 (ja) 画像圧縮装置、画像再生装置、画像圧縮方法、画像再生方法、画像圧縮プログラム、及び画像再生プログラム
TWI835238B (zh) 影像處理方法及影像處理裝置
TWI835236B (zh) 影像處理方法及影像處理裝置
CN116347084A (zh) 图像的编码/解码方法、电子设备和计算机可读存储介质
Singh et al. Review of compression techniques

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