IP Library Granted Patent US 12,367,560
Granted Patent B2
US 12,367,560 · App. 17/819,861 · Granted Jul 22, 2025

Video transmission method, electronic device and computer readable medium

Inventors: Yujia Wang (Beijing, CN); Shu Liu (Beijing, CN); Gao Liu (Beijing, CN); Shu Tao (Beijing, CN); Jie Yang (Beijing, CN)
Assignee: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
G06T5/77G06T5/50G06T7/70G06V20/46
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,367,560
App. No.
17/819,861
Granted
Jul 22, 2025
Kind
B2
Abstract

The present disclosure relates to a video transmission method, an electronic device and a computer readable medium. The method is applied to a first application installed in a first terminal, where the first terminal is further installed with a second application. The method includes: acquiring a current video frame; performing special effect processing on the current video frame according to a received special effect setting instruction, and generating a target video frame; and sending the target video frame to the second application. Thus, the first application can be matched with any second application that needs to use a special effect processing function, and the second application can be enabled to obtain a special effect-processed video on the premise that the second application does not need to be redeveloped.

Claims (81)

1. A video transmission method, applied to a first application installed in a first terminal, wherein the first terminal is further installed with multiple second applications, and the method comprises:

acquiring a current video frame;

updating a set of special effects to be superimposed according to a received special effect setting instruction, performing special effect processing on the current video frame according to the updated set of special effects to be superimposed, and generating a target video frame to meet requirements of special effect processing of the multiple second applications, wherein the special effect setting instruction is input by a user during an operation of the first application through a special effect setting interface provided by the first application comprising a preview area and a special effect setting area, and multiple special effect setting components are set in the special effect setting area, wherein a specific form of the set of special effects to be superimposed is a form of an array; and

sending the target video frame to each of the second applications;

wherein the method further comprises:

triggering the first terminal to create a virtual device; and

sending the target video frame to the virtual device, so that the virtual device sends the target video frame to each of the second applications;

creating a plug-in, so that each of the second applications creates a plug-in object corresponding to each of the second applications by loading the plug-in,

wherein the virtual device sends the target video frame to each of the second applications via the corresponding plug-in object;

wherein the sending the target video frame to the virtual device comprises:

decomposing the target video frame into multiple subframes;

storing the multiple subframes in a shared memory, so that the virtual device reads the multiple subframes from the shared memory;

wherein the virtual device is used to combine multiple subframes read to obtain the target video frame and send the target video frame to each of the second applications.

2. The method according to claim 1 , wherein the performing the special effect processing on the current video frame according to the updated set of special effects to be superimposed, and generating the target video frame comprises:

identifying a target object in the current video frame;

determining at least one target special effect to be superimposed from the updated set of special effects to be superimposed; and

superimposing the at least one target special effect to be superimposed with the target object, and generating the target video frame.

3. The method according to claim 2 , wherein the determining at least one target special effect to be superimposed from the updated set of special effects to be superimposed comprises:

determining whether there are one or more groups of mutually exclusive sub special effects in the updated set of special effects to be superimposed according to special effect parameters of sub special effect to be superimposed in the updated set of special effects to be superimposed;

in response to determining that there are the one or more groups of mutually exclusive sub special effects, for each group of mutually exclusive sub special effects, selecting one of the mutually exclusive sub special effects as an enabled sub special effect according to priority parameters in special effect parameters of the mutually exclusive sub special effects;

determining the enabled sub special effect as the sub special effect to be superimposed; and

determining the at least one target special effect to be superimposed according to the special effect parameters of the determined sub special effect to be superimposed.

4. The method according to claim 1 , wherein

each of the second applications is used to send the target video frame to at least one second terminal immediately after receiving the target video frame,

wherein the at least one second terminal receives and displays the target video frame through the second application.

5. The method according to claim 1 , wherein the plug-in object corresponding to each of the second applications comprises an identifier of the second application, and plug-in objects corresponding to different second applications are different, so that the virtual device sends the target video to each of the second applications corresponding to each plug-in object through each plug-in object.

6. The method according to claim 1 , further comprises:

receiving video acquisition requests sent from the second applications; and

wherein the current video frame is a current video frame in running processes of the second applications.

7. The method according to claim 1 , wherein each special effect setting component comprises multiple sub special effect setting components, in a case where it is detected that the user clicks a sub special effect setting component, the received special effect setting instruction comprises a special effect adding instruction, and the updating the set of special effects to be superimposed according to the received special effect setting instruction comprises:

adding special effect parameters of a sub special effect corresponding to the sub special effect setting component into the set of special effects to be superimposed according to the special effect adding instruction;

after adding the special effect parameters of the sub special effect corresponding to the sub special effect setting component into the set of special effects to be superimposed, in a case where it is detected that the user clicks the sub special effect setting component, the received special effect setting instruction comprises a special effect cancellation instruction, and the updating the set of special effects to be superimposed according to the received special effect setting instruction comprises:

deleting the special effect parameters of the sub special effect corresponding to the sub special effect setting component from the set of special effects to be superimposed according to the special effect cancellation instruction.

8. The method according to claim 7 , wherein the special effect parameters of the sub special effect comprise mutually exclusive parameters, priority parameters and addition time parameters, wherein the mutually exclusive parameters comprise identifications of other sub special effects mutually exclusive with the sub special effect.

9. A non-transitory computer readable medium, wherein the medium stores a computer program which, when executed by a processing apparatus, implements steps of the method according to claim 1 .

10. A video transmission method, applied to a virtual device in a first terminal, wherein the first terminal is installed with a first application and multiple second applications, and the method comprises:

acquiring multiple subframes sent by the first application, wherein the first application is used to decompose a target video frame into the multiple subframes;

combining the multiple subframes to obtain the target video frame; and

sending the target video frame to each of the second applications,

wherein the target video frame is generated by the first application performing special effect processing on a current video frame according to a set of special effects to be superimposed to meet requirements of special effect processing of the multiple second applications, wherein the set of special effects to be superimposed is updated according to a received special effect setting instruction, wherein the special effect setting instruction is input by a user during an operation of the first application through a special effect setting interface provided by the first application comprising a preview area and a special effect setting area, and multiple special effect setting components are set in the special effect setting area, wherein a specific form of the set of special effects to be superimposed is a form of an array;

wherein the sending the target video frame to each of the second applications comprises:

sending the target video frame to a plug-in object corresponding to each of the second applications, so that the corresponding plug-in object sends the target video frame to each of the second applications,

wherein the corresponding plug-in object is created by loading a plug-in corresponding to the first application by each of the second applications.

11. The method according to claim 10 , wherein the method further comprises:

sending a specified video frame to each of the second applications when the multiple subframes sent by the first application are not obtained.

12. The method according to claim 11 , wherein the sending the specified video frame to each of the second applications when the multiple subframes sent by the first application are not obtained comprises:

calculating whether a consecutive number of times that the multiple subframes are not acquired reaches a preset number of times, when the multiple subframes sent by the first application are not acquired; and

taking the target video frame obtained by a latest combination as the specified video frame and sending the specified video frame to each of the second applications, in the case that the number of consecutive times is less than the preset number of times.

13. The method according to claim 12 , wherein the sending the specified video frame to each of the second applications when the multiple subframes sent by the first application are not obtained further comprises:

sending a preset video frame as the specified video frame to each of the second applications, in the case that the number of consecutive times reaches the preset number of times.

14. An electronic device, comprising:

at least one processor;

a memory storing instructions and connected with the at least one processor;

wherein the instructions, when executed by the at least one processor, cause the at least one processor to perform the method according to claim 10 .

15. A non-transitory computer readable medium, wherein the medium stores a computer program which, when executed by a processing apparatus, implements steps of the method according to claim 10 .

16. An electronic device, applied to a first application installed in a first terminal, wherein the first terminal is further installed with multiple second applications, and the electronic device comprises:

at least one processor;

a memory storing instructions and connected with the at least one processor;

wherein the instructions, when executed by the at least one processor, cause the at least one processor to:

acquire a current video frame;

update a set of special effects to be superimposed according to a received special effect setting instruction, perform special effect processing on the current video frame according to the updated set of special effects to be superimposed, and generate a target video frame to meet requirements of special effect processing of the multiple second applications, wherein the special effect setting instruction is input by a user during an operation of the first application through a special effect setting interface provided by the first application comprising a preview area and a special effect setting area, and multiple special effect setting components are set in the special effect setting area, wherein a specific form of the set of special effects to be superimposed is a form of an array; and

send the target video frame to each of the second applications;

wherein the instructions further cause the at least one processor to:

trigger the first terminal to create a virtual device; and

send the target video frame to the virtual device, so that the virtual device sends the target video frame to each of the second applications;

create a plug-in, so that each of the second applications creates a plug-in object corresponding to each of the second applications by loading the plug-in,

wherein the virtual device sends the target video frame to each of the second applications via the corresponding plug-in object;

wherein the instructions further cause the at least one processor to:

decompose the target video frame into multiple subframes;

store the multiple subframes in a shared memory, so that the virtual device reads the multiple subframes from the shared memory;

