CN116744037A - Video file processing method, system, server, equipment and medium - Google Patents

Video file processing method, system, server, equipment and medium Download PDF

Info

Publication number
CN116744037A
CN116744037A CN202311005814.XA CN202311005814A CN116744037A CN 116744037 A CN116744037 A CN 116744037A CN 202311005814 A CN202311005814 A CN 202311005814A CN 116744037 A CN116744037 A CN 116744037A
Authority
CN
China
Prior art keywords
file
srt
files
target
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311005814.XA
Other languages
Chinese (zh)
Inventor
毕江
王立冬
赵宏伟
金强
李硕
刘光辉
李勇
钱旭琛
刘衡娜
刘鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Radio And Television Station
China Digital Video Beijing Ltd
Original Assignee
Beijing Radio And Television Station
China Digital Video Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Radio And Television Station, China Digital Video Beijing Ltd filed Critical Beijing Radio And Television Station
Priority to CN202311005814.XA priority Critical patent/CN116744037A/en
Publication of CN116744037A publication Critical patent/CN116744037A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23614Multiplexing of additional data and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23412Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs for generating or manipulating the scene composition of objects, e.g. MPEG-4 objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/2365Multiplexing of several video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44012Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The embodiment of the invention provides a video file processing method, which comprises the following steps: acquiring SRT files, and storing a plurality of SRT files to a database, wherein the SRT files comprise a plurality of subtitles; acquiring a program list, wherein the program list comprises video files of a plurality of programs; searching target SRT files corresponding to video files of a plurality of programs from a database; matching a plurality of subtitle contents of the target SRT file into corresponding video files to obtain a plurality of target video files; and assembling the plurality of target video files to obtain a packaging program list, outputting the packaging program list, and playing the packaging program list after rendering. According to the method and the device, the corresponding target SRT files can be searched from the database according to the video files of the plurality of programs in the acquired program list, then the target SRT files are matched with the corresponding video files, a plurality of target video files can be obtained, separation of caption package manufacture and broadcasting is realized, the video production and broadcasting service efficiency is improved, and convenience is provided for package content revision.

Description

