Based on internet client three-dimensional video-frequency real-time transcoding method and system
Technical field
The invention belongs to Video Quality Metric technical field, relate to a kind of three-dimensional video-frequency conversion method, particularly relate 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 based on internet client three-dimensional video-frequency real-time transcoding system simultaneously.
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 gets more and more, but in network, the video of the overwhelming majority is all common two dimensional surface video.Watching the network user of three-dimensional video-frequency for liking, finding sufficient three-dimensional video-frequency film source viewing to be a difficult thing.How to convert common video to three-dimensional video-frequency in real time, and be shown to user's viewing, become internet video problem demanding prompt solution.
Three-dimensional video-frequency form common at present has: left-right format, top-down format, red blue form, shutter form etc., left-right format three-dimensional video-frequency is wherein considered to be General stereoscopic form, this is because, left-right format three-dimensional video-frequency can be converted to the three-dimensional video-frequency of extended formatting.So if will convert common planar video to three-dimensional video-frequency, only need to convert common planar video to left and right three-dimensional video-frequency, then other three-dimensional video-frequency form also can be changed by identical principle.At " vision research " (Vision Research in 1997,1997, pp.1683-1698), in, Ning Qian and Richard A.Andersen has delivered the article of " physiological mode of a motion stereoscopic combination and the generality of class pulfrich phenomenon are explained " (APhysiological Model for Motion-Stereo Integration and a Unified Explanation of Pulfrich-like Phenomena).In this section of article, they disclose a kind of method planar video being converted to left and right three-dimensional video-frequency.This patent adopts the method to carry out the conversion of planar video and three-dimensional video-frequency.
Convert to except the technology of three-dimensional video-frequency except relating to above-mentioned planar video, this patent also comprises planar video on the Internet and converts three-dimensional video-frequency to, and General stereoscopic Video Quality Metric becomes the whole system framework of extended formatting three-dimensional video-frequency, comprise how transmission of video on internet, how at client converting video, and how in modules such as client display three-dimensional video-frequencies.
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 quickly and easily ordinary video file or ordinary stereo Video Quality Metric be become the three-dimensional video-frequency of setting form and show.
In addition, the present invention also provides a kind of based on internet client three-dimensional video-frequency real-time transcoding system, can quickly and easily ordinary video file or ordinary stereo Video Quality Metric be become 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, described method comprises:
Service end stores the stereoscopic video file of ordinary video file or general format;
Client is by the stereoscopic video file of the ordinary video file that stores in network access service end or general format;
Ordinary video file transform is become three-dimensional video-frequency by client in real time, or converts the three-dimensional video-frequency of general format the three-dimensional video-frequency of non-universal form to, is then shown to user.
A kind of based on internet client three-dimensional video-frequency real-time transcoding method, described method comprises the steps:
S1, service end store the stereoscopic video file of ordinary video file or general format, in order to client-access;
S2, client are by the stereoscopic video file of the ordinary video file that stores in network access service end or general format;
S31, when client-access be ordinary video file time, the three-dimensional video-frequency form of the three-dimensional video-frequency form that ordinary video file transform becomes user to select by client in real time or default, and be shown to user;
S32, when client-access be the stereoscopic video file of general format and user selects or the three-dimensional video-frequency form of default is non-universal form time, the stereoscopic video file of general format is converted to the three-dimensional video-frequency form of user's selection or the three-dimensional video-frequency form of default by client in real time, and is shown to user.
As a preferred embodiment of the present invention, in described step S1, described ordinary video file refers to planar video, i.e. non-cubic video file;
The stereoscopic video file of described general format, employing be the stereoscopic video file of left-right format or the stereoscopic video file of top-down format.
As a preferred embodiment of the present invention, in described step S31, ordinary video file transform becomes the method for three-dimensional video-frequency to be by client in real time: convert the plane frame of ordinary video file to left image frame and right image frame.
As a preferred embodiment of the present invention, in described step S31, user can select or the three-dimensional video-frequency form of default comprises in left-right format, top-down format, red blue form, shutter form and stagger scheme one or more, specific as follows:
1) left-right format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the left-half picture of left image frame as left-right format three-dimensional video-frequency, using the right half part picture of right image frame as left-right format three-dimensional video-frequency, then show;
2) top-down format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the first half picture of left image frame as top-down format three-dimensional video-frequency, using the latter half picture of right image frame as top-down format three-dimensional video-frequency, then show;
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, using the red component of the red color component of left image frame as red blue form three-dimensional video-frequency, using the blue component of right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show;
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 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, shows after left image frame and the staggered superposition of right image frame.
As a preferred embodiment of the present invention, described step S32 is specially:
When client-access be the stereoscopic video file of general format time, according to user select or default three-dimensional video-frequency form perform 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, perform step S321; If the three-dimensional video-frequency of user's selection or default is the three-dimensional video-frequency of non-universal form, perform step S322;
If the three-dimensional video-frequency of S321 user's selection or default is the stereoscopic video file of the general format stored, the stereoscopic video file of the general format being stored in service end is directly shown to user by client; Otherwise, the stereoscopic video file storing general format is converted to the three-dimensional video-frequency of other general formats of user's selection or default;
The stereoscopic video file of general format is converted to the three-dimensional video-frequency form of the non-universal form of user's selection or default by S322, client in real time, and is shown to user.
As a preferred embodiment of the present invention, in described step S32, 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; The three-dimensional video-frequency of described non-universal form comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme;
In step S321, the method stereoscopic video file storing general format being converted to the three-dimensional video-frequency of other general formats of user's selection or default comprises:
Converted to the method for top-down format three-dimensional video-frequency: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame by existing left-right format three-dimensional video-frequency; Using the first half picture of the second left image frame as top-down format three-dimensional video-frequency, using the latter half picture of the second right image frame as top-down format three-dimensional video-frequency, then show;
Converted to the method for left-right format three-dimensional video-frequency: using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame by existing top-down format three-dimensional video-frequency; Second left image frame, as the left-half picture of left-right format three-dimensional video-frequency, using the right half part picture of the second right image frame as left-right format three-dimensional video-frequency, then shows;
In step S322, the stereoscopic video file of existing general format is converted to the three-dimensional video-frequency form of non-universal form that is that user selects or default by client in real time, and is shown to user; Video conversion method comprises:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, or using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: the three-dimensional video-frequency as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency being converted to red blue form or shutter form or stagger scheme:
Red blue form three-dimensional video-frequency conversion method: using the red component of the red color component of the second left image frame as red blue form three-dimensional video-frequency, using the blue component of the second right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: show after the second left image frame and the staggered superposition of the second right image frame.
A kind of based on internet client three-dimensional video-frequency real-time transcoding system, described system comprises service end, client;
Service end stores the stereoscopic video file of ordinary video file or general format, in order to client-access; Client is by the stereoscopic video file of the ordinary video file that stores in network access service end or general format;
Described client comprises:
Ordinary video converting unit, in order to client-access be ordinary video file time, the three-dimensional video-frequency form of the three-dimensional video-frequency form that ordinary video file transform becomes user to select by client in real time or default, and be shown 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 three-dimensional video-frequency form of default is non-universal form time, the stereoscopic video file of general format is converted to the three-dimensional video-frequency form of user's selection or the three-dimensional video-frequency form of default by client in real time, and is shown to user.
As a preferred embodiment of the present invention, client-access be ordinary video file time, user can select or the three-dimensional video-frequency form of default comprises in left-right format, top-down format, red blue form, shutter form and stagger scheme one or more; The conversion method of described ordinary video converting unit is specific as follows:
1) left-right format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the left-half picture of left image frame as left-right format three-dimensional video-frequency, using the right half part picture of right image frame as left-right format three-dimensional video-frequency, then show;
2) top-down format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the first half picture of left image frame as top-down format three-dimensional video-frequency, using the latter half picture of right image frame as top-down format three-dimensional video-frequency, then show;
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, using the red component of the red color component of left image frame as red blue form three-dimensional video-frequency, using the blue component of right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show;
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 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, shows after left image frame and the staggered superposition of right image frame.
As a preferred embodiment of the present invention, when client-access be the stereoscopic video file of general format time, described three-dimensional video-frequency converting unit according to user select or default three-dimensional video-frequency form perform different step;
If if user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of general format---the three-dimensional video-frequency of user's selection or default is the stereoscopic video file of the general format stored, and the stereoscopic video file of the general format being stored in service end is directly shown to user by client; Otherwise the stereoscopic video file storing general format is converted to the three-dimensional video-frequency of other general formats of user's selection or default by the three-dimensional video-frequency converting unit of client;
If the three-dimensional video-frequency of user's selection or default is the three-dimensional video-frequency of non-universal form---the stereoscopic video file of general format is converted to the three-dimensional video-frequency form of the non-universal form of user's selection or default by the three-dimensional video-frequency converting unit of client in real time, and is shown to user.
As a preferred embodiment of the present invention, 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; The three-dimensional video-frequency of described non-universal form comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme;
The method stereoscopic video file storing general format being converted to the three-dimensional video-frequency of other general formats of user's selection or default comprises:
Converted to the method for top-down format three-dimensional video-frequency: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame by existing left-right format three-dimensional video-frequency; Using the first half picture of the second left image frame as top-down format three-dimensional video-frequency, using the latter half picture of the second right image frame as top-down format three-dimensional video-frequency, then show;
Converted to the method for left-right format three-dimensional video-frequency: using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame by existing top-down format three-dimensional video-frequency; Second left image frame, as the left-half picture of left-right format three-dimensional video-frequency, using the right half part picture of the second right image frame as left-right format three-dimensional video-frequency, then shows;
The stereoscopic video file of existing general format is converted to the three-dimensional video-frequency form of non-universal form that is that user selects or default by the three-dimensional video-frequency converting unit of client in real time, and is shown to user; Video conversion method comprises:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, or using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: the three-dimensional video-frequency as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency being converted to red blue form or shutter form or stagger scheme:
Red blue form three-dimensional video-frequency conversion method: using the red component of the red color component of the second left image frame as red blue form three-dimensional video-frequency, using the blue component of the second right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: show after the second left image frame and the staggered superposition 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, on Internet service end, first preserve the stereoscopic video file of ordinary video file or general format, in order to client-access; When the stereoscopic video file of internet client by access to netwoks ordinary video file or general format time, Internet service end by video data transmission to internet client; Ordinary video file transform is become three-dimensional video-frequency and is shown to user by internet client in real time, or converts the three-dimensional video-frequency of general format the three-dimensional video-frequency of extended formatting to and be shown to user; User according to the demand of self, can select the three-dimensional video-frequency form needing conversion, comprises left-right format, top-down format, red blue form, shutter form, stagger scheme etc., thus be reached through the object of internet viewing three-dimensional video-frequency.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the three-dimensional video-frequency system that the present invention is based on 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 the flow chart based on the three-dimensional video-frequency system of internet client real-time transcoding in embodiment two.
Fig. 4 is the flow chart based on the three-dimensional video-frequency system of internet client real-time transcoding in embodiment three.
Fig. 5 is the flow chart based on the three-dimensional video-frequency system of internet client real-time transcoding in embodiment four.
Embodiment
The preferred embodiments of the present invention are described in detail below in conjunction with accompanying drawing.
Embodiment one
Refer to Fig. 1, present invention is disclosed a kind of based on internet client three-dimensional video-frequency real-time transcoding method, described method comprises:
Service end stores the stereoscopic video file of ordinary video file or general format;
Client is by the stereoscopic video file of the ordinary video file that stores in network access service end or general format;
Ordinary video file transform is become three-dimensional video-frequency by client in real time, or converts the three-dimensional video-frequency of general format the three-dimensional video-frequency of non-universal form to, is then shown to user.
Particularly, refer to Fig. 2, three-dimensional video-frequency real-time transcoding method of the present invention comprises the steps:
[step S1] service end stores the stereoscopic video file of ordinary video file or general format, in order to client-access;
[step S2] client is by the stereoscopic video file of the ordinary video file that stores in network access service end or general format;
[step S31] when client-access be ordinary video file time, the three-dimensional video-frequency form of the three-dimensional video-frequency form that ordinary video file transform becomes user to select by client in real time or default, and be shown to user;
[step S32] when client-access be the stereoscopic video file of general format and user selects or the three-dimensional video-frequency form of default is non-universal form time, the stereoscopic video file of general format is converted to the three-dimensional video-frequency form of user's selection or the three-dimensional video-frequency form of default by client in real time, and is shown to user.
Wherein, in described step S1, described ordinary video file refers to planar video, i.e. non-cubic video file; What the storage format of this video file adopted is FLV, F4V or MP4 form, but is 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 stereoscopic video file of described general format, employing be the stereoscopic video file of left-right format or the stereoscopic video file of top-down format; Its storage format is identical with ordinary video file with compress mode.
In step S2, internet client passes through the stereoscopic video file of internet access ordinary video file or general format, what wherein Internet 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 network access mode.
In described step S31, ordinary video file transform becomes the method for three-dimensional video-frequency to be by client in real time: convert the plane frame of ordinary video file to left image frame and right image frame.Method disclosed in " physiological mode of motion stereoscopic combination and the generality of class pulfrich phenomenon are explained " literary composition of mentioning in background technology can be adopted, convert the plane frame of ordinary video file to left image frame and right image frame.
In described step S31, user can select or the three-dimensional video-frequency form of default can comprise in left-right format, top-down format, red blue form, shutter form and stagger scheme one or more, the conversion method of various form is specific as follows:
1) left-right format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the left-half picture of left image frame as left-right format three-dimensional video-frequency, using the right half part picture of right image frame as left-right format three-dimensional video-frequency, then show.
2) top-down format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the first half picture of left image frame as top-down format three-dimensional video-frequency, using the latter half picture of right image frame as top-down format three-dimensional video-frequency, then show.
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, using the red component of the red color component of left image frame as red blue form three-dimensional video-frequency, using the blue component of right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show.
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 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, shows after left image frame and the staggered superposition of right image frame.
Described step S32 specifically can comprise the steps:
[step S320] when client-access be the stereoscopic video file of general format time, according to user select or default three-dimensional video-frequency form perform 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, perform step S321; If the three-dimensional video-frequency of user's selection or default is the three-dimensional video-frequency of non-universal form, perform step S322.
[step S321], if the three-dimensional video-frequency of user's selection or default is the stereoscopic video file of the general format stored, the stereoscopic video file of the general format being stored in service end is directly shown to user by client.Otherwise, the stereoscopic video file storing general format is converted to the three-dimensional video-frequency of other general formats of user's selection or default.Conversion method comprises:
Converted to the method for top-down format three-dimensional video-frequency: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame by existing left-right format three-dimensional video-frequency; Using the first half picture of the second left image frame as top-down format three-dimensional video-frequency, using the latter half picture of the second right image frame as top-down format three-dimensional video-frequency, then show.
Converted to the method for left-right format three-dimensional video-frequency: using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame by existing top-down format three-dimensional video-frequency; Second left image frame, as the left-half picture of left-right format three-dimensional video-frequency, using the right half part picture of the second right image frame as left-right format three-dimensional video-frequency, then shows.
The stereoscopic video file of general format is converted to the three-dimensional video-frequency form of the three-dimensional video-frequency form of user's selection or the non-universal form of default by [step S322] client in real time, and is shown to user.
In described step S32, 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; The three-dimensional video-frequency of described non-universal form comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme.The stereoscopic video file of existing general format is converted to three-dimensional video-frequency form that is that user selects or default by client in real time, and is shown to user; Video conversion method comprises:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, or using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: the three-dimensional video-frequency as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency being converted to red blue form or shutter form or stagger scheme:
Red blue form three-dimensional video-frequency conversion method: using the red component of the red color component of the second left image frame as red blue form three-dimensional video-frequency, using the blue component of the second right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: show after the second left image frame and the staggered superposition of the second right image frame.
Be described above three-dimensional video-frequency real-time transcoding method of the present invention, the present invention, while the above-mentioned three-dimensional video-frequency real-time transcoding method of announcement, also discloses a kind of three-dimensional video-frequency real-time transcoding system.Can consult Fig. 1, described system comprises service end, client; Service end stores the stereoscopic video file of ordinary video file or general format, in order to client-access; Client is by the stereoscopic video file of the ordinary video file that stores in network access service end or general format.
Described client comprises: ordinary video converting unit, three-dimensional video-frequency converting unit.Ordinary video converting unit in order to client-access be ordinary video file time, the three-dimensional video-frequency form becoming user to select ordinary video file transform in real time or the three-dimensional video-frequency form of default, and be shown 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 three-dimensional video-frequency form of default is non-universal form time, in real time the stereoscopic video file of general format is converted to the three-dimensional video-frequency form of user's selection or the three-dimensional video-frequency form of default, and be shown to user.
When client-access be ordinary video file time, user can select or the three-dimensional video-frequency form of default comprises in left-right format, top-down format, red blue form, shutter form and stagger scheme one or more; The conversion method of described ordinary video converting unit is specific as follows:
1) left-right format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the left-half picture of left image frame as left-right format three-dimensional video-frequency, using the right half part picture of right image frame as left-right format three-dimensional video-frequency, then show;
2) top-down format three-dimensional video-frequency conversion method: after converting the plane frame of ordinary video file to left image frame and right image frame, using the first half picture of left image frame as top-down format three-dimensional video-frequency, using the latter half picture of right image frame as top-down format three-dimensional video-frequency, then show;
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, using the red component of the red color component of left image frame as red blue form three-dimensional video-frequency, using the blue component of right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show;
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 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, shows after left image frame and the staggered superposition of right image frame.
When client-access be the stereoscopic video file of general format time, described three-dimensional video-frequency converting unit according to user select or default three-dimensional video-frequency form perform different step.
If if user selects or the three-dimensional video-frequency of default is the three-dimensional video-frequency of general format---the three-dimensional video-frequency of user's selection or default is the stereoscopic video file of the general format stored, and the stereoscopic video file of the general format being stored in service end is directly shown to user by client; Otherwise the stereoscopic video file storing general format is converted to the three-dimensional video-frequency of other general formats of user's selection or default by the three-dimensional video-frequency converting unit of client.
If the three-dimensional video-frequency of user's selection or default is the three-dimensional video-frequency of non-universal form---the stereoscopic video file of general format is converted to the three-dimensional video-frequency form of the non-universal form of user's selection or default by the three-dimensional video-frequency converting unit of client in real time, and is shown 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; The three-dimensional video-frequency of described non-universal form comprises the three-dimensional video-frequency of red blue form, shutter form and stagger scheme.
The method stereoscopic video file storing general format being converted to the three-dimensional video-frequency of other general formats of user's selection or default comprises:
Converted to the method for top-down format three-dimensional video-frequency: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame by existing left-right format three-dimensional video-frequency; Using the first half picture of the second left image frame as top-down format three-dimensional video-frequency, using the latter half picture of the second right image frame as top-down format three-dimensional video-frequency, then show;
Converted to the method for left-right format three-dimensional video-frequency: using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame by existing top-down format three-dimensional video-frequency; Second left image frame, as the left-half picture of left-right format three-dimensional video-frequency, using the right half part picture of the second right image frame as left-right format three-dimensional video-frequency, then shows.
The stereoscopic video file of existing general format is converted to the three-dimensional video-frequency form of non-universal form that is that user selects or default by the three-dimensional video-frequency converting unit of client in real time, and is shown to user.Video conversion method comprises:
Step S3221: using the left-half picture of left-right format three-dimensional video-frequency and right half part picture as the second left image frame and the second right image frame, or using the latter half picture of top-down format three-dimensional video-frequency and the first half picture as the second left image frame and the second right image frame;
Step S3222: the three-dimensional video-frequency as follows left-right format three-dimensional video-frequency or top-down format three-dimensional video-frequency being converted to red blue form or shutter form or stagger scheme:
Red blue form three-dimensional video-frequency conversion method: using the red component of the red color component of the second left image frame as red blue form three-dimensional video-frequency, using the blue component of the second right image frame and green component as the blue component of red blue form three-dimensional video-frequency and green component, then show;
Shutter form three-dimensional video-frequency conversion method: the second left image frame and the second right image frame are shown by priority time sequencing;
Stagger scheme three-dimensional video-frequency conversion method: show after the second left image frame and the staggered superposition of the second right image frame.
Embodiment two
As shown in Figure 3, the present embodiment discloses a kind of three-dimensional video-frequency system based on internet client real-time transcoding, and 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 adopts;
2) internet client is by internet http protocol access ordinary video file;
3) internet client adopts Flash programming as client, and ordinary video file transform is become red blue three-dimensional video-frequency and is shown to user by client in real time.
Embodiment three
As shown in Figure 4, the present embodiment discloses a kind of three-dimensional video-frequency system based on internet client real-time transcoding, and 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 adopts;
2) internet client is by internet RTSP protocol access ordinary video file;
3) internet client adopts C++ programming as client, and ordinary video file transform is become red blue three-dimensional video-frequency and is shown to user by client in real time.
Embodiment four
As shown in Figure 5, the present embodiment discloses a kind of three-dimensional video-frequency system based on internet client real-time transcoding, and the real-time transcoding method of this system comprises the following steps:
1) Internet service end preserves left and right stereo format video file, and H.264 Video coding mode adopts;
2) internet client is by internet http protocol access ordinary video file;
3) internet client adopts C++ programming as client, and ordinary video file transform is become red blue three-dimensional video-frequency and is shown to user by client in real time.
In sum, the present invention propose based on internet client three-dimensional video-frequency real-time transcoding method and system, on Internet service end, first preserve the stereoscopic video file of ordinary video file or general format, in order to client-access; When the stereoscopic video file of internet client by access to netwoks ordinary video file or general format time, Internet service end by video data transmission to internet client; Ordinary video file transform is become three-dimensional video-frequency and is shown to user by internet client in real time, or converts the three-dimensional video-frequency of general format the three-dimensional video-frequency of extended formatting to and be shown to user; User according to the demand of self, can select the three-dimensional video-frequency form needing conversion, comprises left-right format, top-down format, red blue form, shutter form, stagger scheme etc., thus be reached through the object of internet viewing three-dimensional video-frequency.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or substantive characteristics, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.