wherein the virtual device is used to combine multiple subframes read to obtain the target video frame and send the target video frame to each of the second applications.

17. The device according to claim 16 , wherein the instructions further cause the at least one processor to:

identify a target object in the current video frame;

determine at least one target special effect to be superimposed from the updated set of special effects to be superimposed; and

superimpose the at least one target special effect to be superimposed with the target object, and generate the target video frame.

18. The device according to claim 16 , wherein each of the second applications is used to send the target video frame to at least one second terminal immediately after receiving the target video frame,

wherein the at least one second terminal receives and displays the target video frame through the second application.

19. The device according to claim 16 , wherein the plug-in object corresponding to each of the second applications comprises an identifier of the second application, and plug-in objects corresponding to different second applications are different, so that the virtual device sends the target video to each of the second applications corresponding to each plug-in object through each plug-in object.

20. The device according to claim 16 , wherein the instructions further cause the at least one processor to:

receive video acquisition requests sent from the second applications; and

wherein the current video frame is a current video frame in running processes of the second applications.

Assignments (8)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: WANG, YUJIA
To: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 063444/0781 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: LIU, SHU
To: DOUYIN VISION (BEIJING) CO., LTD.
Reel/Frame 063445/0020 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: LIU, GAO
To: SHENZHEN JINRITOUTIAO TECHNOLOGY CO., LTD.
Reel/Frame 063445/0168 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: TAO, SHU; YANG, JIE
To: SHANGHAI SUIXUNTONG ELECTRONIC TECHNOLOGY CO., LTD.
Reel/Frame 063445/0324 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: SHENZHEN JINRITOUTIAO TECHNOLOGY CO., LTD.
To: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 063445/0388 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: DOUYIN VISION (BEIJING) CO., LTD.
To: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 063445/0451 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: SHANGHAI SUIXUNTONG ELECTRONIC TECHNOLOGY CO., LTD.
To: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 063445/0487 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 26, 2023
From: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
To: BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 063445/0579 →
Priority Claims (1)
CN 202010345793.6 · Apr 27, 2020 · national
Continuity (2)
Continuation PCTCN2021077743 · Feb 24, 2021
Related Publication 20220392026A1 · Dec 8, 2022
References Cited (30)
US 5999979A · Vellanki · 1999 [cited by examiner]
US 20020126142A1 · Hodgkinson · 2002 [cited by examiner]
US 20030079008A1 · Fujii · 2003 [cited by examiner]
US 20060050155A1 · Ing · 2006 [cited by examiner]
US 20070074115A1 · Patten · 2007 [cited by examiner]
US 20080117974A1 · Ramachandran · 2008 [cited by examiner]
US 20100162092A1 · Albu et al. · 2010 [cited by applicant]
US 20120117472A1 · Su · 2012 [cited by examiner]
US 20150208001A1 · Kaneko · 2015 [cited by examiner]
US 20160094648A1 · Han · 2016 [cited by examiner]
US 20170332020A1 · Ouyang · 2017 [cited by examiner]
US 20180300037A1 · Takeda · 2018 [cited by examiner]
US 20190288973A1 · Liu et al. · 2019 [cited by applicant]
US 20200074738A1 · Hare · 2020 [cited by examiner]
US 20210125342A1 · Li · 2021 [cited by examiner]
US 20230012089A1 · Tang · 2023 [cited by examiner]
CN 101179660A · 2008 [cited by applicant]
CN 102447873A · 2012 [cited by applicant]
CN 105302534A · 2016 [cited by applicant]
CN 107396193A · 2017 [cited by examiner]
CN 108762829A · 2018 [cited by applicant]
CN 108845861A · 2018 [cited by applicant]
CN 109379623A · 2019 [cited by applicant]
CN 110012352A · 2019 [cited by applicant]
CN 111565332A · 2020 [cited by applicant]
Touil, Lamjed, Abdessalem Ben Abdelali, and Abdellatif Mtibaa. “Multi-video processing applications on FPGA.” Int. J. Advanced Media and Communication 5.4 (2015): 245-259 (Year: 2015). [cited by examiner]
International Search Report for International Patent Application No. PCT/CN2021/077743, mailed May 28, 2021 (17 pages). [cited by applicant]
Decision on Rejection for Chinese Patent Application No. 2020103457936, dated May 7, 2022 (6 pages). [cited by applicant]
First Office Action for Chinese Patent Application No. 2020103457936, dated Sep. 17, 2021 (11 pages). [cited by applicant]
Second Office Action for Chinese Patent Application No. 2020103457936, dated Feb. 25, 2022 (8 pages). [cited by applicant]