Video file processing method, system, server, equipment and medium
Technical Field
The invention relates to the technical field of television program production and broadcasting in the field of broadcast television, in particular to a video file processing method, a system, a server, equipment and a medium.
Background
With the high-speed development of 8K broadcast television technology, the requirements of users on high-quality content are driven, with the progress of computer big data processing, high-speed storage and high-efficiency coding and decoding technology, the development of 4K ultra-high definition broadcast technology and related product lines in the film and television industry is promoted, and 8K ultra-high definition images have higher resolution, wider dynamic range and expanded color gamut, bring clearer, natural and rich visual feeling to audiences, and greatly improve the image quality of dynamic images; in the prior art, if 8K subtitles are required to be packaged in a revised manner, the subtitles must be rendered again, and the large volume of the 8K files, the high data rate, the long rendering and synthesizing period and the large resource expense bring great inconvenience to service operation.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention have been developed to provide a video file processing method, system, server, apparatus, and medium that overcome, or at least partially solve, the foregoing problems.
In order to solve the above problems, an embodiment of the present invention discloses a video file processing method, which includes:
acquiring SRT files, and storing the SRT files into a database, wherein the SRT files comprise a plurality of subtitles;
acquiring a program list, wherein the program list comprises video files of a plurality of programs;
searching target SRT files corresponding to the video files of the programs from the database;
matching the caption contents of the target SRT file into corresponding video files to obtain a plurality of target video files;
and assembling the plurality of target video files to obtain a packaging program list, and outputting the packaging program list, wherein the packaging program list is used for playing after rendering.
Optionally, the database includes correspondence between a plurality of SRT files and program names; searching target SRT files corresponding to the video files of the programs from the database, wherein the target SRT files comprise:
acquiring program names of the programs;
and inquiring target SRT files corresponding to the video files of the programs from the corresponding relation according to the program names of the programs.
Optionally, before the step of matching the plurality of subtitle contents of the target SRT file to corresponding video files to obtain a plurality of target video files, the method further includes:
Acquiring a caption packaging template, wherein the caption packaging template comprises a display style of captions;
generating a subtitle packaging file of the target SRT file according to the subtitle display template, wherein the subtitle packaging file comprises display patterns of a plurality of subtitles;
matching the plurality of caption contents of the target SRT file to corresponding video files to obtain a plurality of target video files, including:
and matching the caption contents and caption packaging files of the target SRT file into corresponding video files to obtain a plurality of target video files.
Optionally, the display style of the subtitle includes: at least one of a display position, a font size, a color, and a font form of the subtitle.
Optionally, the SRT file further includes a start time of each subtitle and an end time of each subtitle, and the matching the plurality of subtitle contents of the target SRT file to the corresponding video file to obtain a plurality of target video files includes:
and matching the caption contents of the target SRT file into the corresponding video files according to the starting time of each caption and the ending time of each caption to obtain a plurality of target video files.
Optionally, the video file is an 8K video file.
The invention also discloses a video file processing method which is applied to the video packaging server, wherein the video packaging server is respectively connected with the program broadcasting terminal, the SRT file making terminal and the image-text broadcasting terminal, and the image-text broadcasting terminal is connected with the packaging rendering server; the method comprises the following steps:
receiving an SRT file sent by the SRT file making terminal, and storing the SRT files into a database, wherein the SRT file comprises a plurality of subtitles;
receiving a program list sent by the program broadcasting terminal, wherein the program list comprises video files of a plurality of programs;
searching target SRT files corresponding to the video files of the programs from the database;
matching the caption contents of the target SRT file into corresponding video files to obtain a plurality of target video files;
and assembling the plurality of target video files to obtain a packaged program list, and outputting the packaged program list to the image-text playing terminal so that the image-text playing terminal controls the packaging rendering server to render and play the plurality of target video files in the packaged program list.
The invention also discloses a video file processing system, which comprises an SRT file making terminal, a program broadcasting terminal, a video packaging server, an image-text broadcasting terminal and a packaging rendering server;
the SRT file making terminal is used for sending an SRT file to the video packaging server, wherein the SRT file comprises a plurality of subtitles;
the video packaging server is used for storing the plurality of SRT files into a database;
the program broadcasting terminal is used for sending a program list to the video packaging server, wherein the program list comprises video files of a plurality of programs;
the video packaging server is used for searching target SRT files corresponding to the video files of the programs from the database; matching the caption contents of the target SRT file into corresponding video files to obtain a plurality of target video files; assembling the plurality of target video files to obtain a packaging program list, and outputting the packaging program list to the image-text playing terminal;
the image-text playing terminal is used for controlling the package rendering server to render and play a plurality of target video files in the package program list.
The invention also discloses a server, which comprises:
The first acquisition module is used for acquiring SRT files and storing the SRT files into a database, wherein the SRT files comprise a plurality of subtitles;
the second acquisition module is used for acquiring a program list, wherein the program list comprises video files of a plurality of programs;
the searching module is used for searching target SRT files corresponding to the video files of the programs from the database;
the matching module is used for matching the caption contents of the target SRT file into the corresponding video files to obtain a plurality of target video files;
and the assembling module is used for assembling the plurality of target video files to obtain a packaging program list, outputting the packaging program list and playing the packaging program list after rendering.
The invention also discloses an electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, performs the steps of the video file processing method as described above.
The invention also discloses a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the video file processing method as described above.
The embodiment of the invention has the following advantages:
the invention can find out the corresponding target SRT file from the database according to the video files of a plurality of programs in the acquired program list, then match the target SRT file with the corresponding video file, obtain a plurality of target video files, realize the separation of caption package manufacture and broadcasting by accurately superposing caption content on the corresponding program picture, form a collaborative production mode, provide convenience for package content revision and multi-language version generation, improve 8K manufacture and broadcasting service efficiency, and particularly avoid resource overhead pressure caused by repeatedly outputting 8K slices due to the modification of package content under the condition of higher requirement on hardware performance in 8K video file content production.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for processing a video file according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another video file processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of another video file processing method according to an embodiment of the present invention;
fig. 4 is a block diagram of a video packaging server according to an embodiment of the present invention;
FIG. 5 is a block diagram of a video file processing system according to an embodiment of the present invention;
Fig. 6 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Revising caption packaging content and generating a multilingual version are daily requirements in the running process of 8K channel business, in the prior art, if 8K pieces of revising caption packaging are needed, the caption must be rendered again, and the large volume of the 8K file, the high data rate, the long rendering synthetic period and the large resource expense bring great inconvenience to the running process of the business.
One of the core ideas of the embodiment of the invention is that a video file processing method is provided, by accurately superposing caption packaging content on a program picture, separation of caption packaging manufacture and broadcasting is realized, a collaborative production mode is formed, convenience is provided for packaging content revision and multi-language version generation, 8K broadcasting service efficiency is improved, and resource overhead pressure caused by 8K slicing extra repeated output of modified packaging content is avoided especially under the condition that 8K video file content production has higher requirements on hardware performance.
Referring to fig. 1, a step flowchart of a video file processing method provided by an embodiment of the present invention is shown, where the method specifically may include the following steps:
step 101, acquiring an SRT file, and storing a plurality of SRT files to a database, wherein the SRT file comprises a plurality of subtitles.
In the embodiment of the present invention, an SRT (subtitle file) file refers to a subtitle file, which may include information of multiple subtitles, where each SRT file stores multiple pieces of subtitle information of a corresponding program.
Step 102, obtaining a program list, wherein the program list comprises video files of a plurality of programs.
In the embodiment of the present invention, the program list is a list for indicating the playing order of a plurality of programs, and the program list may include video files of a plurality of programs, for example, a video file of a program a, a video file of a program B, a video file of a program C, a video file of a program D, and a video file of a program E, where the playing order of the program a is earlier than the playing order of the program B, the playing order of the program B is earlier than the playing order of the program C, the playing order of the program C is earlier than the playing order of the program D, and the playing order of the program D is earlier than the playing order of the program E.
It should be noted that the playing order of each program in the program list may be set according to the requirement of the broadcasting party, which is not limited herein.
And step 103, searching target SRT files corresponding to the video files of the programs from the database.
In the embodiment of the invention, as a plurality of SRT files are stored in the database, each SRT file stores a plurality of pieces of subtitle information of a corresponding program, and a target SRT file corresponding to video files of a plurality of programs can be searched from the database;
in one example, the video files of the multiple programs are a video file of a program a, a video file of a program B, a video file of a program C, a video file of a program D, and a video file of a program E, where a target SRT file corresponding to the video file of the program a may be found in the database to be an SRT1 file, the video file of the program B is an SRT2 file, the video file of the program C is an SRT3 file, the video file of the program D is an SRT4 file, and the video file of the program E is an SRT5 file.
And step 104, matching the caption contents of the target SRT file into the corresponding video files to obtain a plurality of target video files.
In the embodiment of the present invention, each SRT file includes a plurality of subtitles, after a target SRT file corresponding to a video file of a plurality of programs is acquired, the plurality of subtitles of the target SRT file may be matched to a corresponding video file, for example, 200 subtitles may be included in an SRT1 file, 200 subtitles may be matched to a corresponding video file a, 300 subtitles may be included in an SRT2 file, 300 subtitles may be matched to a corresponding video file B, 350 subtitles may be included in an SRT3 file, 350 subtitles may be matched to a corresponding video file C, 400 subtitles may be included in an SRT4 file, 400 subtitles may be matched to a corresponding video file D, 188 subtitles may be included in an SRT5 file, and 188 subtitles may be matched to a corresponding video file E, so that a target video file a, a target video file B, a target video file C, a target video file D, and a target video file E may be obtained.
Step 105, assembling the plurality of target video files to obtain a packaged program list, outputting the packaged program list, and playing the packaged program list after rendering.
In the embodiment of the invention, after the target video file A, the target video file B, the target video file C, the target video file D and the target video file E are obtained, a package program list can be obtained by assembling according to the broadcasting sequence of the programs, wherein the broadcasting sequence of the program A in the package program list is earlier than that of the program B, the broadcasting sequence of the program B is earlier than that of the program C, the broadcasting sequence of the program C is earlier than that of the program D, and the broadcasting sequence of the program D is earlier than that of the program E.
The invention discloses a video file processing method, which can search a corresponding target SRT file from a database according to video files of a plurality of programs in an acquired program list, then match the target SRT file with the corresponding video file to obtain a plurality of target video files, accurately superimpose caption contents on corresponding program pictures to realize separation of caption package manufacture and broadcasting, form a collaborative production mode, provide convenience for package content revision and multi-language version generation, improve 8K broadcast service efficiency, and avoid resource overhead pressure caused by repeatedly outputting 8K slices due to the revision of package content especially under the condition that the 8K video file content production has higher requirement on hardware performance.
Referring to fig. 2, a flowchart illustrating steps of another video file processing method according to an embodiment of the present invention is shown, where the method specifically may include the following steps:
step 201, an SRT file is obtained, and the plurality of SRT files are stored in a database, wherein the SRT file comprises a plurality of subtitles.
Step 202, a program list is obtained, wherein the program list comprises video files of a plurality of programs.
In one embodiment of the invention, the video file is an 8K video file.
In the embodiment of the invention, the video file can be an 8K video file, the 8K video file is an ultra-high definition image, the video file has higher resolution, wider dynamic range and expanded color gamut, brings clearer, natural and rich visual feeling to audiences, and greatly improves the image quality of dynamic images.
Step 203, obtain program names of a plurality of programs.
In the embodiment of the invention, each program in the program list has a program name, for example, 5 programs in the program list, for example, the name of the first program is XXXX in wind, the name of the second program is XX big scout, the name of the third program is XX affinity, the name of the fourth program is XX David show, and the name of the fifth program is XX poem conference.
Step 204, according to the program names of the programs, the target SRT file corresponding to the video file of each program is queried from the corresponding relation.
In the embodiment of the invention, the database includes a correspondence between a plurality of SRT files and program names, for example, a corresponding SRT1 file of "there is a XXXX in the wind", a corresponding SRT2 file of "XX major detective", a corresponding SRT3 file of "XX affinity", a corresponding SRT4 file of "XX dado show", and a corresponding SRT5 file of "XX poem university", and the target SRT files corresponding to the video files of each program can be respectively an SRT1 file, an SRT2 file, an SRT3 file, an SRT4 file and an SRT5 file according to the acquired program names of a plurality of programs from the correspondence.
Step 205, a caption packaging template is obtained, wherein the caption packaging template comprises a display style of the caption.
In the embodiment of the invention, the caption packaging template is used for generating templates of the display mode of the caption, namely the display position of the caption in a video picture, the font color of the caption and the like.
In an embodiment of the present invention, the display style of the subtitle includes: at least one of a display position, a font size, a color, and a font form of the subtitle.
In the embodiment of the invention, the display style of the subtitle can comprise at least one of the display position, the font size, the color and the font form of the subtitle.
And 206, generating a subtitle packaging file of the target SRT file according to the subtitle display template, wherein the subtitle packaging file comprises display patterns of a plurality of subtitles.
In the embodiment of the invention, the caption packaging file of the target SRT file can be generated according to the acquired caption display template, for example, 200 captions are included in the SRT1 file for the SRT1 file, the caption packaging file a of the SRT1 file can be generated according to the user's requirement, and the user's requirement is: the display position of the caption is set to be the 1/4 central position of the picture, the font color is green, the font size is a number four font, and the font form is a regular script, so that the display position of 200 captions in the caption packaging file A is set to be the 1/4 central position of the picture, the font color is green, the font size is a number four font, and the font form is a regular script.
For the SRT2 file, the SRT2 file comprises 300 subtitles, and a subtitle packaging file B of the SRT2 file can be generated according to the requirements of a user, wherein the requirements of the user are as follows: the display position of the subtitle is set to be the 1/2 central position of the picture, the font color is black, the font size is five-size font, and the font form is Song style, so that the display position of 300 subtitles in the subtitle packaging file B is set to be the 1/2 central position of the picture, the font color is black, the font size is five-size font, and the font form is Song Ti.
For the SRT3 file, the SRT3 file includes 350 subtitles, and the subtitle package file C of the SRT2 file may be generated according to the user's requirement, where the user's requirement is: setting the display position of the caption to be 1/4 of the left side of the picture, 1/2 of the upper side of the picture, red in font color, small five-size font and imitation Song body in font form, so that the display position of 350 captions in the caption packaging file C is set to be 1/4 of the left side of the picture, 1/2 of the upper side of the picture, red in font color, small five-size font and imitation Song body in font form.
For the SRT4 file, the SRT4 file includes 400 subtitles, and the subtitle package file D of the SRT4 file can be generated according to the user's requirement, where the user's requirement is: setting the display position of the caption to be 1/2 of the left side of the picture, 1/4 of the upper side of the picture, the font color is green, the font size is five-number font, and the font form is national standard regular script, so that the display position of 400 captions in the caption packaging file D is set to be 1/2 of the left side of the picture, 1/4 of the upper side of the picture, the font color is green, the font size is five-number font, and the font form is national standard regular script.
For the SRT5 file, the SRT5 file comprises 188 subtitles, and a subtitle packaging file E of the SRT5 file can be generated according to the requirements of a user, wherein the requirements of the user are as follows: setting the display position of the caption to be 1/5 of the left side of the picture, 3/4 of the upper side of the picture, blue in font color, five in font size and national standard regular script in font form, so that the display position of 188 captions in the caption packaging file E is set to be 1/5 of the left side of the picture, 3/4 of the upper side of the picture, blue in font color, five in font size and national standard regular script in font form.
Step 207, matching the plurality of caption contents and caption package files of the target SRT file to the corresponding video files, thereby obtaining a plurality of target video files.
In the embodiment of the invention, after the caption packaging file a, the caption packaging file B, the caption packaging file C, the caption packaging file D and the caption packaging file E are obtained, 200 captions in the caption packaging file A, SRT file can be matched into the program a, 300 captions included in the caption packaging file B, SRT2 file are matched into the program B, 350 captions in the caption packaging file C, SRT3 file are matched into the program C, 400 captions in the caption packaging file D, SRT4 file are matched into the program D, and 188 captions in the caption packaging file E, SRT file 5 file are matched into the program E, so that a target video file a, a target video file B, a target video file C, a target video file D and a target video file E are obtained.
In an embodiment of the present invention, the SRT file further includes a start time of each subtitle and an end time of each subtitle, and the matching the plurality of subtitle contents of the target SRT file to the corresponding video file to obtain a plurality of target video files includes:
and matching the caption contents of the target SRT file into the corresponding video files according to the starting time of each caption and the ending time of each caption to obtain a plurality of target video files.
In the embodiment of the present invention, the SRT file further includes a start time of each subtitle and an end time of each subtitle, for example, the start time of the 1 st subtitle in the SRT1 subtitle is 00:00:01, and the start time of the 1 st subtitle is 00:00:10, i.e. the first subtitle appears in the first second in the picture, and the 10 th second slides out; therefore, the plurality of caption contents of the target SRT file can be matched into the corresponding video files according to the starting time of each caption and the ending time of each caption, so as to obtain a plurality of target video files.
And step 208, assembling the plurality of target video files to obtain a packaged program list, outputting the packaged program list, and playing the packaged program list after rendering.
The invention discloses a video file processing method, which can search a corresponding target SRT file from a database according to video files of a plurality of programs in an acquired program list, then match the target SRT file with the corresponding video file to obtain a plurality of target video files, accurately superimpose caption contents on corresponding program pictures to realize separation of caption package manufacture and broadcasting, form a collaborative production mode, provide convenience for package content revision and multi-language version generation, improve 8K broadcast service efficiency, and avoid resource overhead pressure caused by repeatedly outputting 8K slices due to the revision of package content especially under the condition that the 8K video file content production has higher requirement on hardware performance.
Referring to fig. 3, a step flow chart of another video file processing method provided by the embodiment of the invention is shown and applied to a video packaging server, wherein the video packaging server is respectively connected with a program broadcasting terminal, an SRT file making terminal and an image-text playing terminal, and the image-text playing terminal is connected with a packaging rendering server; the method may comprise the steps of:
step 301, receiving an SRT file sent by an SRT file creation terminal, and storing a plurality of SRT files in a database, where the SRT file includes a plurality of subtitles.
In the embodiment of the present invention, as shown in fig. 4, a block diagram of a video packaging server 401 provided in the embodiment of the present invention is shown, where the video packaging server 401 is connected to an SRT file making terminal 402, a program broadcasting terminal 403, and a picture broadcasting terminal 404, and the picture broadcasting terminal 404 is connected to a packaging rendering server 405, and the video packaging server 401 may receive an SRT file sent by the SRT file making terminal 402 and store a plurality of SRT files in a database.
Step 302, receiving a program list sent by a program broadcasting terminal, wherein the program list comprises video files of a plurality of programs.
In one embodiment of the invention, the video file may be an 8K video file.
Step 303, searching a target SRT file corresponding to the video files of the plurality of programs from the database.
In one embodiment of the present invention, the database includes correspondence between a plurality of SRT files and program names; the step 303 may include: acquiring program names of the programs;
and inquiring target SRT files corresponding to the video files of the programs from the corresponding relation according to the program names of the programs.
And step 304, matching the caption contents of the target SRT file into the corresponding video files to obtain a plurality of target video files.
In an embodiment of the present invention, before the step 304, the method may include:
acquiring a caption packaging template, wherein the caption packaging template comprises a display style of captions;
generating a subtitle packaging file of the target SRT file according to the subtitle display template, wherein the subtitle packaging file comprises display patterns of a plurality of subtitles;
the step 304 may include: and matching the caption contents and caption packaging files of the target SRT file into corresponding video files to obtain a plurality of target video files.
In one embodiment of the present invention, a display style of a subtitle includes: at least one of a display position, a font size, a color, and a font form of the subtitle.
In an embodiment of the present invention, the SRT file further includes a start time of each subtitle and an end time of each subtitle, and the step 304 may include: and matching the caption contents of the target SRT file into the corresponding video files according to the starting time of each caption and the ending time of each caption to obtain a plurality of target video files.
Step 305, assembling the plurality of target video files to obtain a packaged program list, and outputting the packaged program list to the image-text playing terminal, so that the image-text playing terminal controls the packaged rendering server to render and play the plurality of target video files in the packaged program list.
The invention discloses a video file processing method, which can search a corresponding target SRT file from a database according to video files of a plurality of programs in an acquired program list, then match the target SRT file with the corresponding video file to obtain a plurality of target video files, accurately superimpose caption contents on corresponding program pictures to realize separation of caption package manufacture and broadcasting, form a collaborative production mode, provide convenience for package content revision and multi-language version generation, improve 8K broadcast service efficiency, and avoid resource overhead pressure caused by repeatedly outputting 8K slices due to the revision of package content especially under the condition that the 8K video file content production has higher requirement on hardware performance.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 5, a block diagram of a video file processing system 50 according to an embodiment of the present invention is shown, where the system 50 may include an SRT file creation terminal 501, a program broadcasting terminal 502, a video packaging server 503, a teletext terminal 504, and a packaging rendering server 505;
the SRT file making terminal is used for sending an SRT file to the video packaging server, wherein the SRT file comprises a plurality of subtitles;
the video packaging server is used for storing the plurality of SRT files into a database;
the program broadcasting terminal is used for sending a program list to the video packaging server, wherein the program list comprises video files of a plurality of programs;
the video packaging server is used for searching target SRT files corresponding to the video files of the programs from the database; matching the caption contents of the target SRT file into corresponding video files to obtain a plurality of target video files; assembling the plurality of target video files to obtain a packaging program list, and outputting the packaging program list to the image-text playing terminal;
the image-text playing terminal is used for controlling the package rendering server to render and play a plurality of target video files in the package program list.
In one embodiment of the present invention, the database may include a plurality of SRT file-program name correspondence; the video packaging server 503 is configured to obtain program names of a plurality of programs; and according to the program names of the programs, inquiring target SRT files corresponding to the video files of the programs from the corresponding relation.
In one embodiment of the present invention, the video packaging server 503 is configured to obtain a subtitle packaging template, where the subtitle packaging template includes a display style of a subtitle; and generating a subtitle packaging file of the target SRT file according to the subtitle display template, wherein the subtitle packaging file comprises display patterns of a plurality of subtitles.
In one embodiment of the present invention, the video packaging server 503 is configured to match a plurality of subtitle contents and subtitle packaging files of the target SRT file to corresponding video files, so as to obtain a plurality of target video files.
In one embodiment of the present invention, a display style of a subtitle includes: at least one of a display position, a font size, a color, and a font form of the subtitle.
In an embodiment of the present invention, the SRT file further includes a start time of each subtitle and an end time of each subtitle, and the video packaging server 503 is configured to match a plurality of subtitle contents of the target SRT file to corresponding video files according to the start time of each subtitle and the end time of each subtitle, so as to obtain a plurality of target video files.
In an embodiment of the present invention, the package rendering server 505 is configured to render and play a plurality of pieces of subtitle content according to a subtitle package file corresponding to each of the target video files in the package program list, and a start time and an end time of each of the plurality of pieces of subtitle content.
The invention discloses a video file processing system, which can search a corresponding target SRT file from a database according to video files of a plurality of programs in an acquired program list, then match the target SRT file with the corresponding video file to obtain a plurality of target video files, accurately superimpose caption contents on corresponding program pictures to realize separation of caption package manufacture and broadcasting, form a collaborative production mode, provide convenience for package content revision and multi-language version generation, improve 8K broadcast service efficiency, and avoid resource overhead pressure caused by repeatedly outputting 8K slices due to the revision of package content especially under the condition that the 8K video file content production has higher requirement on hardware performance.
Referring to fig. 6, a block diagram of a server according to an embodiment of the present invention is shown, where the server includes:
A first obtaining module 601, configured to obtain an SRT file, and store the plurality of SRT files in a database, where the SRT file includes a plurality of subtitles.
A second obtaining module 602, configured to obtain a program list, where the program list includes video files of a plurality of programs.
The searching module 603 is configured to search, from the database, a target SRT file corresponding to the video files of the plurality of programs.
A matching module 604, configured to match a plurality of subtitle contents of the target SRT file to corresponding video files, to obtain a plurality of target video files;
and the assembling module 605 is configured to assemble the plurality of target video files to obtain a packaged program list, and output the packaged program list, where the packaged program list is used for playing after rendering.
The invention discloses a server, which can search a corresponding target SRT file from a database according to video files of a plurality of programs in an acquired program list, then match the target SRT file with the corresponding video file to obtain a plurality of target video files, accurately superimpose caption contents on corresponding program pictures to realize separation of caption package manufacture and broadcasting, form a collaborative production mode, provide convenience for package content revision and multi-language version generation, improve 8K production and broadcasting service efficiency, and particularly avoid resource overhead pressure caused by repeatedly outputting 8K slices due to the revision of package content under the condition that the requirement of 8K video file content production on hardware performance is higher.
In one embodiment of the present invention, the database includes correspondence between a plurality of SRT files and program names; the search module 603 may include:
an acquisition sub-module for acquiring program names of the plurality of programs;
and the inquiring sub-module is used for inquiring the target SRT files corresponding to the video files of the programs from the corresponding relation according to the program names of the programs.
In an embodiment of the present invention, the server further includes:
the third acquisition module is used for acquiring a caption packaging template, wherein the caption packaging template comprises a caption display style;
the generation module is used for generating a subtitle packaging file of the target SRT file according to the subtitle display template, wherein the subtitle packaging file comprises display patterns of a plurality of subtitles;
the matching module 604 may include:
and the first matching sub-module is used for matching the plurality of caption contents and caption packaging files of the target SRT file into corresponding video files to obtain a plurality of target video files.
In an embodiment of the present invention, the display style of the subtitle includes: at least one of a display position, a font size, a color, and a font form of the subtitle.
In an embodiment of the present invention, the SRT file further includes a start time of each subtitle and an end time of each subtitle, and the matching module 604 may include:
and the second matching sub-module matches the plurality of caption contents of the target SRT file into the corresponding video file according to the starting time of each caption and the ending time of each caption to obtain a plurality of target video files.
The invention discloses a server, which can search a corresponding target SRT file from a database according to video files of a plurality of programs in an acquired program list, then match the target SRT file with the corresponding video file to obtain a plurality of target video files, accurately superimpose caption contents on corresponding program pictures to realize separation of caption package manufacture and broadcasting, form a collaborative production mode, provide convenience for package content revision and multi-language version generation, improve 8K production and broadcasting service efficiency, and particularly avoid resource overhead pressure caused by repeatedly outputting 8K slices due to the revision of package content under the condition that the requirement of 8K video file content production on hardware performance is higher.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides electronic equipment, which comprises:
the video file processing method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the computer program realizes the processes of the video file processing method embodiment when being executed by the processor, can achieve the same technical effects, and is not repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the video file processing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above describes in detail a video file processing method, system, server, device and medium provided by the present invention, and specific examples are applied to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (11)

