Based on internet client three-dimensional video-frequency real-time transcoding method and system
Technical field
The invention belongs to video switch technology field, relate to a kind of three-dimensional video-frequency conversion method, relate in particular to a kind of based on internet client three-dimensional video-frequency real-time transcoding method; The invention still further relates to a kind of simultaneously based on internet client 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 online watches the netizen of video more and more, but the video of the overwhelming majority all is common two dimensional surface video in the network.For the network user who likes watching three-dimensional video-frequency, find sufficient three-dimensional video-frequency film source to watch to be a difficulty thing.How to convert common video to three-dimensional video-frequency in real time, and be shown to the user and watch, become problem demanding prompt solution of internet video.
At present common three-dimensional video-frequency form has: left and right sides form, form up and down, red blue form; Shutter form etc.; Left and right sides form three-dimensional video-frequency wherein is considered to be general stereo format, and this is because can left and right sides form three-dimensional video-frequency be converted to the three-dimensional video-frequency of extended formatting.So, if convert the common planar video to three-dimensional video-frequency, only need convert the common planar video to left and right sides three-dimensional video-frequency and get final product, then other three-dimensional video-frequency form also can be changed by identical principle." vision research " (Vision Research in 1997; 1997; Pp.1683-1698) in, Ning Qian and Richard A.Andersen have delivered the article of " physiological mode of a three-dimensional combination of motion is explained with the generality of type pulfrich phenomenon " (APhysiological Model for Motion-Stereo Integration and a Unified Explanation of Pulfrich-like Phenomena).In this piece article, they disclose a kind of method that planar video is converted into left and right sides three-dimensional video-frequency.This patent adopts this method to carry out the conversion of planar video and three-dimensional video-frequency.
Except relating to the technology that above-mentioned planar video converts three-dimensional video-frequency to; This patent comprises that also planar video converts three-dimensional video-frequency on the Internet; And general three-dimensional video-frequency converts the whole system framework of extended formatting three-dimensional video-frequency to; How to comprise transmission of video on the internet,, and how show module such as three-dimensional video-frequency in client how at the client converting video.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of based on internet client three-dimensional video-frequency real-time transcoding method, can be quickly and easily ordinary video file or common three-dimensional video-frequency are converted to the three-dimensional video-frequency of setting form and show.
In addition, it is a kind of based on internet client three-dimensional video-frequency real-time transcoding system that the present invention also provides, and can be quickly and easily ordinary video file or common three-dimensional video-frequency converted to the three-dimensional video-frequency of setting form and show.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of based on internet client three-dimensional video-frequency real-time transcoding method, said method comprises:
The three-dimensional video-frequency file of service end storage ordinary video file or general format;
Client is through the ordinary video file stored in the network access service end or the three-dimensional video-frequency file of general format;
Client becomes three-dimensional video-frequency with the ordinary video file conversion in real time, perhaps the three-dimensional video-frequency of general format is converted to the three-dimensional video-frequency of non-general format, then is shown to the user.
A kind of based on internet client three-dimensional video-frequency real-time transcoding method, said method comprises the steps:
The three-dimensional video-frequency file of S1, service end storage ordinary video file or general format is in order to client-access;
S2, client are through the ordinary video file stored in the network access service end or the three-dimensional video-frequency file of general format;
S31, when client-access be the ordinary video file time, client becomes the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default with the ordinary video file conversion in real time, and is shown to the user;
S32, be that three-dimensional video-frequency file and the user of general format selects or the three-dimensional video-frequency form of default when being non-general format when client-access; Client becomes the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default with the three-dimensional video-frequency file conversion of general format in real time, and is shown to the user.
As a kind of preferred version of the present invention, among the said step S1, said ordinary video file refers to planar video, promptly non-three-dimensional video-frequency file;
The three-dimensional video-frequency file of said general format, employing be the three-dimensional video-frequency file of left and right sides form or the three-dimensional video-frequency file of form up and down.
As a kind of preferred version of the present invention, among the said step S31, client becomes the method for three-dimensional video-frequency to be the ordinary video file conversion in real time: convert the plane frame of ordinary video file to left image frame and right image frame.
As a kind of preferred version of the present invention, among the said step S31, the user can select or the three-dimensional video-frequency form of default comprises left and right sides form, one or more in form, red blue form, shutter form and the stagger scheme up and down, and is specific as follows:
1) left and right sides form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the left-half picture of left image frame as left and right sides form three-dimensional video-frequency; With the right half part picture of right image frame, show then as left and right sides form three-dimensional video-frequency;
2) form three-dimensional video-frequency conversion method up and down: after converting the plane frame of ordinary video file to left image frame and right image frame; With left image frame as the first half picture of form three-dimensional video-frequency up and down; Right image frame as the latter half picture of form three-dimensional video-frequency up and down, is shown then;
3) red blue form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the red color component of left image frame red component as red blue form three-dimensional video-frequency; The blue component of right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then;
4) shutter form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, left image frame and right image frame are shown by the priority time sequencing;
5) stagger scheme three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, with showing after left image frame and the staggered stack of right image frame.
As a kind of preferred version of the present invention, said step S32 is specially:
When client-access be the three-dimensional video-frequency file of general format the time, select or the three-dimensional video-frequency form execution in step S321 or the step S322 of default according to the user; If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of general format, execution in step S321; If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of non-general format, execution in step S322;
S321, if the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency file of the general format stored, the three-dimensional video-frequency file that client will be stored in the general format of service end directly is shown to the user; Otherwise, with the three-dimensional video-frequency of the three-dimensional video-frequency file conversion of storing general format for other general formats of user's selection or default;
S322, client become the user to select the three-dimensional video-frequency file conversion of general format or the three-dimensional video-frequency form of the non-general format of default in real time, and are shown to the user.
As a kind of preferred version of the present invention, among the said step S32, the three-dimensional video-frequency file of general format is the left and right sides form three-dimensional video-frequency or the three-dimensional video-frequency of form up and down; The three-dimensional video-frequency of said non-general format comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme;
Among the step S321, the method for the three-dimensional video-frequency file conversion of storing general format for the three-dimensional video-frequency of other general formats of user's selection or default comprised:
Convert the method for form three-dimensional video-frequency up and down to through existing left and right sides form three-dimensional video-frequency: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame; With the second left image frame as the first half picture of form three-dimensional video-frequency up and down, with the second right image frame as about the latter half picture of form three-dimensional video-frequency, show then;
Convert the method for left and right sides form three-dimensional video-frequency to through existing form three-dimensional video-frequency up and down: the latter half picture of form three-dimensional video-frequency and the first half picture are as the second left image frame and the second right image frame up and down; The second left image frame, shows the right half part picture of the second right image frame as left and right sides form three-dimensional video-frequency as the left-half picture of left and right sides form three-dimensional video-frequency then;
Among the step S322, the three-dimensional video-frequency file conversion that client will have general format in real time becomes the three-dimensional video-frequency form of the non-general format of that the user selects or default, and is shown to the user; Video conversion method comprises:
Step S3221: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, perhaps up and down the latter half picture of form three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: according to following method with left and right sides form three-dimensional video-frequency or up and down the form three-dimensional video-frequency convert the three-dimensional video-frequency of red blue form or shutter form or stagger scheme to:
Red blue form three-dimensional video-frequency conversion method: with the red color component of the second left image frame red component as red blue form three-dimensional video-frequency; The blue component of the second right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by the priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: with showing after the second left image frame and the staggered stack of the second right image frame.
A kind of based on internet client three-dimensional video-frequency real-time transcoding system, said system comprises service end, client;
The three-dimensional video-frequency file of service end storage ordinary video file or general format is in order to client-access; Client is through the ordinary video file stored in the network access service end or the three-dimensional video-frequency file of general format;
Said client comprises:
The ordinary video converting unit, in order to client-access be the ordinary video file time, client becomes the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default with the ordinary video file conversion in real time, and is shown to the user;
The three-dimensional video-frequency converting unit; In order to being that three-dimensional video-frequency file and the user of general format selects or the three-dimensional video-frequency form of default when being non-general format at client-access; Client becomes the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default with the three-dimensional video-frequency file conversion of general format in real time, and is shown to the user.
As a kind of preferred version of the present invention, client-access be the ordinary video file time, the user can select or the three-dimensional video-frequency form of default comprises left and right sides form, one or more in form, red blue form, shutter form and the stagger scheme up and down; The conversion method of said ordinary video converting unit is specific as follows:
1) left and right sides form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the left-half picture of left image frame as left and right sides form three-dimensional video-frequency; With the right half part picture of right image frame, show then as left and right sides form three-dimensional video-frequency;
2) form three-dimensional video-frequency conversion method up and down: after converting the plane frame of ordinary video file to left image frame and right image frame; With left image frame as the first half picture of form three-dimensional video-frequency up and down; Right image frame as the latter half picture of form three-dimensional video-frequency up and down, is shown then;
3) red blue form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the red color component of left image frame red component as red blue form three-dimensional video-frequency; The blue component of right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then;
4) shutter form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, left image frame and right image frame are shown by the priority time sequencing;
5) stagger scheme three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, with showing after left image frame and the staggered stack of right image frame.
As a kind of preferred version of the present invention, when client-access be the three-dimensional video-frequency file of general format the time, said three-dimensional video-frequency converting unit is selected according to the user or the three-dimensional video-frequency form of default is carried out different step;
If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of general format---if the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency file of the general format stored, the three-dimensional video-frequency file that client will be stored in the general format of service end directly is shown to the user; Otherwise the three-dimensional video-frequency converting unit of client will be stored the three-dimensional video-frequency of the three-dimensional video-frequency file conversion of general format for other general formats of user's selection or default;
If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of non-general format---the three-dimensional video-frequency converting unit of client becomes the user to select the three-dimensional video-frequency file conversion of general format or the three-dimensional video-frequency form of the non-general format of default in real time, and is shown to the user.
As a kind of preferred version of the present invention, the three-dimensional video-frequency file of general format is the left and right sides form three-dimensional video-frequency or the three-dimensional video-frequency of form up and down; The three-dimensional video-frequency of said non-general format comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme;
The method of the three-dimensional video-frequency file conversion of storing general format for the three-dimensional video-frequency of other general formats of user's selection or default comprised:
Convert the method for form three-dimensional video-frequency up and down to through existing left and right sides form three-dimensional video-frequency: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame; With the second left image frame as the first half picture of form three-dimensional video-frequency up and down, with the second right image frame as about the latter half picture of form three-dimensional video-frequency, show then;
Convert the method for left and right sides form three-dimensional video-frequency to through existing form three-dimensional video-frequency up and down: the latter half picture of form three-dimensional video-frequency and the first half picture are as the second left image frame and the second right image frame up and down; The second left image frame, shows the right half part picture of the second right image frame as left and right sides form three-dimensional video-frequency as the left-half picture of left and right sides form three-dimensional video-frequency then;
The three-dimensional video-frequency file conversion that the three-dimensional video-frequency converting unit of client will have general format in real time becomes the three-dimensional video-frequency form of the non-general format of that the user selects or default, and is shown to the user; Video conversion method comprises:
Step S3221: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, perhaps up and down the latter half picture of form three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: according to following method with left and right sides form three-dimensional video-frequency or up and down the form three-dimensional video-frequency convert the three-dimensional video-frequency of red blue form or shutter form or stagger scheme to:
Red blue form three-dimensional video-frequency conversion method: with the red color component of the second left image frame red component as red blue form three-dimensional video-frequency; The blue component of the second right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by the priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: with showing after the second left image frame and the staggered stack of the second right image frame.
Beneficial effect of the present invention is: the present invention propose based on internet client three-dimensional video-frequency real-time transcoding method and system, at first on the Internet service end, preserve the three-dimensional video-frequency file of ordinary video file or general format, in order to client-access; In the time of the three-dimensional video-frequency file of internet client through access to netwoks ordinary video file or general format, the Internet service end is given internet client with video Data Transmission; Internet client becomes the ordinary video file conversion three-dimensional video-frequency and is shown to the user in real time, and perhaps the three-dimensional video-frequency with general format converts the three-dimensional video-frequency of extended formatting to and is shown to the user; The user can be according to the demand of self, and selection needs the three-dimensional video-frequency form of conversion, comprises left and right sides form, form up and down, and red blue form, shutter form, stagger scheme etc., thus reach purpose through the internet viewing three-dimensional video-frequency.
Description of drawings
Fig. 1 is the sketch map that the present invention is based on the three-dimensional video-frequency system of internet client 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 based on the flow chart of the three-dimensional video-frequency system of internet client real-time transcoding among the embodiment two.
Fig. 4 is based on the flow chart of the three-dimensional video-frequency system of internet client real-time transcoding among the embodiment three.
Fig. 5 is based on the flow chart of the three-dimensional video-frequency system of internet client real-time transcoding among the embodiment four.
Embodiment
Specify the preferred embodiments of the present invention below in conjunction with accompanying drawing.
Embodiment one
See also Fig. 1, the present invention has disclosed a kind of based on internet client three-dimensional video-frequency real-time transcoding method, and said method comprises:
The three-dimensional video-frequency file of service end storage ordinary video file or general format;
Client is through the ordinary video file stored in the network access service end or the three-dimensional video-frequency file of general format;
Client becomes three-dimensional video-frequency with the ordinary video file conversion in real time, perhaps the three-dimensional video-frequency of general format is converted to the three-dimensional video-frequency of non-general format, then is shown to the user.
Particularly, see also Fig. 2, three-dimensional video-frequency real-time transcoding method of the present invention comprises the steps:
The three-dimensional video-frequency file of [step S1] service end storage ordinary video file or general format is in order to client-access;
[step S2] client is through the ordinary video file stored in the network access service end or the three-dimensional video-frequency file of general format;
[step S31] when client-access be the ordinary video file time, client becomes the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default with the ordinary video file conversion in real time, and is shown to the user;
[step S32] is that three-dimensional video-frequency file and the user of general format selects or the three-dimensional video-frequency form of default when being non-general format when client-access; Client becomes the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default with the three-dimensional video-frequency file conversion of general format in real time, and is shown to the user.
Wherein, among the said step S1, said ordinary video file refers to planar video, promptly non-three-dimensional video-frequency file; That the storage format of this video file adopts is FLV, F4V or MP4 form, but be not limited to above-mentioned three kinds of forms, and h.264 h.263 the compress mode of video file adopt or, but be not limited to above-mentioned two kinds of compress modes.The three-dimensional video-frequency file of said general format, employing be the three-dimensional video-frequency file of left and right sides form or the three-dimensional video-frequency file of form up and down; Its storage format is identical with the ordinary video file with compress mode.
Among the step S2; Internet client is through the three-dimensional video-frequency file of internet access ordinary video file or general format; What wherein Network Transmission adopted is http agreement or rtsp agreement; But be not limited to above-mentioned two kinds of host-host protocols, access to netwoks mode wherein comprises wired internet access mode or wireless Internet access to netwoks mode.
Among the said step S31, client becomes the method for three-dimensional video-frequency to be the ordinary video file conversion in real time: convert the plane frame of ordinary video file to left image frame and right image frame.Can adopt disclosed method in " physiological mode of a three-dimensional combination of motion is explained with the generality of type pulfrich phenomenon " literary composition of mentioning in the background technology, convert the plane frame of ordinary video file to left image frame and right image frame.
Among the said step S31, the user can select or the three-dimensional video-frequency form of default can comprise left and right sides form, one or more in form, red blue form, shutter form and the stagger scheme up and down, and the conversion method of various forms is specific as follows:
1) left and right sides form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the left-half picture of left image frame as left and right sides form three-dimensional video-frequency; With the right half part picture of right image frame, show then as left and right sides form three-dimensional video-frequency.
2) form three-dimensional video-frequency conversion method up and down: after converting the plane frame of ordinary video file to left image frame and right image frame; With left image frame as the first half picture of form three-dimensional video-frequency up and down; Right image frame as the latter half picture of form three-dimensional video-frequency up and down, is shown then.
3) red blue form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the red color component of left image frame red component as red blue form three-dimensional video-frequency; The blue component of right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then.
4) shutter form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, left image frame and right image frame are shown by the priority time sequencing.
5) stagger scheme three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, with showing after left image frame and the staggered stack of right image frame.
Said step S32 specifically can comprise the steps:
[step S320] when client-access be the three-dimensional video-frequency file of general format the time, select or the three-dimensional video-frequency form execution in step S321 or the step S322 of default according to the user; If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of general format, execution in step S321; If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of non-general format, execution in step S322.
[step S321] if the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency file of the general format stored, the three-dimensional video-frequency file that client will be stored in the general format of service end directly is shown to the user.Otherwise, with the three-dimensional video-frequency of the three-dimensional video-frequency file conversion of storing general format for other general formats of user's selection or default.Conversion method comprises:
Convert the method for form three-dimensional video-frequency up and down to through existing left and right sides form three-dimensional video-frequency: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame; With the second left image frame as the first half picture of form three-dimensional video-frequency up and down, with the second right image frame as about the latter half picture of form three-dimensional video-frequency, show then.
Convert the method for left and right sides form three-dimensional video-frequency to through existing form three-dimensional video-frequency up and down: the latter half picture of form three-dimensional video-frequency and the first half picture are as the second left image frame and the second right image frame up and down; The second left image frame, shows the right half part picture of the second right image frame as left and right sides form three-dimensional video-frequency as the left-half picture of left and right sides form three-dimensional video-frequency then.
[step S322] client becomes the three-dimensional video-frequency file conversion of general format the three-dimensional video-frequency form of the non-general format of three-dimensional video-frequency form that the user selects or default in real time, and is shown to the user.
Among the said step S32, the three-dimensional video-frequency file of general format is the left and right sides form three-dimensional video-frequency or the three-dimensional video-frequency of form up and down; The three-dimensional video-frequency of said non-general format comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme.The three-dimensional video-frequency file conversion that client will have general format in real time becomes the three-dimensional video-frequency form of that the user selects or default, and is shown to the user; Video conversion method comprises:
Step S3221: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, perhaps up and down the latter half picture of form three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: according to following method with left and right sides form three-dimensional video-frequency or up and down the form three-dimensional video-frequency convert the three-dimensional video-frequency of red blue form or shutter form or stagger scheme to:
Red blue form three-dimensional video-frequency conversion method: with the red color component of the second left image frame red component as red blue form three-dimensional video-frequency; The blue component of the second right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by the priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: with showing after the second left image frame and the staggered stack of the second right image frame.
More than introduced three-dimensional video-frequency real-time transcoding method of the present invention, the present invention also discloses a kind of three-dimensional video-frequency real-time transcoding system when disclosing above-mentioned three-dimensional video-frequency real-time transcoding method.Can consult Fig. 1, said system comprises service end, client; The three-dimensional video-frequency file of service end storage ordinary video file or general format is in order to client-access; Client is through the ordinary video file stored in the network access service end or the three-dimensional video-frequency file of general format.
Said client comprises: ordinary video converting unit, three-dimensional video-frequency converting unit.The ordinary video converting unit in order to client-access be the ordinary video file time, in real time the ordinary video file conversion is become the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default, and is shown to the user.The three-dimensional video-frequency converting unit is in order to being that three-dimensional video-frequency file and the user of general format selects or the three-dimensional video-frequency form of default when being non-general format at client-access; In real time the three-dimensional video-frequency file conversion of general format is become the three-dimensional video-frequency form that the user selects or the three-dimensional video-frequency form of default, and be shown to the user.
When client-access be the ordinary video file time, the user can select or the three-dimensional video-frequency form of default comprises left and right sides form, one or more in form, red blue form, shutter form and the stagger scheme up and down; The conversion method of said ordinary video converting unit is specific as follows:
1) left and right sides form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the left-half picture of left image frame as left and right sides form three-dimensional video-frequency; With the right half part picture of right image frame, show then as left and right sides form three-dimensional video-frequency;
2) form three-dimensional video-frequency conversion method up and down: after converting the plane frame of ordinary video file to left image frame and right image frame; With left image frame as the first half picture of form three-dimensional video-frequency up and down; Right image frame as the latter half picture of form three-dimensional video-frequency up and down, is shown then;
3) red blue form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame; With the red color component of left image frame red component as red blue form three-dimensional video-frequency; The blue component of right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then;
4) shutter form three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, left image frame and right image frame are shown by the priority time sequencing;
5) stagger scheme three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, with showing after left image frame and the staggered stack of right image frame.
When client-access be the three-dimensional video-frequency file of general format the time, said three-dimensional video-frequency converting unit is selected according to the user or the three-dimensional video-frequency form of default is carried out different step.
If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of general format---if the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency file of the general format stored, the three-dimensional video-frequency file that client will be stored in the general format of service end directly is shown to the user; Otherwise the three-dimensional video-frequency converting unit of client will be stored the three-dimensional video-frequency of the three-dimensional video-frequency file conversion of general format for other general formats of user's selection or default.
If the user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of non-general format---the three-dimensional video-frequency converting unit of client becomes the user to select the three-dimensional video-frequency file conversion of general format or the three-dimensional video-frequency form of the non-general format of default in real time, and is shown to the user.
The three-dimensional video-frequency file of general format is the left and right sides form three-dimensional video-frequency or the three-dimensional video-frequency of form up and down; The three-dimensional video-frequency of said non-general format comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme.
The method of the three-dimensional video-frequency file conversion of storing general format for the three-dimensional video-frequency of other general formats of user's selection or default comprised:
Convert the method for form three-dimensional video-frequency up and down to through existing left and right sides form three-dimensional video-frequency: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame; With the second left image frame as the first half picture of form three-dimensional video-frequency up and down, with the second right image frame as about the latter half picture of form three-dimensional video-frequency, show then;
Convert the method for left and right sides form three-dimensional video-frequency to through existing form three-dimensional video-frequency up and down: the latter half picture of form three-dimensional video-frequency and the first half picture are as the second left image frame and the second right image frame up and down; The second left image frame, shows the right half part picture of the second right image frame as left and right sides form three-dimensional video-frequency as the left-half picture of left and right sides form three-dimensional video-frequency then.
The three-dimensional video-frequency file conversion that the three-dimensional video-frequency converting unit of client will have general format in real time becomes the three-dimensional video-frequency form of the non-general format of that the user selects or default, and is shown to the user.Video conversion method comprises:
Step S3221: with the left-half picture of left and right sides form three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, perhaps up and down the latter half picture of form three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: according to following method with left and right sides form three-dimensional video-frequency or up and down the form three-dimensional video-frequency convert the three-dimensional video-frequency of red blue form or shutter form or stagger scheme to:
Red blue form three-dimensional video-frequency conversion method: with the red color component of the second left image frame red component as red blue form three-dimensional video-frequency; The blue component of the second right image frame and green component as the blue component and the green component of red blue form three-dimensional video-frequency, are shown then;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by the priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: with showing after the second left image frame and the staggered stack of the second right image frame.
Embodiment two
As shown in Figure 3, present embodiment discloses a kind of three-dimensional video-frequency system based on the internet client real-time transcoding, and the real-time transcoding method of this system may further comprise the steps:
1) the Internet service end is preserved the ordinary video file, and H.264 the video coding mode adopts;
2) internet client is through internet http protocol access ordinary video file;
3) internet client adopts the Flash programming as client, and client becomes the ordinary video file conversion red blue three-dimensional video-frequency and is shown to the user in real time.
Embodiment three
As shown in Figure 4, present embodiment discloses a kind of three-dimensional video-frequency system based on the internet client real-time transcoding, and the real-time transcoding method of this system may further comprise the steps:
1) the Internet service end is preserved the ordinary video file, and H.264 the video coding mode adopts;
2) internet client is through internet RTSP protocol access ordinary video file;
3) internet client adopts the C++ programming as client, and client becomes the ordinary video file conversion red blue three-dimensional video-frequency and is shown to the user in real time.
Embodiment four
As shown in Figure 5, present embodiment discloses a kind of three-dimensional video-frequency system based on the internet client real-time transcoding, and the real-time transcoding method of this system may further comprise the steps:
1) the Internet service end is preserved left and right sides stereo format video file, and H.264 the video coding mode adopts;
2) internet client is through internet http protocol access ordinary video file;
3) internet client adopts the C++ programming as client, and client becomes the ordinary video file conversion red blue three-dimensional video-frequency and is shown to the user in real time.
In sum, the present invention propose based on internet client three-dimensional video-frequency real-time transcoding method and system, at first on the Internet service end, preserve the three-dimensional video-frequency file of ordinary video file or general format, in order to client-access; In the time of the three-dimensional video-frequency file of internet client through access to netwoks ordinary video file or general format, the Internet service end is given internet client with video Data Transmission; Internet client becomes the ordinary video file conversion three-dimensional video-frequency and is shown to the user in real time, and perhaps the three-dimensional video-frequency with general format converts the three-dimensional video-frequency of extended formatting to and is shown to the user; The user can be according to the demand of self, and selection needs the three-dimensional video-frequency form of conversion, comprises left and right sides form, form up and down, and red blue form, shutter form, stagger scheme etc., thus reach purpose through the internet viewing three-dimensional video-frequency.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of the embodiment that is disclosed and change are possible, and the replacement of embodiment is known with the various parts of equivalence for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or substantive characteristics, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to the embodiment that is disclosed.