CN102025936A - Video aspect ratio conversion method and device - Google Patents

Video aspect ratio conversion method and device Download PDF

Info

Publication number
CN102025936A
CN102025936A CN2010105634503A CN201010563450A CN102025936A CN 102025936 A CN102025936 A CN 102025936A CN 2010105634503 A CN2010105634503 A CN 2010105634503A CN 201010563450 A CN201010563450 A CN 201010563450A CN 102025936 A CN102025936 A CN 102025936A
Authority
CN
China
Prior art keywords
ratio
width
height
program source
demonstration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105634503A
Other languages
Chinese (zh)
Inventor
刘成刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2010105634503A priority Critical patent/CN102025936A/en
Publication of CN102025936A publication Critical patent/CN102025936A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video aspect ratio conversion method and a video aspect ratio conversion device. The method comprises that: a terminal acquires a display aspect ratio of a displayer, detects an aspect ratio of a program source, and compares the display aspect ratio of the displayer with the aspect ratio of the program source, and performs conversion on the basis of a comparison result according to a preset rule. Through the invention, problems that only one conversion mode can be fixedly adopted and cannot adapt to various complicated scenes, and human intervention is needed in the process of switching to cause poor user experience in the prior art are solved, and the user experience is improved.

Description

Video aspect ratio conversion method and device
Technical field
The present invention relates to the communications field, in particular to a kind of video aspect ratio conversion method and device.
Background technology
Video aspect ratio is the ratio of the width of a video divided by its height gained, is typically expressed as " x: y ", and colon is wherein represented the meaning of " ratio " of Chinese.At present, traditional 4: 3 (1.33: 1) are widely used on now many television images, and the follow-up specification of its success 16: 9 (1.78: 1) then is used on the Digital Television in high definition TV and Europe.
When program source the ratio of width to height and television screen the ratio of width to height not simultaneously, must relate to the adaptive conversion of picture size ratio.One adopts following four kinds of conversion regimes: first kind is called letterbox, its transfer principle be by the program picture up and down or about add the mode of black surround, keep aspect ratio constant.Second kind is called pan﹠amp; Scan, its transfer principle be by to the program picture up and down or about the mode that cuts, keep aspect ratio constant.The third is called combined, its transfer principle be comprehensive before dual mode, by add up and down at the program picture cut about black surround or about add the mode that black surround cuts up and down, keep aspect ratio constant.The 4th kind of mode is called ignore, and its transfer principle is ignored program picture and television set aspect ratio difference, direct output all over the screen.Second and third kind method because the program picture is cut, causes image content to be lost, so seldom use, what one industry was used mainly is first, fourth kind of method.Above conversion regime as shown in Figure 1.
Conventional video aspect ratio conversion method scene and defective are as follows:
The terminal translative mode is configured to ignore: program source is 4: 3, when connecing television set is 4: 3 patterns, can guarantee that the complete no ratio distortion of picture shows; But when connecing television set was 16: 9 patterns, the distortion of picture displaying ratio was shown in figure one (B).
The terminal translative mode is configured to ignore: program source is 16: 9, when connecing television set is 16: 9 patterns, can guarantee that the complete no ratio distortion of picture shows; But when connecing television set was 4: 3 patterns, the distortion of picture displaying ratio was shown in figure one (C).
The terminal translative mode is configured to letterbox: program source is 4: 3, when connecing television set is 16: 9 patterns, can guarantee that the complete no ratio distortion of picture shows; But when connecing television set was 4: 3 patterns, the distortion of picture displaying ratio was shown in figure one (E).
The terminal translative mode is configured to letterbox: program source is 16: 9, when connecing television set is 4: 3 patterns, can guarantee that the complete no ratio distortion of picture shows; But when connecing television set was 16: 9 patterns, the distortion of picture displaying ratio was shown in figure one (H).
At setting a kind of conversion regime that adopts regularly wherein in the correlation technique, can't adapt to various complex scenes, and switch and need manually get involved, cause the problem of poor user experience, effective solution is not proposed at present as yet.
Summary of the invention
Main purpose of the present invention is to provide a kind of video aspect ratio conversion method and device, to address the above problem at least.
According to an aspect of the present invention, provide a kind of video aspect ratio conversion method, having comprised: terminal is obtained demonstration the ratio of width to height of display; Detect the ratio of width to height of program source; Demonstration the ratio of width to height of display and the ratio of width to height of program source are compared, change according to pre-defined rule according to comparative result.
Preferably, described pre-defined rule comprise following one of at least: the ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 4: 3: adopt the ignore mode to change; The ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 16: 9: adopt the letterbox mode to change; The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 4: 3: adopt the letterbox mode to change; The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 16: 9: adopt the ignore mode to change.
Preferably, described demonstration the ratio of width to height of obtaining display comprises: by manual setting and/or the automatic mode that detects, obtain demonstration the ratio of width to height of described display.
Preferably, the ratio of width to height of described detection program source comprises: obtain the ratio of width to height of described program source by detecting specific fields in the described program source coding.
Preferably, described specific fields comprises: the aspect_ratio_information field of MPEG2 standard or the spect_ratio_idc field of standard H.264.
According to another aspect of the present invention, also provide a kind of video aspect ratio conversion equipment, having comprised: acquisition module is used to obtain demonstration the ratio of width to height of display; Detection module is used to detect the ratio of width to height of program source; Comparison module is used for demonstration the ratio of width to height of described display and the ratio of width to height of described program source are compared; Modular converter is used for changing according to pre-defined rule according to the comparative result of described comparison module.
Preferably, the pre-defined rule that described modular converter is changed comprise following one of at least: the ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 4: 3: adopt the ignore mode to change; The ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 16: 9: adopt the letterbox mode to change; The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 4: 3: adopt the letterbox mode to change; The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 16: 9: adopt the ignore mode to change.
Preferably, described acquisition module is used for obtaining demonstration the ratio of width to height of described display by manual setting and/or the automatic mode that detects.
Preferably, described detection module is used for obtaining by the specific fields that detects described program source coding the ratio of width to height of described program source.
Preferably, described specific fields comprises: the aspect_ratio_information field of MPEG2 standard or the spect_ratio_idc field of standard H.264.
By the present invention, solved and can only set a kind of conversion regime that adopts regularly wherein in the correlation technique, can't adapt to various complex scenes, and switch and need manually get involved, cause the problem of poor user experience.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is a conventional video aspect ratio conversion method effect schematic diagram in the correlation technique;
Fig. 2 is the video aspect ratio conversion method flow chart according to the embodiment of the invention;
Fig. 3 is the video aspect ratio conversion device structure block diagram according to the embodiment of the invention;
Fig. 4 is the video aspect ratio conversion method effect schematic diagram according to the embodiment of the invention;
Fig. 5 is according to the preferred video aspect ratio conversion method of embodiment of the invention principle schematic.
Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Fig. 2 is the video aspect ratio conversion method flow chart according to the embodiment of the invention.As shown in Figure 2, this method comprises:
S202, terminal is obtained demonstration the ratio of width to height of display;
S204, the ratio of width to height of detection program source;
S206 compares demonstration the ratio of width to height of display and the ratio of width to height of program source, changes according to pre-defined rule according to comparative result.
Wherein the pre-defined rule among the step S206 comprise following one of at least: the ratio of width to height of program source is 4: 3, and demonstration the ratio of width to height of display is 4: 3: adopt the ignore mode to change; The ratio of width to height of program source is 4: 3, and demonstration the ratio of width to height of display is 16: 9: adopt the letterbox mode to change; The ratio of width to height of program source is 16: 9, and demonstration the ratio of width to height of display is 4: 3: adopt the letterbox mode to change; The ratio of width to height of program source is 16: 9, and demonstration the ratio of width to height of display is 16: 9: adopt the ignore mode to change.
By said method, can adaptively video be changed according to different scenes corresponding to display and program source depth-width ratio.
Preferably, demonstration the ratio of width to height of obtaining display comprises: by manual setting and/or the automatic mode that detects, obtain demonstration the ratio of width to height of display.By such detection mode, not only can realize the adaptive control of video conversion also can manually be customized according to user's different needs, improved user experience.
Preferably, the ratio of width to height of detection program source comprises: the ratio of width to height of obtaining program source by the specific fields in the detection program source coding.Specific fields comprises: the aspect_ratio_information field of MPEG2 standard or the spect_ratio_idc field of standard H.264.Here with the digital program source for example, by the detection to specific fields in the digital program coded data, can directly know the ratio of width to height of program source, utilize the specific fields in the digital program coded data, scheme is simple and easy to do, applicability and portable good.
Fig. 3 is the video aspect ratio conversion device structure block diagram according to the embodiment of the invention.As shown in Figure 3, this device comprises: acquisition module 32 links to each other with comparison module 36, is used to obtain demonstration the ratio of width to height of display; Detection module 34 links to each other with comparison module 36, is used to detect the ratio of width to height of program source; Comparison module 36 is used for demonstration the ratio of width to height of display that acquisition module 32 is obtained and the ratio of width to height of detection module 34 detected program source and compares; Modular converter 38 is used for changing according to pre-defined rule according to the comparative result of comparison module 36.
Wherein, the pre-defined rule that modular converter 38 is changed comprise following one of at least: the ratio of width to height of program source is 4: 3, and demonstration the ratio of width to height of display is 4: 3: adopt the ignore mode to change; The ratio of width to height of program source is 4: 3, and demonstration the ratio of width to height of display is 16: 9: adopt the letterbox mode to change; The ratio of width to height of program source is 16: 9, and demonstration the ratio of width to height of display is 4: 3: adopt the letterbox mode to change; The ratio of width to height of program source is 16: 9, and demonstration the ratio of width to height of display is 16: 9: adopt the ignore mode to change.
Preferably, acquisition module 32 is used for obtaining demonstration the ratio of width to height of display by manual setting and/or the automatic mode that detects.Detection module 34 is used for obtaining by the specific fields that detects the program source coding the ratio of width to height of program source.Wherein, specific fields comprises: the aspect_ratio_information field of MPEG2 standard or the spect_ratio_idc field of standard H.264.
By said apparatus, can adaptively video be changed, and can manually customize according to different scenes corresponding to display and program source depth-width ratio according to user's different needs, improved user experience.
The embodiment of the invention is described in further detail by instantiation below in conjunction with accompanying drawing.
The invention provides a kind of video aspect ratio conversion method and device.Illustrate below, by the aspect ratio information of identification television set and program source, self adaptation adopts guarantees the complete and distortionless conversion method of wide high proportion of video pictures.Need to prove that the television set of giving an example only is preferred embodiment, also can be other display apparatus (for example, computer display screen) herein, the program source of mentioning in this method can be that the digital program source equally also can be the analog program source.As preferred embodiment a kind of, method of the present invention is applicable to the digital TV terminal product.
Concrete enforcement below in conjunction with accompanying drawing 4 and 5 pairs of video aspect ratio conversion methods of the present invention of accompanying drawing describes.Fig. 4 is the video aspect ratio conversion method effect schematic diagram according to the embodiment of the invention.Fig. 5 is according to the preferred video aspect ratio conversion method of embodiment of the invention principle schematic.As shown in Figure 5, the video aspect ratio conversion method in the present embodiment mainly is divided into three steps:
1) the ratio of width to height of detection television set:
In the terminal system configuration, increase " television set the ratio of width to height " setting option, the option of 4: 3 and 16: 9 is provided, when interfaces such as using television set CVBS, S-Video and YPbPr was connected, then the mode of selecting in system configuration by the user was determined television set the ratio of width to height.When using television set HDMI interface to connect, and when adopting the HDMI interface, owing to be two-way, set-top box can be mutual by carrying out communication between this interface and the television set, obtains the aspect ratio information of television set.Terminal software can obtain the television set aspect ratio information automatically by the EDID data of the visit of the DDC data wire in HDMI interface television set.
2) detect the ratio of width to height of importing program source:
Compressed encoding packing is all carried out according to the certain standard standard in the digital television program source, and such as MPEG2, H.264 wait, aspect ratio information has description in the specific fields of grammatical norm, can resolve according to this.Such as the MPEG2 standard code, by the aspect ratio information of the aspect_ratio_information field description program source in the sequence head (sequence_header).H.264 standard code is by the aspect ratio information of the spect_ratio_idc field description program source in the vui_parameters parameter set of sequential parameter group (sequence_parameter_set_rbsp).
3), carry out self adaptation conversion (conversion effect is referring to Fig. 4) according to the ratio of width to height of the input program source and the television set that connects:
3.1) program source is 4: 3, television set is 4: 3: terminal adopts the ignore mode to change output;
3.2) program source is 4: 3, television set is 16: 9: terminal adopts the letterbox mode to change output;
3.3) program source is 16: 9, television set is 4: 3: terminal adopts the letterbox mode to change output;
3.4) program source is 16: 9, television set is 16: 9: terminal adopts the ignore mode to change output.
As can be seen from the above description, the present invention provides a kind of adaptive aspect ratio conversion method by increasing the detection to the aspect ratio converter input and output.Promptly undertaken adaptively selectedly, be implemented in and satisfy television set in any case and show complete and the distortionless effect of picture wide high proportion by the ratio of width to height of the ratio of width to height of identification input program source and the television set that connects.The aspect ratio information of input program source is resolved the program source bit stream data by software and is discerned, and the mode that the ratio of width to height of television set is provided with or detects automatically by the user is discerned.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, carry out by calculation element thereby they can be stored in the storage device, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a video aspect ratio conversion method is characterized in that, comprising:
Terminal is obtained demonstration the ratio of width to height of display;
Detect the ratio of width to height of program source;
Demonstration the ratio of width to height of described display and the ratio of width to height of described program source are compared, change according to pre-defined rule according to comparative result.
2. method according to claim 1 is characterized in that, described pre-defined rule comprise following one of at least:
The ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 4: 3: adopt the ignore mode to change;
The ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 16: 9: adopt the letterbox mode to change;
The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 4: 3: adopt the letterbox mode to change;
The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 16: 9: adopt the ignore mode to change.
3. method according to claim 1 and 2 is characterized in that, described demonstration the ratio of width to height of obtaining display comprises:
By manual setting and/or the automatic mode that detects, obtain demonstration the ratio of width to height of described display.
4. method according to claim 1 and 2 is characterized in that, the ratio of width to height of described detection program source comprises:
Obtain the ratio of width to height of described program source by detecting specific fields in the described program source coding.
5. method according to claim 4 is characterized in that, described specific fields comprises:
The aspect_ratio_information field of MPEG2 standard or the spect_ratio_idc field of standard H.264.
6. a video aspect ratio conversion equipment is characterized in that, comprising:
Acquisition module is used to obtain demonstration the ratio of width to height of display;
Detection module is used to detect the ratio of width to height of program source;
Comparison module is used for demonstration the ratio of width to height of described display and the ratio of width to height of described program source are compared;
Modular converter is used for changing according to pre-defined rule according to the comparative result of described comparison module.
7. device according to claim 6 is characterized in that, the pre-defined rule that described modular converter is changed comprise following one of at least:
The ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 4: 3: adopt the ignore mode to change;
The ratio of width to height of described program source is 4: 3, and demonstration the ratio of width to height of described display is 16: 9: adopt the letterbox mode to change;
The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 4: 3: adopt the letterbox mode to change;
The ratio of width to height of described program source is 16: 9, and demonstration the ratio of width to height of described display is 16: 9: adopt the ignore mode to change.
8. according to claim 6 or 7 described devices, it is characterized in that described acquisition module is used for obtaining demonstration the ratio of width to height of described display by manual setting and/or the automatic mode that detects.
9. according to claim 6 or 7 described devices, it is characterized in that described detection module is used for obtaining by the specific fields that detects described program source coding the ratio of width to height of described program source.
10. method according to claim 9 is characterized in that, described specific fields comprises:
The aspect_ratio_information field of MPEG2 standard or the spect_ratio_idc field of standard H.264.
CN2010105634503A 2010-11-26 2010-11-26 Video aspect ratio conversion method and device Pending CN102025936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105634503A CN102025936A (en) 2010-11-26 2010-11-26 Video aspect ratio conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105634503A CN102025936A (en) 2010-11-26 2010-11-26 Video aspect ratio conversion method and device

Publications (1)

Publication Number Publication Date
CN102025936A true CN102025936A (en) 2011-04-20

Family

ID=43866715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105634503A Pending CN102025936A (en) 2010-11-26 2010-11-26 Video aspect ratio conversion method and device

Country Status (1)

Country Link
CN (1) CN102025936A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957842A (en) * 2011-08-24 2013-03-06 ***通信集团公司 Method, device and system for processing video images
CN103108239A (en) * 2013-02-25 2013-05-15 四川金网通电子科技有限公司 Method and device of automatic transferring of video aspect ratio
CN103297729A (en) * 2013-06-17 2013-09-11 华为终端有限公司 Video processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1132981A (en) * 1994-12-06 1996-10-09 索尼公司 Video signal aspect ratio conversion apparatus
US5638130A (en) * 1995-05-25 1997-06-10 International Business Machines Corporation Display system with switchable aspect ratio
US20050094033A1 (en) * 2003-10-30 2005-05-05 Brian Schoner Method and system for automatic detection and display of aspect ratio
CN1705995A (en) * 2002-10-17 2005-12-07 三星电子株式会社 Information storage medium including device-aspect-ratio information, method and apparatus therefor
CN101212587A (en) * 2006-12-30 2008-07-02 乐金电子(中国)研究开发中心有限公司 Digital TV receiver and method adaptive to display parameters of display terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1132981A (en) * 1994-12-06 1996-10-09 索尼公司 Video signal aspect ratio conversion apparatus
CN1083664C (en) * 1994-12-06 2002-04-24 索尼公司 Video signal aspect ratio conversion apparatus
US5638130A (en) * 1995-05-25 1997-06-10 International Business Machines Corporation Display system with switchable aspect ratio
CN1705995A (en) * 2002-10-17 2005-12-07 三星电子株式会社 Information storage medium including device-aspect-ratio information, method and apparatus therefor
US20050094033A1 (en) * 2003-10-30 2005-05-05 Brian Schoner Method and system for automatic detection and display of aspect ratio
CN101212587A (en) * 2006-12-30 2008-07-02 乐金电子(中国)研究开发中心有限公司 Digital TV receiver and method adaptive to display parameters of display terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957842A (en) * 2011-08-24 2013-03-06 ***通信集团公司 Method, device and system for processing video images
CN102957842B (en) * 2011-08-24 2015-07-29 ***通信集团公司 A kind of method of video image processing, Apparatus and system
CN103108239A (en) * 2013-02-25 2013-05-15 四川金网通电子科技有限公司 Method and device of automatic transferring of video aspect ratio
CN103297729A (en) * 2013-06-17 2013-09-11 华为终端有限公司 Video processing method and device