1. A method of video file processing, the method comprising:
acquiring caption SRT files, and storing the plurality of SRT files into a database, wherein the SRT files comprise a plurality of captions;
acquiring a program list, wherein the program list comprises video files of a plurality of programs;
searching target SRT files corresponding to the video files of the programs from the database;
matching the caption contents of the target SRT file into corresponding video files to obtain a plurality of target video files;
and assembling the plurality of target video files to obtain a packaging program list, and outputting the packaging program list, wherein the packaging program list is used for playing after rendering.
2. The method of claim 1, wherein the database includes a plurality of SRT file-program name correspondence; searching target SRT files corresponding to the video files of the programs from the database, wherein the target SRT files comprise:
acquiring program names of the programs;
and inquiring target SRT files corresponding to the video files of the programs from the corresponding relation according to the program names of the programs.
3. The method of claim 1, wherein before the step of matching the plurality of subtitle contents of the target SRT file to corresponding video files to obtain a plurality of target video files, further comprises:
acquiring a caption packaging template, wherein the caption packaging template comprises a display style of captions;
generating a subtitle packaging file of the target SRT file according to the subtitle display template, wherein the subtitle packaging file comprises display patterns of a plurality of subtitles;
matching the plurality of caption contents of the target SRT file to corresponding video files to obtain a plurality of target video files, including:
and matching the caption contents and caption packaging files of the target SRT file into corresponding video files to obtain a plurality of target video files.
4. The method of claim 3, wherein the display style of the subtitle comprises: at least one of a display position, a font size, a color, and a font form of the subtitle.
5. The method of claim 1, wherein the SRT file further includes a start time of each subtitle and an end time of each subtitle, and the matching the plurality of subtitle contents of the target SRT file to the corresponding video file to obtain a plurality of target video files includes:
and matching the caption contents of the target SRT file into the corresponding video files according to the starting time of each caption and the ending time of each caption to obtain a plurality of target video files.
6. The method of claim 1, wherein the video file is an 8K video file.
7. The video file processing method is characterized by being applied to a video packaging server, wherein the video packaging server is respectively connected with a program broadcasting terminal, a caption SRT file making terminal and an image-text broadcasting terminal, and the image-text broadcasting terminal is connected with a packaging rendering server; the method comprises the following steps:
receiving an SRT file sent by the SRT file making terminal, and storing the SRT files into a database, wherein the SRT file comprises a plurality of subtitles;
Receiving a program list sent by the program broadcasting terminal, wherein the program list comprises video files of a plurality of programs;
searching target SRT files corresponding to the video files of the programs from the database;
matching the caption contents of the target SRT file into corresponding video files to obtain a plurality of target video files;
and assembling the plurality of target video files to obtain a packaged program list, and outputting the packaged program list to the image-text playing terminal so that the image-text playing terminal controls the packaging rendering server to render and play the plurality of target video files in the packaged program list.
8. The video file processing system is characterized by comprising a caption SRT file making terminal, a program broadcasting terminal, a video packaging server, an image-text broadcasting terminal and a packaging rendering server;
the SRT file making terminal is used for sending an SRT file to the video packaging server, wherein the SRT file comprises a plurality of subtitles;
the video packaging server is used for storing the plurality of SRT files into a database;
the program broadcasting terminal is used for sending a program list to the video packaging server, wherein the program list comprises video files of a plurality of programs;
The video packaging server is used for searching target SRT files corresponding to the video files of the programs from the database; matching the caption contents of the target SRT file into corresponding video files to obtain a plurality of target video files; assembling the plurality of target video files to obtain a packaging program list, and outputting the packaging program list to the image-text playing terminal;
the image-text playing terminal is used for controlling the package rendering server to render and play a plurality of target video files in the package program list.
9. A server, the server comprising:
the first acquisition module is used for acquiring caption SRT files and storing the SRT files into a database, wherein the SRT files comprise a plurality of captions;
the second acquisition module is used for acquiring a program list, wherein the program list comprises video files of a plurality of programs;
the searching module is used for searching target SRT files corresponding to the video files of the programs from the database;
the matching module is used for matching the caption contents of the target SRT file into the corresponding video files to obtain a plurality of target video files;
And the assembling module is used for assembling the plurality of target video files to obtain a packaging program list, outputting the packaging program list and playing the packaging program list after rendering.
10. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor performs the steps of the video file processing method according to any of claims 1-6.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the video file processing method according to any of claims 1-6.
CN202311005814.XA 2023-08-10 2023-08-10 Video file processing method, system, server, equipment and medium Pending CN116744037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311005814.XA CN116744037A (en) 2023-08-10 2023-08-10 Video file processing method, system, server, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311005814.XA CN116744037A (en) 2023-08-10 2023-08-10 Video file processing method, system, server, equipment and medium

