CN113329255A - Multi-channel video synchronous playing method, system and medium based on browser - Google Patents

Multi-channel video synchronous playing method, system and medium based on browser Download PDF

Info

Publication number
CN113329255A
CN113329255A CN202110613328.0A CN202110613328A CN113329255A CN 113329255 A CN113329255 A CN 113329255A CN 202110613328 A CN202110613328 A CN 202110613328A CN 113329255 A CN113329255 A CN 113329255A
Authority
CN
China
Prior art keywords
video stream
video
channel
time
file
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
CN202110613328.0A
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.)
Chongqing Ruiming Information Technology Co ltd
Original Assignee
Chongqing Ruiming Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Ruiming Information Technology Co ltd filed Critical Chongqing Ruiming Information Technology Co ltd
Priority to CN202110613328.0A priority Critical patent/CN113329255A/en
Publication of CN113329255A publication Critical patent/CN113329255A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • 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/4402Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The invention discloses a multichannel video synchronous playing method, a multichannel video synchronous playing system and a multichannel video synchronous playing medium based on a browser.A random video stream is selected, the format of the video stream is converted into a video stream file with an H264 coding format for output, and a first video stream file with the H264 coding format is output; the earliest timestamp is a multi-channel playing start time ST; the latest timestamp is the multichannel playing end time ET; reading the video stream of each channel of a first video stream file second by second, and supplementing default frames by other channels without videos; ending when the timestamp is ET to obtain a second video stream file; packaging the second video stream file into an MP4 file, and synchronously playing the multichannel video on the browser; the method has the advantages of ensuring the consistency of the starting time or the middle interval time of each channel video, realizing synchronous playing of the multi-channel video through the browser and playing the H265 coding format video stream on the browser.

Description

