CN112333513B - Method, equipment and storage medium for creating vertical screen video library - Google Patents

Method, equipment and storage medium for creating vertical screen video library Download PDF

Info

Publication number
CN112333513B
CN112333513B CN202010660004.8A CN202010660004A CN112333513B CN 112333513 B CN112333513 B CN 112333513B CN 202010660004 A CN202010660004 A CN 202010660004A CN 112333513 B CN112333513 B CN 112333513B
Authority
CN
China
Prior art keywords
video
vertical screen
transmission
video library
library
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.)
Active
Application number
CN202010660004.8A
Other languages
Chinese (zh)
Other versions
CN112333513A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010660004.8A priority Critical patent/CN112333513B/en
Publication of CN112333513A publication Critical patent/CN112333513A/en
Application granted granted Critical
Publication of CN112333513B publication Critical patent/CN112333513B/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/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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • 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/47End-user applications
    • H04N21/485End-user interface for client configuration

Abstract

The invention discloses a method, equipment and storage medium for creating a vertical screen video library, wherein the method comprises the following steps: acquiring a transmission video, and acquiring a horizontal pixel value of a display device and a horizontal pixel value of each transmission video; obtaining a pixel ratio corresponding to each transmitted video according to the horizontal pixel value of the display device and the horizontal pixel value of each transmitted video; and adjusting each transmission video according to the pixel ratio, obtaining an adjusted transmission video, and storing the adjusted transmission video into a vertical screen video library to create the vertical screen video library. According to the invention, the horizontal pixel value of the display device and the horizontal pixel value of each transmission video are obtained, the horizontal pixel value of the display device and the horizontal pixel value of each transmission video are calculated, each transmission video is adjusted according to the pixel ratio, and the vertical screen video library corresponding to the transmission video is obtained, so that the automatic creation of the vertical screen video library is realized, and the vertical screen playing video of the display device is realized.

Description

