Video transmission method and device and electronic equipment
The collaborative transmission of video fragments by base stations and terminals solves the problem of low video transmission efficiency in high-concurrency scenarios, achieves a smooth video playback experience, and reduces latency and costs.
Patent Information
- Application Number
- CN202510896050.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-05
AI Technical Summary
Current short video platforms suffer from bandwidth waste and high latency under high concurrent traffic conditions, resulting in low video transmission efficiency and an inability to guarantee smooth playback on terminals.
By sending video identification information to the base station to request video fragments, and using the base station's global resource scheduling capabilities to prioritize the transmission of key fragments, and at the same time using the near-field network between terminals to coordinate the transmission of fragments, a complete video is synthesized.
It reduces video loading delay and improves video transmission efficiency and smoothness, especially reduces base station pressure in high-concurrency scenarios and saves operators' traffic costs.
Smart Images

Figure CN120602722A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a video transmission method, device and electronic equipment. Background Art
[0002] At present, short videos have become people's main entertainment activities. The speed of electronic devices and mobile networks has laid a solid foundation for their dissemination, and the algorithm recommendation mechanism of social media platforms has helped the rapid spread of high-quality content.
[0003] Current short video platforms face technical challenges. High concurrent traffic in popular content scenarios can easily cause base station congestion. Traditional transmission solutions that rely on content delivery networks (CDNs) and single base stations suffer from bandwidth waste and high latency, making it impossible to guarantee smooth video playback on devices.
[0004] Therefore, the current transmission efficiency of video is low. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a video transmission method, device and electronic device that can solve the problem of low video transmission efficiency.
[0006] In a first aspect, an embodiment of the present application provides a video transmission method, the method comprising:
[0007] Sending first request information to a base station, where the first request information includes video identification information of a first video;
[0008] receiving a first video segment sent by the base station, where the first video segment is determined by the base station according to the video identification information after receiving the first request information;
[0009] receiving a second video segment sent by a second terminal, where a distance between the first terminal and the second terminal is less than a distance threshold, and the second video segment is determined by the second terminal according to the video identification information after receiving the first request information;
[0010] The first video is synthesized according to the first video segment and the second video segment.
[0011] In a second aspect, an embodiment of the present application provides a video transmission device, the device comprising:
[0012] A sending module, configured to send first request information to a base station, where the first request information includes video identification information of a first video;
[0013] A first receiving module is configured to receive a first video segment sent by the base station, where the first video segment is determined by the base station according to the video identification information after receiving the first request information;
[0014] a second receiving module, configured to receive a second video segment sent by a second terminal, the distance between the first terminal and the second terminal being less than a distance threshold, the second video segment being determined by the second terminal according to the video identification information after receiving the first request information;
[0015] A synthesis module is used to synthesize the first video according to the first video segment and the second video segment.
[0016] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0020] In an embodiment of the present application, the first terminal sends a first request message to the base station, where the first request message includes video identification information of the first video, so that the base station can determine the first video fragment based on the video identification information after receiving the first request message. Then, the first terminal can receive the first video fragment sent by the base station, and can utilize the global resource scheduling capability of the base station to ensure priority transmission of key fragments. The first terminal also receives the second video fragment sent by the second terminal. The distance between the first terminal and the second terminal is less than the distance threshold. The second video fragment is determined by the second terminal based on the video identification information after receiving the first request message sent by the first terminal or receiving the first request message forwarded by the base station. The first terminal synthesizes the first video based on the first video fragment and the second video fragment, which can reduce video loading delay and ensure smooth video playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is an architectural diagram of a video transmission method provided in an embodiment of the present application;
[0022] Figure 2 This is one of the flow charts of a video transmission method provided in an embodiment of the present application;
[0023] Figure 3 This is the second flowchart of a video transmission method provided in an embodiment of the present application;
[0024] Figure 4 This is the third flow chart of a video transmission method provided in an embodiment of the present application;
[0025] Figure 5 This is one of the structural diagrams of a video transmission device provided in an embodiment of the present application;
[0026] Figure 6 This is the second structural diagram of a video transmission device provided in an embodiment of the present application;
[0027] Figure 7 This is the third structural diagram of a video transmission device provided in an embodiment of the present application;
[0028] Figure 8 This is one of the hardware structure diagrams of the electronic device according to the embodiment of the present application;
[0029] Figure 9 This is the second hardware structure diagram of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the accompanying drawings of the embodiments of the present application to clearly describe the technical solutions of the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0031] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0032] In response to the problems arising in the related art, the embodiments of the present application provide a video transmission method, device and electronic device, which can solve the problem of low video transmission efficiency in the related art.
[0033] The video transmission method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0034] Figure 1 An architectural diagram of a video transmission method provided in an embodiment of the present application.
[0035] The base station 100 receives second request information from a second terminal, where the second request information is used to request obtaining a second video segment; and sends the first video, the second video segment, or the second video to the second terminal, where the first video includes the second video segment and the second video includes the second video segment.
[0036] Receiving first request information from a first terminal, the first request information including video identification information of a first video; determining a first video segment according to the video identification information; and sending the first video segment to the first terminal;
[0037] The video frames in the first video segment include at least one of the following: a semantic body and a scene switching point;
[0038] The second terminal 200 receives first request information from the first terminal, where the first request information includes video identification information of the first video; and sends a second video segment to the first terminal.
[0039] The video frames in the second video segment include at least one of the following: background information, redundant information, and general material;
[0040] Involving the first terminal 300: synthesizing a first video according to the first video segment and the second video segment.
[0041] In an embodiment of the present application, the first terminal sends a first request message to the base station, where the first request message includes video identification information of the first video, so that the base station can determine the first video fragment based on the video identification information after receiving the first request message. Then, the first terminal can receive the first video fragment sent by the base station, and can utilize the global resource scheduling capability of the base station to ensure priority transmission of key fragments. The first terminal also receives the second video fragment sent by the second terminal. The distance between the first terminal and the second terminal is less than the distance threshold. The second video fragment is determined by the second terminal based on the video identification information after receiving the first request message sent by the first terminal or receiving the first request message forwarded by the base station. The first terminal synthesizes the first video based on the first video fragment and the second video fragment, which can reduce video loading delay and ensure smooth video playback.
[0042] Figure 2 A flowchart of a video transmission method provided in an embodiment of the present application.
[0043] like Figure 2As shown, the video transmission method may include steps 210 to 240, and the method is applied to the first terminal, specifically as follows:
[0044] Step 210: Send a first request message to a base station, where the first request message includes video identification information of a first video;
[0045] Video identification information: metadata used to uniquely identify the first video, such as video ID, hash value, feature fingerprint, etc. The base station and terminal device locate and retrieve the corresponding video content or fragment data through the video identification information.
[0046] On the one hand, the first terminal can send a first request message to the base station and broadcast the same request message to the surrounding terminals. Specifically, it can broadcast the same request message to the surrounding terminals through the near-field network, and use the dual channels of the cellular network and the near-field network to expand the request coverage and trigger responses from the base station and surrounding terminals at the same time.
[0047] On the other hand, the first terminal may send first request information to the base station. After receiving the first request information, the base station forwards the first request information to the second terminal.
[0048] Step 220: Receive a first video segment sent by the base station, where the first video segment is determined by the base station according to the video identification information after receiving the first request information;
[0049] Video fragmentation: This refers to the process of dividing a complete video file into multiple data blocks for distributed transmission and storage. Each video fragment can be transmitted independently and reassembled into the complete video on the terminal side.
[0050] After receiving the request, the base station obtains the first video segment of the first video from the local cache or CDN according to the video identifier, and then transmits the first video segment to the first terminal, using the global resource scheduling capability of the base station to ensure priority transmission of key segments.
[0051] Step 230: receiving a second video segment sent by a second terminal, the distance between the first terminal and the second terminal being less than a distance threshold, the second video segment being determined by the second terminal according to the video identification information after receiving the first request information;
[0052] Specifically, the second video segment sent by the second terminal can be received via a near-field network. A near-field network refers to a local area network built based on short-range communication technologies, such as Wi-Fi Direct, Bluetooth, and Near Field Communication (NFC). It is used to enable direct communication between terminal devices without relaying through a base station or the Internet, and has the characteristics of low latency and high bandwidth.
[0053] When the second terminal, that is, the user device that has cached the video nearby, receives the near-field broadcast request, it parses the video identifier and matches the locally cached segment data, and directly transmits the second video segment stored in itself to the first terminal through the near-field network.
[0054] Sharable segments are quickly located using video identifiers and segment indexes, and Wi-Fi Direct's peer-to-peer (P2P) network technology enables high-speed data transmission, reducing base station bandwidth usage. P2P networking is a decentralized network architecture that allows devices within the network to communicate directly and share resources without relying on a central server.
[0055] Step 240: synthesize a first video according to the first video segment and the second video segment.
[0056] The first terminal sorts and verifies the fragments from the base station and surrounding terminals according to the timestamps, serial numbers and other metadata of the fragments, and synthesizes the complete first video through the video reconstruction algorithm to ensure that the fragments from different sources are seamlessly connected on the timeline.
[0057] On the one hand, the cache resources of surrounding terminals are utilized to share the transmission pressure of base stations and reduce repeated data downloads; the high-speed transmission characteristics of near-field networks can reduce video loading delays, especially when base stations are congested; reducing the repeated transmission of popular videos by base stations reduces the traffic costs of operators; direct transmission between terminals does not require occupying cellular network bandwidth, alleviating the pressure on the core network.
[0058] On the other hand, multi-source transmission enables parallel downloading, shortens video startup time, and reduces the freeze rate; in weak network environments, near-field transmission can serve as a supplement to cellular networks to ensure smooth video playback.
[0059] Therefore, through the collaborative transmission mode of base stations and near-field terminals, the limitations of traditional CDN and single base stations have been broken through, and distributed and efficient transmission of popular videos has been achieved. It is especially suitable for high-concurrency scenarios, converting user terminals into edge nodes, reducing network pressure through P2P collaboration, and improving user experience.
[0060] In a possible embodiment, before step 210, the following steps may be further included:
[0061] Determining geographic location information and network status information of the first terminal;
[0062] Determine first fragment identification information and second fragment identification information according to video identification information, geographic location information, and network status information;
[0063] Step 210 may specifically include the following steps:
[0064] Sending first request information including first fragment identification information to the base station;
[0065] This embodiment may further include the following step: sending first request information including second fragment identification information to the second terminal.
[0066] Geographic location information: The real-time location of the first terminal is obtained through GPS, Beidou, Wi-Fi fingerprint or cellular network base station signal.
[0067] Network status information may include: monitoring cellular network signal strength, bandwidth utilization, network latency data, as well as parameters such as the number of devices available in the near-field network and the distance between devices.
[0068] When the cellular network is congested, more fragments are allocated to near-field terminals for transmission; when there are few near-field network devices or the transmission rate is low, base stations are relied upon for supplementary transmission.
[0069] A scheduling algorithm or machine learning model is used to dynamically generate the optimal shard allocation plan based on real-time data. For example, the first shard identification information specifies the set of shards transmitted by the base station; the second shard identification information specifies the set of shards transmitted by the near-field terminal.
[0070] The first fragment identification information and the second fragment identification information are determined according to the video identification information, the geographic location information and the network status information, and can provide a decision basis for fragment scheduling by combining the spatial and network environment data.
[0071] For example, in high-density crowd scenarios, such as concerts or sports events, the base station only transmits key fragments by utilizing the cache resources of a large number of surrounding terminals, reducing the base station load while ensuring the smoothness of the live broadcast.
[0072] By integrating geographic location and network status information, refined control of shard scheduling is achieved, which not only improves transmission efficiency in high-concurrency scenarios, but also shares the pressure on base stations through collaboration between terminals, providing key technical support for building a low-cost, highly flexible short video transmission network.
[0073] In a possible embodiment, before step 230, the following steps may be further included:
[0074] Determine a first hash value corresponding to the second video fragment sent by the second terminal;
[0075] Sending query information to the blockchain node based on the second video fragment, where the query information is used to query the second hash value;
[0076] When the first hash value is consistent with the second hash value, receiving the second video segment sent by the second terminal;
[0077] When the first hash value is inconsistent with the second hash value, the first request information is resent.
[0078] A hash value is a fixed-length string generated by running a hash function on video segments. It is unique and irreversible. The same video segment will have the same hash value after being hashed. Even slight differences in the data will result in a completely different hash value. This acts like a "fingerprint" for the data, and can be used to verify its integrity and consistency.
[0079] Blockchain nodes: Blockchain is a decentralized distributed ledger technology, and blockchain nodes are devices or servers that participate in the blockchain network. Each node stores a complete or partial copy of the blockchain, and data is verified and synchronized between nodes through a consensus mechanism. In the embodiments of this application, blockchain nodes are used to store and query hash values corresponding to video segments, providing a reliable basis for verification.
[0080] After the first terminal receives the second video segment claimed by the second terminal, it first applies a hash function to the second video segment to calculate the corresponding first hash value in order to obtain a local "fingerprint" identification of the second video segment for subsequent comparison with the trusted hash value.
[0081] The first terminal sends query information related to the second video segment to the blockchain node, requesting the second hash value corresponding to the video segment. Due to the tamper-proof and decentralized nature of the blockchain, the hash value stored in it is regarded as a reliable original data identifier.
[0082] After the first terminal obtains the second hash value returned by the blockchain node, it compares it with the previously calculated first hash value. If the two match, it indicates that the video segment sent by the second terminal has not been tampered with and the data is complete and reliable, and the first terminal receives the segment. If they do not match, it indicates that the segment may have data errors, tampering, or transmission errors. In this case, the first terminal resends the first request information to re-request the second video segment. Specifically, the first terminal can resend the first request information to the second terminal, the first terminal can also resend the first request information to the base station, or the base station can re-forward the first request information to the second terminal.
[0083] Hash value comparison and blockchain trusted verification can effectively prevent video fragments from being maliciously tampered with during transmission or data corruption due to network problems, ensuring that the user's final synthesized video content is accurate and avoiding screen distortion, freezes or erroneous content during playback.
[0084] When an anomaly in the fragmented data is detected, the re-request mechanism is automatically triggered to reduce video synthesis failures caused by incorrect fragmentation, reduce user waiting time and repeated operations, and improve the smoothness and success rate of video transmission and playback.
[0085] By introducing blockchain technology for verification and utilizing its decentralized and tamper-resistant characteristics, we can resist security threats such as man-in-the-middle attacks and data forgery, build a safer environment for short video transmission, and enhance users' trust in the platform.
[0086] In an embodiment of the present application, the first terminal sends a first request message to the base station, where the first request message includes video identification information of the first video, so that the base station can determine the first video segment based on the video identification information after receiving the first request message. Then, the first terminal can receive the first video segment sent by the base station, and can use the global resource scheduling capability of the base station to ensure the priority transmission of the first video segment. The first terminal receives the second video segment sent by the second terminal, and the distance between the first terminal and the second terminal is less than the distance threshold. The second video segment is determined by the second terminal based on the video identification information after receiving the first request message. By receiving the second video segment sent by the second terminal, high-speed data transmission can be achieved, reducing the occupancy of the base station bandwidth. According to the first video segment and the second video segment, the first video required by the first terminal is synthesized, which can reduce the video loading delay and improve the video transmission efficiency.
[0087] Figure 3 A flowchart of a video transmission method provided in an embodiment of the present application.
[0088] like Figure 3 As shown, the video transmission method may include steps 310 to 330, which are applied to the server, as shown below:
[0089] Step 310: Obtain a first video;
[0090] The server obtains the complete first video from the content source as the original data for subsequent processing to ensure the legality and integrity of the video content.
[0091] Step 320: Parse the first video to obtain first segment identification information indicating the first video segment and second segment identification information indicating the second video segment; the video frames in the first video segment include at least one of the following: a semantic subject and a scene switching point; and the video frames in the second video segment include at least one of the following: background information, redundant information, and general material.
[0092] Semantic subject: refers to the object or element that carries the core semantics in the video content, such as people, animals, key objects, etc., which is the core content for the audience to understand the video theme, such as the anchor in a news video and the protagonist in a movie clip.
[0093] Scene switching point: refers to the time node where different scenes or shots in the video switch, such as switching from an indoor scene to an outdoor scene, or from a close-up to a long shot. It is used to mark the structural boundaries of the video content to facilitate preserving content integrity when segmenting.
[0094] Background information: refers to the environmental elements surrounding the semantic subject in the video, such as natural landscapes, interior furnishings, crowds, etc., which serve to set off the subject but are not the core expression content.
[0095] Redundant information: refers to content in the video that is repeated or can be inferred from other data, such as consecutive similar images and non-key frame details. It can be appropriately compressed or omitted during transmission to save bandwidth.
[0096] Universal materials: refers to reusable standardized content, such as universal background sounds, special effects clips, and public copyright images. Such materials may be shared in different videos and are reusable.
[0097] The server uses video parsing technology to identify semantic entities and scene transitions in the video, and then groups video frames containing these key elements into the first video segment. For example, segments of the anchor's speech and key frames of the protagonist's actions are grouped into the first segment, ensuring that users prioritize the information necessary to understand the video.
[0098] Non-critical content is divided into the second video segment. For example, the background crowd in a meeting scene and non-main scenery in a natural scenery clip are divided into the second segment. Such content can be compressed or delayed to a certain extent.
[0099] Each fragment is assigned a unique identifier, which is used by the base station and terminal to identify the content type and priority of the fragment. For example, the first fragment is marked as "core-001" and the second fragment is marked as "auxiliary-002" to facilitate the priority transmission of the core fragment during subsequent scheduling.
[0100] Step 330: Send the first video, the first slice identification information, the second slice identification information and core metadata to the base station. The core metadata includes: resolution, frame rate, timestamp and encoding format.
[0101] Core metadata: Key data describing the basic properties of a video, including:
[0102] Resolution: The pixel size of the video screen, such as 1080P and 4K, determines the image quality and clarity;
[0103] Frame rate: The number of frames displayed per second, such as 24fps and 60fps, affects the smoothness of the action;
[0104] Timestamp: identifies the time sequence of video frames and is used for time synchronization during fragment reassembly;
[0105] Coding format: Video compression algorithm standard, such as H.264, affects file size and playback compatibility.
[0106] The server packages the complete video, segment identifiers, and core metadata and sends them to the base station.
[0107] The first video is stored in the base station as a backup, allowing the terminal to request complete data when near-field transmission fails; the fragment identifier is used to inform the base station of the content attributes of each fragment, so that the base station can dynamically adjust the transmission strategy according to the terminal network status; the core metadata is used to provide the base station and terminal with basic video parameters to ensure format compatibility when the fragments are reassembled.
[0108] The core content is transmitted first through the first video segment, so that users can quickly obtain key information of the video even when the network is congested. The auxiliary content is transmitted through the second video segment and can be delayed by using the near-field network or idle bandwidth to reduce the preemption of the core link and improve the overall smoothness.
[0109] The redundant information and common material in the second video segment can be shared across multiple devices. For example, when users in the same area transmit the same background clip, they only need to download it once, reducing bandwidth waste from repeated transmissions at the base station. Lower bitrate encoding or compression strategies are used for non-critical content, further reducing the amount of transmitted data and saving operators data costs.
[0110] The base station dynamically adjusts the transmission ratio of the core video segment to the auxiliary video segment based on the segment identifier and the terminal network status. For example, in a scenario with dense near-field terminals, the base station only transmits the first video segment, and the second video segment is transmitted through P2P between terminals to reduce its own load.
[0111] Core metadata ensures that different devices parse video segments using a unified standard, preventing playback anomalies caused by device differences. Users can first receive the core content of the first video segment and begin playback, while the auxiliary content of the second video segment is asynchronously loaded in the background, achieving a "watch while loading" progressive experience, especially suitable for weak network conditions or mobile scenarios.
[0112] In an embodiment of the present application, the server transmits video content in a graded manner according to importance, and combines the dynamic scheduling capabilities of the base station to maximize the use of network resources and terminal caching capabilities while ensuring that users obtain core information. It can balance transmission efficiency and user experience, and is particularly suitable for high-concurrency short video transmission scenarios.
[0113] In a possible embodiment, obtaining historical user behavior data corresponding to terminals within a preset geographical area;
[0114] Predicting the second video segment based on the user's historical behavior data;
[0115] The second video segment is pushed to an edge node, where the edge node includes an edge server and a second terminal carried by a cell base station.
[0116] Preset geographic area: refers to a specific spatial range defined based on business needs, used to locate user groups with similar network environments or behavioral characteristics, such as "within 500 meters of a certain community."
[0117] User historical behavior data: records the user's operation trajectory and preference data on the short video platform, which may include:
[0118] Content interaction data: viewing time, likes, comments, shares, and repeat viewing times;
[0119] Device and network data: terminal model, network type, access base station ID;
[0120] Spatiotemporal data: the time and geographic location coordinates of the user watching the video.
[0121] Edge nodes: Computing and storage nodes deployed at the edge of the network, close to user terminals to reduce transmission latency. They include:
[0122] Cell site edge server: A small server integrated into a cellular base station that stores popular content segments.
[0123] Through user authorization or platform data collection mechanisms, historical user behavior data within a specific area is collected, such as video viewing history over the past seven days. This historical user behavior data must be anonymized, and data from devices located within the target area must be filtered out, for example, through base station positioning or GPS coordinate matching.
[0124] Count the popular video IDs and playback time periods of the most frequently viewed videos within the target area to identify common demand. For example, users in a certain residential area frequently watch "local life" videos in the evening, with background footage often featuring street scenes from the residential area. Extract the features of the secondary video segments from these videos, such as recurring clips of non-core scenes like shopping mall lobbies and park trails. Combined with time series forecasting, predict popular segments in future time periods, such as during peak hours in the morning and evening on weekdays, to predict increased viewing demand for certain videos.
[0125] Select online terminals with sufficient storage space in the area as "caching nodes" and transfer the shards to their local storage via near-field or cellular networks. For example, a shard of the "interior environment" of a shopping mall can be pushed to the mobile phones of users connected to Wi-Fi in the mall, allowing other customers to directly access it when they visit.
[0126] Therefore, by anticipating regional user needs, non-core but frequently used second segments are pre-stored on edge nodes, avoiding delays caused by insufficient base station bandwidth when users request them. For example, at a concert, audience background segments are pushed in advance to surrounding base stations and audience members' phones. Local storage at edge nodes eliminates cellular network reliance on segment retrieval. In high-density scenarios with congested base stations, users can directly access pre-stored second video segments from nearby terminals via the near-field network.
[0127] In an embodiment of the present application, the server obtains a complete first video from a content source as raw data for subsequent processing. The server identifies semantic subjects and scene switching points in the video through video parsing technology, divides video frames containing these key elements into first video segments, and non-key content into second video segments. Unique identification information is assigned to each segment to facilitate base stations and terminals to identify the content type of the segment. The first video, first segment identification information, second segment identification information and core metadata are sent to the base station. The core metadata can ensure that different terminals parse the segments with a unified standard.
[0128] By leveraging the collaboration between edge computing and user terminals, the storage and transmission paths of non-core content are laid out in advance. This is suitable for scenarios with obvious regional aggregation characteristics, reducing network costs while providing users with a smoother, low-latency short video viewing experience.
[0129] Figure 4 A flowchart of a video transmission method provided in an embodiment of the present application.
[0130] like Figure 4 As shown, the video transmission method may include steps 410 to 430, and the method is applied to a base station, specifically as follows:
[0131] Step 410: Receive first request information from a first terminal, where the first request information includes video identification information of a first video;
[0132] Specifically, the base station may monitor the request information broadcast by the first terminal through the near-field network and parse the video identification information therein.
[0133] Step 420: determining a first video segment according to the video identification information;
[0134] The base station checks the first video segment in the local cache according to the video identification information.
[0135] Step 430: Send the first video segment to the first terminal, so that the first terminal can synthesize the first video based on the first video segment and the second video segment, where the second video segment is sent by the second terminal to the first terminal.
[0136] The determined first video segment is directly transmitted to the first terminal, thereby reducing the data transmission volume of the base station.
[0137] In an embodiment of the present application, the base station receives a first request message from a first terminal including video identification information of a first video, determines a first video segment based on the video identification information, and transmits the determined first video segment to the first terminal, so that the first terminal can synthesize the first video based on the first video segment sent by the base station and the second video segment sent by the second terminal, thereby reducing the data transmission volume of the base station.
[0138] The video transmission method provided in the embodiment of the present application can be executed by a video transmission device. In the embodiment of the present application, the video transmission device provided in the embodiment of the present application is described by taking the video transmission method executed by the video transmission device as an example.
[0139] Figure 5 is a block diagram of a video transmission device provided in an embodiment of the present application, the device 500 includes:
[0140] A first sending module 510 is configured to send a first request message to a base station, where the first request message includes video identification information of a first video;
[0141] A first receiving module 520 is configured to receive a first video segment sent by a base station, where the first video segment is determined by the base station according to the video identification information after receiving the first request information;
[0142] A second receiving module 530 is configured to receive a second video segment sent by a second terminal, where the distance between the first terminal and the second terminal is less than a distance threshold, and the second video segment is determined by the second terminal according to the video identification information after receiving the first request information;
[0143] The synthesis module 540 is configured to synthesize the first video according to the first video segment and the second video segment.
[0144] In a possible embodiment, the apparatus 500 may further include:
[0145] a determination module, configured to determine a first hash value corresponding to the second video segment sent by the second terminal;
[0146] The first sending module 510 is further configured to send query information to the blockchain node based on the second video segment, where the query information is used to query the second hash value;
[0147] The first sending module 510 is further configured to receive the second video segment sent by the second terminal when the first hash value is consistent with the second hash value;
[0148] The first sending module 510 is further configured to resend the first request information when the first hash value is inconsistent with the second hash value.
[0149] In a possible embodiment, the determining module is further configured to determine geographic location information and network status information of the first terminal;
[0150] The determination module is further configured to determine first fragment identification information and second fragment identification information according to the video identification information, the geographic location information, and the network status information;
[0151] The first sending module 510 is specifically configured to send a first request message including the first fragment identification information to the base station;
[0152] The first sending module 510 is further configured to send first request information including the second fragment identification information to the second terminal.
[0153] In an embodiment of the present application, the first terminal sends a first request message to the base station, where the first request message includes video identification information of the first video, so that the base station can determine the first video segment based on the video identification information after receiving the first request message. Then, the first terminal can receive the first video segment sent by the base station, and can use the global resource scheduling capability of the base station to ensure the priority transmission of the first video segment. The first terminal receives the second video segment sent by the second terminal, and the distance between the first terminal and the second terminal is less than the distance threshold. The second video segment is determined by the second terminal based on the video identification information after receiving the first request message. By receiving the second video segment sent by the second terminal, high-speed data transmission can be achieved, reducing the occupancy of the base station bandwidth. According to the first video segment and the second video segment, the first video required by the first terminal is synthesized, which can reduce the video loading delay and improve the video transmission efficiency.
[0154] Figure 6 6 is a block diagram of a video transmission device provided in an embodiment of the present application. The device 600 includes:
[0155] An acquisition module 610 is configured to acquire a first video;
[0156] A parsing module 620 is configured to parse the first video to obtain first segment identification information indicating a first video segment and second segment identification information indicating a second video segment; wherein the video frames in the first video segment include at least one of the following: a semantic subject and a scene switching point; and the video frames in the second video segment include at least one of the following: background information, redundant information, and general material.
[0157] The second sending module 630 is configured to send the first video, the first fragment identification information, the second fragment identification information, and core metadata to a base station. The core metadata includes resolution, frame rate, timestamp, and encoding format.
[0158] In a possible embodiment, the acquisition module 610 is further configured to acquire user historical behavior data corresponding to a terminal within a preset geographical area;
[0159] The apparatus 600 may further include:
[0160] A prediction module, configured to predict a second video segment based on the user historical behavior data;
[0161] The push module is used to push the second video segment to an edge node, and the edge node includes: an edge server carried by a cell base station and a second terminal.
[0162] In an embodiment of the present application, the server obtains a complete first video from a content source as raw data for subsequent processing. The server identifies semantic subjects and scene switching points in the video through video parsing technology, divides video frames containing these key elements into first video segments, and non-key content into second video segments. Unique identification information is assigned to each segment to facilitate base stations and terminals to identify the content type of the segment. The first video, first segment identification information, second segment identification information and core metadata are sent to the base station. The core metadata can ensure that different terminals parse the segments with a unified standard.
[0163] Figure 7 is a block diagram of a video transmission device provided in an embodiment of the present application. The device 700 includes:
[0164] The third receiving module 710 is configured to receive first request information from a first terminal, where the first request information includes video identification information of a first video;
[0165] A determination module 720 is configured to determine a first video segment according to the video identification information;
[0166] The third sending module 730 is configured to send the first video segment to the first terminal, so that the first terminal can synthesize the first video according to the first video segment and a second video segment, where the second video segment is sent by the second terminal to the first terminal.
[0167] In an embodiment of the present application, the base station receives a first request message from a first terminal including video identification information of a first video, determines a first video segment based on the video identification information, and transmits the determined first video segment to the first terminal, so that the first terminal can synthesize the first video based on the first video segment sent by the base station and the second video segment sent by the second terminal, thereby reducing the data transmission volume of the base station.
[0168] The information display device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or a device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not make specific limitations.
[0169] The information display device of the embodiment of the present application may be a device having an action system. The action system may be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiment of the present application.
[0170] The information display device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.
[0171] Alternatively, as Figure 8 As shown, an embodiment of the present application also provides an electronic device 810, including a processor 811, a memory 812, and a program or instruction stored in the memory 812 and executable on the processor 811. When the program or instruction is executed by the processor 811, each step of any of the above-mentioned information display method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0172] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0173] Figure 9 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0174] The electronic device 900 includes but is not limited to components such as a radio frequency unit 901 , a network module 902 , an audio output unit 903 , an input unit 904 , a sensor 905 , a display unit 906 , a user input unit 907 , an interface unit 908 , a memory 909 , and a processor 910 .
[0175] Those skilled in the art will understand that the electronic device 900 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0176] The network module 902 is configured to send a first request message to the base station, where the first request message includes video identification information of the first video;
[0177] The network module 902 is further configured to receive a first video segment sent by the base station, where the first video segment is determined by the base station according to the video identification information after receiving the first request information;
[0178] The network module 902 is further configured to receive a second video segment sent by a second terminal, where the distance between the first terminal and the second terminal is less than a distance threshold, and the second video segment is determined by the second terminal according to the video identification information after receiving the first request information;
[0179] The processor 910 is configured to synthesize a first video according to the first video segment and the second video segment.
[0180] Optionally, the processor 910 is further configured to determine a first hash value corresponding to the second video segment sent by the second terminal;
[0181] The network module 902 is further configured to send query information to a blockchain node based on the second video segment, where the query information is used to query the second hash value;
[0182] The network module 902 is further configured to receive the second video segment sent by the second terminal when the first hash value is consistent with the second hash value;
[0183] The network module 902 is further configured to resend the first request information when the first hash value is inconsistent with the second hash value.
[0184] Optionally, the processor 910 is further configured to determine geographic location information and network status information of the first terminal;
[0185] The processor 910 is further configured to determine first fragment identification information and second fragment identification information according to the video identification information, the geographic location information, and the network status information;
[0186] The network module 902 is further configured to send a first request message including the first fragment identification information to the base station;
[0187] The network module 902 is further configured to send first request information including the second fragment identification information to the second terminal.
[0188] In an embodiment of the present application, the first terminal sends a first request message to the base station, where the first request message includes video identification information of the first video, so that the base station can determine the first video segment based on the video identification information after receiving the first request message. Then, the first terminal can receive the first video segment sent by the base station, and can use the global resource scheduling capability of the base station to ensure the priority transmission of the first video segment. The first terminal receives the second video segment sent by the second terminal, and the distance between the first terminal and the second terminal is less than the distance threshold. The second video segment is determined by the second terminal based on the video identification information after receiving the first request message. By receiving the second video segment sent by the second terminal, high-speed data transmission can be achieved, reducing the occupancy of the base station bandwidth. According to the first video segment and the second video segment, the first video required by the first terminal is synthesized, which can reduce the video loading delay and improve the video transmission efficiency.
[0189] Alternatively, the network module 902 is configured to obtain a first video;
[0190] Processor 910 is configured to parse the first video to obtain first segment identification information indicating a first video segment and second segment identification information indicating a second video segment; video frames in the first video segment include at least one of the following: a semantic subject and a scene switching point; and video frames in the second video segment include at least one of the following: background information, redundant information, and general material.
[0191] The network module 902 is further configured to send the first video, the first fragment identification information, the second fragment identification information, and core metadata to a base station. The core metadata includes resolution, frame rate, timestamp, and encoding format.
[0192] Optionally, the network module 902 is further configured to obtain user historical behavior data corresponding to terminals within a preset geographical area;
[0193] The processor 910 is further configured to predict a second video segment based on the user historical behavior data;
[0194] The network module 902 is further configured to push the second video segment to an edge node, where the edge node includes an edge server and a second terminal carried by a cell base station.
[0195] In an embodiment of the present application, the server obtains a complete first video from a content source as raw data for subsequent processing. The server identifies semantic subjects and scene switching points in the video through video parsing technology, divides video frames containing these key elements into first video segments, and non-key content into second video segments. Unique identification information is assigned to each segment to facilitate base stations and terminals to identify the content type of the segment. The first video, first segment identification information, second segment identification information and core metadata are sent to the base station. The core metadata can ensure that different terminals parse the segments with a unified standard.
[0196] Alternatively, the network module 902 is further configured to receive first request information from a first terminal, where the first request information includes video identification information of a first video;
[0197] The processor 910 is further configured to determine a first video segment according to the video identification information;
[0198] The network module 902 is further configured to send the first video segment to the first terminal, so that the first terminal can synthesize the first video based on the first video segment and a second video segment, where the second video segment is sent by the second terminal to the first terminal.
[0199] In an embodiment of the present application, the base station receives a first request message from a first terminal including video identification information of a first video, determines a first video segment based on the video identification information, and transmits the determined first video segment to the first terminal, so that the first terminal can synthesize the first video based on the first video segment sent by the base station and the second video segment sent by the second terminal, thereby reducing the data transmission volume of the base station.
[0200] It should be understood that in an embodiment of the present application, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of a static picture or video image obtained by an image capture device (such as a camera) in a video image capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an action stick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and action systems. The processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 910.
[0201] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0202] Processor 910 may include one or more processing units. Optionally, processor 910 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 910.
[0203] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned information display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0204] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0205] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned information display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0206] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0207] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned information display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0208] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0209] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0210] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A video transmission method, characterized in that: Applied to a first terminal, the method includes: Sending first request information to a base station, where the first request information includes video identification information of a first video; receiving a first video segment sent by the base station, where the first video segment is determined by the base station according to the video identification information after receiving the first request information; receiving a second video segment sent by a second terminal, where a distance between the first terminal and the second terminal is less than a distance threshold, and the second video segment is determined by the second terminal according to the video identification information after receiving the first request information; The first video is synthesized according to the first video segment and the second video segment.
2. The method according to claim 1, characterized in that Before receiving the second video segment sent by the second terminal, the method further includes: Determine a first hash value corresponding to the second video segment sent by the second terminal; Sending query information to the blockchain node based on the second video fragment, where the query information is used to query the second hash value; When the first hash value is consistent with the second hash value, receiving the second video segment sent by the second terminal; When the first hash value is inconsistent with the second hash value, the first request information is resent.
3. The method according to claim 1, characterized in that Before sending the first request information to the base station, the method further includes: Determining geographic location information and network status information of the first terminal; Determine first fragment identification information and second fragment identification information according to the video identification information, the geographic location information, and the network status information; The sending first request information to the base station includes: Sending first request information including the first fragment identification information to the base station; The method further includes: sending first request information including the second fragment identification information to the second terminal.
4. A video transmission method, characterized in that: Applied to the server, the method includes: Get the first video; Parsing the first video to obtain first segment identification information indicating a first video segment and second segment identification information indicating a second video segment; wherein the video frames in the first video segment include at least one of the following: a semantic subject and a scene switching point; and the video frames in the second video segment include at least one of the following: background information, redundant information, and general material; The first video, the first fragment identification information, the second fragment identification information and core metadata are sent to a base station, where the core metadata includes: resolution, frame rate, timestamp and encoding format.
5. The method according to claim 4, characterized in that The method further comprises: Obtain user historical behavior data corresponding to terminals in a preset geographical area; Predicting a second video segment based on the user historical behavior data; The second video segment is pushed to an edge node, where the edge node includes an edge server and a second terminal carried by a cell base station.
6. A video transmission method, characterized in that: Applied to a base station, the method includes: receiving first request information from a first terminal, where the first request information includes video identification information of a first video; Determine a first video segment according to the video identification information; The first video segment is sent to the first terminal so that the first terminal can synthesize the first video according to the first video segment and a second video segment, where the second video segment is sent by the second terminal to the first terminal.
7. A video transmission device, characterized in that: Applied to a first terminal, the apparatus includes: A first sending module, configured to send first request information to a base station, where the first request information includes video identification information of a first video; A first receiving module is configured to receive a first video segment sent by the base station, where the first video segment is determined by the base station according to the video identification information after receiving the first request information; a second receiving module, configured to receive a second video segment sent by a second terminal, the distance between the first terminal and the second terminal being less than a distance threshold, the second video segment being determined by the second terminal according to the video identification information after receiving the first request information; A synthesis module is used to synthesize the first video according to the first video segment and the second video segment.
8. A video transmission device, characterized in that: Applied to the server, the device includes: An acquisition module, configured to acquire a first video; a parsing module configured to parse the first video to obtain first segment identification information indicating a first video segment and second segment identification information indicating a second video segment; wherein the video frames in the first video segment include at least one of the following: a semantic subject and a scene switching point; and the video frames in the second video segment include at least one of the following: background information, redundant information, and general material; The second sending module is used to send the first video, the first fragment identification information, the second fragment identification information and core metadata to a base station, where the core metadata includes: resolution, frame rate, timestamp and encoding format.
9. A video transmission device, characterized in that: Applied to a base station, the device includes: A third receiving module is configured to receive first request information from a first terminal, where the first request information includes video identification information of a first video; A determination module, configured to determine a first video segment according to the video identification information; The third sending module is used to send the first video segment to the first terminal, so that the first terminal can synthesize the first video according to the first video segment and a second video segment, where the second video segment is sent by the second terminal to the first terminal.
10. An electronic device, characterized in that: The electronic device includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the video transmission method according to any one of claims 1 to 6 is implemented.