CN109151504A - A kind of video adaptive identifying method, apparatus and storage medium - Google Patents

A kind of video adaptive identifying method, apparatus and storage medium Download PDF

Info

Publication number
CN109151504A
CN109151504A CN201811136488.5A CN201811136488A CN109151504A CN 109151504 A CN109151504 A CN 109151504A CN 201811136488 A CN201811136488 A CN 201811136488A CN 109151504 A CN109151504 A CN 109151504A
Authority
CN
China
Prior art keywords
video
screen
width
played
ratio
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.)
Granted
Application number
CN201811136488.5A
Other languages
Chinese (zh)
Other versions
CN109151504B (en
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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201811136488.5A priority Critical patent/CN109151504B/en
Publication of CN109151504A publication Critical patent/CN109151504A/en
Application granted granted Critical
Publication of CN109151504B publication Critical patent/CN109151504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • H04N21/234372Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution for performing aspect ratio conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • H04N21/440272Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA for performing aspect ratio conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention relates to a kind of video adaptive identifying method, apparatus and storage mediums, belong to Internet technical field.Method includes: to obtain the high information of width of video to be played, plays ratio according to the high information adjustment screen of width, carries out non-full screen video broadcasting;When receiving the instruction of played in full screen video, ratio-dependent screen mode toggle is played according to screen, adaptively carries out full frame displaying;Device includes, including processor and memory, is stored with computer program on memory, when which is executed by the processor, realizes above-mentioned video adaptive identifying method;The medium, is stored thereon with computer program, when which is executed by processor, realizes above-mentioned video adaptive identifying method.Compared with prior art, the present invention has many advantages, such as that result of broadcast is good, adaptivity is strong and applied widely.

Description

A kind of video adaptive identifying method, apparatus and storage medium
Technical field
The present invention relates to Internet technical field, in particular to player field, in particular to a kind of video is adaptively broadcast Put method, apparatus and storage medium.
Background technique
Video refer to a series of static images are captured in a manner of electric signal, are noted down, are handled, are stored, transmit with The various technologies reappeared.With the development of network technology, promote the record segment of video be present in the form of streaming media because On spy's net and it can be received and be played by computer.
Major video in the market is the size of 16:9 or 4:3, is suitble to watch in mobile phones transverse screen.However as shifting Dynamic internet development, mobile phone shooting video gradually increase, therefore more and more videos are that (i.e. the ratio of width to height is less than 1 for vertical contribution Video), be more adaptive to vertical screen.Mainstream player currently on the market is still to pass through cross when playing vertical contribution The mode of disk plays out.This results in vertical contribution viewing experience under transverse screen too poor (there are substantially black surround in video two sides), and Mobile phone screen cannot be utilized well, while when carrying out full frame displaying to vertical contribution, current player is still according to complete Screen plays the mode of lateral contribution, vertical contribution is turned direction full frame amplification again, when leading to user's vertical video of full frame browsing Also needing to turn mobile phone direction ability normal browsing, this operation is very and visual effect is poor, therefore is badly in need of a kind of player, Both traditional major video it had been adapted to, or vertical screen contribution of the ratio of width to height less than 1, which specially provides, shows interface.
Summary of the invention
The purpose of the present invention is provide a kind of video adaptive identifying method, apparatus and storage medium regarding to the issue above.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of video adaptive identifying method, the method the following steps are included:
(1) the high information of width for obtaining video to be played plays ratio according to the high information adjustment screen of width, carries out non- Full screen video plays;
(2) when receiving the instruction of played in full screen video, ratio-dependent screen mode toggle is played according to screen, it is adaptive to carry out Full frame displaying.
Preferably, it includes that vertical non-full screen video plays that the non-full screen video, which plays, and the vertical non-full screen video is broadcast The play area put is located at the top for playing the page.
Preferably, the step (1) specifically includes the following steps:
(11) broadcast address for reading video to be played, judges whether there is the high information of width of video to be played, if then (12) are entered step, if otherwise entering step (13);
(12) the high information of width is obtained, ratio is played according to the high information adjustment screen of width, carries out vertical non-full frame view Frequency plays;
(13) broadcast address is passed into player and carries out vertical non-full screen video broadcasting, while adjusted according to situation is played Screen plays ratio, guarantees that the high information of width of the video ratio and video itself of player plays is adapted.
It preferably, further include full frame selection key in the play area that the vertical non-full screen video plays, it is described full frame Selection key shows that the high information of width of direction and video is adapted.
Preferably, it includes being suitable for the ratio of width to height less than 1 video that the screen under the non-full screen video plays, which plays ratio, 4:3 ratio and the 16:9 ratio for being greater than 1 video suitable for the ratio of width to height.
Preferably, the screen mode toggle includes vertical screen screen mode toggle and transverse screen screen mode toggle.
Preferably, the step (2) specifically includes the following steps:
(21) when receiving the instruction of played in full screen video, (22) are entered step;
(22) according to the high information of the width of video, judge the play area of video expansion direction whether the direction one with screen It causes, if then entering step (23), if otherwise entering step (24);
(23) play area of player is unfolded directly down, into vertical screen screen mode toggle;
(24) switch the broadcasting direction of the play area of player, while laterally full frame expansion, into transverse screen screen mode toggle.
Preferably, the method also includes: it is adaptive to adjust barrage display parameters according to determining screen mode toggle.
Preferably, the barrage display parameters include barrage display area, barrage font size and barrage broadcasting speed.
Preferably, the barrage broadcasting speed under the vertical screen screen mode toggle and the barrage under the non-screen mode toggle of transverse screen play speed Degree is consistent.
Preferably, the method also includes:
(3) when being in full frame display state and receiving the instruction of Switch Video, the information according to be switched video is adaptive Video play mode should be adjusted.
Preferably, the step (3) specifically includes the following steps:
(31) judge whether the high information of width of the high information of the width of to be switched video and current video is consistent, if then entering step Suddenly (32), if otherwise entering step (33);
(32) current full frame display state is kept, to be switched video is directly played;
(33) full frame state is exited, ratio is played according to the high information adjustment screen of the width of to be switched video, video is carried out and broadcasts It puts.
Preferably, the method also includes: under screen mode toggle complete video playing after enter sign-off sheet face, the end The displaying direction of the page is consistent with the exhibition method of screen mode toggle.
A kind of video adaptive identifying method, the method the following steps are included:
(a) user plays out operation to video;
(b) player obtains the high information of width of video to be played, plays ratio according to the high information adjustment screen of width, Carry out non-full screen video broadcasting;
(c) when user selects played in full screen video, player plays ratio-dependent screen mode toggle according to screen, adaptively Carry out full frame displaying.
Preferably, the step (b) specifically includes the following steps:
(b1) player reads the broadcast address of video to be played, judges whether there is the high information of width of video to be played, If then entering step (b2), if otherwise entering step (b3);
(b2) the high information of width is obtained, ratio is played according to the high information adjustment screen of width, carries out vertical non-full frame view Frequency plays;
(b3) broadcast address is passed into player and carries out vertical non-full screen video broadcasting, while adjusted according to situation is played Screen plays ratio, guarantees that the high information of width of the video ratio and video itself of player plays is adapted.
Preferably, it includes that vertical non-full screen video plays that the non-full screen video, which plays, and the vertical non-full screen video is broadcast The play area put is located at the top half for playing the page.
It preferably, further include full frame selection key in the play area that the vertical non-full screen video plays, it is described full frame Selection key shows that the high information of width of direction and video is adapted.
Preferably, the step (c) specifically includes the following steps:
(c1) when user clicks full frame selection key, (c2) is entered step;
(c2) according to the high information of the width of video, judge the play area of video expansion direction whether the direction one with screen It causes, if entering step (c3), if otherwise entering step (c4);
(c3) player is unfolded by play area directly down;
(c4) the broadcasting direction of player switching play area, while laterally full frame expansion.
Preferably, the method also includes:
(d) user selects Switch Video when player is in full frame display state, and player is according to be switched video Information self-adapting adjusts video play mode.
Preferably, the step (d) specifically includes the following steps:
(d1) player judges whether the high information of width of the high information of the width of to be switched video and current video is consistent, if then (d2) is entered step, if otherwise entering step (d3);
(d2) current full frame display state is kept, to be switched video is directly played;
(d3) full frame state is exited, ratio is played according to the high information adjustment screen of the width of to be switched video, video is carried out and broadcasts It puts.
A kind of adaptive identifying device based on video resolution, including processor and memory, on the memory Be stored with computer program, when which is executed by the processor, realize it is any one of above-mentioned described in video it is adaptive Answer playback method.
A kind of computer readable storage medium is stored thereon with the computer program computer program and is executed by processor When, realize it is any one of above-mentioned described in video adaptive identifying method.
Compared with prior art, the invention has the following advantages:
(1) video adaptive identifying method proposed by the present invention, by obtaining the high information of width of video to be played, thus Adaptive adjustment screen plays ratio when non-played in full screen video, is no longer limited to traditional video ratio to play out, Solve the problems, such as that the prior art is poor for video display effect of the ratio of width to height less than 1;Meanwhile when carrying out played in full screen, It is that screen mode toggle is selected according to the broadcasting ratio of screen, video of the video and the ratio of width to height for the ratio of width to height less than 1 greater than 1 uses Different modes carries out full frame displaying, turns screen without user to watch full frame vertical video, it is adaptive strong and Showing interface effect is good.
(2) in the high information of the width of acquisition video, information is obtained by reading the broadcast address of video first, if view The high information of corresponding width is not embodied in the broadcast address of frequency, then is to determine the high information of the specific width of video by playing video, To which adjustment screen plays ratio accordingly, such high information acquiring pattern of width is flexible, is suitble to promote.
(3) when carrying out the broadcasting of non-full screen video, it is additionally provided with full frame selection key in play area, due to the key and view The high information of bandwidth is adapted, therefore expansion direction when the full frame expansion of video can be deduced from the arrangement and shape of key, To play the full frame suggesting effect for showing direction to user, the broadcasting experience of user is promoted.
(4) when carrying out full frame displaying to video, play area is unfolded in video if it is the ratio of width to height less than 1 directly down, Into vertical screen screen mode toggle, and the video for the ratio of width to height greater than 1, then switch laterally full frame exhibition behind the broadcasting direction of play area It opens, this flexible expansion mode can guarantee that video has preferable full frame bandwagon effect, simultaneously for the ratio of width to height less than 1 Video can be realized full frame displaying without turning mobile phone direction, show that intuitive operation is convenient, have well adapting to property.
(5) when carrying out played in full screen, the display parameters of barrage also match with screen mode toggle, so as to further mention High result of broadcast enhances user experience.
(6) it when carrying out video switching under full frame display state, for the video of same the ratio of width to height type, directly keeps complete Shield state plays video, and for the video of different the ratio of width to height types, then full frame state is exited, phase is carried out using non-screen mode toggle The video playing answered, avoids the situation for the mistake that switches when different the ratio of width to height type videos switch over, while also guaranteeing Preferable result of broadcast.
(7) video playing under full frame display state terminates the page and also keeps consistent with the exhibition method of screen mode toggle, into One step improves the effect of video playing and displaying, enhances user experience.
Detailed description of the invention
Fig. 1 is the step flow chart of video adaptive identifying method of the present invention;
Fig. 2 is result of broadcast schematic diagram of video of the ratio of width to height greater than 1 when carrying out non-full screen video and playing;
Fig. 3 is result of broadcast schematic diagram of video of the ratio of width to height less than 1 when carrying out non-full screen video and playing;
Fig. 4 is flow chart when carrying out adaptive identifying in embodiment 1;
Fig. 5 is the effect diagram of video playing under vertical screen screen mode toggle;
Fig. 6 is the effect diagram that barrage parameter is arranged under vertical screen screen mode toggle;
Fig. 7 is the schematic diagram for terminating the page under vertical screen screen mode toggle;
Fig. 8 is that vertical screen screen mode toggle lower slider terminates the schematic diagram after the page.
Specific embodiment
In order to be more clearly understood that technology contents of the invention, spy lifts following embodiment and is described in detail.
Refering to Figure 1, being the step flow chart of video adaptive identifying method of the present invention.
In one embodiment, the video adaptive identifying method, comprising the following steps:
(1) the high information of width for obtaining video to be played plays ratio according to the high information adjustment screen of width, carries out non- Full screen video plays;
(2) when receiving the instruction of played in full screen video, ratio-dependent screen mode toggle is played according to screen, it is adaptive to carry out Full frame displaying.
Wherein, it includes that vertical non-full screen video plays that non-full screen video, which plays, the broadcast area that vertical non-full screen video plays Domain is located at the top for playing the page.
Step (1) specifically includes the following steps:
(11) broadcast address for reading video to be played, judges whether there is the high information of width of video to be played, if then (12) are entered step, if otherwise entering step (13);
(12) the high information of width is obtained, ratio is played according to the high information adjustment screen of width, carries out vertical non-full frame view Frequency plays;
(13) broadcast address is passed into player and carries out vertical non-full screen video broadcasting, while adjusted according to situation is played Screen plays ratio, guarantees that the high information of width of the video ratio and video itself of player plays is adapted.
It further include full frame selection key, full frame selection in the play area that vertical non-full screen video plays in the above process Key shows that the high information of width of direction and video is adapted.Screen under non-full screen video plays plays ratio including being suitable for The ratio of width to height is greater than the 16:9 ratio of 1 video less than the 4:3 ratio of 1 video and suitable for the ratio of width to height.Screen mode toggle includes that vertical screen is complete Screen mode and transverse screen screen mode toggle.
And step (2) specifically includes the following steps:
(21) when receiving the instruction of played in full screen video, (22) are entered step;
(22) according to the high information of the width of video, judge the play area of video expansion direction whether the direction one with screen It causes, if then entering step (23), if otherwise entering step (24);
(23) play area of player is unfolded directly down, into vertical screen screen mode toggle;
(24) switch the broadcasting direction of the play area of player, while laterally full frame expansion, into transverse screen screen mode toggle.
Meanwhile this method further include: adaptive to adjust barrage display parameters according to determining screen mode toggle.Barrage is shown Parameter includes barrage display area, barrage font size and barrage broadcasting speed.Barrage broadcasting speed and cross under vertical screen screen mode toggle The barrage broadcasting speed shielded under non-screen mode toggle is consistent.
Further, this method further include:
(3) when being in full frame display state and receiving the instruction of Switch Video, the information according to be switched video is adaptive Video play mode should be adjusted, specifically includes the following steps:
(31) judge whether the high information of width of the high information of the width of to be switched video and current video is consistent, if then entering step Suddenly (32), if otherwise entering step (33);
(32) current full frame display state is kept, to be switched video is directly played;
(33) full frame state is exited, ratio is played according to the high information adjustment screen of the width of to be switched video, video is carried out and broadcasts It puts.
In addition to this, this method further include: enter sign-off sheet face after completing video playing under screen mode toggle, terminate the page Displaying direction it is consistent with the exhibition method of screen mode toggle.
When based on user, the video adaptive identifying method that the present embodiment proposes, specifically includes the following steps:
(a) user plays out operation to video;
(b) player obtains the high information of width of video to be played, plays ratio according to the high information adjustment screen of width, Carry out non-full screen video broadcasting;
(c) when user selects played in full screen video, player plays ratio-dependent screen mode toggle according to screen, adaptively Carry out full frame displaying.
Wherein, step (b) specifically includes the following steps:
(b1) player reads the broadcast address of video to be played, judges whether there is the high information of width of video to be played, If then entering step (b2), if otherwise entering step (b3);
(b2) the high information of width is obtained, ratio is played according to the high information adjustment screen of width, carries out vertical non-full frame view Frequency plays;
(b3) broadcast address is passed into player and carries out vertical non-full screen video broadcasting, while adjusted according to situation is played Screen plays ratio, guarantees that the high information of width of the video ratio and video itself of player plays is adapted.
Step (c) specifically includes the following steps:
(c1) when user clicks full frame selection key, (c2) is entered step;
(c2) according to the high information of the width of video, judge the play area of video expansion direction whether the direction one with screen It causes, if entering step (c3), if otherwise entering step (c4);
(c3) player is unfolded by play area directly down;
(c4) the broadcasting direction of player switching play area, while laterally full frame expansion.
This method further includes step (d) simultaneously, i.e., user selects Switch Video when player is in full frame display state, Player adjusts video play mode according to the information self-adapting of to be switched video, specifically includes the following steps:
(d1) player judges whether the high information of width of the high information of the width of to be switched video and current video is consistent, if then (d2) is entered step, if otherwise entering step (d3);
(d2) current full frame display state is kept, to be switched video is directly played;
(d3) full frame state is exited, ratio is played according to the high information adjustment screen of the width of to be switched video, video is carried out and broadcasts It puts.
It also proposed a kind of adaptive identifying device based on video resolution in addition to the above method, in the present embodiment, Including processor and memory, it is stored with computer program on memory, it is real when which is executed by the processor Any one of now above-mentioned video adaptive identifying method;And a kind of computer readable storage medium is proposed, it is stored thereon with Computer program when the computer program is executed by processor, realizes any one of above-mentioned video adaptive identifying method.
In practical applications, the specific implementation of video adaptive identifying method of the present invention, is said by following embodiment It is bright.
Embodiment 1
Substantially all using laterally showing, vertical screen contribution is laterally showing timeliness for vertical screen contribution and transverse screen contribution on Vehicles Collected from Market Fruit is poor.The purpose of the present embodiment is exactly to overcome the problems, such as this, reaches preferable bandwagon effect, and the method process specifically used is such as Shown in Fig. 4.
It can be seen from the figure that user initially enters video details page when wanting to carry out video playing, clicks video and broadcast It puts, player can be by getting playurl in the video link of click as a result, if comprising extra in playurl at this time Data includes the high information of width of video contribution, then directly acquires this information, so that adjusting screen according to information plays ratio Vertical non-played in full screen is carried out afterwards, if in playurl and not including the high information of width, playurl is transferred to player, into After the vertical non-played in full screen of row screen is carried out according to the wide high information of video when playing again and plays ratio adjustment.According to the ratio of width to height tune The effect for saving screen broadcasting ratio is as shown in Figures 2 and 3, it can be seen from the figure that if the ratio of width to height of video is greater than 1, with The ratio of 16:9 is shown in playing the page, if the ratio of width to height of video is playing the page less than 1, with the ratio of 4:3 In be shown.
From this figure it can be seen that either which kind of screen to play ratio with carries out video playing, the play area of video On all there is a full frame selection key, the arrangement mode of this full frame selection key is and the high information of the width of video and screen Curtain plays what ratio was adapted, the expansion direction of play area when so as to prompt user's full frame expansion, as shown, this reality Apply in example, for the ratio of width to height be greater than 1 video, " full frame " two word direction of full frame selection key be it is transversely arranged, that is, prompt If user's selection is full frame, entire video is to be paved with the entire broadcasting page in a lateral manner;And for the ratio of width to height less than 1 " full frame " two word direction of video, full frame selection key is vertically disposed, entire to regard if i.e. prompt user's selection is full frame Frequency is directly vertically to be unfolded to be paved with entirely to play the page.
Therefore, if user clicks full frame selection key, show that screen mode toggle is selected to be shown, i.e., as retouched above It states, the play area horizontal spreading of video of the ratio of width to height greater than 1 is paved with the broadcasting page, at this time it should be noted that will regard When frequency horizontal spreading, it is necessary first to adjust the direction of video, when non-full frame displaying the video be according to play the page consistent What direction was shown, when full frame displaying, after which has carried out 90 ° of rotations first, then it is unfolded on the broadcasting page, ability Realization is paved with entire screen;And be then not necessarily to turn direction when video expansion of the ratio of width to height less than 1, directly vertical expansion guarantees entire Play area, which is paved with, plays the page.
By the above process, user can achieve following bandwagon effect when playing video: i.e. if video itself is Vertical screen contribution, then player size is shown as 4:3 ratio, shows the full frame button of vertical screen, and online expansion vertical screen is aobvious when clicking full frame Show;If video itself is transverse screen contribution, player size is shown as 16:9 ratio, shows common full frame button, clicks complete It is laterally shown when screen;To guarantee best bandwagon effect.
In addition to this, the video for the ratio of width to height less than 1 has done barrage speed and barrage density in full frame displaying excellent Change, to meet user in the barrage perception of vertical screen situation.Enter entirely as shown in figure 5, clicking full frame rear play area drops down Shield pattern, playing the related floating layer interactive modifyings such as barrage setting in the page, broadcasting setting option, sharing is that floating layer is popped up from bottom. The display of barrage adjusts are as follows: barrage display area: barrage canvas size is screen size;Top barrage and bottom barrage: from picture It is successively spread out at the top and bottom of cloth.Barrage setting: the setting of normal transverse screen, the font size and speed of barrage, the setting of transverse screen are kept In same purpose to vertical screen player, as shown in Figure 6.Barrage speed is consistent with normal video half screen, and (barrage from left to right floats Time consistency).
After the completion of video is with full frame mode playback, as shown in fig. 7, can enter terminates the page.Knot in the present embodiment The beam page is the end page entered under vertical screen screen mode toggle, it can be seen from the figure that this terminates the displaying direction of the page Be it is vertical, i.e., be consistent with the exhibition method of screen mode toggle, at the same time, this terminates to include that many correlations push away in the page Recommend video, show the information of up master simultaneously above these associated videos, these associated recommendation videos can slide up and down, to When upper sliding, the information of up master can be stowed away, as shown in Figure 8.
In the present embodiment, in the case where this terminates the page, user has selected the relevant recommendation video of click, under will entering at this time The broadcasting of one video, since a upper video is that played in full screen is terminated, the broadcasting form and the video of next video The high information of the width of itself be it is relevant, i.e., if next video and a upper video belong to same class the ratio of width to height, to next video Played in full screen is directly carried out, and if next video is different from the ratio of width to height type of a upper video, played in full screen is changed to non- Full screen video plays, and screen plays ratio and the high information of width of next video is consistent, and specific process is as follows:
When being currently vertical screen played in full screen, video switch logic are as follows:
When clicking associated recommendation video, new video is video of the ratio of width to height less than 1, vertical screen played in full screen;Correlation is clicked to push away When recommending video, new video is the video that the ratio of width to height is greater than 1, is played into non-full screen video, and ratio is 16:9.
When being currently transverse screen played in full screen, video switch logic are as follows:
When clicking associated recommendation video, new video is the video that the ratio of width to height is greater than 1, direct transverse screen played in full screen (with it is current Logic is consistent);When clicking associated recommendation video, new video is video of the ratio of width to height less than 1, is played into non-full screen video, and Ratio is 4:3 (user needs to turn over viewing manually, does not follow gravity sensing rotation screen at this time).
Embodiment 2
Playing process in the present embodiment with it is essentially identical in embodiment 1, difference is, the sign-off sheet in the present embodiment Face is the end page entered under transverse screen screen mode toggle, therefore terminates the page at this time for the exhibition method one with screen mode toggle It causes, shows that direction is laterally arranged, terminate equally to include multiple associated recommendation videos in the page, the information of up master is equally shown In the top of these associated recommendation videos, but the sliding type of these associated recommendation videos is changed to horizontally slip, due to sliding The information of the change of mode, up master will not be stowed away.In addition to this, remaining playing process and principle are and in embodiment 1 It is identical.
Embodiment 3
Video adaptive identifying method and the process in embodiment 1 are essentially identical in the present embodiment, and difference is, this implementation It is not to carry out video switching by clicking associated recommendation video after video played in full screen in example, in the present embodiment Video include multiple points of P contents, therefore user may want to check the content of other parts in watching process, therefore directly exist Switch P number in video display process, to carry out the switching of video.Although clicking the object and opportunity difference, principle of switching Or it is in the same manner as in Example 1, i.e., it is straight to next video if next video and a upper video belong to same class the ratio of width to height Row played in full screen is tapped into, and if next video is different from the ratio of width to height type of a upper video, played in full screen is changed to non-complete Shield video playing, and screen plays ratio and the high information of width of next video is consistent.
Embodiment 4
Video adaptive identifying method and the process in embodiment 1 are essentially identical in the present embodiment, and difference is, this implementation It is not to carry out video switching by clicking associated recommendation video after video played in full screen, but directly exist in example Selected works are clicked in video display process, to carry out the switching of video between different collection numbers.Although clicking object and the opportunity of switching Difference, but principle or in the same manner as in Example 1, i.e., if next video and a upper video belong to same class the ratio of width to height, Played in full screen is directly then carried out to next video, and if next video is different from the ratio of width to height type of a upper video, it will be complete Screen, which plays, is changed to non-full screen video broadcasting, and screen plays ratio and the high information of width of next video is consistent.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that can still make Various modifications and alterations are without departing from the spirit and scope of the invention.Therefore, the description and the appended drawings should be considered as illustrative And not restrictive.

Claims (22)

1. a kind of video adaptive identifying method, which is characterized in that the method the following steps are included:
(1) the high information of width for obtaining video to be played plays ratio according to the high information adjustment screen of width, carries out non-full frame Video playing;
(2) when receiving the instruction of played in full screen video, ratio-dependent screen mode toggle is played according to screen, is adaptively carried out full frame It shows.
2. video adaptive identifying method according to claim 1, which is characterized in that it includes perpendicular that the non-full screen video, which plays, It is played to non-full screen video, the play area that the vertical non-full screen video plays is located at the top for playing the page.
3. video adaptive identifying method according to claim 2, which is characterized in that the step (1) specifically includes following Step:
(11) broadcast address for reading video to be played, judges whether there is the high information of width of video to be played, if then entering Step (12), if otherwise entering step (13);
(12) the high information of width is obtained, ratio is played according to the high information adjustment screen of width, vertical non-full screen video is carried out and broadcasts It puts;
(13) broadcast address is passed into player and carries out vertical non-full screen video broadcasting, while adjusting screen according to situation is played Broadcasting ratio guarantees that the high information of width of the video ratio and video itself of player plays is adapted.
4. video adaptive identifying method according to claim 2, which is characterized in that the vertical non-full screen video played It further include full frame selection key in play area, the displaying direction of the full frame selection key is mutually fitted with the high information of width of video It answers.
5. video adaptive identifying method according to claim 2, which is characterized in that the screen under the non-full screen video broadcasting Curtain broadcasting ratio includes the 4:3 ratio suitable for the ratio of width to height less than 1 video and the 16:9 ratio suitable for the ratio of width to height greater than 1 video Example.
6. video adaptive identifying method according to claim 5, which is characterized in that the screen mode toggle includes that vertical screen is full frame Mode and transverse screen screen mode toggle.
7. video adaptive identifying method according to claim 6, which is characterized in that the step (2) specifically includes following Step:
(21) when receiving the instruction of played in full screen video, (22) are entered step;
(22) according to the high information of the width of video, judge whether the expansion direction of the play area of video is consistent with the direction of screen, If then entering step (23), if otherwise entering step (24);
(23) play area of player is unfolded directly down, into vertical screen screen mode toggle;
(24) switch the broadcasting direction of the play area of player, while laterally full frame expansion, into transverse screen screen mode toggle.
8. video adaptive identifying method according to claim 6, which is characterized in that the method also includes: according to determination Screen mode toggle, it is adaptive to adjust barrage display parameters.
9. video adaptive identifying method according to claim 8, which is characterized in that the barrage display parameters include barrage Display area, barrage font size and barrage broadcasting speed.
10. video adaptive identifying method according to claim 9, which is characterized in that the bullet under the vertical screen screen mode toggle Curtain broadcasting speed is consistent with the barrage broadcasting speed under the non-screen mode toggle of transverse screen.
11. video adaptive identifying method according to claim 1, which is characterized in that the method also includes:
(3) when being in full frame display state and receiving the instruction of Switch Video, according to the information self-adapting tune of to be switched video Whole video play mode.
12. video adaptive identifying method according to claim 11, which is characterized in that the step (3) specifically include with Lower step:
(31) judge whether the high information of width of the high information of the width of to be switched video and current video is consistent, if then entering step
(32), if otherwise entering step (33);
(32) current full frame display state is kept, to be switched video is directly played;
(33) full frame state is exited, ratio is played according to the high information adjustment screen of the width of to be switched video, carries out video playing.
13. video adaptive identifying method according to claim 1, which is characterized in that the method also includes: in full screen mode Enter sign-off sheet face, the exhibition method one in the displaying direction and screen mode toggle for terminating the page after completing video playing under formula It causes.
14. a kind of video adaptive identifying method, which is characterized in that the method the following steps are included:
(a) user plays out operation to video;
(b) player obtains the high information of width of video to be played, plays ratio according to the high information adjustment screen of width, carries out Non- full screen video plays;
(c) when user selects played in full screen video, player plays ratio-dependent screen mode toggle according to screen, adaptive to carry out Full frame displaying.
15. the 4 video adaptive identifying method according to claim 1, which is characterized in that the step (b) specifically include with Lower step:
(b1) player reads the broadcast address of video to be played, judges whether there is the high information of width of video to be played, if (b2) is then entered step, if otherwise entering step (b3);
(b2) the high information of width is obtained, ratio is played according to the high information adjustment screen of width, vertical non-full screen video is carried out and broadcasts It puts;
(b3) broadcast address is passed into player and carries out vertical non-full screen video broadcasting, while adjusting screen according to situation is played Broadcasting ratio guarantees that the high information of width of the video ratio and video itself of player plays is adapted.
16. the 4 video adaptive identifying method according to claim 1, which is characterized in that the non-full screen video, which plays, includes Vertical non-full screen video plays, and the play area that the vertical non-full screen video plays is located at the top half for playing the page.
17. the 6 video adaptive identifying method according to claim 1, which is characterized in that the vertical non-full screen video plays Play area in further include full frame selection key, the displaying direction of the full frame selection key is mutually fitted with the high information of width of video It answers.
18. the 7 video adaptive identifying method according to claim 1, which is characterized in that the step (c) specifically include with Lower step:
(c1) when user clicks full frame selection key, (c2) is entered step;
(c2) according to the high information of the width of video, judge whether the expansion direction of the play area of video is consistent with the direction of screen, If entering step (c3), if otherwise entering step (c4);
(c3) player is unfolded by play area directly down;
(c4) the broadcasting direction of player switching play area, while laterally full frame expansion.
19. the 4 video adaptive identifying method according to claim 1, which is characterized in that the method also includes:
(d) user selects Switch Video when player is in full frame display state, and player is according to the information of to be switched video Adaptive regulating video play mode.
20. the 9 video adaptive identifying method according to claim 1, which is characterized in that the step (d) specifically include with Lower step:
(d1) player judges whether the high information of width of the high information of the width of to be switched video and current video is consistent, if then entering Step (d2), if otherwise entering step (d3);
(d2) current full frame display state is kept, to be switched video is directly played;
(d3) full frame state is exited, ratio is played according to the high information adjustment screen of the width of to be switched video, carries out video playing.
21. a kind of adaptive identifying device based on video resolution, including processor and memory, deposited on the memory Contain computer program, which is characterized in that when the computer program is executed by the processor, realize in claim 1 to 13 Any one video adaptive identifying method.
22. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt When processor executes, video adaptive identifying method described in any one of claims 1 to 13 is realized.
CN201811136488.5A 2018-09-28 2018-09-28 Video self-adaptive playing method, device and storage medium Active CN109151504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811136488.5A CN109151504B (en) 2018-09-28 2018-09-28 Video self-adaptive playing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811136488.5A CN109151504B (en) 2018-09-28 2018-09-28 Video self-adaptive playing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109151504A true CN109151504A (en) 2019-01-04
CN109151504B CN109151504B (en) 2021-03-02

Family

ID=64812924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811136488.5A Active CN109151504B (en) 2018-09-28 2018-09-28 Video self-adaptive playing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109151504B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110267089A (en) * 2019-07-18 2019-09-20 北京字节跳动网络技术有限公司 Control method, device, electronic equipment and the storage medium of video playing
CN110262765A (en) * 2019-06-17 2019-09-20 深圳市炬力北方微电子有限公司 Upright image full screen display process, relevant device and system
CN110611739A (en) * 2019-08-15 2019-12-24 咪咕音乐有限公司 Video color ring playing method, terminal and computer readable storage medium
CN110769300A (en) * 2019-10-16 2020-02-07 上海掌门科技有限公司 Method and equipment for presenting horizontal screen video in information stream
CN110996115A (en) * 2019-12-17 2020-04-10 广州酷狗计算机科技有限公司 Live video playing method, device, equipment, storage medium and program product
CN111338537A (en) * 2020-02-11 2020-06-26 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and medium for displaying video
CN111405182A (en) * 2020-03-26 2020-07-10 杭州趣维科技有限公司 Video editing method for adjusting lens proportion
CN112130742A (en) * 2019-06-25 2020-12-25 华为技术有限公司 Full screen display method and device of mobile terminal
CN112399231A (en) * 2019-08-19 2021-02-23 上海哔哩哔哩科技有限公司 Playing method
CN113377995A (en) * 2021-06-18 2021-09-10 广州酷狗计算机科技有限公司 Media resource playing method and device, storage medium and electronic equipment
WO2021208723A1 (en) * 2020-04-15 2021-10-21 华为技术有限公司 Full-screen display method and apparatus, and electronic device
CN114286157A (en) * 2021-12-23 2022-04-05 湖南众益文化传媒股份有限公司 Video program switching device applied to advertising machine
CN114489875A (en) * 2020-10-23 2022-05-13 武汉斗鱼鱼乐网络科技有限公司 Player control method and device, storage medium and electronic equipment
CN115379246A (en) * 2021-05-21 2022-11-22 北京字节跳动网络技术有限公司 Live video stream playing method and device, electronic equipment and storage medium
WO2024114623A1 (en) * 2022-11-29 2024-06-06 北京字跳网络技术有限公司 Media content display method and apparatus, electronic device, and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662605A (en) * 2009-09-17 2010-03-03 青岛海信电器股份有限公司 Method and device for adjusting display scale of television
CN102662563A (en) * 2012-03-14 2012-09-12 广东威创视讯科技股份有限公司 Window resolution self-adaption processing method and device
US20120229489A1 (en) * 2006-09-05 2012-09-13 Apple Inc. Pillarboxing Correction
CN102685589A (en) * 2012-05-04 2012-09-19 深圳Tcl新技术有限公司 Method and device for switchover displaying of video window and message window
CN103546715A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Method and device for adjusting proportion of picture of smart television
CN105898615A (en) * 2015-12-25 2016-08-24 乐视网信息技术(北京)股份有限公司 Video display window switching method and device
US9462019B1 (en) * 2011-03-31 2016-10-04 Amazon Technologies, Inc. Adjusting network operations based on user feedback
CN106028095A (en) * 2016-06-07 2016-10-12 北京奇虎科技有限公司 Method and device for controlling video playing
WO2018049321A1 (en) * 2016-09-12 2018-03-15 Vid Scale, Inc. Method and systems for displaying a portion of a video stream with partial zoom ratios

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120229489A1 (en) * 2006-09-05 2012-09-13 Apple Inc. Pillarboxing Correction
CN101662605A (en) * 2009-09-17 2010-03-03 青岛海信电器股份有限公司 Method and device for adjusting display scale of television
US9462019B1 (en) * 2011-03-31 2016-10-04 Amazon Technologies, Inc. Adjusting network operations based on user feedback
CN102662563A (en) * 2012-03-14 2012-09-12 广东威创视讯科技股份有限公司 Window resolution self-adaption processing method and device
CN102685589A (en) * 2012-05-04 2012-09-19 深圳Tcl新技术有限公司 Method and device for switchover displaying of video window and message window
CN103546715A (en) * 2013-10-30 2014-01-29 乐视致新电子科技(天津)有限公司 Method and device for adjusting proportion of picture of smart television
CN105898615A (en) * 2015-12-25 2016-08-24 乐视网信息技术(北京)股份有限公司 Video display window switching method and device
CN106028095A (en) * 2016-06-07 2016-10-12 北京奇虎科技有限公司 Method and device for controlling video playing
WO2018049321A1 (en) * 2016-09-12 2018-03-15 Vid Scale, Inc. Method and systems for displaying a portion of a video stream with partial zoom ratios

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
顾洁,王璐璐: "竖屏——短视频行业的新格式", 《东南传播》 *

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262765B (en) * 2019-06-17 2020-11-10 深圳市炬力北方微电子有限公司 Full-screen display method of upright image, related equipment and system
CN110262765A (en) * 2019-06-17 2019-09-20 深圳市炬力北方微电子有限公司 Upright image full screen display process, relevant device and system
CN114816209A (en) * 2019-06-25 2022-07-29 华为技术有限公司 Full screen display method and device of mobile terminal
CN114816210A (en) * 2019-06-25 2022-07-29 华为技术有限公司 Full screen display method and device of mobile terminal
CN112130742B (en) * 2019-06-25 2022-04-19 华为技术有限公司 Full screen display method and device of mobile terminal
CN112130742A (en) * 2019-06-25 2020-12-25 华为技术有限公司 Full screen display method and device of mobile terminal
CN110267089A (en) * 2019-07-18 2019-09-20 北京字节跳动网络技术有限公司 Control method, device, electronic equipment and the storage medium of video playing
CN110267089B (en) * 2019-07-18 2022-02-22 北京字节跳动网络技术有限公司 Video playing control method and device, electronic equipment and storage medium
CN110611739B (en) * 2019-08-15 2021-05-25 咪咕音乐有限公司 Video color ring playing method, terminal and computer readable storage medium
CN110611739A (en) * 2019-08-15 2019-12-24 咪咕音乐有限公司 Video color ring playing method, terminal and computer readable storage medium
CN112399231A (en) * 2019-08-19 2021-02-23 上海哔哩哔哩科技有限公司 Playing method
CN110769300A (en) * 2019-10-16 2020-02-07 上海掌门科技有限公司 Method and equipment for presenting horizontal screen video in information stream
CN110996115A (en) * 2019-12-17 2020-04-10 广州酷狗计算机科技有限公司 Live video playing method, device, equipment, storage medium and program product
CN110996115B (en) * 2019-12-17 2022-02-11 广州酷狗计算机科技有限公司 Live video playing method, device, equipment, storage medium and program product
CN111338537B (en) * 2020-02-11 2021-06-25 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and medium for displaying video
JP7407289B2 (en) 2020-02-11 2023-12-28 北京字節跳動網絡技術有限公司 Methods, devices, electronic devices and media for displaying video
WO2021160143A1 (en) * 2020-02-11 2021-08-19 北京字节跳动网络技术有限公司 Method and apparatus for displaying video, electronic device and medium
JP2023506801A (en) * 2020-02-11 2023-02-20 北京字節跳動網絡技術有限公司 Methods, apparatus, electronics and media for displaying video
CN111338537A (en) * 2020-02-11 2020-06-26 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and medium for displaying video
CN111405182A (en) * 2020-03-26 2020-07-10 杭州趣维科技有限公司 Video editing method for adjusting lens proportion
CN111405182B (en) * 2020-03-26 2021-07-23 杭州小影创新科技股份有限公司 Video editing method for adjusting lens proportion
WO2021208723A1 (en) * 2020-04-15 2021-10-21 华为技术有限公司 Full-screen display method and apparatus, and electronic device
EP4120074A4 (en) * 2020-04-15 2023-08-23 Huawei Technologies Co., Ltd. Full-screen display method and apparatus, and electronic device
CN114489875A (en) * 2020-10-23 2022-05-13 武汉斗鱼鱼乐网络科技有限公司 Player control method and device, storage medium and electronic equipment
CN115379246A (en) * 2021-05-21 2022-11-22 北京字节跳动网络技术有限公司 Live video stream playing method and device, electronic equipment and storage medium
CN113377995A (en) * 2021-06-18 2021-09-10 广州酷狗计算机科技有限公司 Media resource playing method and device, storage medium and electronic equipment
CN114286157A (en) * 2021-12-23 2022-04-05 湖南众益文化传媒股份有限公司 Video program switching device applied to advertising machine
WO2024114623A1 (en) * 2022-11-29 2024-06-06 北京字跳网络技术有限公司 Media content display method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN109151504B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN109151504A (en) A kind of video adaptive identifying method, apparatus and storage medium
US20200344505A1 (en) Scheme for determining the locations and timing of advertisements and other insertions in media
CN102612697B (en) A method and system for detection and enhancement of video images
US8098261B2 (en) Pillarboxing correction
JP4366593B2 (en) Electronic device, display control method for electronic device, and program for graphical user interface
AU2015200290B2 (en) Scheme for determining the locations and timing of advertisements and other insertions in media
US8035653B2 (en) Dynamically adjustable elements of an on-screen display
CN105376642B (en) Video playing resolution ratio switching method and system
CN105763950A (en) Bullet screen display method and system
CN106204296A (en) Calculate system and method
CN101197984A (en) Image processing apparatus, image processing method, and program
CN105872652A (en) Multichannel video stream playing method and device
CN110996157A (en) Video playing method and device, electronic equipment and machine-readable storage medium
WO2023193521A1 (en) Video inpainting method, related apparatus, device and storage medium
CN108391166A (en) Ultra high-definition TV and its display methods and computer readable storage medium
CN108900911A (en) Realize the video broadcasting method, device and display equipment of picture-in-picture function
CN113709451A (en) Video contrast playing method and device
CN112019908A (en) Video playing method, device and equipment
CN104093069A (en) Video playing method and player device
CN106371717A (en) Method for switching thumbnail focus along with original pictures
KR101377950B1 (en) Image display method and terminal implementing the same
CN110505512A (en) Played in full screen method, terminal device and computer readable storage medium
CN107534785A (en) Method for the grade of the definition of the image that sets multimedia programming
Keller Video upscaling using variational methods
KR102614561B1 (en) Method for providing multi view service and apparatus for same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1261017

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant