WO2017185761A1 - Method and device for playing back 2d video - Google Patents

Method and device for playing back 2d video Download PDF

Info

Publication number
WO2017185761A1
WO2017185761A1 PCT/CN2016/109553 CN2016109553W WO2017185761A1 WO 2017185761 A1 WO2017185761 A1 WO 2017185761A1 CN 2016109553 W CN2016109553 W CN 2016109553W WO 2017185761 A1 WO2017185761 A1 WO 2017185761A1
Authority
WO
WIPO (PCT)
Prior art keywords
video data
compressed
video
virtual reality
played
Prior art date
Application number
PCT/CN2016/109553
Other languages
French (fr)
Chinese (zh)
Inventor
史轩
Original Assignee
乐视控股(北京)有限公司
乐视致新电子科技(天津)有限公司
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 乐视控股(北京)有限公司, 乐视致新电子科技(天津)有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017185761A1 publication Critical patent/WO2017185761A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Definitions

  • a playing unit configured to play the compressed 2D video data in a virtual reality scene.
  • the memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
  • the compressing the 2D video data comprises: determining a compression multiple of the 2D video data according to a resolution of the video playback device and the virtual reality helmet.
  • the acquiring unit 31 is configured to acquire 2D video data to be played.
  • the extracting module 444 is configured to separately extract a red component and a blue-green component in the frame picture information

Abstract

The present invention relates to the technical field of virtual reality. Provided are a method and device for playing back 2D videos, used to solve the problem wherein 2D video data played back by a virtual reality helmet takes up considerable system resources. The main technical solution is: obtaining 2D video data to be played back; compressing the 2D video data; and playing back the compressed 2D video data in a virtual reality scene. The present invention is mainly used for playing back 2D video data in virtual reality scenes.

Description

2D视频播放方法及装置2D video playing method and device
本申请基于申请号为CN 201610266837X、申请日为2016年4月26日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Jan. 26, 2016, the entire disclosure of which is hereby incorporated by reference.
【技术领域】[Technical Field]
本发明实施例涉及虚拟现实技术领域,尤其涉及一种2D视频播放方法及装置。The embodiments of the present invention relate to the field of virtual reality technologies, and in particular, to a 2D video playing method and apparatus.
【背景技术】【Background technique】
随着信息技术的快速发展,计算机已经成为社会生活中不可缺少的重要组成部分,计算机友好的人机交互已成为人们关心的一个重要课题,人机交互发展从最初的命令界面发展至图形用户界面,再从图形用户界面发展至多媒体界面,再到现在的虚拟现实。其中,虚拟现实(Virtual Reality,VR)是仿真技术的一个重要方向,是综合利用计算机图形系统和各种现实及控制等接口设备,在计算机上生成的可交互的三维环境中提供沉浸感觉的技术,在虚拟现实头盔中有两个视频播放窗口,即左右眼视频播放窗口,用户可通过虚拟现实头盔的左右眼视频播放窗口,配合观看实时动态的3D(三维)立体逼真图像。With the rapid development of information technology, computers have become an indispensable part of social life. Computer-friendly human-computer interaction has become an important topic of concern. The development of human-computer interaction has evolved from the initial command interface to the graphical user interface. From the graphical user interface to the multimedia interface, to the current virtual reality. Among them, Virtual Reality (VR) is an important direction of simulation technology. It is a technology that comprehensively utilizes computer graphics systems and various interface devices such as reality and control to provide immersive feeling in an interactive three-dimensional environment generated on a computer. In the virtual reality helmet, there are two video playing windows, namely the left and right eye video playing windows, and the user can watch the real-time dynamic 3D (three-dimensional) stereoscopic realistic images through the left and right eye video playing windows of the virtual reality helmet.
目前,在通过虚拟现实头盔播放2D(二维)视频数据时,2D视频数据的播放模式是不会切分左右眼播放的,即虚拟现实头盔的左右眼视频播放窗口所播放的2D视频数据是一样的,因此虚拟现实头盔播放的2D视频数据会占用较多的系统资源。At present, when playing 2D (two-dimensional) video data through a virtual reality helmet, the playback mode of the 2D video data is not divided into left and right eyes, that is, the 2D video data played by the left and right eye video playing windows of the virtual reality helmet is The same, so the 2D video data played by the virtual reality helmet will take up more system resources.
【发明内容】[Summary of the Invention]
本发明实施例提供了一种2D视频播放方法及装置,用以解决现有技术中虚拟现实头盔播放2D视频数据时,占用较多的系统资源的问题。The embodiment of the invention provides a 2D video playing method and device, which is used to solve the problem that the virtual reality helmet occupies more system resources when playing 2D video data in the prior art.
针对现有技术存在的问题,本发明实施例提供了一种2D视频播放方法,包 括:The present invention provides a 2D video playing method, which is provided in the prior art. include:
获取待播放的2D视频数据;Obtaining 2D video data to be played;
将所述2D视频数据进行压缩;Compressing the 2D video data;
在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
进一步地,所述将所述2D视频数据进行压缩之后,所述方法还包括:Further, after the compressing the 2D video data, the method further includes:
将所述压缩的2D视频数据转换成3D视频数据;Converting the compressed 2D video data into 3D video data;
具体的,所述在虚拟现实场景中播放所述压缩的2D视频数据包括:Specifically, the playing the compressed 2D video data in the virtual reality scenario includes:
在所述虚拟现实场景中根据左右眼视频播放方式,播放所述转换的3D视频数据。The converted 3D video data is played according to a left and right eye video playing manner in the virtual reality scene.
具体的,所述将所述压缩的2D视频数据转换成3D视频数据包括:Specifically, the converting the compressed 2D video data into 3D video data includes:
获取所述压缩的2D视频数据的帧画面信息;Obtaining frame picture information of the compressed 2D video data;
将所述帧画面信息中的奇数帧对应的奇列像素和偶列像素数据整体向左移动预置个单位;And shifting the odd column pixel and the even column pixel data corresponding to the odd frame in the frame picture information to the left by a preset unit;
将所述帧画面信息中的偶数帧对应的奇列像素和偶列像素数据整体向右移动预置个单位;And shifting the odd column pixel and the even column pixel data corresponding to the even frame in the frame picture information to the right by a preset unit;
配合所述左右眼视频播放方式,根据移动的帧画面信息生成所述3D视频数据。The 3D video data is generated according to the moved frame picture information in accordance with the left and right eye video playing modes.
具体的,所述将所述压缩的2D视频数据转换成3D视频数据包括:Specifically, the converting the compressed 2D video data into 3D video data includes:
在所述帧画面信息中分别提取红色分量以及蓝绿分量;Extracting a red component and a blue-green component in the frame picture information respectively;
将所述红色分量以及所述蓝绿分量按预设的方式生成所述3D视频数据。The 3D video data is generated in a preset manner by the red component and the blue-green component.
具体的,所述将所述2D视频数据进行压缩包括:Specifically, the compressing the 2D video data includes:
根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。The compression factor of the 2D video data is determined according to the resolution of the video playback device and the virtual reality helmet.
本发明实施例提供了一种2D视频播放装置,包括:An embodiment of the present invention provides a 2D video playback device, including:
获取单元,用于获取待播放的2D视频数据;An acquiring unit, configured to acquire 2D video data to be played;
压缩单元,用于将所述2D视频数据进行压缩; a compression unit, configured to compress the 2D video data;
播放单元,用于在虚拟现实场景中播放所述压缩的2D视频数据。a playing unit, configured to play the compressed 2D video data in a virtual reality scene.
进一步地,所述装置还包括:转换单元;Further, the device further includes: a conversion unit;
所述转换单元,用于将所述压缩的2D视频数据转换成3D视频数据;The converting unit is configured to convert the compressed 2D video data into 3D video data;
所述播放单元,还用于在所述虚拟现实场景中根据左右眼视频播放方式,播放所述转换的3D视频数据。The playing unit is further configured to play the converted 3D video data according to a left and right eye video playing manner in the virtual reality scene.
具体的,所述转换单元包括:Specifically, the converting unit includes:
获取模块,用于获取所述压缩的2D视频数据的帧画面信息;An acquiring module, configured to acquire frame picture information of the compressed 2D video data;
移动模块,用于将所述帧画面信息中的奇数帧对应的奇列像素和偶列像素数据整体向左移动预置个单位;a moving module, configured to move the odd column pixel and the even column pixel data corresponding to the odd frame in the frame picture information to the left by a preset unit;
所述移动模块,还用于将所述帧画面信息中的偶数帧对应的奇列像素和偶列像素数据整体向右移动预置个单位;The moving module is further configured to move the odd column pixels and the even column pixel data corresponding to the even frames in the frame picture information to the right by a preset unit;
生成模块,用于配合所述左右眼视频播放方式,根据移动的帧画面信息生成所述3D视频数据。And a generating module, configured to generate the 3D video data according to the moved frame picture information, in combination with the left and right eye video playing modes.
具体的,所述转换单元还包括:提取模块;Specifically, the converting unit further includes: an extracting module;
所述提取模块,用于在所述帧画面信息中分别提取红色分量以及蓝绿分量;The extracting module is configured to separately extract a red component and a blue-green component in the frame picture information;
所述生成模块,还用于将所述红色分量以及所述蓝绿分量按预设的方式生成所述3D视频数据。The generating module is further configured to generate the 3D video data by using the red component and the blue-green component in a preset manner.
所述压缩单元,具体用于根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。The compression unit is specifically configured to determine a compression multiple of the 2D video data according to a resolution of the video playback device and the virtual reality helmet.
本发明实施例提供了一种电子设备,包括:An embodiment of the present invention provides an electronic device, including:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
获取待播放的2D视频数据;Obtaining 2D video data to be played;
将所述2D视频数据进行压缩; Compressing the 2D video data;
在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
本发明实施例提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行以下操作:Embodiments of the present invention provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the following operations:
获取待播放的2D视频数据;Obtaining 2D video data to be played;
将所述2D视频数据进行压缩;Compressing the 2D video data;
在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行以下操作:Embodiments of the present invention provide a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer To cause the computer to do the following:
获取待播放的2D视频数据;Obtaining 2D video data to be played;
将所述2D视频数据进行压缩;Compressing the 2D video data;
在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
本发明实施例提供的一种2D视频播放方法及装置,首先获取待播放的2D视频数据,然后将所述2D视频数据进行压缩,最后在虚拟现实场景中播放所述压缩的2D视频数据。与目前通过虚拟现实头盔直接播放2D视频数据相比,本发明实施例在获取到待播放的2D视频数据后,需要对2D视频数据做一个压缩处理,经过压缩的2D视频数据所占的存储空间相比较之前的2D视频数据要小的多,之后将压缩的2D视频数据放入虚拟现实头盔的左右眼视频播放窗口中进行播放,因此通过本发明实施例播放的2D视频数据会减少其占用的系统资源。A 2D video playing method and apparatus provided by an embodiment of the present invention first acquires 2D video data to be played, then compresses the 2D video data, and finally plays the compressed 2D video data in a virtual reality scene. Compared with the current 2D video data being directly played by the virtual reality helmet, the embodiment of the present invention needs to perform a compression process on the 2D video data after the 2D video data to be played, and the storage space occupied by the compressed 2D video data. Compared with the previous 2D video data, the compressed 2D video data is put into the left and right eye video playing window of the virtual reality helmet for playing, so the 2D video data played by the embodiment of the present invention reduces its occupation. system resource.
【附图说明】[Description of the Drawings]
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的一种2D视频播放方法流程图;FIG. 1 is a flowchart of a 2D video playing method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种2D视频播放方法流程图;2 is a flowchart of another 2D video playing method according to an embodiment of the present invention;
图3为本发明实施例提供的一种2D视频播放装置结构示意图;FIG. 3 is a schematic structural diagram of a 2D video playback device according to an embodiment of the present disclosure;
图4为本发明实施例提供的另一种2D视频播放装置结构示意图;4 is a schematic structural diagram of another 2D video playback device according to an embodiment of the present invention;
图5为本发明实施例所述应用于所述2D视频播放方法的电子设备的硬件示意图。FIG. 5 is a schematic diagram of hardware of an electronic device applied to the 2D video playing method according to an embodiment of the present invention.
【具体实施方式】【detailed description】
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种2D视频播放方法,如图1所示,所述方法包括:The embodiment of the invention provides a 2D video playing method. As shown in FIG. 1 , the method includes:
101、获取待播放的2D视频数据。101. Acquire 2D video data to be played.
102、将所述2D视频数据进行压缩。102. Compress the 2D video data.
其中,本发明实施例压缩后的2D视频数据不会影响用户正常的观看,2D视频数据具体的压缩倍数可以根据虚拟现实设备或视频播放装置的分辨率而确定。例如,原有的2D视频数据的分辨率为1080p,对2D视频数据进行压缩,压缩后的2D视频数据的分辨率可以为720p。The compressed 2D video data of the embodiment of the present invention does not affect the normal viewing of the user. The specific compression ratio of the 2D video data may be determined according to the resolution of the virtual reality device or the video playback device. For example, the resolution of the original 2D video data is 1080p, and the 2D video data is compressed, and the resolution of the compressed 2D video data may be 720p.
103、在虚拟现实场景中播放所述压缩的2D视频数据。103. Play the compressed 2D video data in a virtual reality scene.
对于本发明实施例,在获取到待播放的2D视频数据后,需要对2D视频数据做一个压缩处理,经过压缩的2D视频数据所占的存储空间相比较之前的2D视频数据要小的多,之后将压缩的2D视频数据放入虚拟现实头盔的左右眼视频播放窗口中进行播放,因此通过本发明实施例播放的2D视频数据会减少其占用的系统资源。 For the embodiment of the present invention, after acquiring the 2D video data to be played, it is necessary to perform a compression process on the 2D video data, and the compressed 2D video data occupies a smaller storage space than the previous 2D video data. The compressed 2D video data is then placed in the left and right eye video play window of the virtual reality helmet for playback. Therefore, the 2D video data played by the embodiment of the present invention reduces the system resources it occupies.
本发明实施例提供的一种2D视频播放方法,首先获取待播放的2D视频数据,然后将所述2D视频数据进行压缩,最后在虚拟现实场景中播放所述压缩的2D视频数据。与目前通过虚拟现实头盔直接播放2D视频数据相比,本发明实施例在获取到待播放的2D视频数据后,需要对2D视频数据做一个压缩处理,经过压缩的2D视频数据所占的存储空间相比较之前的2D视频数据要小的多,之后将压缩的2D视频数据放入虚拟现实头盔的左右眼视频播放窗口中进行播放,因此通过本发明实施例播放的2D视频数据会减少其占用的系统资源。A 2D video playing method provided by an embodiment of the present invention first acquires 2D video data to be played, then compresses the 2D video data, and finally plays the compressed 2D video data in a virtual reality scene. Compared with the current 2D video data being directly played by the virtual reality helmet, the embodiment of the present invention needs to perform a compression process on the 2D video data after the 2D video data to be played, and the storage space occupied by the compressed 2D video data. Compared with the previous 2D video data, the compressed 2D video data is put into the left and right eye video playing window of the virtual reality helmet for playing, so the 2D video data played by the embodiment of the present invention reduces its occupation. system resource.
本发明实施例提供了另一种2D视频播放方法,如图2所示,所述方法包括:An embodiment of the present invention provides another 2D video playing method. As shown in FIG. 2, the method includes:
201、获取待播放的2D视频数据。201. Acquire 2D video data to be played.
202、将所述2D视频数据进行压缩。202. Compress the 2D video data.
对于本发明实施例,所述将所述2D视频数据进行压缩包括:根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。For the embodiment of the present invention, the compressing the 2D video data comprises: determining a compression multiple of the 2D video data according to a resolution of the video playback device and the virtual reality helmet.
203、将所述压缩的2D视频数据转换成3D视频数据。203. Convert the compressed 2D video data into 3D video data.
对于本发明实施例,所述将所述压缩的2D视频数据转换成3D视频数据包括:获取所述压缩的2D视频数据的帧画面信息;将所述帧画面信息中的奇数帧对应的奇列像素和偶列像素数据整体向左移动预置个单位;将所述帧画面信息中的偶数帧对应的奇列像素和偶列像素数据整体向右移动预置个单位;配合所述左右眼视频播放方式,根据移动的帧画面信息生成所述3D视频数据。其中,所述预置个单位是根据实际需求进行配置的,具体可以为7个像素、8个像素、9个像素等,本发明实施例不做具体限定。通过本发明实施例转换的3D视频数据,给人的感觉是一帧偏左,一帧偏右,合在一起会有重影,配合虚拟现实场景中左右眼视频播放方式,从而形成3D视觉假象。For the embodiment of the present invention, converting the compressed 2D video data into 3D video data includes: acquiring frame picture information of the compressed 2D video data; and selecting an odd column corresponding to an odd frame in the frame picture information The pixels and the even-column pixel data are moved to the left by a preset unit; the odd-column pixels and the even-column pixel data corresponding to the even-numbered frames in the frame picture information are all moved to the right by a preset unit; and the left and right eye videos are matched In the playback mode, the 3D video data is generated according to the moved frame picture information. The preset unit is configured according to an actual requirement, and may be, for example, 7 pixels, 8 pixels, 9 pixels, and the like, which is not specifically limited in the embodiment of the present invention. The 3D video data converted by the embodiment of the present invention gives a feeling that one frame is leftward and one frame is rightward, and together, there will be ghosting, and the left and right eye video playing modes in the virtual reality scene are combined to form a 3D visual illusion. .
例如,压缩的2D视频数据的分辨率为1920x1080,预置单位为9个像素,若读取的帧画面信息是奇数帧数据,则将奇数帧数据当中的前8列共1080x8个的数据扔掉(不显示),将第9个像素显示在屏幕的第一个像素里面,以此类推,将倒数第9个像素重复显示在屏幕的最后9个像素里面,这样一来相当于整个 画面整体向左移动了8个像素,前8列像素丢失,后8列像素的值用倒数第9列的像素来补充。这是对第一帧图像的处理方式。For example, the compressed 2D video data has a resolution of 1920×1080, and the preset unit is 9 pixels. If the read frame information is odd frame data, the first 8 columns of the odd frame data are discarded by a total of 1080×8 data. (not displayed), the 9th pixel is displayed in the first pixel of the screen, and so on, the 9th pixel of the last count is repeatedly displayed in the last 9 pixels of the screen, which is equivalent to the whole The entire screen is shifted to the left by 8 pixels, the first 8 columns of pixels are lost, and the values of the last 8 columns of pixels are complemented by the pixels of the ninth column. This is how the first frame of image is processed.
若读取的帧画面信息是偶数帧数据,则将偶数帧整体向右移动8个像素,即将第一个像素重复显示在屏幕的前8个像素里面,第二个像素显示在屏幕的第九个像素的位置后面依次正常显示,倒数后8列像素全部扔掉,这样一来整个画面整体向右移动了8列像素,前8列像素重复显示补充,后8列像素扔掉。通过本发明实施例转换的3D视频数据给人的感觉是一帧偏左,一帧偏右,合在一起会有重影,因此配合虚拟现实场景中左右眼视频播放方式会形成3D视觉假象。If the read frame picture information is even frame data, the even frame is moved to the right by 8 pixels, that is, the first pixel is repeatedly displayed in the first 8 pixels of the screen, and the second pixel is displayed on the ninth of the screen. The positions of the pixels are displayed normally in turn, and all the 8 columns of pixels after the countdown are thrown away, so that the entire screen is shifted to the right by 8 columns of pixels, the first 8 columns of pixels are repeatedly displayed and supplemented, and the last 8 columns of pixels are thrown away. The 3D video data converted by the embodiment of the present invention gives the impression that one frame is leftward and one frame is rightward, and together, there will be ghosting. Therefore, the left and right eye video playing modes in the virtual reality scene may form a 3D visual artifact.
在本发明实施例中,所述将所述压缩的2D视频数据转换成3D视频数据包括:在所述帧画面信息中分别提取红色分量以及蓝绿分量;将所述红色分量以及所述蓝绿分量按预设的方式生成所述3D视频数据。在本发明实施例中,在建立帧画面信息合成过程中,通过将所述红色分量以及所述蓝绿分量按预设的方式合成为3D帧画面,同时将所述3D帧画面还原为3D视频文件,并在所述帧画面信息中播放所述3D视频文件。In the embodiment of the present invention, the converting the compressed 2D video data into 3D video data comprises: respectively extracting a red component and a blue-green component in the frame picture information; and the red component and the blue-green component The component generates the 3D video data in a preset manner. In the embodiment of the present invention, in the process of establishing a frame picture information, the red component and the blue-green component are synthesized into a 3D frame picture in a preset manner, and the 3D frame picture is restored to a 3D video. File and play the 3D video file in the frame picture information.
204、在所述虚拟现实场景中根据左右眼视频播放方式,播放所述转换的3D视频数据。204. Play the converted 3D video data according to a left and right eye video playing manner in the virtual reality scene.
本发明实施例提供的另一种2D视频播放方法,首先获取待播放的2D视频数据,然后将所述2D视频数据进行压缩,最后在虚拟现实场景中播放所述压缩的2D视频数据。与目前通过虚拟现实头盔直接播放2D视频数据相比,本发明实施例在获取到待播放的2D视频数据后,需要对2D视频数据做一个压缩处理,经过压缩的2D视频数据所占的存储空间相比较之前的2D视频数据要小的多,之后将压缩的2D视频数据放入虚拟现实头盔的左右眼视频播放窗口中进行播放,因此通过本发明实施例播放的2D视频数据会减少其占用的系统资源。Another 2D video playing method provided by the embodiment of the present invention first acquires 2D video data to be played, then compresses the 2D video data, and finally plays the compressed 2D video data in a virtual reality scene. Compared with the current 2D video data being directly played by the virtual reality helmet, the embodiment of the present invention needs to perform a compression process on the 2D video data after the 2D video data to be played, and the storage space occupied by the compressed 2D video data. Compared with the previous 2D video data, the compressed 2D video data is put into the left and right eye video playing window of the virtual reality helmet for playing, so the 2D video data played by the embodiment of the present invention reduces its occupation. system resource.
进一步地,作为图1所述方法的具体实现,本发明实施例提供了一种2D视频播放装置,如图3所示,所述装置包括:获取单元31、压缩单元32、播放单 元33。Further, as a specific implementation of the method in FIG. 1, the embodiment of the present invention provides a 2D video playback device. As shown in FIG. 3, the device includes: an obtaining unit 31, a compression unit 32, and a play list. Yuan 33.
获取单元31,用于获取待播放的2D视频数据。The acquiring unit 31 is configured to acquire 2D video data to be played.
压缩单元32,用于将所述2D视频数据进行压缩。The compressing unit 32 is configured to compress the 2D video data.
其中,本发明实施例压缩后的2D视频数据不会影响用户正常的观看,2D视频数据具体的压缩倍数可以根据虚拟现实设备或视频播放装置的分辨率而确定。例如,原有的2D视频数据的分辨率为1080p,对2D视频数据进行压缩,压缩后的2D视频数据的分辨率可以为720p。The compressed 2D video data of the embodiment of the present invention does not affect the normal viewing of the user. The specific compression ratio of the 2D video data may be determined according to the resolution of the virtual reality device or the video playback device. For example, the resolution of the original 2D video data is 1080p, and the 2D video data is compressed, and the resolution of the compressed 2D video data may be 720p.
播放单元33,用于在虚拟现实场景中播放所述压缩的2D视频数据。The playing unit 33 is configured to play the compressed 2D video data in a virtual reality scene.
对于本发明实施例,在获取到待播放的2D视频数据后,需要对2D视频数据做一个压缩处理,经过压缩的2D视频数据所占的存储空间相比较之前的2D视频数据要小的多,之后将压缩的2D视频数据放入虚拟现实头盔的左右眼视频播放窗口中进行播放,因此通过本发明实施例播放的2D视频数据会减少其占用的系统资源。For the embodiment of the present invention, after acquiring the 2D video data to be played, it is necessary to perform a compression process on the 2D video data, and the compressed 2D video data occupies a smaller storage space than the previous 2D video data. The compressed 2D video data is then placed in the left and right eye video play window of the virtual reality helmet for playback. Therefore, the 2D video data played by the embodiment of the present invention reduces the system resources it occupies.
需要说明的是,本发明实施例提供的一种2D视频播放装置所涉及各功能单元的其他相应描述,可以参考图1中的对应描述,在此不再赘述。本发明实施例中可以通过硬件处理器(hardware processor)来实现相关功能模块。It should be noted that other corresponding descriptions of the functional units involved in the 2D video playback device provided by the embodiment of the present invention may be referred to the corresponding description in FIG. 1 and will not be further described herein. In the embodiment of the present invention, a related function module can be implemented by a hardware processor.
本发明实施例提供的一种2D视频播放装置,首先获取待播放的2D视频数据,然后将所述2D视频数据进行压缩,最后在虚拟现实场景中播放所述压缩的2D视频数据。与目前通过虚拟现实头盔直接播放2D视频数据相比,本发明实施例在获取到待播放的2D视频数据后,需要对2D视频数据做一个压缩处理,经过压缩的2D视频数据所占的存储空间相比较之前的2D视频数据要小的多,之后将压缩的2D视频数据放入虚拟现实头盔的左右眼视频播放窗口中进行播放,因此通过本发明实施例播放的2D视频数据会减少其占用的系统资源。A 2D video playing device provided by an embodiment of the present invention first acquires 2D video data to be played, then compresses the 2D video data, and finally plays the compressed 2D video data in a virtual reality scene. Compared with the current 2D video data being directly played by the virtual reality helmet, the embodiment of the present invention needs to perform a compression process on the 2D video data after the 2D video data to be played, and the storage space occupied by the compressed 2D video data. Compared with the previous 2D video data, the compressed 2D video data is put into the left and right eye video playing window of the virtual reality helmet for playing, so the 2D video data played by the embodiment of the present invention reduces its occupation. system resource.
进一步地,作为图2所述方法的具体实现,本发明实施例提供了另一种2D视频播放装置,如图4所示,所述装置包括:获取单元41、压缩单元42、播放单元43。 Further, as a specific implementation of the method in FIG. 2, an embodiment of the present invention provides another 2D video playback device. As shown in FIG. 4, the device includes: an acquisition unit 41, a compression unit 42, and a playback unit 43.
获取单元41,用于获取待播放的2D视频数据。The acquiring unit 41 is configured to acquire 2D video data to be played.
压缩单元42,用于将所述2D视频数据进行压缩。The compressing unit 42 is configured to compress the 2D video data.
对于本发明实施例,所述将所述2D视频数据进行压缩包括:根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。For the embodiment of the present invention, the compressing the 2D video data comprises: determining a compression multiple of the 2D video data according to a resolution of the video playback device and the virtual reality helmet.
播放单元43,用于在虚拟现实场景中播放所述压缩的2D视频数据。The playing unit 43 is configured to play the compressed 2D video data in a virtual reality scene.
进一步地,所述装置还包括:转换单元44;Further, the device further includes: a converting unit 44;
所述转换单元44,用于将所述压缩的2D视频数据转换成3D视频数据;The converting unit 44 is configured to convert the compressed 2D video data into 3D video data;
所述播放单元43,还用于在所述虚拟现实场景中根据左右眼视频播放方式,播放所述转换的3D视频数据。The playing unit 43 is further configured to play the converted 3D video data according to a left and right eye video playing manner in the virtual reality scene.
对于本发明实施例,所述转换单元44包括:For the embodiment of the present invention, the converting unit 44 includes:
获取模块441,用于获取所述压缩的2D视频数据的帧画面信息;The obtaining module 441 is configured to acquire frame picture information of the compressed 2D video data.
移动模块442,用于将所述帧画面信息中的奇数帧对应的奇列像素和偶列像素数据整体向左移动预置个单位;a moving module 442, configured to move the odd column pixel and the even column pixel data corresponding to the odd frame in the frame picture information to the left by a preset unit;
所述移动模块442,还用于将所述帧画面信息中的偶数帧对应的奇列像素和偶列像素数据整体向右移动预置个单位;The moving module 442 is further configured to move the odd column pixels and the even column pixel data corresponding to the even frames in the frame picture information to the right by a preset unit;
生成模块443,用于配合所述左右眼视频播放方式,根据移动的帧画面信息生成所述3D视频数据。The generating module 443 is configured to generate the 3D video data according to the moved frame picture information in cooperation with the left and right eye video playing modes.
其中,所述预置个单位是根据实际需求进行配置的,具体可以为7个像素、8个像素、9个像素等,本发明实施例不做具体限定。通过本发明实施例转换的3D视频数据,给人的感觉是一帧偏左,一帧偏右,合在一起会有重影,配合虚拟现实场景中左右眼视频播放方式,从而形成3D视觉假象。The preset unit is configured according to an actual requirement, and may be, for example, 7 pixels, 8 pixels, 9 pixels, and the like, which is not specifically limited in the embodiment of the present invention. The 3D video data converted by the embodiment of the present invention gives a feeling that one frame is leftward and one frame is rightward, and together, there will be ghosting, and the left and right eye video playing modes in the virtual reality scene are combined to form a 3D visual illusion. .
例如,压缩的2D视频数据的分辨率为1920x1080,预置单位为9个像素,若读取的帧画面信息是奇数帧数据,则将奇数帧数据当中的前8列共1080x8个的数据扔掉(不显示),将第9个像素显示在屏幕的第一个像素里面,以此类推,将倒数第9个像素重复显示在屏幕的最后9个像素里面,这样一来相当于整个画面整体向左移动了8个像素,前8列像素丢失,后8列像素的值用倒数第9 列的像素来补充。这是对第一帧图像的处理方式。For example, the compressed 2D video data has a resolution of 1920×1080, and the preset unit is 9 pixels. If the read frame information is odd frame data, the first 8 columns of the odd frame data are discarded by a total of 1080×8 data. (not displayed), the ninth pixel is displayed in the first pixel of the screen, and so on, the ninth pixel of the last digit is repeatedly displayed in the last nine pixels of the screen, which is equivalent to the overall orientation of the entire screen. Moved 8 pixels to the left, the first 8 columns of pixels are lost, and the values of the last 8 columns of pixels are counted 9th. The pixels of the column are added. This is how the first frame of image is processed.
若读取的帧画面信息是偶数帧数据,则将偶数帧整体向右移动8个像素,即将第一个像素重复显示在屏幕的前8个像素里面,第二个像素显示在屏幕的第九个像素的位置后面依次正常显示,倒数后8列像素全部扔掉,这样一来整个画面整体向右移动了8列像素,前8列像素重复显示补充,后8列像素扔掉。通过本发明实施例转换的3D视频数据给人的感觉是一帧偏左,一帧偏右,合在一起会有重影,因此配合虚拟现实场景中左右眼视频播放方式会形成3D视觉假象。If the read frame picture information is even frame data, the even frame is moved to the right by 8 pixels, that is, the first pixel is repeatedly displayed in the first 8 pixels of the screen, and the second pixel is displayed on the ninth of the screen. The positions of the pixels are displayed normally in turn, and all the 8 columns of pixels after the countdown are thrown away, so that the entire screen is shifted to the right by 8 columns of pixels, the first 8 columns of pixels are repeatedly displayed and supplemented, and the last 8 columns of pixels are thrown away. The 3D video data converted by the embodiment of the present invention gives the impression that one frame is leftward and one frame is rightward, and together, there will be ghosting. Therefore, the left and right eye video playing modes in the virtual reality scene may form a 3D visual artifact.
对于本发明实施例,所述转换单元还包括:提取模块444;For the embodiment of the present invention, the converting unit further includes: an extracting module 444;
所述提取模块444,用于在所述帧画面信息中分别提取红色分量以及蓝绿分量;The extracting module 444 is configured to separately extract a red component and a blue-green component in the frame picture information;
所述生成模块443,还用于将所述红色分量以及所述蓝绿分量按预设的方式生成所述3D视频数据。在本发明实施例中,在建立帧画面信息合成过程中,通过将所述红色分量以及所述蓝绿分量按预设的方式合成为3D帧画面,同时将所述3D帧画面还原为3D视频文件,并在所述帧画面信息中播放所述3D视频文件。The generating module 443 is further configured to generate the 3D video data by using the red component and the blue-green component in a preset manner. In the embodiment of the present invention, in the process of establishing a frame picture information, the red component and the blue-green component are synthesized into a 3D frame picture in a preset manner, and the 3D frame picture is restored to a 3D video. File and play the 3D video file in the frame picture information.
所述压缩单元42,具体用于根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。The compression unit 42 is specifically configured to determine a compression multiple of the 2D video data according to a resolution of the video playback device and the virtual reality helmet.
需要说明的是,本发明实施例提供的另一种2D视频播放装置所涉及各功能单元的其他相应描述,可以参考图2中的对应描述,在此不再赘述。本发明实施例中可以通过硬件处理器来实现相关功能模块。It should be noted that other corresponding descriptions of the functional units involved in the other 2D video playback device provided by the embodiment of the present invention may be referred to the corresponding description in FIG. 2, and details are not described herein again. In the embodiment of the present invention, a related function module can be implemented by a hardware processor.
本发明实施例提供的另一种2D视频播放装置,首先获取待播放的2D视频数据,然后将所述2D视频数据进行压缩,最后在虚拟现实场景中播放所述压缩的2D视频数据。与目前通过虚拟现实头盔直接播放2D视频数据相比,本发明实施例在获取到待播放的2D视频数据后,需要对2D视频数据做一个压缩处理,经过压缩的2D视频数据所占的存储空间相比较之前的2D视频数据要小的多,之后将压缩的2D视频数据放入虚拟现实头盔的左右眼视频播放窗口中进行播 放,因此通过本发明实施例播放的2D视频数据会减少其占用的系统资源。Another 2D video playback device provided by the embodiment of the present invention first acquires 2D video data to be played, then compresses the 2D video data, and finally plays the compressed 2D video data in a virtual reality scene. Compared with the current 2D video data being directly played by the virtual reality helmet, the embodiment of the present invention needs to perform a compression process on the 2D video data after the 2D video data to be played, and the storage space occupied by the compressed 2D video data. Compared with the previous 2D video data, it is much smaller, and then the compressed 2D video data is put into the left and right eye video playing window of the virtual reality helmet for broadcasting. Therefore, the 2D video data played by the embodiment of the present invention reduces the system resources it occupies.
图5是本发明实施例提供的2D视频播放方法的硬件结构示意图,如图所示,该设备包括一个或多个处理器510以及存储器520。以一个处理器510为例。该设备还可以包括:输入装置530和输出装置540。FIG. 5 is a schematic diagram of a hardware structure of a 2D video playing method according to an embodiment of the present invention. As shown, the device includes one or more processors 510 and a memory 520. Take a processor 510 as an example. The device may also include an input device 530 and an output device 540.
处理器510、存储器520、输入装置530和输出装置540可以通过总线或者其他方式连接,图5中以通过总线连接为例。The processor 510, the memory 520, the input device 530, and the output device 540 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器520作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块。处理器510通过运行存储在存储器520中的非暂态软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例的处理方法。The memory 520 is a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules. The processor 510 executes various functional applications and data processing of the electronic device by running non-transitory software programs, instructions, and modules stored in the memory 520, that is, the processing method of the above method embodiments.
存储器520可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储数据等。此外,存储器520可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器520可选包括相对于处理器510远程设置的存储器,这些远程存储器可以通过网络连接至处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data or the like. Moreover, memory 520 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 520 can optionally include memory remotely located relative to processor 510, which can be connected to the processing device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置530可接收输入的数字或字符信息,以及产生信号输入。输出装置540可包括显示屏等显示设备。 Input device 530 can receive input digital or character information and generate a signal input. The output device 540 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器520中,当被所述一个或者多个处理器510执行时,执行:The one or more modules are stored in the memory 520 and, when executed by the one or more processors 510, perform:
获取待播放的2D视频数据;Obtaining 2D video data to be played;
将所述2D视频数据进行压缩;Compressing the 2D video data;
在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
上述产品可执行本发明实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例提 供的方法。The above product can perform the method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the embodiments of the present invention. The method of supply.
本发明实施例提供了一种非暂态(非易失性)计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行:Embodiments of the present invention provide a non-transitory (non-volatile) computer storage medium storing computer-executable instructions executable by:
获取待播放的2D视频数据;Obtaining 2D video data to be played;
将所述2D视频数据进行压缩;Compressing the 2D video data;
在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行:Embodiments of the present invention provide a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer , causing the computer to execute:
获取待播放的2D视频数据;Obtaining 2D video data to be played;
将所述2D视频数据进行压缩;Compressing the 2D video data;
在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员 应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art It should be understood that the technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. The spirit and scope of the programme.