Publications (1)

Publication Number Publication Date
CN116744037A true CN116744037A (en) 2023-09-12

Family

ID=87915424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311005814.XA Pending CN116744037A (en) 2023-08-10 2023-08-10 Video file processing method, system, server, equipment and medium

Country Status (1)

Country Link
CN (1) CN116744037A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388969A (en) * 2008-09-10 2009-03-18 新奥特(北京)视频技术有限公司 On-line playbill driven multiple channel subtitle editing and playing method
CN101848342A (en) * 2010-02-09 2010-09-29 北京中科大洋科技发展股份有限公司 System and method for broadcasting and controlling subtitle
CN102065244A (en) * 2009-11-18 2011-05-18 新奥特(北京)视频技术有限公司 Subtitle fabricating method and device
CN103179093A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Matching system and method for video subtitles
CN104918097A (en) * 2015-06-01 2015-09-16 无锡天脉聚源传媒科技有限公司 Subtitle generation method and device
US20160007054A1 (en) * 2009-09-22 2016-01-07 Caption Colorado Llc Caption and/or Metadata Synchronization for Replay of Previously or Simultaneously Recorded Live Programs

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388969A (en) * 2008-09-10 2009-03-18 新奥特(北京)视频技术有限公司 On-line playbill driven multiple channel subtitle editing and playing method
US20160007054A1 (en) * 2009-09-22 2016-01-07 Caption Colorado Llc Caption and/or Metadata Synchronization for Replay of Previously or Simultaneously Recorded Live Programs
CN102065244A (en) * 2009-11-18 2011-05-18 新奥特(北京)视频技术有限公司 Subtitle fabricating method and device
CN101848342A (en) * 2010-02-09 2010-09-29 北京中科大洋科技发展股份有限公司 System and method for broadcasting and controlling subtitle
CN103179093A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Matching system and method for video subtitles
CN104918097A (en) * 2015-06-01 2015-09-16 无锡天脉聚源传媒科技有限公司 Subtitle generation method and device