Multi-channel video synchronous playing method, system and medium based on browser
Technical Field
The invention relates to the technical field of video playing, in particular to a multi-channel video synchronous playing method, system and medium based on a browser.
Background
With the rapid development of social economy, the demand for active safety is more prominent in the aspect of video monitoring of commercial vehicles, and the active safety mainly comprises timely reminding and video evidence collection. The evidence collection relates to the multichannel video, and when the vehicle-mounted terminal equipment generates an alarm, the multichannel video is transmitted to the platform, and the videos of all channels can be synchronously played through a WEB page, so that the event conditions occurring before and after the alarm time can be conveniently checked.
However, on one hand, since the Video object in the WEB technology HTML5 language has no mechanism for synchronously playing multi-channel Video through absolute time stamps, once the start times of MP4 videos of each channel are different, the effect of synchronously playing multi-channel Video cannot be achieved; on the other hand, H265 Video coding format is adopted by some vehicle-mounted terminal devices in the market, but a Video object in the HTML5 language of WEB technology does not support playing of MP4 Video in the H265 coding format.
Disclosure of Invention
The invention aims to provide a multichannel video synchronous playing method, a system and a medium based on a browser.
The invention is realized by the following technical scheme:
a multi-channel video synchronous playing method based on a browser comprises the following steps:
s1: acquiring video streams of a multi-channel, selecting any one video stream, detecting whether the coding format of the video stream is an H264 coding format, if so, outputting the video stream, otherwise, converting the format of the video stream into a video stream file of the H264 coding format for outputting, and outputting a first video stream file of the H264 coding format until all the video streams are subjected to traversal;
s2: reading the first time stamp of each channel video stream in the first video stream file, comparing the first time stamps read by each channel, and selecting the earliest time stamp as the multi-channel synchronous playing start time ST;
s3: reading the last time stamp of each channel video stream in the first video stream file, comparing the last time stamps read by each channel, and selecting the latest time stamp as the multichannel synchronous playing ending time ET;
s4: based on the time stamp ST, simultaneously reading the video streams of each channel in the first video stream file one by one second, and if one channel has a video stream in the reading process, supplementing default frames for other channels without videos; if all channels do not have video streams, the default frames are not supplemented until the time when the timestamp is read as ET is finished, and a second video stream file is obtained, wherein the second video stream file is a video stream in each channel, the timestamp ST is used as the starting time, and the timestamp ET is used as the finishing time;
s5: and packaging the second video stream file into an MP4 file through an open source computer program, and synchronously playing the video of the multiple channels on a web browser.
When a multi-channel video is played conventionally, a method for playing the multi-channel video together according to the sequence is adopted, when the multi-channel video is played by adopting the method, the timestamps of the multi-channel video playing are not synchronous, when a certain channel is played to a second file, the multichannel video cannot be selected to be played to the first file unless the multichannel video is played again; or, a multi-channel video is combined into one video for playing, but the single-channel full-screen playing and the audio switching of the channels cannot be realized by adopting the playing method; the invention provides a multichannel video synchronous playing method and system based on a browser, which realize synchronous playing of multichannel video on a timestamp on the browser by converting the coding format of a video stream and adding a default frame mode at a video-free stage to the converted multichannel video stream, and simultaneously ensure the independence of each channel on video playing.
Preferably, the first video stream and the second video stream both include frame header data, extension data, and audio/video data, the frame header data includes a frame type, an extension data length, and an audio/video data length, and the extension data includes a time stamp and a coding format of the video stream.
Preferably, in step S1, the encoding format of the video stream includes an H265 encoding format and an H264 encoding format, and the video stream in the H265 encoding format is converted into the video stream in the H264 encoding format by the open-source computer program and is output, and the output video stream is used as the second video stream file.
Preferably, the sub-step of step S4 includes:
reading videos of the multiple channels according to a time line, and adding default frames of corresponding time periods in a non-video channel corresponding to a time stamp when the video stream of the time stamp exists in any one channel; when all channels are read to have no video stream, no processing is carried out on the time period without the video stream; and adding a default frame of the time period in a non-video channel on the corresponding timestamp until a video stream with the timestamp ET is read, and outputting a second video stream file after the addition is finished.
Preferably, the default frame is a default picture inserted in the time period, and the default picture is a black screen picture.
Preferably, the second video stream includes H264 video frames and audio frames.
The invention also discloses a multi-channel video synchronous playing system based on the browser, and the synchronous system comprises:
the format conversion module is used for acquiring video streams of multiple channels, selecting any one of the video streams, detecting whether the encoding format of the video stream is an H264 encoding format, if so, outputting the video stream, otherwise, converting the format of the video stream into a video stream file of the H264 encoding format, and outputting the video stream file of the H264 encoding format until all the video streams are completely processed;
the first analysis module is used for reading the first time stamp of the video stream of each channel in the first video stream file, comparing the first time stamps read by each channel and selecting the earliest time stamp as the multi-channel synchronous playing start time ST;
the second analysis module is used for reading the last time stamp of each channel video stream in the first video stream file, comparing the last time stamp read by each channel and selecting the latest time stamp as the multichannel synchronous playing start time ET;
the video frame adding module is used for reading channel videos in the first video stream file one second by one second based on the time stamp ST, and supplementing default frames for other channels without videos as long as one channel has videos in the reading process; if all channels have no video, the default frame is not supplemented until the time stamp is ET, and a second video stream file is obtained, wherein the second video stream file is a video stream in each channel, the time stamp ST is used as the starting time, and the time stamp ET is used as the ending time;
and the packaging playing module is used for packaging the second video stream file into an MP4 file through an open source computer program and playing the videos of multiple channels on a web browser at the same time.
The present invention also discloses a computer-stored medium having stored thereon a computer program which, when executed by a processor, implements a browser-based multi-channel video synchronization method as described above.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. by adopting the method, the system and the medium for synchronously playing the multichannel videos based on the browser, the consistency of the starting time or the middle interval time of the videos of each channel is ensured by uniformly adjusting the time stamps in each channel, and the synchronous playing of the multichannel videos by the browser is realized;
2. by adopting the multichannel video synchronous playing method, the multichannel video synchronous playing system and the multichannel video synchronous playing medium based on the browser, provided by the invention, the video stream in the H265 coding format is converted into the video stream in the H264 coding format, and the converted video stream is packaged into the format of MP4, so that the video stream in the H265 coding format is played on a web browser.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a schematic diagram of a synchronization method
FIG. 2 is a schematic diagram of a synchronization system
FIG. 3 is a schematic diagram of video stream synchronization for two channels
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not used as limitations of the present invention.
Example one
The embodiment discloses a multichannel video synchronous playing method based on a browser, as shown in fig. 1, the method of the embodiment is a monitoring method used for a commercial vehicle video, but the synchronization method is not limited to be used on a commercial vehicle video, and the multichannel video synchronization method comprises the following steps:
s1: acquiring video streams of a multi-channel, selecting any one video stream, detecting whether the coding format of the video stream is an H264 coding format, if so, outputting the video stream, otherwise, converting the format of the video stream into a video stream file of the H264 coding format for outputting, and outputting a first video stream file of the H264 coding format until all the video streams are subjected to traversal;
when a commercial vehicle-mounted device generates an alarm, the acquired multi-channel video needs to transmit only video streams of multiple channels in an alarm time period in the vehicle-mounted device, process the video streams of the multiple channels, detect the encoding format of the video stream of each channel in the received video streams of the multiple channels, when the encoding format of the video stream is detected to be H265, the video stream of the H265 encoding format needs to be converted into the video stream of the H264 encoding format in an open source computer program ffmpeg for output, and when the encoding format of the detected video stream is H264, the video stream is directly output, namely the encoding format of the video stream output by each channel is the H264 encoding format finally, and the H264 encoding format video stream obtained after data processing is used as a first video stream file, and used in a later step.
The first video stream and the second video stream both include frame header data, extension data, and audio/video data, and the frame types include but are not limited to: i frame is x2dc, p frame is x3dc, audio frame is x4 dc; the frame header data comprises a frame type, an extended data length and an audio/video data length, the extended data comprises a timestamp and a video stream coding format, the timestamp is obtained according to year, month, day, hour, minute and second, and the video coding format comprises a video stream in an H264 coding format and a video stream in an H265 coding format.
S2: reading the first time stamp of each channel video stream in the first video stream file, comparing the first time stamps read by each channel, and selecting the earliest time stamp as the multi-channel synchronous playing start time ST;
and marking the time stamp in the first video stream file which appears firstly in a plurality of channels as the appearance time of the first time of the video stream in the whole first video stream file.
S3: reading the last time stamp of each channel video stream in the first video stream file, comparing the last time stamps read by each channel, and selecting the latest time stamp as the multichannel synchronous playing ending time ET;
and marking the timestamp in the first video stream file which appears last in a plurality of channels as the last ending time of the video stream in the whole first video stream file.
S4: based on the time stamp ST, simultaneously reading the video streams of each channel in the first video stream file one by one second, and if one channel has a video stream in the reading process, supplementing default frames for other channels without videos; if all channels do not have video streams, the default frames are not supplemented until the time when the timestamp is read as ET is finished, and a second video stream file is obtained, wherein the second video stream file is a video stream in each channel, the timestamp ST is used as the starting time, and the timestamp ET is used as the finishing time;
based on the time period between the time stamp ST and the time stamp ET, in any time period, as long as any channel has a video stream, other channels without the video stream need to be added with corresponding time stamps in the corresponding time period, and all the channels have the video streams in the same time period in the time period of the time stamp, if no video stream appears in any channel in a certain time period, no processing is performed on any channel in the time period until the video streams in all the time periods from the time stamp ST to the time stamp ET are detected, and a default frame is added to the corresponding time period of the corresponding channel to obtain a second video stream file for outputting.
The sub-step of step S4 includes:
reading videos of the multiple channels according to a time line, and adding default frames of corresponding time periods in a non-video channel corresponding to a time stamp when the video stream of the time stamp exists in any one channel; when all channels are read to have no video stream, no processing is carried out on the time period without the video stream; and adding a default frame of the time period in a non-video channel on the corresponding timestamp until a video stream with the timestamp ET is read, and outputting a second video stream file after the addition is finished.
When there are two channels, as shown in fig. 3, the synchronization process of the two channels of video is:
a. the start time of the channel 2 is earlier than the start time of the channel 1, so the start time of the channel 2 is used as the start time ST of the multi-channel synchronous playing;
b. the end time of the channel 1 is later than that of the channel 2, so that the end time of the channel 1 is used as the end time ET of the multi-channel synchronous playing;
c. creating a temporary file F1-1 of the 1 st channel video, and creating a temporary file F2-1 of the 1 st channel video;
d. reading a file F1 of a 1 ST channel, searching for data of an ST frame, and finding that the ST frame of the 1 ST channel does not exist, so that a default frame is stored at the end of the file F1-1, and the default frame only has a timestamp;
e. reading a file F2 of a 2 nd channel, searching data of an ST frame, finding that the ST frame of the 2 nd channel exists, copying complete data of the ST frame of the 2 nd channel and storing the complete data at the end of a file F2-1;
f. if both files F1 and F2 are found to have no ST + X frames, then F1-1 and F2-1 are not stored in the default frame;
g. repeating the d step to the F step until F1-1 and F2-1 are stored into the ET frame;
h. the files F1 and F2 are deleted, the renamed file F1-1 is F1, the renamed file F2-1 is F2, and the finally obtained video stream file is output as a second video stream file.
The default frame is a default picture inserted in the time period, and the default picture is a black screen picture.
S5: and packaging the second video stream file into an MP4 file through an open source computer program, and synchronously playing the video of the multiple channels on a web browser.
The second video stream file, including video frames and audio frames, needs to encapsulate the two different types of frames into MP4 files for storage, and because the time stamps of the encapsulated video and audio are synchronized, they can be played on the web browser at the same time.
In summary, by using the method for synchronously playing the multichannel video based on the browser provided by this embodiment, the consistency of the start time or the inter-interval time of each channel video is ensured, and the multichannel video is synchronously played through the browser, and after the converted video stream is packaged into the format of MP4, the video stream in the H265 coding format is played on the web browser, and the channels of the multichannel video can be switched and played at will.
Example two
The embodiment discloses a multichannel video synchronous playing system based on a browser, which is a method for realizing the multichannel video synchronous playing system based on the browser disclosed in the first embodiment, and as shown in fig. 2, the system comprises:
the format conversion module is used for acquiring video streams of multiple channels, selecting any one of the video streams, detecting whether the encoding format of the video stream is an H264 encoding format, if so, outputting the video stream, otherwise, converting the format of the video stream into a video stream file of the H264 encoding format, and outputting the video stream file of the H264 encoding format until all the video streams are completely processed;
the first analysis module is used for reading the first time stamp of the video stream of each channel in the first video stream file, comparing the first time stamps read by each channel and selecting the earliest time stamp as the multi-channel synchronous playing start time ST;
the second analysis module is used for reading the last time stamp of each channel video stream in the first video stream file, comparing the last time stamp read by each channel and selecting the latest time stamp as the multichannel synchronous playing start time ET;
the video frame adding module is used for reading channel videos in the first video stream file one second by one second based on the time stamp ST, and supplementing default frames for other channels without videos as long as one channel has videos in the reading process; if all channels have no video, the default frame is not supplemented until the time stamp is ET, and a second video stream file is obtained, wherein the second video stream file is a video stream in each channel, the time stamp ST is used as the starting time, and the time stamp ET is used as the ending time;
and the packaging playing module is used for packaging the second video stream file into an MP4 file through an open source computer program and playing the videos of multiple channels on a web browser at the same time.
EXAMPLE III
The embodiment discloses a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for multi-channel video synchronization based on a browser in the first embodiment is realized.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A multichannel video synchronous playing method based on a browser is characterized in that the synchronous method comprises the following steps:
s1: acquiring video streams of a multi-channel, selecting any one video stream, detecting whether the coding format of the video stream is an H264 coding format, if so, outputting the video stream, otherwise, converting the format of the video stream into a video stream file of the H264 coding format for outputting, and outputting a first video stream file of the H264 coding format until all the video streams are subjected to traversal;
s2: reading a first time stamp of each channel video stream in the first video stream file, comparing the first time stamps read by each channel, and selecting the earliest time stamp as a multi-channel synchronous playing start time ST;
s3: reading the last time stamp of each channel video stream in the first video stream file, comparing the last time stamps read by each channel, and selecting the latest time stamp as the multichannel synchronous playing ending time ET;
s4: based on the time stamp ST, simultaneously reading the video streams of each channel in the first video stream file one by one second, and if one channel has a video stream in the reading process, supplementing default frames for other channels without videos; if all channels have no video stream, the default frame is not supplemented until the time when the timestamp is read as ET is finished, and a second video stream file is obtained, wherein the second video stream file is a video stream in each channel, the timestamp ST is used as the starting time, and the timestamp ET is used as the finishing time;
s5: and packaging the second video stream file into an MP4 file through an open source computer program, and synchronously playing the video of the multiple channels on a web browser.
2. The method according to claim 1, wherein the first video stream and the second video stream each include frame header data, extension data, and audio/video data, the frame header data includes a frame type, an extension data length, and an audio/video data length, and the extension data includes a time stamp and an encoding format of the video stream.
3. The method for synchronously playing multi-channel video based on browser as claimed in claim 1 or 2, wherein in said step S1, the encoding format of the video stream includes H265 encoding format and H264 encoding format, and the video stream in H265 encoding format is converted into the video stream in H264 encoding format by the open-source computer program for outputting, and the output video stream is used as the second video stream file.
4. The method for synchronously playing multi-channel video based on browser as claimed in claim 1, wherein said sub-step of step S4 comprises:
reading videos of the multiple channels according to a time line, and adding default frames of corresponding time periods in a non-video channel corresponding to a timestamp when a video stream with any timestamp in any channel is read; when no video stream exists in all channels, no processing is carried out on the time periods without the video stream; and adding a default frame of the time period in a non-video channel on the corresponding timestamp until a video stream with the timestamp ET is read, and outputting a second video stream file after the addition is finished.
5. The method as claimed in claim 4, wherein the default frame is a default frame inserted in the time period, and the default frame is a black screen frame.
6. The method as claimed in claim 5, wherein the second video stream comprises H264 video frames and audio frames.
7. A multi-channel video synchronous playing system based on a browser is characterized in that the synchronous system comprises:
the format conversion module is used for acquiring video streams of multiple channels, selecting any one of the video streams, detecting whether the coding format of the video stream is the H264 coding format, if so, outputting the video stream, otherwise, converting the format of the video stream into a video stream file of the H264 coding format, and outputting the video stream file of the H264 coding format until all the video streams are completely traversed;
the first analysis module is used for reading the first time stamp of the video stream of each channel in the first video stream file, comparing the first time stamps read by each channel and selecting the earliest time stamp as the multi-channel synchronous playing start time ST;
the second analysis module is used for reading the last time stamp of each channel video stream in the first video stream file, comparing the last time stamp read by each channel and selecting the latest time stamp as the multichannel synchronous playing start time ET;
the video frame adding module is used for reading channel videos in the first video stream file one second by one second based on the time stamp ST, and supplementing default frames for other channels without videos as long as one channel has videos in the reading process; if all channels have no video, the default frame is not supplemented until the time stamp is ET, and a second video stream file is obtained, wherein the second video stream file is a video stream in each channel, the time stamp ST is used as the starting time, and the time stamp ET is used as the ending time;
and the packaging playing module is used for packaging the second video stream file into an MP4 file through an open source computer program and playing the videos of multiple channels on a web browser at the same time.
8. A computer-stored medium on which a computer program is stored, which, when executed by a processor, carries out the method according to any one of claims 1 to 6.
CN202110613328.0A 2021-06-02 2021-06-02 Multi-channel video synchronous playing method, system and medium based on browser Pending CN113329255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110613328.0A CN113329255A (en) 2021-06-02 2021-06-02 Multi-channel video synchronous playing method, system and medium based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110613328.0A CN113329255A (en) 2021-06-02 2021-06-02 Multi-channel video synchronous playing method, system and medium based on browser

Publications (1)

Publication Number Publication Date
CN113329255A true CN113329255A (en) 2021-08-31

Family

ID=77421411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110613328.0A Pending CN113329255A (en) 2021-06-02 2021-06-02 Multi-channel video synchronous playing method, system and medium based on browser

Country Status (1)

Country Link
CN (1) CN113329255A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996662A (en) * 2010-10-22 2011-03-30 深圳市万兴软件有限公司 Method and device for connecting and outputting video files
CN102821308A (en) * 2012-06-04 2012-12-12 西安交通大学 Multi-scene streaming media courseware recording and direct-broadcasting method
CN104378675A (en) * 2014-12-08 2015-02-25 厦门雅迅网络股份有限公司 Multichannel audio-video synchronized playing processing method
CN106793056A (en) * 2016-12-27 2017-05-31 京信通信技术(广州)有限公司 A kind of channel transmission signal alignment method and apparatus
CN111372128A (en) * 2020-03-11 2020-07-03 北京旷视科技有限公司 Video playing method and device, computer equipment and readable storage medium
CN112492357A (en) * 2020-11-13 2021-03-12 北京安博盛赢教育科技有限责任公司 Method, device, medium and electronic equipment for processing multiple video streams

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996662A (en) * 2010-10-22 2011-03-30 深圳市万兴软件有限公司 Method and device for connecting and outputting video files
CN102821308A (en) * 2012-06-04 2012-12-12 西安交通大学 Multi-scene streaming media courseware recording and direct-broadcasting method
CN104378675A (en) * 2014-12-08 2015-02-25 厦门雅迅网络股份有限公司 Multichannel audio-video synchronized playing processing method
CN106793056A (en) * 2016-12-27 2017-05-31 京信通信技术(广州)有限公司 A kind of channel transmission signal alignment method and apparatus
CN111372128A (en) * 2020-03-11 2020-07-03 北京旷视科技有限公司 Video playing method and device, computer equipment and readable storage medium
CN112492357A (en) * 2020-11-13 2021-03-12 北京安博盛赢教育科技有限责任公司 Method, device, medium and electronic equipment for processing multiple video streams

Similar Documents

Publication Publication Date Title
US7274862B2 (en) Information processing apparatus
US6078725A (en) Apparatus for a synchronized playback of audio-video signals
WO2016095369A1 (en) Screen recording method and device
CN101419827B (en) Method for synchronzing audio and video data in avi file
JP6475228B2 (en) Operations that are aware of the syntax of media files in container format
CN102821308A (en) Multi-scene streaming media courseware recording and direct-broadcasting method
CN103959807A (en) Method to match input and output timestamps in a video encoder and advertisement inserter
US20180376180A1 (en) Method and apparatus for metadata insertion pipeline for streaming media
CN109714623A (en) Image presentation method, device, electronic equipment and computer readable storage medium
CN107295355A (en) A kind of audio frequency and video total system and method
CN108769600B (en) Desktop sharing system based on video stream frame rate adjustment and desktop sharing method thereof
CN113507617B (en) SEI frame playback data synchronization method, system, device and medium based on live video stream
JP6606526B2 (en) Synchronization control device and synchronization control method
CN113329255A (en) Multi-channel video synchronous playing method, system and medium based on browser
US20150189365A1 (en) Method and apparatus for generating a recording index
CN107295326A (en) A kind of 3D three-dimensional video-frequencies method for recording
CN113497963A (en) Video processing method, device and equipment
US9008488B2 (en) Video recording apparatus and camera recorder
CN108259805B (en) Multi-channel video decoding method, playing method and device and automobile data recorder
CN113630643B (en) Media stream recording method and device, computer storage medium and electronic equipment
CN115695883A (en) Video data processing method, device, equipment and storage medium
DE112011101955B4 (en) Video display device
DE112013001880T5 (en) Apparatus and method for distributing digital data, apparatus and method for reproducing digital data, synchronized reproduction system, program and recording medium
JP4755717B2 (en) Broadcast receiving terminal device
US20160294494A1 (en) Using Single-Channel/Multi-Channel Transitions To Output An Alert Indicating A Functional State Of A Back-Up Audio-Broadcast System

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210831