Method, equipment and storage medium for creating vertical screen video library
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to the field of intelligent televisions, and particularly relates to a method, equipment and storage medium for creating a vertical screen video library.
Background
The screen playing mode of the intelligent television at present mainly takes a horizontal screen playing mode, and along with the development of an intelligent television system, an intelligent camera and an intelligent red line technology, a vertical screen playing mode becomes a popular playing mode, but the intelligent television in the horizontal screen playing mode cannot automatically convert horizontal screen videos into vertical screen videos, so that the conventional intelligent television cannot automatically create a vertical screen video library, and display equipment vertical screen playing videos can be realized.
Disclosure of Invention
The invention mainly aims to provide a method, equipment and a storage medium for creating a vertical screen video library, which aim to solve the technical problem that the existing intelligent television cannot automatically create the vertical screen video library and realize the vertical screen video playing of display equipment.
In order to achieve the above object, the present invention provides a method for creating a vertical screen video library, which is characterized in that the method for creating a vertical screen video library includes the following steps:
acquiring a transmission video, and acquiring a horizontal pixel value of a display device and a horizontal pixel value of each transmission video;
obtaining a pixel ratio corresponding to each transmission video according to the horizontal pixel value of the display device and the horizontal pixel value of each transmission video;
and adjusting each transmission video according to the pixel ratio to obtain an adjusted transmission video, and storing the adjusted transmission video into a vertical screen video library to create the vertical screen video library.
Optionally, the step of adjusting each of the transmitted videos according to the pixel ratio includes:
acquiring a first center position of the display device, and detecting whether the pixel ratio is larger than a preset ratio;
if the pixel ratio is detected to be larger than the preset ratio, acquiring a second center position of the transmitted video, and adjusting the transmitted video according to the first center position and the second center position;
if the pixel ratio is detected to be smaller than or equal to the preset ratio, the horizontal pixel value and the vertical pixel value of the transmission video are reduced by half, a third central position of the reduced transmission video is obtained, and the reduced transmission video is adjusted according to the third central position and the first central position.
Optionally, the step of adjusting the transmitted video according to the first center position and the second center position includes:
calculating a position difference value between the first central position and the second central position, and detecting whether the position difference value is larger than a preset position difference value or not;
and if the position difference value is detected to be larger than the preset position difference value, adjusting the position of the transmitted video so that the position difference value corresponding to the adjusted transmitted video is smaller than or equal to the preset position difference value.
Optionally, the step of obtaining the pixel ratio corresponding to each of the transmitted videos according to the horizontal pixel value of the display device and the horizontal pixel value of each of the transmitted videos includes:
dividing the horizontal pixel value of the display device by the horizontal pixel value of each transmission video to obtain the corresponding pixel ratio of each transmission video.
Optionally, after the step of adjusting each of the transmission videos according to the pixel ratio to obtain an adjusted transmission video, and storing the adjusted transmission video in a vertical screen video library to create a vertical screen video library, the method further includes:
acquiring packet names corresponding to all transmission videos in the vertical screen video library, and classifying the transmission videos in the vertical screen video library according to the packet names to obtain a play video library corresponding to the packet names;
and calculating the weight value of each transmission video in the playing video library, and sequencing each transmission video according to the sequence from the large weight value to the small weight value to obtain the sequenced playing video library.
Optionally, the step of calculating the weight value of each transmission video in the play video library includes:
acquiring a preset weight value and accumulated times of corresponding identifications of the transmitted videos in the play video library;
multiplying a preset weight value corresponding to the identifier by an accumulated number corresponding to the identifier, and correspondingly obtaining an accumulated value of each identifier in the transmitted video;
and summing the accumulated values of all the identifiers in the same transmission video, and correspondingly obtaining the weight value of the transmission video.
Optionally, after the step of calculating the weight value of each transmission video in the play video library and sorting each transmission video according to the order of the weight values from large to small to obtain the sorted play video library, the method further includes:
receiving a play instruction and identifying whether the play instruction is a vertical screen mode instruction;
if the play command is identified as a vertical screen mode command, acquiring a packet name in the vertical screen mode command, acquiring a corresponding video library to be played according to the packet name in the vertical screen mode command, and playing the transmission video in the video library to be played.
Optionally, the step of playing the transmitted video in the video library to be played includes:
and acquiring the weight value of the transmitted video in the video library to be played, and sequentially displaying the transmitted video in the video library to be played in a vertical screen display area of display equipment according to the sequence of the weight value from large to small.
In addition, in order to achieve the above object, the present invention also provides a device for creating a vertical screen video library, where the device for creating a vertical screen video library includes a memory, a processor, and a program for creating a vertical screen video library stored on the memory and running on the processor, and the program for creating a vertical screen video library, when completed by the processor, implements the steps of the method for creating a vertical screen video library as described above.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a vertical screen video library creation program which, when completed by a processor, implements the steps of the vertical screen video library creation method as described above.
The invention realizes that the vertical screen video library corresponding to the transmission video is obtained by acquiring the horizontal pixel value of the display device and the horizontal pixel value of each transmission video, calculating the horizontal pixel value of the display device and the horizontal pixel value of each transmission video, and adjusting each transmission video according to the pixel ratio. Therefore, after the transmission video is acquired, the horizontal pixel value of the transmission video and the horizontal pixel value of the display device are calculated to obtain the pixel ratio of the transmission video, and each transmission video is adjusted according to the pixel ratio to obtain a vertical screen video library, so that the display device can acquire the video from the vertical screen video library to perform vertical screen display, the vertical screen video library is automatically created, and the display device plays the video through the vertical screen of the vertical screen video library.
Drawings
FIG. 1 is a flow chart of a first embodiment of a method for creating a vertical screen video library of the present invention;
FIG. 2 is a schematic diagram of a preferred architecture of a vertical screen video library creation apparatus of the present invention;
FIG. 3 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention provides a method for creating a vertical screen video library, and referring to fig. 1, fig. 1 is a flow chart of a first embodiment of the method for creating a vertical screen video library.
The embodiments of the present invention provide embodiments of a method of creating a vertical screen video library, it should be noted that although a logical order is shown in the flowchart, the steps shown or described may be accomplished in an order different from that shown or described herein under certain data.
The method for creating the vertical screen video library comprises the following steps:
step S10, acquiring a transmission video, and acquiring a horizontal pixel value of a display device and a horizontal pixel value of each transmission video.
The display device acquires the transmission video of which the transmission unit time is less than or equal to the preset transmission time in the network according to the preset transmission time in the display device, acquires the horizontal pixel value of each transmission video according to the video information of the transmission video after the transmission video is acquired, and acquires the horizontal pixel value of the display device according to the device information of the display device.
The display device can be an intelligent television or a personal computer. The preset transfer time is set in the display device in advance according to the need, and the present embodiment is not limited. Networks include, but are not limited to, WIFI (Wireless Fidelity, wireless local area network), routers, and bluetooth. Terminal devices include, but are not limited to, cell phones, tablet computers, and notebook computers. Video information includes horizontal pixel values, vertical pixel values, video quality, and the like of the transmitted video. Display devices include, but are not limited to, smart televisions and personal computers. The device information includes a horizontal pixel value, a vertical pixel value, power consumption information, and the like of the display device.
It should be noted that, the acquired transmission video may be uploaded by the terminal device in real time, or may be stored in the network, which is not limited in this embodiment.
In this embodiment, for example, the preset transmission time is 30 seconds, and the display device acquires the transmission video with the transmission time of less than or equal to 30 seconds in the network.
It should be noted that the horizontal pixel value may be replaced by a vertical pixel value, which is not limited in this embodiment.
Further, the display device acquires vertical pixel values of the respective transmission videos according to the video information of the transmission videos, and acquires vertical pixel values of the display device according to the device information of the display device.
And step S20, obtaining the pixel ratio corresponding to each transmission video according to the horizontal pixel value of the display device and the horizontal pixel value of each transmission video.
After the display device obtains the horizontal pixel value of the display device and the horizontal pixel value of each transmitted video, the horizontal pixel value of the display device and the horizontal pixel value of each transmitted video are calculated through a preset formula, and the pixel ratio of the horizontal pixel value between the display device and each transmitted video is obtained.
Further, the preset formula may be the horizontal pixel value of each transmitted video divided by the horizontal pixel value of the display device, or may be the horizontal pixel value of the display device divided by the horizontal pixel value of each transmitted video.
Further, the step S20 includes:
and a step a of dividing the horizontal pixel value of the display device by the horizontal pixel value of each transmission video to obtain the corresponding pixel ratio of each transmission video.
Specifically, the display device divides the horizontal pixel value of the display device by the horizontal pixel value of each transmitted video to obtain a quotient of the horizontal pixel value between the display device and the transmitted video, wherein the quotient is the pixel ratio of the horizontal pixel value of the display device to the horizontal pixel value of the transmitted video.
In this embodiment, for example, the horizontal pixel value of the display device is 4K, the horizontal pixel value of the transmission video 1 is 2K, the horizontal pixel value of the transmission video 2 is 8K, the display device calculates the pixel ratio of the transmission video 1 to be 2, and the pixel ratio of the transmission video 2 to be 0.5.
And step S30, adjusting each transmission video according to the pixel ratio to obtain an adjusted transmission video, and storing the adjusted transmission video into a vertical screen video library to create the vertical screen video library.
After the display equipment obtains the pixel ratio of each transmission video, the duty ratio or/and the position of each transmission video relative to the display equipment are adjusted according to the size of the pixel ratio, the adjusted transmission video is obtained, then the adjusted transmission video is stored in a vertical screen video library of the display equipment, and the vertical screen video library of the transmission video is created.
Further, the step S30 includes:
step b, acquiring a first center position of the display equipment, and detecting whether the pixel ratio is larger than a preset ratio;
step c, if the pixel ratio is detected to be larger than the preset ratio, acquiring a second center position of the transmitted video, and adjusting the transmitted video according to the first center position and the second center position;
and d, if the pixel ratio is detected to be smaller than or equal to the preset ratio, reducing the horizontal pixel value and the vertical pixel value of the transmission video by half, acquiring a third central position of the reduced transmission video, and adjusting the reduced transmission video according to the third central position and the first central position.
Specifically, after the display device obtains the pixel ratio, a first central position of the display device is obtained, whether the pixel ratio is larger than a preset ratio is detected, if the pixel ratio is detected to be larger than the preset ratio, the display device keeps a horizontal pixel value and a vertical pixel value of a transmission video corresponding to the pixel ratio unchanged, then a second central position corresponding to the transmission video is obtained, then the second central position is adjusted to be in a state of being overlapped with the first central position, and namely the transmission video is adjusted to the central position of the display device. If the pixel ratio is detected to be smaller than or equal to the preset ratio, the display device firstly reduces the horizontal pixel value and the vertical pixel value of the transmitted video corresponding to the pixel ratio to half of the original horizontal pixel value and the original vertical pixel value, then obtains a third central position corresponding to the transmitted video, and then adjusts the third central position to be in a state of being overlapped with the first central position, namely adjusts the transmitted video to the central position of the display device.
The central position refers to a central position of the display device or the video transmission, which is calculated by the display device, and the central position may be represented in a coordinate form, which is not limited in this embodiment. The first center position refers to a horizontal center position or a vertical center position of the display device, the second center position refers to a horizontal center position or a vertical center position of the transmitted video, and the third center position refers to a horizontal center position or a vertical center position of the transmitted video after adjustment. The preset ratio is set according to the horizontal pixel value or the vertical pixel value of the display device, and the preset ratios of different display devices are different, which is not limited in this embodiment. The coincidence state refers to the coverage of two positions within a preset error range. The preset error range is set according to the requirement, and the embodiment is not limited.
Further, the step c includes:
step e, calculating a position difference value between the first central position and the second central position, and detecting whether the position difference value is larger than a preset position difference value or not;
and f, if the position difference value is detected to be larger than the preset position difference value, adjusting the position of the transmitted video so that the position difference value corresponding to the adjusted transmitted video is smaller than or equal to the preset position difference value.
Specifically, after the display device obtains the first central position and the second central position, subtracting the coordinate value of the first central position from the coordinate value of the second central position to obtain a coordinate difference value between the first central position and the second central position, namely, a position difference value between the first central position and the second central position, then detecting whether the position difference value is larger than a preset position difference value, and if the position difference value is detected to be larger than the preset position difference value, adjusting the position of the second central position corresponding to the video transmission by the display device according to different adjustment directions, so that the position difference value between the second central position corresponding to the video transmission after adjustment and the first central position is smaller than or equal to the preset position difference value. If the position difference value is detected to be smaller than or equal to the preset position difference value, the display equipment keeps the position of the transmitted video unchanged. Wherein the direction of adjustment may be left, right, up, etc., or with an angular direction adjustment. The preset position difference value is set according to the horizontal pixel value or the vertical pixel value of the display device, and the preset position difference values of different display devices are different, which is not limited in this embodiment.
Further, the coordinate value of the first center position may be subtracted from the coordinate value of the second center position to obtain a coordinate difference between the first center position and the second center position.
In this embodiment, for example, the preset position difference is 5, the first center position of the display device is (50, 25), the second center position of the transmitted video is (40, 25), the display device calculates that the position difference between the first center position and the second center position is 10, which is greater than the preset position difference 5, and the display device adjusts the transmitted video to the right.
According to the embodiment, the vertical screen video library corresponding to the transmission videos is obtained by acquiring the horizontal pixel value of the display device and the horizontal pixel value of each transmission video, calculating the horizontal pixel value of the display device and the horizontal pixel value of each transmission video, and adjusting each transmission video according to the pixel ratio. Therefore, after the transmission video is obtained, the horizontal pixel value of the transmission video and the horizontal pixel value of the display device are calculated to obtain the pixel ratio of the transmission video, the pixel value or/and the duty ratio of each transmission video are adjusted according to the pixel ratio, and the position relation between the center position of each transmission video and the center position of the display device is adjusted to obtain a vertical screen video library, so that the display device can obtain the video from the vertical screen video library for vertical screen display, the automatic creation of the vertical screen video library is realized, and the display device plays the video through the vertical screen video library.
Further, a second embodiment of the method for creating the vertical screen video library is provided.
The second embodiment of the method for creating a vertical screen video library is different from the first embodiment of the method for creating a vertical screen video library in that the method for creating a vertical screen video library further includes:
step g, acquiring packet names corresponding to all the transmitted videos in the vertical screen video library, and classifying the transmitted videos in the vertical screen video library according to the packet names to obtain a play video library corresponding to the packet names;
and h, calculating the weight value of each transmission video in the play video library, and sequencing each transmission video according to the sequence from the big to the small of the weight value to obtain the sequenced play video library.
Specifically, the display device obtains the packet names of all the transmission videos in the vertical screen video library, classifies all the transmission videos in the vertical screen video library according to the packet names, classifies the transmission videos with the same packet name into the same class, and obtains a play video library corresponding to the packet names. After the display equipment obtains the play video libraries corresponding to the package names, the weight value of each module of the transmission video in each play video library is obtained, then the weight values of all modules of the same transmission video are added to obtain the weight value of the transmission video, after the weight value is obtained, the transmission video is ordered according to the order of the weight values from large to small according to the size of the weight value of the transmission video, and the ordered play video library is obtained.
The packet name is the ID (Identity Document, identification number) of the transmitted video, and each transmitted video corresponds to a packet name. The packet name may be expressed in chinese or english, and the present embodiment is not limited to the packet name.
It should be noted that, there are multiple modules in a video transmission, the modules are set by the video developer, the modules include a praise module, a message leaving module, a forwarding module, and a focus module, and each setting module corresponds to different weight values, and the weight values are set in the display device according to the requirements.
Further, the step h includes:
step i, obtaining a preset weight value and accumulated times of corresponding identifications of the transmitted videos in the play video library;
step j, multiplying the preset weight value corresponding to the identifier and the accumulated times corresponding to the identifier, and correspondingly obtaining the accumulated value of each identifier in the transmitted video;
and k, summing the accumulated values of all the identifiers in the same transmission video, and correspondingly obtaining the weight value of the transmission video.
Specifically, the display device obtains preset weight values corresponding to all identifications of the transmitted videos in the play video library and accumulated times corresponding to all identifications, multiplies the preset weight values corresponding to all identifications and the accumulated times corresponding to all identifications to obtain products, namely accumulated values corresponding to all identifications in the transmitted videos, namely the weight values of all identifications in the transmitted videos, and then adds and sums the accumulated values of all identifications in the same transmitted video to obtain the weight values of the transmitted videos.
The identification of the transmitted video is a mark of a module in the transmitted video and is set by a video developer. The identification of the transmitted video includes, but is not limited to, a praise identification, a message identification, a forwarding identification, and an attention identification. Each identifier of the transmitted video corresponds to a preset weight value, and the preset weight value is set in the display device according to the situation, which is not limited in this embodiment. The accumulated number is the sum of the number of times the identification of the transmitted video is accessed.
In this embodiment, for example, the number of accumulations of the praise identifier, the message identifier, the forwarding identifier and the attention identifier in the transmitted video is 1, 10, 100 and 1000 respectively, the number of accumulations of the praise identifier, the message identifier, the forwarding identifier and the attention identifier in the transmitted video 1 is 1, 1 and 1 respectively, the number of accumulations of the praise identifier, the message identifier, the forwarding identifier and the attention identifier in the transmitted video 2 is 2, 2 and 0 respectively, the number of accumulations of the praise identifier, the message identifier, the forwarding identifier and the attention identifier in the transmitted video 3 is 0, 3 and 3 respectively, the weight of the transmitted video 1 is calculated by the display device to be 1×1+1×10+1×100+1×1000=1111, the weight of the transmitted video 2 is calculated to be 2×1+2×10+2×10+2×100+0×1000=222, and the weight of the transmitted video 3 is calculated to be 0+1×3×10+3×100+3×1000=3333.
According to the embodiment, the package names corresponding to all the transmission videos in the vertical screen video library are obtained, the transmission videos in the vertical screen video library are classified according to the package names, the play video library corresponding to the package names is obtained, the weight value of each transmission video in the play video library is calculated, all the transmission videos are ordered according to the order of the weight values from large to small, and the ordered play video library is obtained. Therefore, the display device classifies the transmission videos through the packet names of the transmission videos to obtain a play video library corresponding to the packet names, then calculates the weight value of each transmission video in the play video library according to the identification in the transmission videos, and sorts the transmission videos according to the order of the weight values from large to small, so that the observability of the transmission videos in the play video library is improved.
Further, a third embodiment of the method for creating a vertical screen video library is provided.
The third embodiment of the method for creating a vertical screen video library is different from the first embodiment and the second embodiment of the method for creating a vertical screen video library in that the method for creating a vertical screen video library further includes:
step l, receiving a play instruction and identifying whether the play instruction is a vertical screen mode instruction;
and m, if the play command is identified as a vertical screen mode command, acquiring a packet name in the vertical screen mode command, acquiring a corresponding video library to be played according to the packet name in the vertical screen mode command, and playing the transmission video in the video library to be played.
Specifically, the display device receives a play instruction sent by a user, then identifies whether the play instruction is a vertical screen mode instruction, and if the play instruction is identified not to be the vertical screen mode instruction, the display device acquires a horizontal screen video library and plays videos in the acquired horizontal screen video library. If the play command is identified as a vertical screen mode command, the display device acquires the packet name in the vertical screen mode command, acquires a video library to be played corresponding to the packet name, and plays the transmission video in the acquired video library to be played. The playing instruction may be a voice instruction or a remote control instruction of the intelligent terminal, which is not limited in this embodiment.
In this embodiment, for example, the play command sent by the user is "Tencent video vertical screen play mode". After receiving the playing instruction, the display equipment acquires a video library to be played corresponding to the "vacation video", and plays the transmission video in the video library to be played of the "vacation video".
Further, the step m includes:
and n, acquiring a weight value of the transmitted video in the video library to be played, and sequentially displaying the transmitted video in the video library to be played in a vertical screen display area of display equipment according to the sequence from the large weight value to the small weight value.
Specifically, after the display device obtains the video library to be played corresponding to the packet name in the vertical screen mode instruction, the weight value of the video transmitted in the video library to be played is obtained, then the weight values of the video transmitted in the video library to be played are compared one by one, the video transmitted with the largest weight value in the video library to be played is sequentially displayed in the vertical screen display area of the display device, and if the weight values of two or more than two video transmitted are the same, the display device randomly displays one video transmitted in the vertical screen display area of the display device.
In this embodiment, in the to-be-played video library of "vacation video", there are a transmission video 1, a transmission video 2, a transmission video 3 and a transmission video 4, and after the display devices with weight values 5555, 4444 and 3333 respectively receive the play instruction of "vacation video vertical screen play mode", the transmission video 2 is displayed in the vertical screen display area of the display device, after receiving the play instruction of the user switching video, the transmission video 1 is displayed in the vertical screen display area of the display device, and according to the play instruction of the user switching video, the transmission video 3 and the transmission video 4 are sequentially displayed in the vertical screen display area of the display device.
In the embodiment, by receiving the play command and identifying whether the play command is a vertical screen mode command, if yes, acquiring a packet name in the vertical screen mode command, and acquiring a corresponding video library to be played according to the packet name. Therefore, the display device judges whether the play instruction is a vertical screen mode instruction or not by identifying the play instruction, and then obtains a corresponding video library to be played according to the identification result, so that the video can be rapidly switched between a horizontal screen play mode and a vertical screen play mode, and the diversity of the video play mode is improved.
In addition, the invention also provides a device for creating the vertical screen video library, referring to fig. 2, the device for creating the vertical screen video library comprises:
an acquisition module 10 for acquiring a transmission video; acquiring a horizontal pixel value of a display device and a horizontal pixel value of each transmission video;
a determining module 20, configured to obtain a pixel ratio corresponding to each of the transmitted videos according to the horizontal pixel value of the display device and the horizontal pixel value of each of the transmitted videos;
an adjustment module 30, configured to adjust each of the transmitted videos according to the pixel ratio, so as to obtain an adjusted transmitted video;
and the storage module 40 is used for storing the adjusted transmission video to a vertical screen video library so as to create the vertical screen video library.
Further, the obtaining module 10 is further configured to obtain a first center position of the display device.
Further, the adjustment module 30 includes:
the detection unit is used for detecting whether the pixel ratio is larger than a preset ratio;
the acquisition unit is used for acquiring a second center position of the transmission video if the pixel ratio is detected to be larger than the preset ratio;
an adjustment unit configured to adjust the transmission video according to the first center position and the second center position;
a shrinking unit, configured to shrink the horizontal pixel value and the vertical pixel value of the transmitted video by half if the pixel ratio is detected to be less than or equal to the preset ratio;
the acquisition unit is also used for acquiring a third center position of the reduced transmission video;
the adjusting unit is further configured to adjust the scaled-down transmission video according to the third center position and the first center position.
Further, the adjusting unit includes:
a calculating subunit for calculating a position difference of the first center position and the second center position;
the detection subunit is used for detecting whether the position difference value is larger than a preset position difference value or not;
and the adjusting subunit is used for adjusting the position of the transmitted video if the position difference value is detected to be larger than the preset position difference value, so that the position difference value corresponding to the adjusted transmitted video is smaller than or equal to the preset position difference value.
Further, the determining module is further configured to divide a horizontal pixel value of the display device by a horizontal pixel value of each of the transmitted videos to obtain a pixel ratio corresponding to each of the transmitted videos.
Further, the obtaining module 10 is further configured to obtain a packet name corresponding to each transmission video in the vertical screen video library.
Further, the device for creating the vertical screen video library further comprises:
the classification module is used for classifying the transmission videos in the vertical screen video library according to the package names to obtain a play video library corresponding to the package names;
the calculation module is used for calculating the weight value of each transmitted video in the play video library;
and the ordering module is used for ordering the transmission videos according to the sequence from the large weight value to the small weight value to obtain an ordered play video library.
Further, the obtaining module is further configured to obtain a preset weight value and accumulated times of the corresponding identifiers of the transmitted videos in the play video library.
Further, the computing module includes:
the product unit is used for multiplying the preset weight value corresponding to the identifier and the accumulated times corresponding to the identifier, and correspondingly obtaining the accumulated value of each identifier in the transmitted video;
and the summation unit is used for summing the accumulated values of the identifiers in the same transmission video and correspondingly obtaining the weight value of the transmission video.
Further, the device for creating the vertical screen video library further comprises:
the receiving module is used for receiving the playing instruction;
and the identification module is used for identifying whether the play instruction is a vertical screen mode instruction.
Further, the obtaining module 10 is further configured to obtain a packet name in the vertical screen mode instruction if the play instruction is identified as the vertical screen mode instruction.
Further, the device for creating the vertical screen video library further comprises:
and the playing module is used for acquiring a corresponding video library to be played according to the packet name in the vertical screen mode instruction and playing the transmission video in the video library to be played.
Further, the obtaining module 10 is further configured to obtain a weight value of the transmitted video in the video library to be played.
Further, the playing module includes:
and the display unit is used for sequentially displaying the transmission videos in the video library to be played in a vertical screen display area of the display device according to the sequence from the large weight value to the small weight value.
The specific implementation of the device for creating the vertical screen-based video library is basically the same as the above embodiments of the method for creating the vertical screen-based video library, and will not be described herein.
In addition, the invention also provides a device for creating the vertical screen video library. As shown in fig. 3, fig. 3 is a schematic structural diagram of a hardware running environment according to an embodiment of the present invention.
It should be noted that fig. 3 may be a schematic structural diagram of a hardware running environment of the device for creating the vertical screen video library.
As shown in fig. 3, the apparatus for creating a vertical screen video library may include: a processor 1001, such as a CPU (Central Processing Unit ), a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. The communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a keyboard (board), and the optional user interface 1003 may further include a standard wired interface (e.g., USB (Universal Serial Bus, universal serial bus) interface), a wireless interface (e.g., bluetooth interface). The network interface 1004 may optionally include a standard wired interface, a Wireless interface, such as a WI-FI (Wireless-Fidelity) interface. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the device for creating the vertical screen video library may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
It will be appreciated by those skilled in the art that the construction of the creation device of the vertical screen video library shown in fig. 3 does not constitute a limitation of the creation device of the vertical screen video library, and may include more or less components than illustrated, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 3, an operation device, a network communication module, a user interface module, and a creation program of a vertical screen video library may be included in a memory 1005 as one type of computer storage medium. The operation device is a program for managing and controlling hardware and software resources of the creation device of the vertical screen video library, and supports the creation program of the vertical screen video library and other software or running of the program.
In the vertical screen video library creation apparatus shown in the figure, the user interface 1003 is mainly used for displaying an apparatus screen to display a transmission video of the vertical screen video library in the display apparatus; the network interface 1004 is mainly used for a display device to acquire a transmission video in a network and perform image communication with a screen of the display device; the processor 1001 may be configured to call a creation program of the vertical screen video library stored in the memory 1005 and complete the steps of the control method of the vertical screen video library creation apparatus as described above.
The specific implementation manner of the device for creating the vertical screen video library is basically the same as that of each embodiment of the method for creating the vertical screen video library, and is not repeated here.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a creating program of the vertical screen video library, and the creating program of the vertical screen video library realizes the steps of the creating method of the vertical screen video library when being completed by a processor.
The specific implementation manner of the computer readable storage medium of the present invention is basically the same as the above embodiments of the method for creating a vertical screen video library, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above embodiment method may be implemented by means of software plus necessary general hardware platform, or of course by means of hardware, but the former is a preferred embodiment under many data. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of software goods stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk), comprising instructions for causing a vertical screen video library creation device to perform the method according to the embodiments of the present invention.

Claims (8)

1. The method for creating the vertical screen video library is characterized by comprising the following steps of:
acquiring a transmission video, and acquiring a horizontal pixel value of a display device and a horizontal pixel value of each transmission video;
obtaining a pixel ratio corresponding to each transmission video according to the horizontal pixel value of the display device and the horizontal pixel value of each transmission video;
adjusting each transmission video according to the pixel ratio to obtain an adjusted transmission video, and storing the adjusted transmission video into a vertical screen video library to create a vertical screen video library;
the step of adjusting each of the transmitted videos according to the pixel ratio includes:
acquiring a first center position of the display device, and detecting whether the pixel ratio is larger than a preset ratio;
if the pixel ratio is detected to be larger than the preset ratio, acquiring a second center position of the transmitted video, and adjusting the transmitted video according to the first center position and the second center position;
if the pixel ratio is detected to be smaller than or equal to the preset ratio, reducing the horizontal pixel value and the vertical pixel value of the transmission video by half, acquiring a third central position of the reduced transmission video, and adjusting the reduced transmission video according to the third central position and the first central position;
the step of adjusting the transmitted video according to the first center position and the second center position includes:
calculating a position difference value between the first central position and the second central position, and detecting whether the position difference value is larger than a preset position difference value or not;
and if the position difference value is detected to be larger than the preset position difference value, adjusting the position of the transmitted video so that the position difference value corresponding to the adjusted transmitted video is smaller than or equal to the preset position difference value.
2. The method for creating a vertical screen video library according to claim 1, wherein the step of obtaining the pixel ratio corresponding to each of the transmitted videos according to the horizontal pixel value of the display device and the horizontal pixel value of each of the transmitted videos comprises:
dividing the horizontal pixel value of the display device by the horizontal pixel value of each transmission video to obtain the corresponding pixel ratio of each transmission video.
3. The method for creating a vertical screen video library according to any one of claims 1 to 2, wherein the steps of adjusting each of the transmission videos according to the pixel ratio, obtaining an adjusted transmission video, and storing the adjusted transmission video in the vertical screen video library to create the vertical screen video library, further comprise:
acquiring packet names corresponding to all transmission videos in the vertical screen video library, and classifying the transmission videos in the vertical screen video library according to the packet names to obtain a play video library corresponding to the packet names;
and calculating the weight value of each transmission video in the playing video library, and sequencing each transmission video according to the sequence from the large weight value to the small weight value to obtain the sequenced playing video library.
4. The method for creating a vertical screen video library according to claim 3, wherein said step of calculating a weight value of each of the transmission videos in said play video library comprises:
acquiring a preset weight value and accumulated times of corresponding identifications of the transmitted videos in the play video library;
multiplying a preset weight value corresponding to the identifier by an accumulated number corresponding to the identifier, and correspondingly obtaining an accumulated value of each identifier in the transmitted video;
and summing the accumulated values of all the identifiers in the same transmission video, and correspondingly obtaining the weight value of the transmission video.
5. The method for creating a vertical screen video library according to claim 3, wherein the step of calculating a weight value of each of the transmitted videos in the play video library, and sorting the transmitted videos according to the order of the weight values from the top to the bottom, to obtain the sorted play video library, further comprises:
receiving a play instruction and identifying whether the play instruction is a vertical screen mode instruction;
if the play command is identified as a vertical screen mode command, acquiring a packet name in the vertical screen mode command, acquiring a corresponding video library to be played according to the packet name in the vertical screen mode command, and playing the transmission video in the video library to be played.
6. The method for creating a vertical screen video library according to claim 5, wherein said step of playing the transmission video in the video library to be played comprises:
and acquiring the weight value of the transmitted video in the video library to be played, and sequentially displaying the transmitted video in the video library to be played in a vertical screen display area of display equipment according to the sequence of the weight value from large to small.
7. A vertical screen video library creation apparatus comprising a memory, a processor, and a vertical screen video library creation program stored on the memory and running on the processor, the vertical screen video library creation program implementing the steps of the vertical screen video library creation method according to any one of claims 1 to 6 when completed by the processor.
8. A computer-readable storage medium, wherein a vertical screen video library creation program is stored on the computer-readable storage medium, which when completed by a processor, implements the steps of the vertical screen video library creation method according to any one of claims 1 to 6.
CN202010660004.8A 2020-07-09 2020-07-09 Method, equipment and storage medium for creating vertical screen video library Active CN112333513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010660004.8A CN112333513B (en) 2020-07-09 2020-07-09 Method, equipment and storage medium for creating vertical screen video library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010660004.8A CN112333513B (en) 2020-07-09 2020-07-09 Method, equipment and storage medium for creating vertical screen video library

Publications (2)

Publication Number Publication Date
CN112333513A CN112333513A (en) 2021-02-05
CN112333513B true CN112333513B (en) 2024-02-06

Family

ID=74304187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010660004.8A Active CN112333513B (en) 2020-07-09 2020-07-09 Method, equipment and storage medium for creating vertical screen video library

Country Status (1)

Country Link
CN (1) CN112333513B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103260074A (en) * 2012-02-21 2013-08-21 联想(北京)有限公司 Method, device and terminal of image displaying
WO2016202288A1 (en) * 2015-06-18 2016-12-22 美国掌赢信息科技有限公司 Method for displaying real-time video and electronic device
CN107707954A (en) * 2017-10-27 2018-02-16 北京小米移动软件有限公司 Video broadcasting method and device
CN108347647A (en) * 2018-02-12 2018-07-31 深圳创维-Rgb电子有限公司 Video picture displaying method, device, television set and storage medium
WO2018184408A1 (en) * 2017-04-05 2018-10-11 中兴通讯股份有限公司 Video recording method and device
CN108650542A (en) * 2018-05-09 2018-10-12 腾讯科技(深圳)有限公司 Generate vertical screen video flowing, the method for image procossing, electronic equipment and video system
WO2019080913A1 (en) * 2017-10-27 2019-05-02 腾讯科技(深圳)有限公司 Video processing method, computer device and storage medium
CN109791600A (en) * 2016-12-05 2019-05-21 谷歌有限责任公司 It is the method for the mobile layout of vertical screen by transverse screen Video Quality Metric
WO2019127868A1 (en) * 2017-12-29 2019-07-04 广州优视网络科技有限公司 Screen orientation switching method, device, and terminal
CN110691259A (en) * 2019-11-08 2020-01-14 北京奇艺世纪科技有限公司 Video playing method, system, device, electronic equipment and storage medium
CN110839174A (en) * 2019-12-02 2020-02-25 广州酷狗计算机科技有限公司 Image processing method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103260074A (en) * 2012-02-21 2013-08-21 联想(北京)有限公司 Method, device and terminal of image displaying
WO2016202288A1 (en) * 2015-06-18 2016-12-22 美国掌赢信息科技有限公司 Method for displaying real-time video and electronic device
CN109791600A (en) * 2016-12-05 2019-05-21 谷歌有限责任公司 It is the method for the mobile layout of vertical screen by transverse screen Video Quality Metric
WO2018184408A1 (en) * 2017-04-05 2018-10-11 中兴通讯股份有限公司 Video recording method and device
CN107707954A (en) * 2017-10-27 2018-02-16 北京小米移动软件有限公司 Video broadcasting method and device
WO2019080913A1 (en) * 2017-10-27 2019-05-02 腾讯科技(深圳)有限公司 Video processing method, computer device and storage medium
WO2019127868A1 (en) * 2017-12-29 2019-07-04 广州优视网络科技有限公司 Screen orientation switching method, device, and terminal
CN108347647A (en) * 2018-02-12 2018-07-31 深圳创维-Rgb电子有限公司 Video picture displaying method, device, television set and storage medium
CN108650542A (en) * 2018-05-09 2018-10-12 腾讯科技(深圳)有限公司 Generate vertical screen video flowing, the method for image procossing, electronic equipment and video system
CN110691259A (en) * 2019-11-08 2020-01-14 北京奇艺世纪科技有限公司 Video playing method, system, device, electronic equipment and storage medium
CN110839174A (en) * 2019-12-02 2020-02-25 广州酷狗计算机科技有限公司 Image processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112333513A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN108053381B (en) Dynamic tone mapping method, mobile terminal and computer-readable storage medium
US11586345B2 (en) Method and apparatus for interaction control of display page
CN110996175A (en) Method, device and storage medium for controlling horizontal and vertical screen operation of television
CN111897507B (en) Screen projection method and device, second terminal and storage medium
CN111368934A (en) Image recognition model training method, image recognition method and related device
CN106911943B (en) Video display method and device and storage medium
CN110009712B (en) Image-text typesetting method and related device thereof
CN110852938B (en) Display picture generation method, device and storage medium
CN112637842B (en) Screen projection equipment connection method, system, equipment and storage medium
US9514718B2 (en) Information processing system, information processing apparatus, and information processing method
CN101754433A (en) Method for displaying file content in mobile terminal and mobile terminal
US11810529B2 (en) Screen color gamut control method, electronic device and storage medium
CN112333513B (en) Method, equipment and storage medium for creating vertical screen video library
CN111190634B (en) Layout information processing method and device and electronic equipment
CN112799622A (en) Application control method and device and electronic equipment
CN112328193A (en) Multi-terminal screen combination method, device, equipment and computer storage medium
CN110602189B (en) File downloading method, server and electronic equipment
CN115100492B (en) Yolov3 network training and PCB surface defect detection method and device
CN114816308B (en) Information partition display method and related equipment
CN107950012A (en) Communication equipment, control method and program
CN114724522A (en) Method and device for adjusting backlight brightness of display device, display device and medium
CN109636922A (en) A kind of method and apparatus of the content of augmented reality for rendering
CN108024032A (en) Image enhancement processing method, TV, server and computer-readable recording medium
CN109033297B (en) Image display method and mobile terminal
CN112363656A (en) Display method, electronic device and readable storage medium

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
GR01 Patent grant
GR01 Patent grant