CN113965282A - Emergency broadcasting method for multimedia IP outdoor terminal - Google Patents
Emergency broadcasting method for multimedia IP outdoor terminal Download PDFInfo
- Publication number
- CN113965282A CN113965282A CN202111175900.6A CN202111175900A CN113965282A CN 113965282 A CN113965282 A CN 113965282A CN 202111175900 A CN202111175900 A CN 202111175900A CN 113965282 A CN113965282 A CN 113965282A
- Authority
- CN
- China
- Prior art keywords
- data
- outdoor terminal
- multimedia
- broadcasted
- broadcast
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04H—BROADCAST COMMUNICATION
- H04H20/00—Arrangements for broadcast or for distribution combined with broadcast
- H04H20/53—Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers
- H04H20/59—Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers for emergency or urgency
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Telephonic Communication Services (AREA)
- Alarm Systems (AREA)
Abstract
The invention provides an emergency broadcasting method for a multimedia IP outdoor terminal, which belongs to the technical field of emergency broadcasting and comprises the following steps: step S10, the outdoor terminal obtains multimedia data through IP communication protocol; step S20, the outdoor terminal verifies the multimedia data; step S30, the outdoor terminal analyzes the verified multimedia data to obtain data to be broadcasted and extended data; step S40, the outdoor terminal stores the data to be broadcasted and the expanded data to the appointed file path based on the data type, or directly carries out emergency broadcasting; step S50, the outdoor terminal reads the data to be broadcasted and the expansion data from the file path, and carries out emergency broadcasting on the data to be broadcasted through the expansion data; and step S60, the outdoor terminal monitors the emergency broadcast of each data to be broadcast and uploads the monitored broadcast record to the server. The invention has the advantages that: the outdoor terminal can support multimedia emergency broadcasting, and the application range is greatly expanded.
Description
Technical Field
The invention relates to the technical field of emergency broadcasting, in particular to an emergency broadcasting method for a multimedia IP outdoor terminal.
Background
Currently, terminals in an emergency broadcast system are classified into the following 8 types: 1. a cable television terminal; 2. a ground television terminal; 3. a satellite terminal is live broadcast; 4. mobile multimedia; 5. a personal radio; 6. urban public broadcasting; 7. a loud speaker terminal; 8. a new media terminal not incorporated into an outdoor terminal; the standard specification of the emergency broadcast communication technology defines an outdoor terminal as a multi-mode sound post and a multi-mode receiver-expander, and defines media transmitted by the outdoor terminal as audio, namely only audio transmission rules of the outdoor terminal are defined, and picture and video transmission rules are not defined, so that the application scene of the outdoor terminal is limited.
Therefore, how to provide an emergency broadcast method for a multimedia IP outdoor terminal, so as to enable the outdoor terminal to support the emergency broadcast of multimedia, thereby increasing the application range, becomes a technical problem to be solved urgently.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an emergency broadcasting method for a multimedia IP outdoor terminal, so that the outdoor terminal can support the emergency broadcasting of multimedia, and the application range is widened.
The invention is realized by the following steps: an emergency broadcasting method for a multimedia IP outdoor terminal comprises the following steps:
step S10, the outdoor terminal obtains multimedia data through an IP communication protocol, wherein the data type of the multimedia data is pictures, file videos or live videos;
step S20, the outdoor terminal verifies the multimedia data;
step S30, the outdoor terminal analyzes the verified multimedia data to obtain data to be broadcasted and extended data;
step S40, the outdoor terminal stores the data to be broadcasted and the extended data to a specified file path based on the data type, or directly carries out emergency broadcasting;
step S50, the outdoor terminal reads the data to be broadcasted and the extended data from the file path, and carries out emergency broadcasting on the data to be broadcasted through the extended data;
and step S60, the outdoor terminal monitors the emergency broadcast of the data to be broadcast and uploads the monitored broadcast records to the server.
Further, the step S10 specifically includes:
step S11, after the outdoor terminal is started, heartbeat data is sent to the server through an IP communication protocol;
step S12, the server feeds back response data allowing connection to the outdoor terminal based on the received heartbeat data;
step S13, the outdoor terminal establishes heartbeat connection with the server based on the received response data;
step S14, the server performs CRC calculation on each data to be broadcasted to obtain a first check code, packs and compresses each data to be broadcasted and the first check code based on an auxiliary data format to obtain multimedia data, and generates a URL address related to the multimedia data;
step S15, the server sends a broadcast command carrying the URL address to the outdoor terminal;
and step S16, the outdoor terminal analyzes the received broadcast command to obtain a URL address, and downloads multimedia data through the URL address, wherein the data type of the multimedia data is pictures, file videos or live videos.
Further, in step S14, the content of the auxiliary data format includes an auxiliary data amount, a data type, an auxiliary data length, an auxiliary data content, and extension data;
the auxiliary data quantity takes the value of 1; the data type is a picture, a file video or a live video; the picture is a PNG picture, a JPEG picture or a GIF picture; the auxiliary data content is data to be broadcasted; the extended data comprises broadcast task information, multimedia information and transition effect information;
the broadcast task information at least comprises the total number of files, the total number of transition effects, a display sequence, a tail frame processing identifier, a task type, start time, end time, cycle times and the number of simultaneous playing; the end frame processing identifier is used for identifying whether the last frame of picture is reserved or not; the task type is timing broadcast or circulating broadcast;
the multimedia information at least comprises a multimedia ID, a check code, multimedia width and height, display duration, display position, filter effect and coding format;
the transitional effect information at least comprises a transitional effect ID, switching interval time, a switching mode, display starting time and display ending time; the switching modes include at least translation, scaling, rotation, and blurring.
Further, the step S20 specifically includes:
step S21, the outdoor terminal decompresses the multimedia data based on the auxiliary data format to obtain the auxiliary data quantity, the auxiliary data type, the auxiliary data length, the auxiliary data content and the extension data;
step S22, the outdoor terminal obtains the data to be broadcasted from the auxiliary data content, and performs CRC calculation on the obtained data to be broadcasted to obtain a second check code, judges whether the second check code is equal to the first check code carried in the extended data, if so, the check is passed, and the step S30 is entered; if not, the verification fails, and step S23 is entered;
step S23, judging whether the number of times of verification failure exceeds a set number threshold, if so, sending response data of download failure to the server, and ending the process; if not, the process proceeds to step S10.
Further, the step S30 is specifically:
and the outdoor terminal analyzes the verified multimedia data to obtain data to be broadcasted and extended data comprising broadcast task information, multimedia information and transition effect information.
Further, the step S40 specifically includes:
s41, the outdoor terminal judges the data type of the multimedia data, and if the data type is a live video, the step S42 is carried out; if the picture or the file video is obtained, the step S43 is performed;
step S42, the outdoor terminal directly decodes the data to be broadcast through ffmpeg software and carries out emergency broadcast based on the extended data;
step S43, the outdoor terminal calculates the information summary of the data to be broadcasted to obtain an MD5 value, judges whether the appointed file path has a file with the same name as the MD5 value, if yes, the flow is ended; if not, go to step S44;
step S44, the outdoor terminal judges whether the residual storage space of the appointed file path can meet the storage requirement, if yes, the step S45 is executed; if not, circularly judging and deleting the related files of the unrelated broadcast task information until the storage requirement is met, and entering the step S45;
step S45, the outdoor terminal renames the data to be broadcasted to a designated file path through an MD5 value and stores the data to be broadcasted to the designated file path, writes the broadcast task information, the multimedia information and the transition effect information in the extended data into a data table respectively, adds an MD5 value into each data table as an index, and stores each data table to the designated file path.
Further, in step S50, when the data type of the data to be broadcast is a picture, the method specifically includes the following steps:
step S511, the outdoor terminal reads the data to be broadcasted and the corresponding extended data with the data type of the picture from the file path, and then performs clock synchronization with the Internet;
step S512, the outdoor terminal judges whether the current time is the start time carried by the extended data, if yes, the step S513 is executed; if not, waiting for the current time to reach the starting time, and entering step S513;
step S513, the outdoor terminal loads the data to be broadcasted into a memory, and the data to be broadcasted are sequentially broadcasted according to the display sequence carried by the extended data; in the playing process, loading the filter of each data to be broadcasted and transition animation when each data to be broadcasted is switched through a libjpeg library based on the filter effect and the transition effect information carried by the extension data;
step S514, the outdoor terminal judges whether the current playing times meet the cycle times carried by the extended data, if so, the outdoor terminal enters step S515; if not, go to step S513;
and step S515, the outdoor terminal reserves or clears the last frame of picture played based on the tail frame processing identifier carried by the extension data.
Further, in step S50, when the data type of the data to be broadcast is a file video, the method specifically includes the following steps:
step S521, the outdoor terminal reads data to be broadcasted and corresponding extended data with the data type of file video from the file path, and then performs clock synchronization with the Internet;
step S522, the outdoor terminal determines whether the current time is the start time carried by the extended data, if yes, step S523 is performed; if not, waiting for the current time to reach the starting time, and entering step S523;
step S523, the outdoor terminal determines whether the resolution of the data to be broadcasted is less than 1080P, if so, it indicates that the data to be broadcasted is a non-high-definition video, loads each file video of the data to be broadcasted into a memory, plays the video based on the number of simultaneous plays carried by the extended data, and proceeds to step S524; if not, indicating that the data to be broadcasted is a high-definition video, loading one file video of the data to be broadcasted into a memory for playing, and entering step S524;
step 524, the outdoor terminal judges whether the current playing times meet the cycle times carried by the extended data, if yes, the step 525 is entered; if not, go to step S523;
and step S525, the outdoor terminal reserves or clears the last frame of picture played based on the tail frame processing identification carried by the extended data.
Further, the step S60 is specifically:
and the outdoor terminal respectively monitors the emergency broadcast of the data to be broadcast through mutually independent monitoring threads and uploads the monitored broadcast records to the server.
The invention has the advantages that:
1. by adding the extension data in the auxiliary data format, broadcast task information, multimedia information and transition effect information of the multimedia data are determined, namely, the standard specification of the emergency broadcast communication technology is extended, a receiving channel of the multimedia data is added, and finally, the outdoor terminal is enabled to support the emergency broadcast of multimedia (pictures, file videos and live videos) by combining the ffmpeg coding and decoding technology and the IP transmission channel technology, so that the application range of the outdoor terminal is greatly expanded.
2. The value through setting up auxiliary data quantity is 1, treats broadcast data and packs the compression, is about to a plurality of data packing compression of treating broadcast for 1 data packet, for example need broadcast many pictures, then packs many pictures and compresses for 1 data packet, very big reduction the bandwidth of transmission, and outdoor terminal can receive all simultaneously and treat broadcast data, very big reduction the time delay of broadcast.
3. Data to be broadcasted is renamed through the MD5 value, and the MD5 value is used as an index value of a data table corresponding to broadcast task information, multimedia information and transition effect information, so that the repeated storage of the same file is avoided, the storage space is wasted, the data retrieval efficiency is greatly improved, and the broadcasting time delay is further reduced.
4. By deleting the related files of the unrelated broadcast task information when the storage space is insufficient, the utilization rate of the storage space is greatly improved, and redundant data is reduced.
5. The clock synchronization is carried out with the Internet before the emergency broadcast, so that the emergency broadcast can be started on time, namely, the timeliness of the emergency broadcast is guaranteed.
6. Through carrying out CRC (cyclic redundancy check) on the data to be broadcasted and verifying the integrity of the data to be broadcasted, the multimedia data which has defects or is tampered is prevented from being played, and the safety of emergency broadcasting is greatly improved.
7. Whether the file video is the high-definition video or not is verified before emergency broadcasting is carried out on the file video, and if the file video is the high-definition video, only one file video is played at a time, the situation that a decoder decodes a plurality of high-definition videos at the same time to cause decoding failure is avoided.
8. The emergency broadcasting of the data to be broadcasted is respectively monitored through the mutually independent monitoring threads, so that the data to be broadcasted with different data types can be simultaneously subjected to emergency broadcasting, and the flexibility of the emergency broadcasting is greatly improved.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
Fig. 1 is a flow chart of an emergency broadcasting method of a multimedia IP outdoor terminal according to the present invention.
Detailed Description
The technical scheme in the embodiment of the application has the following general idea: by adding the extension data in the auxiliary data format, the broadcast task information, the multimedia information and the transition effect information of the multimedia data are determined, namely, the standard specification of the emergency broadcast communication technology is extended, so that the outdoor terminal supports the emergency broadcast of the multimedia, and the application range of the outdoor terminal is expanded.
Referring to fig. 1, a preferred embodiment of an emergency broadcasting method for a multimedia IP outdoor terminal according to the present invention includes the following steps:
step S10, the outdoor terminal obtains multimedia data through an IP communication protocol, wherein the data type of the multimedia data is pictures, file videos or live videos;
step S20, the outdoor terminal verifies the multimedia data;
step S30, the outdoor terminal analyzes the verified multimedia data to obtain data to be broadcasted and extended data;
step S40, the outdoor terminal stores the data to be broadcasted and the extended data to a specified file path based on the data type, or directly carries out emergency broadcasting;
step S50, the outdoor terminal reads the data to be broadcasted and the extended data from the file path, and carries out emergency broadcasting on the data to be broadcasted through the extended data;
and step S60, the outdoor terminal monitors the emergency broadcast of the data to be broadcast and uploads the monitored broadcast records to the server.
The step S10 specifically includes:
step S11, after the outdoor terminal is started, heartbeat data is sent to the server through an IP communication protocol;
step S12, the server feeds back response data allowing connection to the outdoor terminal based on the received heartbeat data;
step S13, the outdoor terminal establishes heartbeat connection with the server based on the received response data;
step S14, the server performs CRC calculation on each data to be broadcasted to obtain a first check code, the data to be broadcasted and the first check code are packed and compressed based on an auxiliary data format to obtain multimedia data, the multimedia data are encrypted by using a national secret SM2 algorithm or a national secret SM3 algorithm, and a URL address related to the multimedia data is generated; for example, when a plurality of pictures are transmitted for broadcasting, only one compressed file is packed to reduce the transmission bandwidth;
step S15, the server sends a broadcast command carrying the URL address to the outdoor terminal;
and step S16, the outdoor terminal analyzes the received broadcast command to obtain a URL address, and downloads multimedia data through the URL address, wherein the data type of the multimedia data is pictures, file videos or live videos. In specific implementation, the outdoor terminal records the downloading time of each multimedia data.
In step S14, the content of the auxiliary data format includes an auxiliary data amount, a data type, an auxiliary data length, an auxiliary data content, and extension data; the auxiliary data quantity, the data type, the auxiliary data length, the auxiliary data content and the extension data adopt a JSON format; the extension data is used for receiving and playing multimedia data;
the auxiliary data quantity takes the value of 1; the data type is a picture, a file video or a live video; the picture is a PNG picture, a JPEG picture or a GIF picture; the auxiliary data content is data to be broadcasted; the extended data comprises broadcast task information, multimedia information and transition effect information; the data type identifications of the PNG picture, the JPEG picture, the GIF picture, the file video, the live video and the extension data are respectively 41, 42, 43, 61 and 62, and the data type identifications of the extension data are reserved data types, so that the packing and the issuing of standard data are not influenced;
the broadcast task information at least comprises the total number of files, the total number of transition effects, a display sequence, a tail frame processing identifier, a task type, start time, end time, cycle times and the number of simultaneous playing; the end frame processing identifier is used for identifying whether the last frame of picture is reserved or not; the task type is timing broadcast or circulating broadcast; the number of the simultaneous playing is preferably 4, namely the number of the simultaneous playing of the file videos is limited;
the multimedia information at least comprises a multimedia ID, a check code, multimedia width and height, display duration, display position, filter effect and coding format; the display position is the display position on the screen;
the transitional effect information at least comprises a transitional effect ID, switching interval time, a switching mode, display starting time and display ending time; the switching modes include at least translation, scaling, rotation, and blurring.
The sub-parameters of the translation comprise upward translation, downward translation, leftward translation and rightward translation; the sub-parameters of zooming include zooming in and zooming out; the sub-parameters of the rotation include clockwise rotation and counterclockwise rotation; the blur is preferably a gaussian blur; the translation is realized by adopting a double-buffer technology; the scaling and rotation is achieved by libjpeg library.
The step S20 specifically includes:
step S21, after the multimedia data are decrypted by the outdoor terminal by utilizing a national secret SM2 algorithm or a national secret SM3 algorithm, the multimedia data are decompressed based on an auxiliary data format to obtain the quantity of auxiliary data, the type of the auxiliary data, the length of the auxiliary data, the content of the auxiliary data and the extension data; the multimedia data are encrypted and decrypted through the SM2 algorithm or the SM3 algorithm, so that the safety of emergency broadcasting is greatly improved;
step S22, the outdoor terminal obtains the data to be broadcasted from the auxiliary data content, and performs CRC calculation on the obtained data to be broadcasted to obtain a second check code, judges whether the second check code is equal to the first check code carried in the extended data, if so, the check is passed, and the step S30 is entered; if not, the verification fails, and step S23 is entered;
step S23, judging whether the number of times of verification failure exceeds a set number threshold, if so, sending response data of download failure to the server, and ending the process; if not, the process proceeds to step S10. The number threshold is preferably 3, that is, if the number of verification failures exceeds 3, the download failure is fed back to the server.
The step S30 specifically includes:
and the outdoor terminal analyzes the verified multimedia data to obtain data to be broadcasted and extended data comprising broadcast task information, multimedia information and transition effect information.
The step S40 specifically includes:
s41, the outdoor terminal judges the data type of the multimedia data, and if the data type is a live video, the step S42 is carried out; if the picture or the file video is obtained, the step S43 is performed;
step S42, the outdoor terminal directly decodes the data to be broadcast through ffmpeg software and carries out emergency broadcast based on the extended data; that is, the live video adopts an RTMP mode (Real Time Messaging Protocol/Real-Time message transfer Protocol), is directly decoded and played, is not stored to the local, and only supports the playing of one path of live video at the same Time;
step S43, the outdoor terminal calculates the information summary of the data to be broadcasted to obtain an MD5 value, judges whether the appointed file path has files with the same name as the MD5 value (i.e. traversing all the projects, judging whether repeated files exist), and if yes, ends the process; if not, go to step S44;
step S44, the outdoor terminal judges whether the residual storage space of the appointed file path can meet the storage requirement, if yes, the step S45 is executed; if not, circularly judging and deleting the related files of the unrelated broadcast task information until the storage requirement is met, and entering the step S45;
step S45, the outdoor terminal renames the data to be broadcasted to a designated file path through an MD5 value and stores the data to be broadcasted to the designated file path, writes the broadcast task information, the multimedia information and the transition effect information in the extended data into a data table respectively, adds an MD5 value into each data table as an index, and stores each data table to the designated file path.
In step S50, when the data type of the data to be broadcast is a picture, the method specifically includes the following steps:
step S511, the outdoor terminal reads the data to be broadcasted and the corresponding extended data with the data type of the picture from the file path, and then performs clock synchronization with the Internet;
step S512, the outdoor terminal judges whether the current time is the start time carried by the extended data, if yes, the step S513 is executed; if not, waiting for the current time to reach the starting time, and entering step S513;
step S513, the outdoor terminal loads the data to be broadcasted into a memory, and the data to be broadcasted are sequentially broadcasted according to the display sequence carried by the extended data; in the playing process, loading the filter of each data to be broadcasted and transition animation when each data to be broadcasted is switched through a libjpeg library based on the filter effect and the transition effect information carried by the extension data;
sequentially carrying out filter processing of the whole area on each picture through a libjpeg library; the method comprises the steps that a picture played at the second time and a picture played next time are cached simultaneously through a double-buffering technology, namely, a libjpeg library processes two pictures in the cache every second to obtain transition animation; and transition data parameters need to be calculated before emergency broadcasting, and the formula is as follows: transition data parameter is path parameter/switching interval time; the path parameters are obtained based on different transition effect information, for example, the path parameters are the width of the picture when the picture is translated to the left and the right, the path parameters are the height of the picture when the picture is translated to the up and down, the path parameters are the rotation angle when the picture is rotated, and the path parameters are the zoom times when the picture is zoomed;
step S514, the outdoor terminal judges whether the current playing times meet the cycle times carried by the extended data, if so, the outdoor terminal enters step S515; if not, go to step S513;
and step S515, the outdoor terminal reserves or clears the last frame of picture played based on the tail frame processing identifier carried by the extension data.
In step S50, when the data type of the data to be broadcast is a file video, the method specifically includes the following steps:
step S521, the outdoor terminal reads data to be broadcasted and corresponding extended data with the data type of file video from the file path, and then performs clock synchronization with the Internet;
step S522, the outdoor terminal determines whether the current time is the start time carried by the extended data, if yes, step S523 is performed; if not, waiting for the current time to reach the starting time, and entering step S523;
step S523, the outdoor terminal determines whether the resolution of the data to be broadcasted is less than 1080P, if so, it indicates that the data to be broadcasted is a non-high-definition video, loads each file video of the data to be broadcasted into a memory, plays the video based on the number of simultaneous plays carried by the extended data, and proceeds to step S524; if not, indicating that the data to be broadcasted is a high-definition video, loading one file video of the data to be broadcasted into a memory for playing, and entering step S524; when the file video is played, the OSD graphic layer is displayed on the video layer;
step 524, the outdoor terminal judges whether the current playing times meet the cycle times carried by the extended data, if yes, the step 525 is entered; if not, go to step S523;
and step S525, the outdoor terminal reserves or clears the last frame of picture played based on the tail frame processing identification carried by the extended data.
The step S60 specifically includes:
and the outdoor terminal respectively monitors the emergency broadcast of the data to be broadcast through mutually independent monitoring threads and uploads the monitored broadcast records to the server.
In summary, the invention has the advantages that:
1. by adding the extension data in the auxiliary data format, broadcast task information, multimedia information and transition effect information of the multimedia data are determined, namely, the standard specification of the emergency broadcast communication technology is extended, a receiving channel of the multimedia data is added, and finally, the outdoor terminal is enabled to support the emergency broadcast of multimedia (pictures, file videos and live videos) by combining the ffmpeg coding and decoding technology and the IP transmission channel technology, so that the application range of the outdoor terminal is greatly expanded.
2. The value through setting up auxiliary data quantity is 1, treats broadcast data and packs the compression, is about to a plurality of data packing compression of treating broadcast for 1 data packet, for example need broadcast many pictures, then packs many pictures and compresses for 1 data packet, very big reduction the bandwidth of transmission, and outdoor terminal can receive all simultaneously and treat broadcast data, very big reduction the time delay of broadcast.
3. Data to be broadcasted is renamed through the MD5 value, and the MD5 value is used as an index value of a data table corresponding to broadcast task information, multimedia information and transition effect information, so that the repeated storage of the same file is avoided, the storage space is wasted, the data retrieval efficiency is greatly improved, and the broadcasting time delay is further reduced.
4. By deleting the related files of the unrelated broadcast task information when the storage space is insufficient, the utilization rate of the storage space is greatly improved, and redundant data is reduced.
5. The clock synchronization is carried out with the Internet before the emergency broadcast, so that the emergency broadcast can be started on time, namely, the timeliness of the emergency broadcast is guaranteed.
6. Through carrying out CRC (cyclic redundancy check) on the data to be broadcasted and verifying the integrity of the data to be broadcasted, the multimedia data which has defects or is tampered is prevented from being played, and the safety of emergency broadcasting is greatly improved.
7. Whether the file video is the high-definition video or not is verified before emergency broadcasting is carried out on the file video, and if the file video is the high-definition video, only one file video is played at a time, the situation that a decoder decodes a plurality of high-definition videos at the same time to cause decoding failure is avoided.
8. The emergency broadcasting of the data to be broadcasted is respectively monitored through the mutually independent monitoring threads, so that the data to be broadcasted with different data types can be simultaneously subjected to emergency broadcasting, and the flexibility of the emergency broadcasting is greatly improved.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (9)
1. An emergency broadcasting method for a multimedia IP outdoor terminal is characterized in that: the method comprises the following steps:
step S10, the outdoor terminal obtains multimedia data through an IP communication protocol, wherein the data type of the multimedia data is pictures, file videos or live videos;
step S20, the outdoor terminal verifies the multimedia data;
step S30, the outdoor terminal analyzes the verified multimedia data to obtain data to be broadcasted and extended data;
step S40, the outdoor terminal stores the data to be broadcasted and the extended data to a specified file path based on the data type, or directly carries out emergency broadcasting;
step S50, the outdoor terminal reads the data to be broadcasted and the extended data from the file path, and carries out emergency broadcasting on the data to be broadcasted through the extended data;
and step S60, the outdoor terminal monitors the emergency broadcast of the data to be broadcast and uploads the monitored broadcast records to the server.
2. The emergency broadcasting method of the multimedia IP outdoor terminal of claim 1, wherein: the step S10 specifically includes:
step S11, after the outdoor terminal is started, heartbeat data is sent to the server through an IP communication protocol;
step S12, the server feeds back response data allowing connection to the outdoor terminal based on the received heartbeat data;
step S13, the outdoor terminal establishes heartbeat connection with the server based on the received response data;
step S14, the server performs CRC calculation on each data to be broadcasted to obtain a first check code, packs and compresses each data to be broadcasted and the first check code based on an auxiliary data format to obtain multimedia data, and generates a URL address related to the multimedia data;
step S15, the server sends a broadcast command carrying the URL address to the outdoor terminal;
and step S16, the outdoor terminal analyzes the received broadcast command to obtain a URL address, and downloads multimedia data through the URL address, wherein the data type of the multimedia data is pictures, file videos or live videos.
3. The emergency broadcasting method of the multimedia IP outdoor terminal according to claim 2, characterized in that: in step S14, the content of the auxiliary data format includes an auxiliary data amount, a data type, an auxiliary data length, an auxiliary data content, and extension data;
the auxiliary data quantity takes the value of 1; the data type is a picture, a file video or a live video; the picture is a PNG picture, a JPEG picture or a GIF picture; the auxiliary data content is data to be broadcasted; the extended data comprises broadcast task information, multimedia information and transition effect information;
the broadcast task information at least comprises the total number of files, the total number of transition effects, a display sequence, a tail frame processing identifier, a task type, start time, end time, cycle times and the number of simultaneous playing; the end frame processing identifier is used for identifying whether the last frame of picture is reserved or not; the task type is timing broadcast or circulating broadcast;
the multimedia information at least comprises a multimedia ID, a check code, multimedia width and height, display duration, display position, filter effect and coding format;
the transitional effect information at least comprises a transitional effect ID, switching interval time, a switching mode, display starting time and display ending time; the switching modes include at least translation, scaling, rotation, and blurring.
4. The emergency broadcasting method of the multimedia IP outdoor terminal of claim 1, wherein: the step S20 specifically includes:
step S21, the outdoor terminal decompresses the multimedia data based on the auxiliary data format to obtain the auxiliary data quantity, the auxiliary data type, the auxiliary data length, the auxiliary data content and the extension data;
step S22, the outdoor terminal obtains the data to be broadcasted from the auxiliary data content, and performs CRC calculation on the obtained data to be broadcasted to obtain a second check code, judges whether the second check code is equal to the first check code carried in the extended data, if so, the check is passed, and the step S30 is entered; if not, the verification fails, and step S23 is entered;
step S23, judging whether the number of times of verification failure exceeds a set number threshold, if so, sending response data of download failure to the server, and ending the process; if not, the process proceeds to step S10.
5. The emergency broadcasting method of the multimedia IP outdoor terminal of claim 1, wherein: the step S30 specifically includes:
and the outdoor terminal analyzes the verified multimedia data to obtain data to be broadcasted and extended data comprising broadcast task information, multimedia information and transition effect information.
6. The emergency broadcasting method of the multimedia IP outdoor terminal of claim 1, wherein: the step S40 specifically includes:
s41, the outdoor terminal judges the data type of the multimedia data, and if the data type is a live video, the step S42 is carried out; if the picture or the file video is obtained, the step S43 is performed;
step S42, the outdoor terminal directly decodes the data to be broadcast through ffmpeg software and carries out emergency broadcast based on the extended data;
step S43, the outdoor terminal calculates the information summary of the data to be broadcasted to obtain an MD5 value, judges whether the appointed file path has a file with the same name as the MD5 value, if yes, the flow is ended; if not, go to step S44;
step S44, the outdoor terminal judges whether the residual storage space of the appointed file path can meet the storage requirement, if yes, the step S45 is executed; if not, circularly judging and deleting the related files of the unrelated broadcast task information until the storage requirement is met, and entering the step S45;
step S45, the outdoor terminal renames the data to be broadcasted to a designated file path through an MD5 value and stores the data to be broadcasted to the designated file path, writes the broadcast task information, the multimedia information and the transition effect information in the extended data into a data table respectively, adds an MD5 value into each data table as an index, and stores each data table to the designated file path.
7. The emergency broadcasting method of the multimedia IP outdoor terminal of claim 1, wherein: in step S50, when the data type of the data to be broadcast is a picture, the method specifically includes the following steps:
step S511, the outdoor terminal reads the data to be broadcasted and the corresponding extended data with the data type of the picture from the file path, and then performs clock synchronization with the Internet;
step S512, the outdoor terminal judges whether the current time is the start time carried by the extended data, if yes, the step S513 is executed; if not, waiting for the current time to reach the starting time, and entering step S513;
step S513, the outdoor terminal loads the data to be broadcasted into a memory, and the data to be broadcasted are sequentially broadcasted according to the display sequence carried by the extended data; in the playing process, loading the filter of each data to be broadcasted and transition animation when each data to be broadcasted is switched through a libjpeg library based on the filter effect and the transition effect information carried by the extension data;
step S514, the outdoor terminal judges whether the current playing times meet the cycle times carried by the extended data, if so, the outdoor terminal enters step S515; if not, go to step S513;
and step S515, the outdoor terminal reserves or clears the last frame of picture played based on the tail frame processing identifier carried by the extension data.
8. The emergency broadcasting method of the multimedia IP outdoor terminal of claim 1, wherein: in step S50, when the data type of the data to be broadcast is a file video, the method specifically includes the following steps:
step S521, the outdoor terminal reads data to be broadcasted and corresponding extended data with the data type of file video from the file path, and then performs clock synchronization with the Internet;
step S522, the outdoor terminal determines whether the current time is the start time carried by the extended data, if yes, step S523 is performed; if not, waiting for the current time to reach the starting time, and entering step S523;
step S523, the outdoor terminal determines whether the resolution of the data to be broadcasted is less than 1080P, if so, it indicates that the data to be broadcasted is a non-high-definition video, loads each file video of the data to be broadcasted into a memory, plays the video based on the number of simultaneous plays carried by the extended data, and proceeds to step S524; if not, indicating that the data to be broadcasted is a high-definition video, loading one file video of the data to be broadcasted into a memory for playing, and entering step S524;
step 524, the outdoor terminal judges whether the current playing times meet the cycle times carried by the extended data, if yes, the step 525 is entered; if not, go to step S523;
and step S525, the outdoor terminal reserves or clears the last frame of picture played based on the tail frame processing identification carried by the extended data.
9. The emergency broadcasting method of the multimedia IP outdoor terminal of claim 1, wherein: the step S60 specifically includes:
and the outdoor terminal respectively monitors the emergency broadcast of the data to be broadcast through mutually independent monitoring threads and uploads the monitored broadcast records to the server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111175900.6A CN113965282B (en) | 2021-10-09 | 2021-10-09 | Emergency broadcasting method for multimedia IP outdoor terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111175900.6A CN113965282B (en) | 2021-10-09 | 2021-10-09 | Emergency broadcasting method for multimedia IP outdoor terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113965282A true CN113965282A (en) | 2022-01-21 |
CN113965282B CN113965282B (en) | 2023-05-12 |
Family
ID=79463158
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111175900.6A Active CN113965282B (en) | 2021-10-09 | 2021-10-09 | Emergency broadcasting method for multimedia IP outdoor terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113965282B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060271633A1 (en) * | 2005-05-25 | 2006-11-30 | Adler Robert M | Geographically specific broadcasting system providing advisory alerts of sexual predators |
CN101079034A (en) * | 2006-07-10 | 2007-11-28 | 腾讯科技(深圳)有限公司 | System and method for eliminating redundancy file of file storage system |
CN103873173A (en) * | 2014-03-27 | 2014-06-18 | 北京悦迪文化传媒有限公司 | Digital pushing radio (DPR) method based on wireless digital radio technology |
CN105162878A (en) * | 2015-09-24 | 2015-12-16 | 网宿科技股份有限公司 | Distributed storage based file distribution system and method |
CN106034290A (en) * | 2015-03-20 | 2016-10-19 | 中国科学院上海高等研究院 | Physical layer signaling system based on wireless digital multimedia broadcasting |
CN106685559A (en) * | 2016-12-15 | 2017-05-17 | 北京数码视讯科技股份有限公司 | Emergency information distribution method and emergency information distribution system |
CN108650046A (en) * | 2018-05-21 | 2018-10-12 | 重庆邮电大学 | The realization method and system of digital broadcasting information publication based on Broadcast Website technology |
CN110519635A (en) * | 2019-08-07 | 2019-11-29 | 河北远东通信系统工程有限公司 | A kind of audio-video frequency media stream interflow method and system of wireless clustered system |
CN110531939A (en) * | 2019-09-10 | 2019-12-03 | 南京焦点领动云计算技术有限公司 | A kind of video on-demand system disk space optimization method |
CN112235236A (en) * | 2020-08-28 | 2021-01-15 | 福建新大陆通信科技股份有限公司 | Emergency broadcast data analysis method |
CN112272318A (en) * | 2020-07-10 | 2021-01-26 | 北京远景视点科技有限公司 | Method for distributing multimedia material |
CN112350793A (en) * | 2020-09-27 | 2021-02-09 | 福建新大陆通信科技股份有限公司 | Audio monitoring method for emergency broadcasting |
CN112688750A (en) * | 2020-12-09 | 2021-04-20 | 福建新大陆通信科技股份有限公司 | Emergency broadcasting terminal timing broadcasting method |
-
2021
- 2021-10-09 CN CN202111175900.6A patent/CN113965282B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060271633A1 (en) * | 2005-05-25 | 2006-11-30 | Adler Robert M | Geographically specific broadcasting system providing advisory alerts of sexual predators |
CN101079034A (en) * | 2006-07-10 | 2007-11-28 | 腾讯科技(深圳)有限公司 | System and method for eliminating redundancy file of file storage system |
CN103873173A (en) * | 2014-03-27 | 2014-06-18 | 北京悦迪文化传媒有限公司 | Digital pushing radio (DPR) method based on wireless digital radio technology |
CN106034290A (en) * | 2015-03-20 | 2016-10-19 | 中国科学院上海高等研究院 | Physical layer signaling system based on wireless digital multimedia broadcasting |
CN105162878A (en) * | 2015-09-24 | 2015-12-16 | 网宿科技股份有限公司 | Distributed storage based file distribution system and method |
CN106685559A (en) * | 2016-12-15 | 2017-05-17 | 北京数码视讯科技股份有限公司 | Emergency information distribution method and emergency information distribution system |
CN108650046A (en) * | 2018-05-21 | 2018-10-12 | 重庆邮电大学 | The realization method and system of digital broadcasting information publication based on Broadcast Website technology |
CN110519635A (en) * | 2019-08-07 | 2019-11-29 | 河北远东通信系统工程有限公司 | A kind of audio-video frequency media stream interflow method and system of wireless clustered system |
CN110531939A (en) * | 2019-09-10 | 2019-12-03 | 南京焦点领动云计算技术有限公司 | A kind of video on-demand system disk space optimization method |
CN112272318A (en) * | 2020-07-10 | 2021-01-26 | 北京远景视点科技有限公司 | Method for distributing multimedia material |
CN112235236A (en) * | 2020-08-28 | 2021-01-15 | 福建新大陆通信科技股份有限公司 | Emergency broadcast data analysis method |
CN112350793A (en) * | 2020-09-27 | 2021-02-09 | 福建新大陆通信科技股份有限公司 | Audio monitoring method for emergency broadcasting |
CN112688750A (en) * | 2020-12-09 | 2021-04-20 | 福建新大陆通信科技股份有限公司 | Emergency broadcasting terminal timing broadcasting method |
Also Published As
Publication number | Publication date |
---|---|
CN113965282B (en) | 2023-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9601126B2 (en) | Audio splitting with codec-enforced frame sizes | |
US10645466B2 (en) | Video file universal identifier for metadata resolution | |
US20150312625A1 (en) | Information processing apparatus, data management method, and program | |
CN110784740A (en) | Video processing method, device, server and readable storage medium | |
CN107634930B (en) | Method and device for acquiring media data | |
US8817983B2 (en) | Streaming video to cellular phones | |
CN112752109B (en) | Video playing control method and system | |
CN104202684A (en) | Segmental network video seamless playing method and device | |
US10440447B2 (en) | Broadcast signal transmission/reception device and method | |
JP2003284037A (en) | Multimedia data reception device and method therefor, and multimedia data transmission device and method therefor | |
CN110519640B (en) | Video processing method, encoder, CDN server, decoder, device, and medium | |
CN101848367B (en) | File-based video live webcasting method | |
CN112087642B (en) | Cloud guide playing method, cloud guide server and remote management terminal | |
KR20170141677A (en) | Receiving device, transmitting device and data processing method | |
EP2453652B1 (en) | Transmission method, receiving method and device for scalable video coding files | |
KR20170000312A (en) | Method and apparatus for digital broadcast services | |
JPWO2012011473A1 (en) | TRANSMISSION DEVICE, TRANSMISSION METHOD, RECEPTION DEVICE, RECEPTION METHOD, COMMUNICATION SYSTEM, DATA STRUCTURE, PROGRAM, AND STORAGE MEDIUM | |
EP2341680B1 (en) | Method and apparatus for adaptation of a multimedia content | |
CN113507639A (en) | Channel fast switching method, player and readable storage medium | |
CN108134957A (en) | A kind of throwing screen method, terminal and computer storage media | |
CN113965282B (en) | Emergency broadcasting method for multimedia IP outdoor terminal | |
CN104994406A (en) | Video editing method and apparatus based on silverlight plug-in | |
JP2006339980A (en) | Image reproducer | |
WO2022100742A1 (en) | Video encoding and video playback method, apparatus and system | |
US11451865B1 (en) | Relay of audio and/or video steganography to improve second screen experiences |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |