Based on Internet service end three-dimensional video-frequency real-time transcoding method and system
Technical field
The invention belongs to video conversion technical field, relate to a kind of three-dimensional video-frequency conversion method, particularly relate to one
Based on Internet service end three-dimensional video-frequency real-time transcoding method;The invention still further relates to a kind of based on the Internet clothes simultaneously
Business end three-dimensional video-frequency real-time transcoding system.
Background technology
Along with the development of video network, video frequency program is the gesture of magnanimity growth, and the netizen of online viewing video more comes
The most, but in network, the video of the overwhelming majority is all common two dimensional surface video.For liking viewing solid
For the network user of video, the three-dimensional video-frequency film source viewing finding abundance is a difficult thing.How
Common video is converted in real time three-dimensional video-frequency, and is shown to user's viewing, become internet video one urgently
Problem to be solved.
The most common three-dimensional video-frequency form has: left-right format, top-down format, red blue form, shutter form etc.,
Left-right format three-dimensional video-frequency therein is considered to be General stereoscopic form, this is because, left-right format can be stood
Volumetric video is converted into the three-dimensional video-frequency of extended formatting.So, if common planar video is converted into solid
If video, it is only necessary to common planar video is converted into left and right three-dimensional video-frequency, then other stereopsis
Frequently form can also be changed by identical principle." vision research " of 1997 (Vision Research,
1997, pp.1683-1698), in, Ning Qian and Richard A.Andersen has delivered " one
The physiological mode of motion stereoscopic combination and the general explanation of class pulfrich phenomenon " (A
Physiological Model for Motion-Stereo Integration and a Unified
Explanation of Pulfrich-like Phenomena) article.In this article, they disclose
A kind of method that planar video is converted to left and right three-dimensional video-frequency.This patent use the method carry out planar video and
The conversion of three-dimensional video-frequency.
In addition to relating to above-mentioned planar video and being converted into the technology of three-dimensional video-frequency, this patent also includes on the Internet flat
Plane video is converted into three-dimensional video-frequency, and General stereoscopic video conversion becomes the whole system of extended formatting three-dimensional video-frequency
Framework, includes how to transmit video on internet, how at service end converting video, and how visitor
The modules such as family end display three-dimensional video-frequency.
Summary of the invention
The technical problem to be solved is: provide one to turn in real time based on Internet service end three-dimensional video-frequency
Code method, can become to set the stereopsis of form by ordinary video file or ordinary stereo video conversion conveniently and efficiently
Frequency also shows.
Additionally, the present invention also provides for a kind of based on Internet service end three-dimensional video-frequency real-time transcoding system, can facilitate
Become set the three-dimensional video-frequency of form and show by ordinary video file or ordinary stereo video conversion quickly.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that
A kind of based on Internet service end three-dimensional video-frequency real-time transcoding method, described method includes:
Service end storage ordinary video file or the stereoscopic video file of general format;
Client is by the ordinary video file stored in network access service end or the three-dimensional video-frequency of general format
File;
Ordinary video file is converted into three-dimensional video-frequency by service end in real time, or is turned by the three-dimensional video-frequency of general format
Change the three-dimensional video-frequency of non-universal form into;Transformed video frequency evidence is transferred to client by service end.
A kind of based on Internet service end three-dimensional video-frequency real-time transcoding method, described method comprises the steps:
S1, service end storage ordinary video file or the stereoscopic video file of general format, in case client-access;
S2, client are by the ordinary video file stored in network access service end or the stereopsis of general format
Frequency file;
S31, when client-access be ordinary video file time, service end in real time by ordinary video file change
Become three-dimensional video-frequency form or the three-dimensional video-frequency form of default of user's selection, and be transferred to user;
S32, when client-access be the stereoscopic video file of general format and user selects or default
Three-dimensional video-frequency form when being non-universal form, the stereoscopic video file of general format is converted into by service end in real time
The three-dimensional video-frequency form of user's selection or the three-dimensional video-frequency form of default, and it is transferred to user;
S33 or, service end in advance ordinary video file is converted into user select three-dimensional video-frequency form,
Or the stereoscopic video file of General stereoscopic form is converted into the three-dimensional video-frequency form that user selects;When user selects
The when of accessing three-dimensional video-frequency, the three-dimensional video-frequency changed in advance is directly sent to client by service end.
As a preferred embodiment of the present invention, in described step S1, described ordinary video file refers to that plane regards
Frequently, i.e. non-cubic video file;
The stereoscopic video file of described general format, uses the stereoscopic video file of left-right format or upper and lower lattice
The stereoscopic video file of formula.
As a preferred embodiment of the present invention, in described step S31, service end is in real time by ordinary video file
The method being converted into three-dimensional video-frequency includes: the plane frame of ordinary video file is converted into left image frame and right picture
Frame.
As a preferred embodiment of the present invention, in described step S31, user is optional or default vertical
Volumetric video form includes the one in left-right format, top-down format, red blue form, shutter form and stagger scheme
Or multiple, specific as follows:
1) left-right format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the left-half picture of left-right format three-dimensional video-frequency, right image frame is made
For the right half part picture of left-right format three-dimensional video-frequency, then show;
2) top-down format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the top half picture of top-down format three-dimensional video-frequency, right image frame is made
For the latter half picture of top-down format three-dimensional video-frequency, then show;
3) red blue form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using the red color component of left image frame as the red component of red blue form three-dimensional video-frequency, by the right side
The blue component of image frame and green component are as the blue component of red blue form three-dimensional video-frequency and green component, so
After show;
4) shutter form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, left image frame and right image frame are shown by priority time sequencing;
5) stagger scheme three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, show after superposition that left image frame and right image frame are interlocked.
As a preferred embodiment of the present invention, described step S32 particularly as follows:
When client-access be the stereoscopic video file of general format time, select according to user or default
Three-dimensional video-frequency form performs step S321 or step S322;If user selects or the three-dimensional video-frequency of default is
The three-dimensional video-frequency of general format, performs step S321;If user selects or the three-dimensional video-frequency of default is non-
The three-dimensional video-frequency of general format, performs step S322;
If S321 user selects or the three-dimensional video-frequency that three-dimensional video-frequency is the general format the stored literary composition of default
Part, the stereoscopic video file storing general format is transferred directly to user by service end;Otherwise, will store
The stereoscopic video file of general format is converted to the stereopsis of other general formats of user's selection or default
Frequently;
The stereoscopic video file of general format is converted into user and selects or default by S322, service end in real time
The three-dimensional video-frequency form of non-universal form, and it is transferred to user.
As a preferred embodiment of the present invention, in described step S32, the stereoscopic video file of general format is
Left-right format three-dimensional video-frequency or the three-dimensional video-frequency of top-down format;The three-dimensional video-frequency of described non-universal form includes red indigo plant
Form, shutter form and the three-dimensional video-frequency of stagger scheme;
In step S321, the stereoscopic video file storing general format is converted to user's selection or system sets
The method of the three-dimensional video-frequency of other fixed general formats includes:
The method being converted into top-down format three-dimensional video-frequency by existing left-right format three-dimensional video-frequency: left-right format is stood
The left-half picture of volumetric video and right half part picture are as the second left image frame and the second right image frame;By
Two left image frames are as the top half picture of top-down format three-dimensional video-frequency, using the second right image frame as upper and lower lattice
The latter half picture of formula three-dimensional video-frequency, then shows;
The method being converted into left-right format three-dimensional video-frequency by existing top-down format three-dimensional video-frequency: top-down format is stood
The latter half picture of volumetric video and top half picture are as the second left image frame and the second right image frame;Second
Left image frame is as the left-half picture of left-right format three-dimensional video-frequency, using the second right image frame as left-right format
The right half part picture of three-dimensional video-frequency, then shows;
In step S322, the stereoscopic video file of existing general format is converted into user and selects by service end in real time
Or the three-dimensional video-frequency form of non-universal form of default, and be transferred to user;Video conversion method includes:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as second
Left image frame and the second right image frame, or by the latter half picture of top-down format three-dimensional video-frequency and top half
Picture is as the second left image frame and the second right image frame;
Step S3222: as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency are converted into
Red blue form or shutter form or the three-dimensional video-frequency of stagger scheme:
Red blue form three-dimensional video-frequency conversion method: the red color component of the second left image frame is stood as red blue form
The red component of volumetric video, using the blue component of the second right image frame and green component as red blue form stereopsis
The blue component of frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: by suitable by the successively time to the second left image frame and the second right image frame
Sequence shows;
Stagger scheme three-dimensional video-frequency conversion method: aobvious after superposition that the second left image frame and the second right image frame are interlocked
Illustrate.
A kind of based on Internet service end three-dimensional video-frequency real-time transcoding system, described system includes service end, client
End;
Service end storage ordinary video file or the stereoscopic video file of general format, in case client-access;Visitor
Family end is by the ordinary video file stored in network access service end or the stereoscopic video file of general format;
Described service end includes:
Ordinary video converting unit, in order to client-access be ordinary video file time, will commonly regard in real time
Frequency file is converted into three-dimensional video-frequency form or the three-dimensional video-frequency form of default that user selects, and is transferred to use
Family;
Three-dimensional video-frequency converting unit, in order to client-access be general format stereoscopic video file and use
When the three-dimensional video-frequency form of family selection or default is non-universal form, in real time by the three-dimensional video-frequency of general format
File is converted into three-dimensional video-frequency form or the three-dimensional video-frequency form of default that user selects, and is transferred to use
Family.
As a preferred embodiment of the present invention, client-access be ordinary video file time, user is optional
Select or the three-dimensional video-frequency form of default include left-right format, top-down format, red blue form, shutter form and
One or more in stagger scheme;The conversion method of described ordinary video converting unit is specific as follows:
1) left-right format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the left-half picture of left-right format three-dimensional video-frequency, right image frame is made
For the right half part picture of left-right format three-dimensional video-frequency, then show;
2) top-down format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the top half picture of top-down format three-dimensional video-frequency, right image frame is made
For the latter half picture of top-down format three-dimensional video-frequency, then show;
3) red blue form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using the red color component of left image frame as the red component of red blue form three-dimensional video-frequency, by the right side
The blue component of image frame and green component are as the blue component of red blue form three-dimensional video-frequency and green component, so
After show;
4) shutter form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, left image frame and right image frame are shown by priority time sequencing;
5) stagger scheme three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, show after superposition that left image frame and right image frame are interlocked.
As a preferred embodiment of the present invention, when client-access is the stereoscopic video file of general format
Time, described three-dimensional video-frequency converting unit selects according to user or the three-dimensional video-frequency form of default performs asynchronous
Suddenly;
If if user selects or the three-dimensional video-frequency user that three-dimensional video-frequency is general format of default selects
Or the stereoscopic video file that the three-dimensional video-frequency of default is the general format stored, service end is logical by storing
It is transferred directly to user with the stereoscopic video file of form;Otherwise, the three-dimensional video-frequency converting unit of service end is by
The stereoscopic video file of storage general format is converted to the vertical of other general formats of user's selection or default
Volumetric video;
If the stereoscopic video service end that three-dimensional video-frequency is non-universal form of user's selection or default
The stereoscopic video file of general format is converted into user and selects or default by three-dimensional video-frequency converting unit in real time
The three-dimensional video-frequency form of non-universal form, and be transferred to user.
As a preferred embodiment of the present invention, the stereoscopic video file of general format is left-right format three-dimensional video-frequency
Or the three-dimensional video-frequency of top-down format;The three-dimensional video-frequency of described non-universal form include red blue form, shutter form and
The three-dimensional video-frequency of stagger scheme;
The stereoscopic video file storing general format is converted to user select or other of default are general
The method of the three-dimensional video-frequency of form includes:
The method being converted into top-down format three-dimensional video-frequency by existing left-right format three-dimensional video-frequency: left-right format is stood
The left-half picture of volumetric video and right half part picture are as the second left image frame and the second right image frame;By
Two left image frames are as the top half picture of top-down format three-dimensional video-frequency, using the second right image frame as upper and lower lattice
The latter half picture of formula three-dimensional video-frequency, then shows;
The method being converted into left-right format three-dimensional video-frequency by existing top-down format three-dimensional video-frequency: top-down format is stood
The latter half picture of volumetric video and top half picture are as the second left image frame and the second right image frame;Second
Left image frame is as the left-half picture of left-right format three-dimensional video-frequency, using the second right image frame as left-right format
The right half part picture of three-dimensional video-frequency, then shows;
The stereoscopic video file of existing general format is converted into use by the three-dimensional video-frequency converting unit of service end in real time
The three-dimensional video-frequency form of that family selects or default non-universal form, and it is transferred to user;Video conversion side
Method includes:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as second
Left image frame and the second right image frame, or by the latter half picture of top-down format three-dimensional video-frequency and top half
Picture is as the second left image frame and the second right image frame;
Step S3222: as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency are converted into
Red blue form or shutter form or the three-dimensional video-frequency of stagger scheme:
Red blue form three-dimensional video-frequency conversion method: the red color component of the second left image frame is stood as red blue form
The red component of volumetric video, using the blue component of the second right image frame and green component as red blue form stereopsis
The blue component of frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: by suitable by the successively time to the second left image frame and the second right image frame
Sequence shows;
Stagger scheme three-dimensional video-frequency conversion method: aobvious after superposition that the second left image frame and the second right image frame are interlocked
Illustrate.
The beneficial effects of the present invention is: the present invention propose based on Internet service end three-dimensional video-frequency real-time transcoding
Method and system, first preserve the three-dimensional video-frequency literary composition of ordinary video file or general format on Internet service end
Part, in case client-access;When internet client accesses ordinary video file or general format by network
The when of stereoscopic video file, ordinary video file is converted into three-dimensional video-frequency by Internet service end in real time, or
The three-dimensional video-frequency of general format is converted into the three-dimensional video-frequency of extended formatting;Internet service end is by transformed video frequency
Data are transferred to internet client;User can select to need the three-dimensional video-frequency of conversion according to the demand of self
Form, including left-right format, top-down format, red blue form, shutter form, stagger scheme etc., thus reaches
Purpose by internet viewing three-dimensional video-frequency.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of present invention three-dimensional video-frequency system based on Internet service end real-time transcoding.
Fig. 2 is the flow chart of three-dimensional video-frequency real-time transcoding method of the present invention.
Fig. 3 is three-dimensional video-frequency system based on Internet service end real-time transcoding in one embodiment of the invention
Flow chart.
Fig. 4 is three-dimensional video-frequency system based on Internet service end real-time transcoding in another embodiment of the present invention
Flow chart.
Detailed description of the invention
Describe the preferred embodiments of the present invention below in conjunction with the accompanying drawings in detail.
Embodiment one
Refer to Fig. 1, present invention is disclosed a kind of based on Internet service end three-dimensional video-frequency real-time transcoding method,
Described method includes:
Service end storage ordinary video file or the stereoscopic video file of general format;
Client is by the ordinary video file stored in network access service end or the three-dimensional video-frequency of general format
File;
Ordinary video file is converted into three-dimensional video-frequency by service end in real time, or is turned by the three-dimensional video-frequency of general format
Change the three-dimensional video-frequency of non-universal form into;Transformed video frequency evidence is transferred to client by service end.
Specifically, referring to Fig. 2, three-dimensional video-frequency real-time transcoding method of the present invention comprises the steps:
[step S1] service end storage ordinary video file or the stereoscopic video file of general format, in case objective
Family end accesses;
[step S2] client is by the ordinary video file stored in network access service end or general format
Stereoscopic video file;
[step S31] when client-access be ordinary video file time, service end in real time by ordinary video literary composition
Part is converted into three-dimensional video-frequency form or the three-dimensional video-frequency form of default that user selects, and is transferred to user;
[step S32] when client-access be the stereoscopic video file of general format and user selects or is
When the three-dimensional video-frequency form that system sets is as non-universal form, service end is in real time by the stereoscopic video file of general format
It is converted into three-dimensional video-frequency form or the three-dimensional video-frequency form of default that user selects, and is transferred to user.
Wherein, in described step S1, described ordinary video file refers to planar video, i.e. non-cubic video file;
The storage format of this video file uses FLV, F4V or MP4 form, but is not limited to above-mentioned three kinds of forms,
H.264 h.263 the compress mode of video file use or, but is not limited to above two compress mode.Described logical
With the stereoscopic video file of form, use the stereoscopic video file of left-right format or the stereopsis of top-down format
Frequency file;Its storage format is identical with ordinary video file with compress mode.
In step S2, internet client passes through internet access ordinary video file or the solid of general format
Video file, wherein network transmission uses http agreement or rtsp agreement, but is not limited to above two and passes
Transmission protocol, network access mode therein includes wired internet access mode or wireless Internet network access side
Formula.
In described step S31, the method that ordinary video file is converted into three-dimensional video-frequency is included by service end in real time:
The plane frame of ordinary video file is converted into left image frame and right image frame.Can use and background technology is mentioned
" physiological mode of a motion stereoscopic combination and the general explanation of class pulfrich phenomenon " is disclosed herein
Method, the plane frame of ordinary video file is converted into left image frame and right image frame.
In described step S31, optional or default the three-dimensional video-frequency form of user can include left-right format,
One or more in top-down format, red blue form, shutter form and stagger scheme, the conversion side of various forms
Method is specific as follows:
1) left-right format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the left-half picture of left-right format three-dimensional video-frequency, right image frame is made
For the right half part picture of left-right format three-dimensional video-frequency, then show.
2) top-down format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the top half picture of top-down format three-dimensional video-frequency, right image frame is made
For the latter half picture of top-down format three-dimensional video-frequency, then show.
3) red blue form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using the red color component of left image frame as the red component of red blue form three-dimensional video-frequency, by the right side
The blue component of image frame and green component are as the blue component of red blue form three-dimensional video-frequency and green component, so
After show.
4) shutter form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, left image frame and right image frame are shown by priority time sequencing.
5) stagger scheme three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, show after superposition that left image frame and right image frame are interlocked.
Described step S32 specifically can comprise the steps:
[step S320] when client-access be the stereoscopic video file of general format time, select according to user
Select or the three-dimensional video-frequency form of default performs step S321 or step S322;If user selects or system sets
Fixed three-dimensional video-frequency is the three-dimensional video-frequency of general format, performs step S321;If user selects or default
The three-dimensional video-frequency that three-dimensional video-frequency is non-universal form, perform step S322.
[step S321] is if user selects or the three-dimensional video-frequency of default is the vertical of the general format that stored
Volumetric video file, the stereoscopic video file storing general format is transferred directly to user by service end.Otherwise,
The stereoscopic video file storing general format is converted to user select or other general formats of default
Three-dimensional video-frequency.Conversion method includes:
The method being converted into top-down format three-dimensional video-frequency by existing left-right format three-dimensional video-frequency: left-right format is stood
The left-half picture of volumetric video and right half part picture are as the second left image frame and the second right image frame;By
Two left image frames are as the top half picture of top-down format three-dimensional video-frequency, using the second right image frame as upper and lower lattice
The latter half picture of formula three-dimensional video-frequency, then shows.
The method being converted into left-right format three-dimensional video-frequency by existing top-down format three-dimensional video-frequency: top-down format is stood
The latter half picture of volumetric video and top half picture are as the second left image frame and the second right image frame;Second
Left image frame is as the left-half picture of left-right format three-dimensional video-frequency, using the second right image frame as left-right format
The right half part picture of three-dimensional video-frequency, then shows.
The stereoscopic video file of general format is converted into the vertical of user's selection by [step S322] service end in real time
The three-dimensional video-frequency form of the non-universal form of volumetric video form or default, and it is transferred to user.
In described step S32, the stereoscopic video file of general format is left-right format three-dimensional video-frequency or top-down format
Three-dimensional video-frequency;The three-dimensional video-frequency of described non-universal form includes red blue form, shutter form and stagger scheme
Three-dimensional video-frequency.The stereoscopic video file of existing general format is converted into user selects or system by service end in real time
The three-dimensional video-frequency form set, and it is transferred to user;Video conversion method includes:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as second
Left image frame and the second right image frame, or by the latter half picture of top-down format three-dimensional video-frequency and top half
Picture is as the second left image frame and the second right image frame;
Step S3222: as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency are converted into
Red blue form or shutter form or the three-dimensional video-frequency of stagger scheme:
Red blue form three-dimensional video-frequency conversion method: the red color component of the second left image frame is stood as red blue form
The red component of volumetric video, using the blue component of the second right image frame and green component as red blue form stereopsis
The blue component of frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: by suitable by the successively time to the second left image frame and the second right image frame
Sequence shows;
Stagger scheme three-dimensional video-frequency conversion method: aobvious after superposition that the second left image frame and the second right image frame are interlocked
Illustrate.
[step S33] or, service end in advance ordinary video file is converted into user select three-dimensional video-frequency
Form, or the stereoscopic video file of General stereoscopic form is converted into the three-dimensional video-frequency form that user selects;When with
The when that family selecting to access three-dimensional video-frequency, the three-dimensional video-frequency changed in advance is directly sent to client by service end.
Being described above three-dimensional video-frequency real-time transcoding method of the present invention, the present invention is real-time at the above-mentioned three-dimensional video-frequency of announcement
While code-transferring method, also disclose a kind of three-dimensional video-frequency real-time transcoding system.See Fig. 1, described system bag
Include service end, client;Service end storage ordinary video file or the stereoscopic video file of general format, in case
Client-access;Client is by the ordinary video file of storage in network access service end or standing of general format
Volumetric video file.
Described service end includes: ordinary video converting unit, three-dimensional video-frequency converting unit.Ordinary video conversion is single
Unit in order to client-access be ordinary video file time, in real time ordinary video file is converted into user select
Three-dimensional video-frequency form or the three-dimensional video-frequency form of default, and be transferred to user.Three-dimensional video-frequency converting unit
In order to client-access be the stereoscopic video file of general format and user selects or the solid of default
When video format is non-universal form, in real time the stereoscopic video file of general format is converted into the vertical of user's selection
The three-dimensional video-frequency form of volumetric video form or default, and it is transferred to user.
When client-access be ordinary video file time, user is optional or the three-dimensional video-frequency form of default
Including one or more in left-right format, top-down format, red blue form, shutter form and stagger scheme;Institute
The conversion method stating ordinary video converting unit is specific as follows:
1) left-right format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the left-half picture of left-right format three-dimensional video-frequency, right image frame is made
For the right half part picture of left-right format three-dimensional video-frequency, then show;
2) top-down format three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using left image frame as the top half picture of top-down format three-dimensional video-frequency, right image frame is made
For the latter half picture of top-down format three-dimensional video-frequency, then show;
3) red blue form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, using the red color component of left image frame as the red component of red blue form three-dimensional video-frequency, by the right side
The blue component of image frame and green component are as the blue component of red blue form three-dimensional video-frequency and green component, so
After show;
4) shutter form three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, left image frame and right image frame are shown by priority time sequencing;
5) stagger scheme three-dimensional video-frequency conversion method: the plane frame of ordinary video file is converted into left image frame and
After right image frame, show after superposition that left image frame and right image frame are interlocked.
When client-access be the stereoscopic video file of general format time, described three-dimensional video-frequency converting unit according to
User selects or the three-dimensional video-frequency form of default performs different step.
If if user selects or the three-dimensional video-frequency user that three-dimensional video-frequency is general format of default selects
Or the stereoscopic video file that the three-dimensional video-frequency of default is the general format stored, service end is logical by storing
It is transferred directly to user with the stereoscopic video file of form;Otherwise, the three-dimensional video-frequency converting unit of service end is by
The stereoscopic video file of storage general format is converted to the vertical of other general formats of user's selection or default
Volumetric video.
If the stereoscopic video service end that three-dimensional video-frequency is non-universal form of user's selection or default
The stereoscopic video file of general format is converted into user and selects or default by three-dimensional video-frequency converting unit in real time
The three-dimensional video-frequency form of non-universal form, and be transferred to user.
The stereoscopic video file of general format is the three-dimensional video-frequency of left-right format three-dimensional video-frequency or top-down format;Described
The three-dimensional video-frequency of non-universal form includes red blue form, shutter form and the three-dimensional video-frequency of stagger scheme.
The stereoscopic video file storing general format is converted to user select or the three-dimensional video-frequency of default
The method of form includes:
The method being converted into top-down format three-dimensional video-frequency by existing left-right format three-dimensional video-frequency: left-right format is stood
The left-half picture of volumetric video and right half part picture are as the second left image frame and the second right image frame;By
Two left image frames are as the top half picture of top-down format three-dimensional video-frequency, using the second right image frame as upper and lower lattice
The latter half picture of formula three-dimensional video-frequency, then shows;
The method being converted into left-right format three-dimensional video-frequency by existing top-down format three-dimensional video-frequency: top-down format is stood
The latter half picture of volumetric video and top half picture are as the second left image frame and the second right image frame;Second
Left image frame is as the left-half picture of left-right format three-dimensional video-frequency, using the second right image frame as left-right format
The right half part picture of three-dimensional video-frequency, then shows.
The stereoscopic video file of existing general format is converted into use by the three-dimensional video-frequency converting unit of service end in real time
The three-dimensional video-frequency form of that family selects or default non-universal form, and it is transferred to user.Video conversion side
Method includes:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as second
Left image frame and the second right image frame, or by the latter half picture of top-down format three-dimensional video-frequency and top half
Picture is as the second left image frame and the second right image frame;
Step S3222: as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency are converted into
Red blue form or shutter form or the three-dimensional video-frequency of stagger scheme:
Red blue form three-dimensional video-frequency conversion method: the red color component of the second left image frame is stood as red blue form
The red component of volumetric video, using the blue component of the second right image frame and green component as red blue form stereopsis
The blue component of frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: by suitable by the successively time to the second left image frame and the second right image frame
Sequence shows;
Stagger scheme three-dimensional video-frequency conversion method: aobvious after superposition that the second left image frame and the second right image frame are interlocked
Illustrate.
Embodiment two
As in figure 2 it is shown, the present embodiment discloses a kind of three-dimensional video-frequency system based on Internet service end real-time transcoding
System, the real-time transcoding method of this system comprises the following steps:
1) Internet service end preserves ordinary video file, and H.264 Video coding mode uses;
2) internet client passes through internet http protocol access ordinary video file;
3) the Internet services end uses C++ to compile in real time and ordinary video file is converted into red blue three-dimensional video-frequency, and passes
Give client and be shown to user.
Embodiment three
As it is shown on figure 3, the present embodiment discloses a kind of three-dimensional video-frequency system based on Internet service end real-time transcoding
System, the real-time transcoding method of this system comprises the following steps:
1) Internet service end preserves ordinary video file, and H.264 Video coding mode uses;
2) internet client passes through internet RTSP protocol access ordinary video file;
3) the Internet services end uses C++ to compile in real time and ordinary video file is converted into red blue three-dimensional video-frequency, and passes
Give client and be shown to user.
In sum, the present invention propose based on Internet service end three-dimensional video-frequency real-time transcoding method and system,
First on Internet service end, preserve ordinary video file or the stereoscopic video file of general format, in case client
End accesses;When internet client accesses ordinary video file or the stereoscopic video file of general format by network
When, ordinary video file is converted into three-dimensional video-frequency by Internet service end in real time, or by general format
Three-dimensional video-frequency is converted into the three-dimensional video-frequency of extended formatting;Internet service end is mutual according to being transferred to by transformed video frequency
Networked clients;User can select to need the three-dimensional video-frequency form of conversion, including a left side according to the demand of self
Right form, top-down format, red blue form, shutter form, stagger scheme etc., thus reach to be seen by the Internet
See the purpose of three-dimensional video-frequency.
Here description of the invention and application is illustrative, is not wishing to limit the scope of the invention to above-mentioned reality
Execute in example.The deformation of embodiments disclosed herein and change are possible, for the common skill of those this areas
For art personnel, the various parts with equivalence of replacing of embodiment are known.It should be clear to a person skilled in the art that
, in the case of without departing from the spirit or essential characteristics of the present invention, the present invention can in other forms, knot
Structure, layout, ratio, and realize with other assembly, material and parts.Without departing from the scope of the invention and
In the case of spirit, embodiments disclosed herein can be carried out other deformation and change.