Similar Documents

Publication Publication Date Title
US7239417B2 (en) Distribution system for digital image content and reproducing method and medium recording its reproduction program
KR102087533B1 (en) Communication devices, communication control methods, and computer programs
EP2991341A1 (en) Video playback method, media device, playback device, and multimedia system
US11770589B2 (en) Using text data in content presentation and content search
US8275814B2 (en) Method and apparatus for encoding/decoding signal
JP2016058848A (en) Image processing system and image processing method
CN103905744A (en) Rendering synthetic method and system
WO2008048067A1 (en) Encoding method and apparatus and decoding method and apparatus
US20140147100A1 (en) Methods and systems of editing and decoding a video file
US10771861B2 (en) Digital channel integration system
AU2007243966A1 (en) Method and apparatus for re-constructing media from a media representation
CN105721796A (en) Device and method for automatically generating video captions
CN114040255A (en) Live caption generating method, system, equipment and storage medium
US20160196631A1 (en) Hybrid Automatic Content Recognition and Watermarking
JP2011526771A (en) Method and apparatus for providing rich media service
CN102098447A (en) Multi-language caption broadcasting method and equipment
CN102118643B (en) Network subtitle playing system and method
CN112328834A (en) Video association method and device, electronic equipment and storage medium
US7353451B2 (en) Meta data creation apparatus and meta data creation method
JP2018510552A (en) Method and associated apparatus for providing a media presentation guide in a media streaming over hypertext transfer protocol
CN116744037A (en) Video file processing method, system, server, equipment and medium
JP2014130536A (en) Information management device, server, and control method
JP2000253367A (en) Converter and conversion method
JP6455974B2 (en) Receiving machine
CN113742284A (en) Method and system for converting OFD file into picture based on Java

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination