Search

CN-122002080-A - Video playing method and related equipment for time zone-crossing vehicle

CN122002080ACN 122002080 ACN122002080 ACN 122002080ACN-122002080-A

Abstract

The embodiment of the application provides a video playing method and related equipment of a vehicle crossing time zones, which are used for decoupling physical time and business logic time and ensuring the continuity of video playing. The method comprises the steps of constructing a virtual logistics clock VLC, calculating and updating current VLC time based on UTC time stamps acquired by vehicles and recorded real-time clock time stamps in the process of executing transportation tasks by the vehicles, generating a vehicle-mounted video stream in the process of encoding the vehicle-mounted video, embedding VLC time codes generated in the current VLC time into the vehicle-mounted video stream to enable each video frame of the vehicle-mounted video stream to carry a corresponding VLC time code, analyzing the VLC time codes in the vehicle-mounted video stream when video playback is requested, and sequencing and splicing all video frames according to the VLC time codes so as to realize continuous playing of the vehicle-mounted video stream crossing time zones.

Inventors

  • GUO XINXIN
  • LIANG WEI
  • GUI JIANZHANG
  • XU FEI
  • XU YUFENG

Assignees

  • 深圳市锐明技术股份有限公司

Dates

Publication Date
20260508
Application Date
20260209

Claims (13)

  1. 1. A method for playing video of a vehicle crossing a time zone, the method comprising: establishing a virtual logistics clock VLC, wherein VLC calculates VLC time based on coordinated Universal Time (UTC) increment accumulation, the VLC time takes transport task starting time as time zero point, keeps monotonically increasing during the execution of the transport task and is not influenced by physical time zone switching; During the process of the vehicle executing the transportation task, calculating and updating the current VLC time based on the UTC time stamp collected by the vehicle and the recorded real-time clock time stamp; In the vehicle-mounted video coding process, generating a vehicle-mounted video stream, embedding a VLC time code generated by the current VLC time into the vehicle-mounted video stream, and enabling each video frame of the vehicle-mounted video stream to carry the corresponding VLC time code; when video playback is requested, analyzing the VLC time code in the vehicle-mounted video stream, and sequencing and splicing all video frames according to the VLC time code so as to realize continuous playing of the vehicle-mounted video stream crossing time zones.
  2. 2. The method for playing video of a time zone crossing vehicle according to claim 1, wherein said constructing a virtual logistics clock VLC comprises: At the starting time of the transportation task, recording the time zone offset of the departure place of the task And a start UTC time ; Setting the initial value of the VLC time to And according to the following As a reference starting point for time increment calculation, the VLC time is made to remain monotonically increasing by the accumulated UTC time increment during the execution of the transportation task.
  3. 3. The method of claim 1, wherein calculating and updating the current VLC time based on the UTC time stamps collected by the vehicle and the recorded real time clock time stamps comprises: acquisition of the first UTC time stamp for individual sample points And real-time clock time stamp of vehicle ; Performing time increment calculation according to UTC time stamps and real-time clock time stamps of adjacent sampling points to respectively obtain UTC time increment and real-time clock time increment, wherein the UTC time increment Real time clock time increment The said Is the first UTC time stamps of individual sample points, said Is the first Real-time clock time stamps for the sampling points; Judging whether the absolute value of the difference value between the UTC time increment and the real-time clock time increment exceeds the error threshold value according to a preset error threshold value to obtain a first judgment result; if the first judgment result is not exceeded, the second judgment result is not failed, and the UTC time increment is adopted as an effective time increment ; Or if the first judgment result is exceeded and the second judgment result is not invalid, adopting the real-time clock time increment as the effective time increment ; Or if the second judging result is invalid, calculating a vehicle time increment as the effective time increment according to a time increment calculation formula based on the vehicle driving mileage and the vehicle driving speed Wherein the time increment calculation formula is The said Is the first Vehicle mileage at each sampling point, the Is the first Vehicle mileage at each sampling point, the A running speed of the vehicle; Updating the current VLC time Wherein the said Is the first VLC time of each sampling point, the Is the first VLC time for each sample point.
  4. 4. The method for playing video of a time zone crossing vehicle according to claim 1, wherein said embedding VLC time codes generated by said current VLC time into said on-board video stream comprises: Generating the VLC time code based on VLC time of a current video frame ; Coding the VLC time code Encapsulated as a unit of padding information and inserted before the corresponding video frame.
  5. 5. The method for playing video of a time zone crossing vehicle according to claim 1, wherein said sorting and splicing all video frames according to said VLC time code comprises: resolving VLC timecodes in each video frame; taking the VLC time code as a main key, and globally ordering all video frames; and ignoring jump of a physical time stamp in the video frame, and continuously rendering the video frame according to the sequence of the VLC time codes.
  6. 6. The method for video playback of a cross-time zone vehicle of claim 1, further comprising: Establishing a mapping relation between the current VLC time and the current physical time; establishing a bidirectional mapping table based on the mapping relation, wherein the bidirectional mapping table at least comprises a first mapping table VLC time of each sampling point First, the UTC time of each sampling point First, the Time zone offset for each sample point Time source mark The bi-directional mapping table is used for inquiring the corresponding physical time and time zone information through VLC time or locating VLC time through physical time, and the time source mark A recording mode for representing the current VLC time and the current physical time; When the query time point is located between two sampling points, the physical time or VLC time is calculated based on a linear interpolation algorithm.
  7. 7. The method for playing video of a time zone crossing vehicle according to claim 6, wherein after said sorting and splicing all video frames according to said VLC time code to achieve continuous playing of a time zone crossing vehicle-mounted video stream, said method further comprises: Detecting a change value of a UTC time zone in which the vehicle is located, generating first-class statistical information based on a VLC time axis of the current VLC time, and generating second-class statistical information based on a physical time axis of the mapped current physical time.
  8. 8. The method for playing video of a cross-time zone vehicle according to claim 7, wherein detecting a change value of a UTC time zone in which the vehicle is located comprises: acquiring a current time zone offset corresponding to a GPS coordinate of a vehicle at a current moment ; Calculating the current time zone offset Offset from the time zone at the previous time Offset difference of (2) Wherein, the method comprises the steps of, 。
  9. 9. The method of video playback of a time zone crossing vehicle of claim 7, wherein the generating of the first type of statistical information based on the VLC time axis for the current VLC time and the generating of the second type of statistical information based on the mapped physical time axis for the current physical time comprises: calculating a virtual day based on the current VLC time Calculating the vehicle utilization rate according to the virtual daily aggregation operation time length, wherein the vehicle utilization rate is used for reflecting the operation intensity so as to generate the first type of statistical information, and the vehicle utilization rate is used for reflecting the operation intensity The said For the current VLC time; mapping the current VLC time to local physical time through the mapping relation Wherein the local physical time is used for judging whether the vehicle violates the current running rule so as to generate the second type of statistical information, and the local physical time is used for judging whether the vehicle violates the current running rule or not The said For the corresponding UTC time obtained by the mapping relationship, the And the current time zone offset corresponding to the GPS coordinates of the vehicle at the current moment.
  10. 10. A video playback device for a cross-time zone vehicle, comprising: The system comprises a construction unit, a virtual logistics clock VLC, a VLC time calculation unit and a control unit, wherein the VLC is used for accumulating and calculating VLC time based on coordinated Universal Time (UTC) increment; A calculation unit for performing incremental accumulation and anomaly suppression based on the multi-source time data during the process of the vehicle executing the transportation task to calculate and update the current VLC time and establish a mapping relationship between the VLC time and the physical time; The generating unit is used for generating a vehicle-mounted video stream in the vehicle-mounted video encoding process, embedding the VLC time code generated by the current VLC time into the vehicle-mounted video stream, and enabling each video frame to carry the corresponding VLC time code; And the analysis unit is used for analyzing the VLC time codes in the vehicle-mounted video stream when video playback is requested, and sequencing and splicing all video frames according to the VLC time codes so as to realize continuous playing of the vehicle-mounted video stream crossing time zones.
  11. 11. A computer program product comprising computer readable instructions which, when run on an electronic device, cause the electronic device to implement the method of video playback of a cross-time zone vehicle as claimed in any one of claims 1 to 9.
  12. 12. An electronic device comprising at least one processor and a memory coupled to the processor, wherein: the memory is used for storing a computer program; the processor is configured to execute the computer program to enable the electronic device to implement the video playback method of the cross-time zone vehicle according to any one of claims 1 to 9.
  13. 13. A computer storage medium carrying one or more computer programs which, when executed by an electronic device, enable the electronic device to implement the method of video playback for a time zone crossing vehicle as claimed in any one of claims 1 to 9.

Description

Video playing method and related equipment for time zone-crossing vehicle Technical Field The embodiment of the application relates to the technical field of multimedia streams, in particular to a video playing method of a vehicle crossing time zones and related equipment. Background In the field of transnational logistics transportation, such as the fields of Central European Ban Lie connection, transborder truck transportation and the like, vehicles often need to continuously travel across multiple time zones. In the running process of the vehicle, the vehicle-mounted terminal can acquire positioning data, working condition data and video recording data in real time and report the positioning data, the working condition data and the video recording data to the cloud platform for monitoring and analysis. However, when the vehicle crosses a time zone boundary, the local time of the in-vehicle device may suddenly change due to a time zone switch, for example, entering an east-west region from an east-seven region to an east-eight region, and the local time may instantaneously increase by one hour. The nonlinear jump of the physical time brings two core problems that firstly, statistical distortion of single-day operation time length is caused, abnormal records of 23 hours or 25 hours of single day occur, so that the calculation of key indexes such as physical time, service logic time and the like of a vehicle deviate, secondly, a time axis of a vehicle-mounted video recording breaks, a video file stored based on local time can be traced back (overlapped) or black hole (missing) at a time crossing time zone, and the video file cannot be continuously played due to time conflict during playback. In the prior art, data storage is generally performed by uniformly converting time into UTC time stamps (physical time). Although UTC time has global uniqueness, it cannot directly reflect the time continuity of recorded on-board video when the vehicle is performing a "single transport mission". For example, when counting the time of the recorded vehicle-mounted video in the running process of the vehicle on the 3 rd day of the task, if the vehicle-mounted video is simply cut according to the coordinated universal time (UTC, coordinated Universal Time) natural days, the vehicle-mounted video is still subject to the change of the geographic time zone, and the video storage dimension strictly 24 hours per day cannot be formed, so that the time continuity of the recorded vehicle-mounted video is affected. Disclosure of Invention The embodiment of the application provides a video playing method and related equipment of a vehicle crossing time zones, which are used for decoupling physical time and business logic time and ensuring the continuity of video playing. An embodiment of the present application provides a video playing method for a vehicle crossing time zones, including: establishing a virtual logistics clock VLC, wherein VLC calculates VLC time based on coordinated Universal Time (UTC) increment accumulation, the VLC time takes transport task starting time as time zero point, keeps monotonically increasing during the execution of the transport task and is not influenced by physical time zone switching; During the process of the vehicle executing the transportation task, calculating and updating the current VLC time based on the UTC time stamp collected by the vehicle and the recorded real-time clock time stamp; In the vehicle-mounted video coding process, generating a vehicle-mounted video stream, embedding a VLC time code generated by the current VLC time into the vehicle-mounted video stream, and enabling each video frame of the vehicle-mounted video stream to carry the corresponding VLC time code; when video playback is requested, analyzing the VLC time code in the vehicle-mounted video stream, and sequencing and splicing all video frames according to the VLC time code so as to realize continuous playing of the vehicle-mounted video stream crossing time zones. A second aspect of the present application provides a video playback device for a cross-time zone vehicle, comprising: The system comprises a construction unit, a virtual logistics clock VLC, a VLC time calculation unit and a control unit, wherein the VLC is used for accumulating and calculating VLC time based on coordinated Universal Time (UTC) increment; a calculating unit for calculating and updating the current VLC time based on the UTC time stamp collected by the vehicle and the recorded real time clock time stamp in the course of the vehicle performing the transportation task; The generating unit is used for generating a vehicle-mounted video stream in the vehicle-mounted video encoding process, embedding the VLC time code generated by the current VLC time into the vehicle-mounted video stream, and enabling each video frame of the vehicle-mounted video stream to carry the corresponding VLC time code; And the analysis unit is used for analyzing the VLC