Claims (17)

  1. 一种2D视频播放方法,其特征在于,应用于电子设备,包括:A 2D video playing method is characterized in that it is applied to an electronic device, including:
    获取待播放的2D视频数据;Obtaining 2D video data to be played;
    将所述2D视频数据进行压缩;Compressing the 2D video data;
    在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述2D视频数据进行压缩之后,所述方法还包括:The method according to claim 1, wherein after the compressing the 2D video data, the method further comprises:
    将所述压缩的2D视频数据转换成3D视频数据;Converting the compressed 2D video data into 3D video data;
    所述在虚拟现实场景中播放所述压缩的2D视频数据包括:The playing the compressed 2D video data in the virtual reality scene includes:
    在所述虚拟现实场景中根据左右眼视频播放方式,播放所述转换的3D视频数据。The converted 3D video data is played according to a left and right eye video playing manner in the virtual reality scene.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述压缩的2D视频数据转换成3D视频数据包括:The method according to claim 2, wherein said converting said compressed 2D video data into 3D video data comprises:
    获取所述压缩的2D视频数据的帧画面信息;Obtaining frame picture information of the compressed 2D video data;
    将所述帧画面信息中的奇数帧对应的奇列像素和偶列像素数据整体向左移动预置个单位;And shifting the odd column pixel and the even column pixel data corresponding to the odd frame in the frame picture information to the left by a preset unit;
    将所述帧画面信息中的偶数帧对应的奇列像素和偶列像素数据整体向右移动预置个单位;And shifting the odd column pixel and the even column pixel data corresponding to the even frame in the frame picture information to the right by a preset unit;
    配合所述左右眼视频播放方式,根据移动的帧画面信息生成所述3D视频数据。The 3D video data is generated according to the moved frame picture information in accordance with the left and right eye video playing modes.
  4. 根据权利要求3所述的方法,其特征在于,所述将所述压缩的2D视频数据转换成3D视频数据包括:The method according to claim 3, wherein said converting said compressed 2D video data into 3D video data comprises:
    在所述帧画面信息中分别提取红色分量以及蓝绿分量;Extracting a red component and a blue-green component in the frame picture information respectively;
    将所述红色分量以及所述蓝绿分量按预设的方式生成所述3D视频数据。 The 3D video data is generated in a preset manner by the red component and the blue-green component.
  5. 根据权利要求1-4任一所述的方法,其特征在于,所述将所述2D视频数据进行压缩包括:The method according to any one of claims 1 to 4, wherein the compressing the 2D video data comprises:
    根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。The compression factor of the 2D video data is determined according to the resolution of the video playback device and the virtual reality helmet.
  6. 一种2D视频播放装置,其特征在于,包括:A 2D video playback device, comprising:
    获取单元,用于获取待播放的2D视频数据;An acquiring unit, configured to acquire 2D video data to be played;
    压缩单元,用于将所述2D视频数据进行压缩;a compression unit, configured to compress the 2D video data;
    播放单元,用于在虚拟现实场景中播放所述压缩的2D视频数据。a playing unit, configured to play the compressed 2D video data in a virtual reality scene.
  7. 根据权利要求6所述的装置,其特征在于,所述装置还包括:转换单元;The device according to claim 6, wherein the device further comprises: a conversion unit;
    所述转换单元,用于将所述压缩的2D视频数据转换成3D视频数据;The converting unit is configured to convert the compressed 2D video data into 3D video data;
    所述播放单元,还用于在所述虚拟现实场景中根据左右眼视频播放方式,播放所述转换的3D视频数据。The playing unit is further configured to play the converted 3D video data according to a left and right eye video playing manner in the virtual reality scene.
  8. 根据权利要求7所述的装置,其特征在于,所述转换单元包括:The apparatus according to claim 7, wherein said converting unit comprises:
    获取模块,用于获取所述压缩的2D视频数据的帧画面信息;An acquiring module, configured to acquire frame picture information of the compressed 2D video data;
    移动模块,用于将所述帧画面信息中的奇数帧对应的奇列像素和偶列像素数据整体向左移动预置个单位;a moving module, configured to move the odd column pixel and the even column pixel data corresponding to the odd frame in the frame picture information to the left by a preset unit;
    所述移动模块,还用于将所述帧画面信息中的偶数帧对应的奇列像素和偶列像素数据整体向右移动预置个单位;The moving module is further configured to move the odd column pixels and the even column pixel data corresponding to the even frames in the frame picture information to the right by a preset unit;
    生成模块,用于配合所述左右眼视频播放方式,根据移动的帧画面信息生成所述3D视频数据。And a generating module, configured to generate the 3D video data according to the moved frame picture information, in combination with the left and right eye video playing modes.
  9. 根据权利要求8所述的装置,其特征在于,所述转换单元还包括:提取模块;The apparatus according to claim 8, wherein the converting unit further comprises: an extracting module;
    所述提取模块,用于在所述帧画面信息中分别提取红色分量以及蓝绿分量;The extracting module is configured to separately extract a red component and a blue-green component in the frame picture information;
    所述生成模块,还用于将所述红色分量以及所述蓝绿分量按预设的方式生成所述3D视频数据。The generating module is further configured to generate the 3D video data by using the red component and the blue-green component in a preset manner.
  10. 根据权利要求6-9任一所述的装置,其特征在于, Apparatus according to any of claims 6-9, wherein
    所述压缩单元,具体用于根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。The compression unit is specifically configured to determine a compression multiple of the 2D video data according to a resolution of the video playback device and the virtual reality helmet.
  11. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
    获取待播放的2D视频数据;Obtaining 2D video data to be played;
    将所述2D视频数据进行压缩;Compressing the 2D video data;
    在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
  12. 根据权利要求11所述的电子设备,其特征在于,所述将所述2D视频数据进行压缩之后,所述处理器还用于:The electronic device according to claim 11, wherein after the compressing the 2D video data, the processor is further configured to:
    将所述压缩的2D视频数据转换成3D视频数据;Converting the compressed 2D video data into 3D video data;
    所述在虚拟现实场景中播放所述压缩的2D视频数据包括:The playing the compressed 2D video data in the virtual reality scene includes:
    在所述虚拟现实场景中根据左右眼视频播放方式,播放所述转换的3D视频数据。The converted 3D video data is played according to a left and right eye video playing manner in the virtual reality scene.
  13. 根据权利要求12所述的电子设备,其特征在于,所述将所述压缩的2D视频数据转换成3D视频数据包括:The electronic device according to claim 12, wherein said converting said compressed 2D video data into 3D video data comprises:
    获取所述压缩的2D视频数据的帧画面信息;Obtaining frame picture information of the compressed 2D video data;
    将所述帧画面信息中的奇数帧对应的奇列像素和偶列像素数据整体向左移动预置个单位;And shifting the odd column pixel and the even column pixel data corresponding to the odd frame in the frame picture information to the left by a preset unit;
    将所述帧画面信息中的偶数帧对应的奇列像素和偶列像素数据整体向右移动预置个单位;And shifting the odd column pixel and the even column pixel data corresponding to the even frame in the frame picture information to the right by a preset unit;
    配合所述左右眼视频播放方式,根据移动的帧画面信息生成所述3D视频数据。The 3D video data is generated according to the moved frame picture information in accordance with the left and right eye video playing modes.
  14. 根据权利要求13所述的电子设备,其特征在于,所述将所述压缩的2D 视频数据转换成3D视频数据包括:The electronic device of claim 13, wherein said compressed 2D Converting video data into 3D video data includes:
    在所述帧画面信息中分别提取红色分量以及蓝绿分量;Extracting a red component and a blue-green component in the frame picture information respectively;
    将所述红色分量以及所述蓝绿分量按预设的方式生成所述3D视频数据。The 3D video data is generated in a preset manner by the red component and the blue-green component.
  15. 根据权利要求11-14任一所述的电子设备,其特征在于,所述将所述2D视频数据进行压缩包括:The electronic device according to any one of claims 11-14, wherein the compressing the 2D video data comprises:
    根据视频播放装置及虚拟现实头盔的分辨率确定所述2D视频数据的压缩倍数。The compression factor of the 2D video data is determined according to the resolution of the video playback device and the virtual reality helmet.
  16. 一种非暂态计算机可读存储介质,其特征在于:所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行以下操作:A non-transitory computer readable storage medium, characterized in that said non-transitory computer readable storage medium stores computer instructions for causing said computer to:
    获取待播放的2D视频数据;Obtaining 2D video data to be played;
    将所述2D视频数据进行压缩;Compressing the 2D video data;
    在虚拟现实场景中播放所述压缩的2D视频数据。The compressed 2D video data is played in a virtual reality scene.
  17. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行以下操作:A computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to execute The following operations:
    获取待播放的2D视频数据;Obtaining 2D video data to be played;
    将所述2D视频数据进行压缩;Compressing the 2D video data;
    在虚拟现实场景中播放所述压缩的2D视频数据。 The compressed 2D video data is played in a virtual reality scene.
PCT/CN2016/109553 2016-04-26 2016-12-13 Method and device for playing back 2d video WO2017185761A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610266837.X 2016-04-26
CN201610266837.XA CN105872521A (en) 2016-04-26 2016-04-26 2D video playing method and device

Publications (1)

Publication Number Publication Date
WO2017185761A1 true WO2017185761A1 (en) 2017-11-02

Family

ID=56629278

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109553 WO2017185761A1 (en) 2016-04-26 2016-12-13 Method and device for playing back 2d video

Country Status (2)

Country Link
CN (1) CN105872521A (en)
WO (1) WO2017185761A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190058857A1 (en) * 2017-08-15 2019-02-21 International Business Machines Corporation Generating three-dimensional imagery
CN109993699A (en) * 2019-04-02 2019-07-09 上海飞来飞去新媒体展示设计有限公司 A kind of VR effective resolution boosting algorithm using picture deformation and reversible deformation
US11783534B2 (en) 2018-10-17 2023-10-10 Adobe Inc. 3D simulation of a 3D drawing in virtual reality

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872521A (en) * 2016-04-26 2016-08-17 乐视控股(北京)有限公司 2D video playing method and device
CN108111874B (en) * 2016-11-16 2020-01-31 腾讯科技(深圳)有限公司 file processing method, terminal and server
CN106803984B (en) * 2017-02-13 2020-01-10 福州瑞芯微电子股份有限公司 Method and device compatible with VR and television functions
CN115150555B (en) * 2022-07-15 2023-12-19 北京字跳网络技术有限公司 Video recording method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780895A (en) * 2012-05-31 2012-11-14 新奥特(北京)视频技术有限公司 Implementation method of 3D (three-dimensional) video file from single video file
CN104111535A (en) * 2013-04-17 2014-10-22 程立军 Image display method and device
CN104837005A (en) * 2014-02-11 2015-08-12 深圳市云帆世纪科技有限公司 Method and device for switch playing of 3D video and 2D video
WO2016017997A1 (en) * 2014-07-31 2016-02-04 Samsung Electronics Co., Ltd. Wearable glasses and method of providing content using the same
CN105472441A (en) * 2015-12-31 2016-04-06 中科创达软件股份有限公司 Image processing method and device of virtual reality device
CN105872521A (en) * 2016-04-26 2016-08-17 乐视控股(北京)有限公司 2D video playing method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012105283A (en) * 2008-09-02 2012-05-31 Panasonic Corp Video transmission system, video input device and video output device
CN101702781A (en) * 2009-09-07 2010-05-05 无锡景象数字技术有限公司 Method for converting 2D to 3D based on optical flow method
CN101765024A (en) * 2009-12-22 2010-06-30 周晓民 3D stereoscopic video signal converter and technical application thereof
US8803951B2 (en) * 2010-01-04 2014-08-12 Disney Enterprises, Inc. Video capture system control using virtual cameras for augmented reality
CN102186092A (en) * 2011-04-26 2011-09-14 深圳创维-Rgb电子有限公司 Method, system and display for displaying two-dimensional (2D) menu in three-dimensional (3D) display mode
CN102438161A (en) * 2011-08-19 2012-05-02 四川长虹电器股份有限公司 Method for converting 2D (two-dimensional) image into 3D (three-dimensional) image
CN102523467A (en) * 2011-12-09 2012-06-27 彩虹集团公司 Simple method for converting 2D video into 3D

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780895A (en) * 2012-05-31 2012-11-14 新奥特(北京)视频技术有限公司 Implementation method of 3D (three-dimensional) video file from single video file
CN104111535A (en) * 2013-04-17 2014-10-22 程立军 Image display method and device
CN104837005A (en) * 2014-02-11 2015-08-12 深圳市云帆世纪科技有限公司 Method and device for switch playing of 3D video and 2D video
WO2016017997A1 (en) * 2014-07-31 2016-02-04 Samsung Electronics Co., Ltd. Wearable glasses and method of providing content using the same
CN105472441A (en) * 2015-12-31 2016-04-06 中科创达软件股份有限公司 Image processing method and device of virtual reality device
CN105872521A (en) * 2016-04-26 2016-08-17 乐视控股(北京)有限公司 2D video playing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190058857A1 (en) * 2017-08-15 2019-02-21 International Business Machines Corporation Generating three-dimensional imagery
US10735707B2 (en) * 2017-08-15 2020-08-04 International Business Machines Corporation Generating three-dimensional imagery
US10785464B2 (en) 2017-08-15 2020-09-22 International Business Machines Corporation Generating three-dimensional imagery
US11783534B2 (en) 2018-10-17 2023-10-10 Adobe Inc. 3D simulation of a 3D drawing in virtual reality
CN109993699A (en) * 2019-04-02 2019-07-09 上海飞来飞去新媒体展示设计有限公司 A kind of VR effective resolution boosting algorithm using picture deformation and reversible deformation

Also Published As

Publication number Publication date
CN105872521A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017185761A1 (en) Method and device for playing back 2d video
WO2018045927A1 (en) Three-dimensional virtual technology based internet real-time interactive live broadcasting method and device
JP6662986B2 (en) Generating video with multiple viewpoints
US10229651B2 (en) Variable refresh rate video capture and playback
WO2017193576A1 (en) Video resolution adaptation method and apparatus, and virtual reality terminal
CN112585978B (en) Generating a composite video stream for display in VR
WO2017113488A1 (en) Method and apparatus for displaying 2d application interface in virtual reality device
WO2018000609A1 (en) Method for sharing 3d image in virtual reality system, and electronic device
US20190230317A1 (en) Immersive mixed reality snapshot and video clip
US20170186243A1 (en) Video Image Processing Method and Electronic Device Based on the Virtual Reality
WO2018000619A1 (en) Data display method, device, electronic device and virtual reality device
WO2018076939A1 (en) Video file processing method and apparatus
CN112019907A (en) Live broadcast picture distribution method, computer equipment and readable storage medium
US20200298113A1 (en) Systems and methods for allowing interactive broadcast streamed video from dynamic content
Zerman et al. User behaviour analysis of volumetric video in augmented reality
US20160286195A1 (en) Engine, system and method for providing three dimensional content and viewing experience for same
CN107580228B (en) Monitoring video processing method, device and equipment
KR101752691B1 (en) Apparatus and method for providing virtual 3d contents animation where view selection is possible
CN112153472A (en) Method and device for generating special picture effect, storage medium and electronic equipment
CN112019906A (en) Live broadcast method, computer equipment and readable storage medium
CN111246274A (en) Method for determining data for displaying information and method and device for displaying information
CN103309444A (en) Kinect-based intelligent panoramic display method
CN113194326A (en) Panoramic live broadcast method and device, computer equipment and computer readable storage medium
De Almeida et al. Integration of Fogo Player and SAGE (Scalable Adaptive Graphics Environment) for 8K UHD Video Exhibition
CN115665461B (en) Video recording method and virtual reality device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16900266

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900266

Country of ref document: EP

Kind code of ref document: A1