Similar Documents

Publication Publication Date Title
US10511803B2 (en) Video signal transmission method and device
US20100269137A1 (en) Transmission device, video signal transmission method for transmission device, reception device, and video signal reception method for reception device
CN103491388B (en) Video transmitter and video receiver
CN103841389B (en) A kind of video broadcasting method and player
CN101953150A (en) Method, apparatus and machine-readable medium for describing video processing
US8730400B2 (en) Image displaying apparatus and image processing apparatus
CN101437125A (en) Display device and program display method thereof, receiving apparatus and signal transmission method thereof
CN101743745A (en) Multiple format video display
CN101601291A (en) The method for displaying image of transmitting device, image data transfer method, receiving system and receiving system
US20150304526A1 (en) External video locking and synchronization device
CN102497388A (en) Mobile network terminal and method for wireless screen content transmission between such terminal and TV
CN104954812A (en) Video synchronized playing method, device and system
CN101102487A (en) Video transmission system and method based on VGA and HDMI display mode
RU2670599C9 (en) Communication device, method for communication and computer program
CN106227492A (en) Combination and mobile intelligent terminal interconnected method and device
CN1620105A (en) Real time data stream processor
CN102025936A (en) Video aspect ratio conversion method and device
CN204517977U (en) A kind of handheld device, external picture pick-up device and data transmission system
CN101282437A (en) Decoding device
TW201431381A (en) Auxiliary data encoding in video data
TWI472232B (en) Video transmission by decoupling color components and apparatus thereof and processor readable tangible medium encoded with instructions
CN103686404A (en) Method and system for playing pictures of set top box for mobile terminal
US20140023143A1 (en) Remote display apparatus
TW201444372A (en) Method, apparatus and system for communicating sideband data with non-compressed video
CN102647613B (en) Internet protocol video coding box

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110420