CN113596372A - Video file generation method and display device - Google Patents

Video file generation method and display device Download PDF

Info

Publication number
CN113596372A
CN113596372A CN202110880814.9A CN202110880814A CN113596372A CN 113596372 A CN113596372 A CN 113596372A CN 202110880814 A CN202110880814 A CN 202110880814A CN 113596372 A CN113596372 A CN 113596372A
Authority
CN
China
Prior art keywords
time
file
video
reservation
power
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
CN202110880814.9A
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.)
Vidaa Netherlands International Holdings BV
Original Assignee
Hisense Electronic Technology Shenzhen 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 Hisense Electronic Technology Shenzhen Co ltd filed Critical Hisense Electronic Technology Shenzhen Co ltd
Priority to CN202110880814.9A priority Critical patent/CN113596372A/en
Publication of CN113596372A publication Critical patent/CN113596372A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

The application discloses a method for generating a video file and display equipment, wherein a video recording process is started based on the reserved starting time of a specified program, the video recording process is interrupted when a power failure condition exists in the video recording process, and the program content corresponding to the reserved starting time and the power failure time is used as a recorded file; when the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the recovery time of the power supply recovery and the reservation ending time; and generating a video recording file based on the recorded file and the specified file. Therefore, the method and the display equipment can restart the interrupted video recording process after the power failure and the power supply recovery in the video recording process, and splice the files generated before and after the power failure together to form a complete video recording file, so that the content of the video recording file is consistent with the content of the appointed program as much as possible; and when the video file is played back subsequently, the reason that the video file is not complete and the missing duration are informed to the user, so that the user experience is greatly improved.

Description

Video file generation method and display device
Technical Field
The present application relates to the field of video recording technologies, and in particular, to a method for generating a video file and a display device.
Background
Along with the rapid development of display equipment, the functions of the display equipment are more and more abundant, and the performance of the display equipment is more and more powerful, and at present, the display equipment comprises an intelligent television, a mobile phone, a refrigerator, other products with an intelligent display screen and the like. In order to improve the application experience of the display equipment, a video recording function is configured in the display equipment, a video recording reservation is carried out when a user is not convenient to watch a television program in real time, video recording is started when the reservation starting time is reached, the video recording is finished after the reservation finishing time is reached, and a video recording file is generated. When the user is convenient in the later period, the delayed watching of the television program is realized by checking the video file.
However, in the video recording process, the power failure condition of the display device is very easy to occur, so that the video recording process is forcibly interrupted, the remaining reserved video recording time length is completely lost even if the power supply is subsequently recovered, the video recording process is not restarted, the content and the time length of the obtained video recording file are inconsistent with the reservation, and the video recording file is incomplete.
Disclosure of Invention
The application provides a video file generation method and display equipment, which are used for solving the problem that a video file is incomplete due to abnormal power failure in a video recording process.
In a first aspect, the present application provides a display device comprising:
a display configured to present a user interface;
a controller connected with the display, the controller configured to:
acquiring a reservation starting time and a reservation ending time for performing reservation video recording on a designated program set by a user, and starting a video recording process of the designated program when the reservation starting time is reached;
if the power-off condition exists in the video recording process, the video recording process is interrupted at the power-off moment when the power-off condition occurs, and the program content corresponding to the reservation starting moment and the power-off moment is used as a recorded file;
if the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the power supply recovery time and the reservation ending time;
and generating a video recording file based on the recorded file and the specified file.
In some embodiments of the present application, the controller, in executing the time relationship between the restoration time based on the power supply restoration and the reservation end time, generates a designation file, and is further configured to:
when power supply is recovered, judging the time relation between the recovery time corresponding to the power supply recovery and the reservation ending time;
if the recovery time is later than the reservation ending time, generating first time period prompting data based on the power-off time and the duration of the reservation ending time, wherein the specified file is the first time period prompting data;
if the recovery time is earlier than the reservation ending time, restarting a video recording process at the recovery time, and generating second time period prompt data based on the recovery time and the duration of the power-off time;
and when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating a specified file based on the second time period prompting data and the new recording file.
In some embodiments of the present application, the controller is further configured to:
when the video file is played, when the current playing time reaches the power-off time, acquiring prompt data of a specified time period in the video file;
and displaying the prompt data of the appointed time period in a playing picture of the video file, wherein the prompt data of the appointed time period is used for representing that the video file is a file with incomplete content caused by a power-off condition.
In some embodiments of the present application, the controller is further configured to:
when the display duration of the prompt data in the specified time period exceeds the preset display duration, judging whether the current playing time of the video file is the file ending time of the video file or not;
if the current playing time is the file ending time, stopping playing the video file;
and if the current playing time is not the file ending time, continuing to play the video file, and stopping playing the video file when the current playing time reaches the file ending time.
In some embodiments of the present application, the controller is further configured to:
when the power-off condition occurs before the start of the video recording process, if the power-off time is earlier than the reservation starting time and the recovery time is between the reservation starting time and the reservation ending time, starting the video recording process of the specified program at the recovery time;
when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating third time period prompt data based on the recovery time and the duration of the reservation starting time;
and generating a video file based on the prompt data of the third time period and the new video file.
In a second aspect, the present application further provides a method for generating a video file, where the method includes:
acquiring a reservation starting time and a reservation ending time for performing reservation video recording on a designated program set by a user, and starting a video recording process of the designated program when the reservation starting time is reached;
if the power-off condition exists in the video recording process, the video recording process is interrupted at the power-off moment when the power-off condition occurs, and the program content corresponding to the reservation starting moment and the power-off moment is used as a recorded file;
if the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the power supply recovery time and the reservation ending time;
and generating a video recording file based on the recorded file and the specified file.
In some embodiments of the present application, the generating a specific file based on a time relationship between the power supply recovery time and the reservation end time includes:
when power supply is recovered, judging the time relation between the recovery time corresponding to the power supply recovery and the reservation ending time;
if the recovery time is later than the reservation ending time, generating first time period prompting data based on the power-off time and the duration of the reservation ending time, wherein the specified file is the first time period prompting data;
if the recovery time is earlier than the reservation ending time, restarting a video recording process at the recovery time, and generating second time period prompt data based on the recovery time and the duration of the power-off time;
and when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating a specified file based on the second time period prompting data and the new recording file.
In some embodiments of the present application, the method further comprises:
when the video file is played, when the current playing time reaches the power-off time, acquiring prompt data of a specified time period in the video file;
and displaying the prompt data of the appointed time period in a playing picture of the video file, wherein the prompt data of the appointed time period is used for representing that the video file is a file with incomplete content caused by a power-off condition.
In some embodiments of the present application, the method further comprises:
when the display duration of the prompt data in the specified time period exceeds the preset display duration, judging whether the current playing time of the video file is the file ending time of the video file or not;
if the current playing time is the file ending time, stopping playing the video file;
and if the current playing time is not the file ending time, continuing to play the video file, and stopping playing the video file when the current playing time reaches the file ending time.
In some embodiments of the present application, the method further comprises:
when the power-off condition occurs before the start of the video recording process, if the power-off time is earlier than the reservation starting time and the recovery time is between the reservation starting time and the reservation ending time, starting the video recording process of the specified program at the recovery time;
when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating third time period prompt data based on the recovery time and the duration of the reservation starting time;
and generating a video file based on the prompt data of the third time period and the new video file.
In a third aspect, the present application further provides a storage medium, where the storage medium may store a program, and when the program is executed, the program may implement some or all of the steps in the embodiments of the video file generation method provided in the present application.
As can be seen from the foregoing technical solutions, in the video file generation method and the display device provided in the embodiments of the present invention, when the video file is generated, the video recording process is started based on the scheduled start time of the specified program, and when there is a power failure condition in the video recording process, the video recording process is interrupted, and the program content corresponding to the scheduled start time and the power failure time is used as the recorded file; when the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the recovery time of the power supply recovery and the reservation ending time; and generating a video recording file based on the recorded file and the specified file. Therefore, the method and the display equipment can restart the interrupted video recording process after the power failure and the power supply recovery in the video recording process, and splice the files generated before and after the power failure together to form a complete video recording file, so that the content of the video recording file is consistent with the content of the appointed program as much as possible; and when the video file is played back subsequently, the reason that the video file is not complete and the missing duration are informed to the user, so that the user experience is greatly improved.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 illustrates a schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments;
fig. 2 shows a block configuration diagram of the control device 100 according to some embodiments;
fig. 3 illustrates a hardware configuration block diagram of the display apparatus 200 according to some embodiments;
FIG. 4 illustrates a software configuration diagram in the display device 200 according to some embodiments;
FIG. 5 illustrates a schematic diagram of an existing video recording application scenario, in accordance with some embodiments;
FIG. 6 illustrates a schematic diagram of a power outage and power restoration scenario during a scheduled recording according to some embodiments;
FIG. 7 illustrates a flow diagram of a method of video file generation according to some embodiments;
FIG. 8 illustrates a schematic diagram of an improved video recording application scenario, in accordance with some embodiments;
FIG. 9 illustrates a data flow diagram of a power outage occurring during a scheduled recording according to some embodiments;
FIG. 10 illustrates a data flow diagram of a video recording process after power is restored in accordance with some embodiments;
FIG. 11 illustrates a data flow diagram of a process of splicing video files according to some embodiments;
FIG. 12 illustrates a dataflow diagram for playing a video file, according to some embodiments.
Detailed Description
To make the purpose and embodiments of the present application clearer, the following will clearly and completely describe the exemplary embodiments of the present application with reference to the attached drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the functionality associated with that element.
Fig. 1 illustrates a schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments. As shown in fig. 1, a user may operate the display apparatus 200 through the smart device 300 or the control device 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes an infrared protocol communication or a bluetooth protocol communication, and other short-distance communication methods, and controls the display device 200 in a wireless or wired manner. The user may input a user instruction through a key on a remote controller, voice input, control panel input, etc., to control the display apparatus 200.
In some embodiments, the smart device 300 (e.g., mobile terminal, tablet, computer, laptop, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application program running on the smart device.
In some embodiments, the display device 200 may also be controlled in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received by a module configured inside the display device 200 to obtain a voice command, or may be received by a voice control device provided outside the display device 200.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display apparatus 200. The server 400 may be a cluster or a plurality of clusters, and may include one or more types of servers.
Fig. 2 shows a block configuration diagram of the control device 100 according to some embodiments. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction from a user and convert the operation instruction into an instruction recognizable and responsive by the display device 200, serving as an interaction intermediary between the user and the display device 200.
Fig. 3 illustrates a hardware configuration block diagram of a display device 200 according to some embodiments. Referring to fig. 3, in some embodiments, the display apparatus 200 includes at least one of a tuner demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
In some embodiments the controller comprises a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, a first interface to an nth interface for input/output.
In some embodiments, the display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal from the controller output, performing display of video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
In some embodiments, the display 260 may be a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
In some embodiments, communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display apparatus 200 may establish transmission and reception of control signals and data signals with the external control apparatus 100 or the server 400 through the communicator 220.
In some embodiments, the user interface may be configured to receive control signals for controlling the apparatus 100 (e.g., an infrared remote control, etc.).
In some embodiments, the detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; alternatively, the detector 230 includes an image collector, such as a camera, which may be used to collect external environment scenes, attributes of the user, or user interaction gestures, or the detector 230 includes a sound collector, such as a microphone, which is used to receive external sounds.
In some embodiments, the external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, and the like. The interface may be a composite input/output interface formed by the plurality of interfaces.
In some embodiments, the tuner demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio/video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in different separate devices, that is, the modem 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display apparatus 200. For example: in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the object may be any one of selectable objects, such as a hyperlink, an icon, or other actionable control. The operations related to the selected object are: displaying an operation connected to a hyperlink page, document, image, or the like, or performing an operation of a program corresponding to the icon.
In some embodiments the controller comprises at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a RAM Random Access Memory (RAM), a ROM (Read-Only Memory), a first to nth interface for input/output, a communication Bus (Bus), and the like.
A CPU processor. For executing operating system and application program instructions stored in the memory, and executing various application programs, data and contents according to various interactive instructions receiving external input, so as to finally display and play various audio-video contents. The CPU processor may include a plurality of processors. E.g. comprising a main processor and one or more sub-processors.
In some embodiments, a graphics processor for generating various graphics objects, such as: icons, operation menus, user input instruction display graphics, and the like. The graphic processor comprises an arithmetic unit, which performs operation by receiving various interactive instructions input by a user and displays various objects according to display attributes; the system also comprises a renderer for rendering various objects obtained based on the arithmetic unit, wherein the rendered objects are used for being displayed on a display.
In some embodiments, the video processor is configured to receive an external video signal, and perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to a standard codec protocol of the input signal, so as to obtain a signal that can be displayed or played on the direct display device 200.
In some embodiments, the video processor includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, and the like. The demultiplexing module is used for demultiplexing the input audio and video data stream. And the video decoding module is used for processing the video signal after demultiplexing, including decoding, scaling and the like. And the image synthesis module is used for carrying out superposition mixing processing on the GUI signal input by the user or generated by the user and the video image after the zooming processing by the graphic generator so as to generate an image signal for display. And the frame rate conversion module is used for converting the frame rate of the input video. And the display formatting module is used for converting the received video output signal after the frame rate conversion, and changing the signal to be in accordance with the signal of the display format, such as an output RGB data signal.
In some embodiments, the audio processor is configured to receive an external audio signal, decompress and decode the received audio signal according to a standard codec protocol of the input signal, and perform noise reduction, digital-to-analog conversion, and amplification processing to obtain an audio signal that can be played in the speaker.
In some embodiments, a user may enter user commands on a Graphical User Interface (GUI) displayed on display 260, and the user input interface receives the user input commands through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A commonly used presentation form of the User Interface is a Graphical User Interface (GUI), which refers to a User Interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
In some embodiments, a system of a display device may include a Kernel (Kernel), a command parser (shell), a file system, and an application program. The kernel, shell, and file system together make up the basic operating system structure that allows users to manage files, run programs, and use the system. After power-on, the kernel is started, kernel space is activated, hardware is abstracted, hardware parameters are initialized, and virtual memory, a scheduler, signals and interprocess communication (IPC) are operated and maintained. And after the kernel is started, loading the Shell and the user application program. The application program is compiled into machine code after being started, and a process is formed.
Fig. 4 illustrates a software configuration diagram in the display device 200 according to some embodiments. As shown in fig. 4, the system of the display device is divided into three layers, i.e., an application layer, a middleware layer and a hardware layer from top to bottom.
The Application layer mainly includes common applications on the television and an Application Framework (Application Framework), wherein the common applications are mainly applications developed based on the Browser, such as: HTML5 APPs; and Native APPs (Native APPs);
an Application Framework (Application Framework) is a complete program model, and has all basic functions required by standard Application software, such as: file access, data exchange, and interfaces to use these functions (toolbars, status lists, menus, dialog boxes).
Native APPs (Native APPs) may support online or offline, message push, or local resource access.
The middleware layer comprises various television protocols, multimedia protocols, system components and other middleware. The middleware can use basic service (function) provided by system software to connect each part of an application system or different applications on a network, and can achieve the purposes of resource sharing and function sharing.
The hardware layer mainly comprises an HAL interface, hardware and a driver, wherein the HAL interface is a unified interface for butting all the television chips, and specific logic is realized by each chip. The driving mainly comprises: audio drive, display driver, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (like fingerprint sensor, temperature sensor, pressure sensor etc.) and power drive etc..
In some embodiments, to improve the application experience of the display device, a video recording function is configured in the display device. The video recording function can realize video recording of television programs, so that a user can conveniently review the television programs, or a video recording reservation is carried out when the user is not convenient to watch the television programs in real time, the video recording is automatically started when the reservation starting time is reached, the video recording is finished after the reservation finishing time is reached, and a video recording file is generated. When the user is convenient in the later period, the delayed watching of the television program is realized by checking the video file.
FIG. 5 illustrates a schematic diagram of an existing video recording application scenario, in accordance with some embodiments. Referring to fig. 5, in the process of starting the video recording by the display device, a power failure condition is very likely to occur, and at this time, the display device is shut down, so that the video recording process is forcibly interrupted. After power supply is restored, the video recording process is not restarted, and the user is not informed. When the recording file is played back, the recording file only includes the recorded program content before power-off, but not all the content of the television program required to be recorded, so that the content and the duration of the obtained recording file are inconsistent with the reservation, and the recording file is incomplete. The incomplete video file can not be prompted to the user, so that the user can misunderstand the video file, and the user experience is not good.
FIG. 6 illustrates a schematic diagram of a power outage and power restoration scenario during a scheduled recording according to some embodiments. Referring to fig. 6, the user operates the display device in the running state before 8:00 and sets a reserved recording of 8:00 to 10:00 and then leaves. When the time reaches 8:00, the video recording is automatically started, the video recording function is normal, and the data is normally stored. Due to the power system abnormality, the power is cut off at 8:30, then the power supply is recovered at 9:00, and the television is restarted.
In the scene of power supply restoration after power failure in the video recording process, as the end time (10:00) of the reserved video recording is not reached, the reserved recording is directly deleted, and the video recording is not started after power supply restoration. At this time, the video file can only play back program content of 8: 00-8: 30. Therefore, the integrity of the video file cannot be guaranteed in the processing process.
Therefore, in order to ensure the integrity of the video files as much as possible after the power failure and power supply recovery conditions occur in the video recording process, and simultaneously present the abnormal reason to the user to improve the experience of the user in using the display equipment, the invention provides a method for recovering video and splicing video data after the abnormal power failure restart in the video recording process, and provides friendly user prompt to inform the user of the abnormal power failure in the video recording process when subsequently playing back the video files, thereby greatly improving the user experience.
FIG. 7 illustrates a flow diagram of a method of video file generation according to some embodiments; FIG. 8 illustrates a schematic diagram of an improved video recording application scenario, in accordance with some embodiments. An embodiment of the present invention provides a display device, including: a display configured to present a user interface; a controller connected to the display, the controller being configured to perform the following steps when executing the method for generating a video recording file shown in fig. 7:
s1, acquiring the reservation starting time and the reservation ending time for reservation recording of the designated program set by the user, and starting the recording process of the designated program when the reservation starting time is reached.
Figure 9 illustrates a data flow diagram for the occurrence of a power outage during a scheduled recording process according to some embodiments. Referring to fig. 8 and 9, when a user needs to perform a scheduled recording of a television program using a display device, a scheduled recording time period including a scheduled start time and a scheduled end time may be set in advance according to a play time period of a designated program. The reserved video recording information is stored in a Flash space of the display equipment so as to be compared with the reserved video recording information stored in the Flash space in real time to judge whether the video recording function needs to be started or quit.
The reservation starting time can represent the video recording starting time of the appointed program and is used for starting the video recording function of the display equipment; the reservation end time may represent a recording end time of the designated program for exiting the recording function of the display device. For example, if the video recording time period of the designated program is 8:05-10:05, the corresponding reservation starting time is 8:05, and the reservation ending time is 10: 05.
The reserved recording time period can be larger than or equal to the actual playing time period of the specified program so as to ensure that the content of the specified program can be completely recorded. And when the reserved recording time period is equal to the actual playing time period of the specified program, the reserved starting time corresponds to the actual playing starting time of the specified program, and the reserved ending time corresponds to the actual playing ending time of the specified program. For example, if the actual playing time period of the designated program is 8:05-10:05, the recording time period is 8:05-10: 05.
When the system time of the display equipment reaches the reservation starting time, the configured recording function can be called up, and the recording process of the appointed program is started. For example, when the current system time reaches 8:05, the recording of the specified program can be started.
And S2, if the power-off condition exists in the recording process, interrupting the recording process at the power-off time when the power-off condition occurs, and using the program content corresponding to the reserved starting time and the power-off time as the recorded file.
In the video recording process, if the power failure condition of the display equipment occurs, the display equipment is shut down, and the video recording function is forcibly quitted. At this time, the recording process is interrupted, and the program content that has been recorded before the power-off may be generated into a file, that is, the program content that has been recorded between the reservation starting time and the power-off time when the power-off occurs is a recorded file.
For example, when recording is started at 8:05 and power is cut off at 8:55, the recorded program content is 8:05-8:55, and the total length is 50 minutes.
When the video is recorded, the time stamp of the recording file is counted from 0 second, namely when the recording is started at 8:05, the time stamp of the recording file is 0 second. As the recording process progresses, the time stamp of the recorded file sequentially increases, each time by 1 second, sequentially 1 second, 2 seconds … … 1 minutes, 1 minute by 1 second … …, and so on.
The initial time of the recorded file is the time stamp corresponding to the reservation starting time, such as 0 second; the file end time of the recorded file is the time stamp corresponding to the power-off time, such as 50 minutes.
And S3, if the power supply is recovered during the recording process, generating a specified file based on the time relationship between the recovery time of the power supply recovery and the reservation ending time.
If the display device is powered back up after the power outage, the display device restarts. In this case, the return time of the power supply restoration may be later than the reservation end time or may be earlier than the reservation end time. If the recovery time is later than the reservation ending time, the reserved video is overdue, and the video recording process can not be carried out any more; if the recovery time is earlier than the reservation ending time, the reservation video is not overdue, and the video recording process can be continued.
Therefore, in order to accurately determine whether the video recording process needs to be restarted after the power supply of the display device is restored, the judgment can be performed according to the time relationship between the restoration time of the power supply restoration and the reservation ending time, so as to correspondingly generate the designated file.
FIG. 10 illustrates a data flow diagram of a video recording process after power is restored in accordance with some embodiments. In some embodiments, referring to fig. 10, the controller generates the designation file in performing a time relationship of a recovery time based on the power supply recovery and a reservation end time, and is further configured to perform the steps of:
and step 31, judging the time relation between the corresponding recovery time and the reservation ending time when the power supply is recovered.
And step 32, if the recovery time is later than the reservation ending time, generating first time period prompting data based on the power-off time and the duration of the reservation ending time, and designating the file as the first time period prompting data.
And step 33, if the recovery time is earlier than the reservation ending time, restarting the video recording process at the recovery time, and generating second time interval prompt data based on the recovery time and the duration of the power-off time.
And step 34, when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating a specified file based on the second time period prompting data and the new recording file.
And after the power supply of the display equipment is recovered, restarting the display equipment, acquiring the recovery time when the power supply is recovered, and comparing the recovery time with the reservation end time to judge whether the reservation record of the reserved record of the specified program is overdue.
In general, the two time points of the power restoration and the restart of the display device are relatively close, and the time difference is negligible. Therefore, the restoration time of the power supply restoration can be used as the restart time of the display device, and the process of comparing the time after the display device is started with the reservation end time can be approximated to the process of corresponding the restoration time and the reservation end time.
In some embodiments, when the recovery time is judged to be later than the reservation end time, the reservation recording of the specified program is expired, and the recording process is not required to be restarted, so that the reservation recording is deleted, namely the reservation recording information is deleted in the Flash space. However, since the video file generated at this time includes only the program content recorded before the power failure, the video file is not complete. Therefore, in order to inform that the recorded file of the specified program is incomplete, the user can be informed of the reason and the time period for the incomplete.
At this time, first period prompt data is generated based on the power-off time and the duration of the reservation ending time. The first time period prompting data is used for representing reasons and time periods which cause interruption of the video recording process, and the first time period prompting data is the designated file.
In some embodiments, the recording process is restarted when the recovery time is determined to be earlier than the reservation end time, indicating that the reserved recording for the specified program has not expired. However, since part of the program content in the designated program cannot be recorded due to the power-off condition, the recorded file is incomplete and lacks the content during the power-off period. Therefore, in order to inform that the recorded file of the specified program is incomplete, the user can be informed of the reason and the time period for the incomplete.
And at the moment, generating second time period prompting data based on the duration of the recovery time and the power-off time, wherein the second time period prompting data is used for representing reasons and time periods for interrupting the video recording process.
And after the recording process is restarted, the recording timestamp starts to count again from the recovery time until the reservation end time is reached, the recording process is ended, and a new recording file is generated based on the program content corresponding to the recovery time and the reservation end time. In this scenario, the designated file includes the second session reminder data and the new recording file.
After the recording of the appointed program is finished, the reserved record is deleted, namely the reserved recording information is deleted in the Flash space.
Therefore, in the process of recording the video on the display equipment, the situations of power failure and power restoration occur, the video recording process is restarted after the power supply is restored for ensuring the integrity of the video file as much as possible, and time period prompt data are correspondingly generated so as to indicate the reason and the time period of the power failure, so that a user can know the reason of the incomplete video file.
S4, based on the recorded file and the appointed file, generating a recording file.
After the recording process of the appointed program is finished, a complete recording file can be generated according to the generated recorded file and the appointed file. When splicing, the appointed file is spliced behind the recorded file to form an independent video file.
Fig. 11 illustrates a data flow diagram of a process of splicing video files according to some embodiments. Referring to fig. 11, during splicing, it is first determined whether a recorded file exists, and if the recorded file is not obtained, it is described that the recording process is not started before power failure, so that the first recording process does not exist. And if the recorded file can be acquired, the situation that power is cut off in the video recording process is indicated, and the first video recording process is performed, acquiring the maximum timestamp position of the recorded file.
The maximum timestamp position is a timestamp corresponding to the file end time of the recorded file, and for example, when the total length of the recorded file is 50 minutes, the maximum timestamp position is a time position corresponding to 50 minutes. At this point, the data, i.e., the contents of the specified file, may be written after the maximum timestamp position.
And when the recovery time of power supply recovery is later than the reservation end time, designating the file as first time period prompt data. The video file can be directly generated based on the recorded file and the first time period prompting data, at the moment, the video file comprises two independent contents, and the recorded file and the first time period prompting data are not spliced together. Or writing the first time period prompting data into the rear of the maximum timestamp position of the recorded file to obtain a video file, wherein the content in the video file is the recorded file and the first time period prompting data which are spliced together according to the sequence, and the video file is an independent file. The two types of video files can be selected based on the actual application, and are not limited herein.
And when the recovery time of power supply recovery is earlier than the reservation end time, designating the file as the prompt data and the newly recorded file in the second time period. The video file generation mode can be that the new video file is written into the rear of the maximum timestamp position of the recorded file, and the video file is generated after splicing and the prompt data in the second time period. At this time, the video file includes two independent contents, and the splicing file (i.e., the recorded file and the new recorded file) and the second period of time prompt data are not spliced together. Or the generating mode can also be that the prompting data and the new recording file in the second time period are written behind the maximum timestamp position of the recorded file to obtain the video file. At this time, the content in the video file is the recorded file, the second time period prompt data and the new recorded file which are spliced together according to the sequence, and the video file is an independent file. The two types of video files can be selected based on the actual application, and are not limited herein.
When the new recording file is written into the recorded file, the recording time stamp of each file is counted from 0 second, so that the recording time stamp of the new recording file can be converted into the recording time stamp of the recorded file in order to ensure the continuous playing of the recorded file and the new recording file. For example, if the total time length of the recorded file is 100 seconds and the total time length of the new recorded file is 20 seconds, the time stamp of the new recorded file is converted into 101 seconds and 102 seconds … … 120 seconds after the conversion. At this time, the total time length of the video file is 120 seconds.
When the second time period prompt data and the new recording file are written into the recorded file, the total time length of the recorded file is 100 seconds, the preset display time length of the second time period prompt data is 5 seconds, and the starting timestamp of the new recording file is continuously accumulated from 106 seconds until 125 seconds. At this time, the total time length of the video file is 125 seconds.
The time stamp position of the first time period prompting data (or the second time period prompting data) in the video recording file represents the time position of the data which is the abnormal condition in the video recording process, and the second time period prompting data is positioned between the recorded file and the new recorded file and is used for distinguishing the recorded program contents before and after the power failure, so that a user can know the time period of data loss.
In some embodiments, when files generated during the recording of a specified program are spliced, if a recorded file is not obtained, it is indicated that a power-off condition occurs before the recording process is started. Then, in generating the video file, the controller is further configured to perform the steps of:
and step 51, when the power-off condition occurs before the start of the recording process, if the power-off time is earlier than the reservation starting time and the recovery time is between the reservation starting time and the reservation ending time, starting the recording process of the specified program at the recovery time.
And step 52, when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating third time interval prompting data based on the recovery time and the duration of the reservation starting time.
And step 53, generating a video file based on the prompt data and the new video file in the third time period.
When the power-off condition occurs before the video recording process is started, the power-off condition indicates that the display equipment is powered off when the video recording function is not started, and at the moment, the power-off time is earlier than the reservation starting time, and the video recording process is not started yet. If the recovery time of power supply recovery is later than the reservation ending time, the reservation recording is overdue, the video recording process is not required to be started again, at the moment, the reservation recording is deleted, namely, the reservation video recording information is deleted in a Flash space.
If the power supply recovery time is between the reservation starting time and the reservation ending time, the video recording function needs to be started to record the appointed program at present, so that the video recording process of the appointed program is started at the recovery time.
After the recording process is started, a recording file is created, the recording timestamp is counted from the beginning from the recovery time, such as 0 second, 1 second … …, and the recording process is ended until the reservation end time is reached, and the new recording file is generated based on the program content corresponding to the recovery time and the reservation end time. At this time, the recorded content is the second half program content recorded after the power supply is restored, and the first half program content cannot be recorded because the first half program content is in the power-off state at the time when the recording process should be started.
Because the power-off condition occurs before the recording of the new recording file, in order to inform the user that the recording file only includes the second half content but not the first half content, third time period prompting data is generated based on the duration of the recovery time and the reservation starting time, and the third time period prompting data is used for representing the reason and the time period which cause the interruption of the recording process.
Under the scene, when the video files are spliced, because the power failure condition occurs before the video recording process is started, the video files can be obtained by splicing the new video files obtained after the video recording process is started based on the third time period prompt data representing that the power failure condition affects the integrity of the video files and the recovery time of power supply recovery of the display equipment.
When the video file is generated, the video file can be directly generated based on the third time period prompting data and the new recording file, at the moment, the video file comprises two independent contents, and the new recording file and the third time period prompting data are not spliced together. Or, the third time period prompt data is written in the minimum timestamp position of the newly recorded file, where the minimum timestamp position is a timestamp corresponding to the file start time of the newly recorded file, and for example, if the total time length of the newly recorded file is 20 minutes, the minimum timestamp position is a time position corresponding to 0 second. And writing the prompt data of the third time period in front of the minimum timestamp of the newly recorded file to obtain the video file. At this time, the content in the video file is respectively the third time period prompt data and the new video file which are spliced together according to the sequence. The two types of video files can be selected based on the actual application, and are not limited herein.
In some embodiments, a plurality of separate files are spliced into a complete video file based on the foregoing manner, so that a user can open one file to view all recorded contents of a specified program during subsequent review. If the recorded file and the newly recorded file are separately generated into one file, the user needs to click one file to watch the file and then click another file to watch the file during subsequent review, and the operation is complex. In addition, in a complete video recording file, all information in the video recording process of the specified program is included, so that a user can click on one file to see all recorded contents of the specified program and prompt contents of video recording interruption caused by abnormal conditions, and the user experience is good.
It should be noted that the completeness here refers to that all information (recorded file, time period prompting data, newly recorded file, etc.) generated in the process of recording the specified program is in one file, and it is not specific that the recording file includes all program contents of the specified program. However, if an abnormal condition that the recording process is interrupted does not occur during the recording process of the designated program, a complete recording file includes all program contents of the designated program.
In some embodiments, the display device may obtain an integrated recording file after recording the specified program based on the user's recording schedule operation. When the user is convenient, the video file can be reviewed to realize the delayed watching of the appointed program.
FIG. 12 illustrates a dataflow diagram for playing a video file, according to some embodiments. Referring to fig. 12, in reviewing the video file, the controller is further configured to perform the steps of:
and 61, when the video file is played and the current playing time reaches the power-off time, acquiring prompt data of a specified time period in the video file.
And step 62, displaying the prompt data of the appointed time period in the playing picture of the video file, wherein the prompt data of the appointed time period is used for representing that the video file is a file with incomplete content due to the power-off condition.
And the user clicks the video file to be played to play, so that delayed watching of the appointed program is realized. If the appointed program has the conditions of power failure and power supply recovery in the reserved video recording process, when playing is carried out based on the time stamp of the video file, if the current playing time reaches the position of the time stamp corresponding to the power failure time, the prompting data of the appointed time period is obtained from the video file, so that the reason that the video file is incomplete and the missing time length are informed to a user.
For example, if the power-off condition occurs in the display device after the specified program is recorded for 100 seconds, the recorded file duration is 100 seconds, and the 100 th second (maximum timestamp position) is the timestamp of the power-off time. If the power-off condition occurs before the video recording process is started, the 0 th second (minimum time stamp position) is the time stamp of the power-off time.
If the video file is played to the position of the power-off time, at the moment, the prompt data of the specified time interval for representing the reason that the video file is incomplete and the missing time length needs to be displayed in the playing picture of the video file, namely, the prompt data of the corresponding specified time interval is obtained to generate a frame picture, and the frame picture is displayed in the playing picture.
In some embodiments, when the recorded file comprises the recorded file and the first time period prompt data which are not spliced together, the scheduled time period of the specified program is 8:05:00-8:55:00, the power failure condition exists in 10 minutes of recording, and the time for recovering the power supply is 9:10: 00. When the video file is played, the first time period prompt data in the video file is acquired when the video file is played to the 10 th minute, and a frame picture is generated and displayed in a playing picture. The first time period prompting data can be 'recording is interrupted due to abnormal power failure at 8:15: 00-8:55:00, and the recording file is lost for 40 minutes'.
In the first time period prompt data, the information that the user can acquire is that the display equipment is powered off when the recording of the specified program reaches 8:15:00, the power of the display equipment is still not recovered until the reservation finishing time of the specified program is 8:55:00, so that the recorded file is lost for 40 minutes, and the currently viewable content is the program content corresponding to the original time period of 8:05:00-8:15: 00.
In some embodiments, when the recorded file comprises an already recorded file, second time interval prompt data and a newly recorded file which are not spliced together, the scheduled time interval of the specified program is 8:05:00-8:55:00, the power failure condition exists when the recorded program is recorded for 10 minutes, and the power supply recovery time is 8:35: 00. When the video file is played, the second time interval prompt data in the video file is acquired when the video file is played to the 10 th minute, and a frame picture is generated and displayed in the playing picture. The prompting data in the second time interval can be 'recording is interrupted and the recording file is lost for 20 minutes due to abnormal power failure, 8:15: 00-8: 35: 00'.
And in the prompt data in the second time period, the information which can be acquired by the user is that when the recording of the specified program reaches 8:15:00, the display equipment is powered off, and the power supply of the display equipment is recovered at 8:35:00, so that the recorded file is lost for 20 minutes, and the currently visible content is the program content corresponding to the original two time periods of 8:05:00-8:15:00 and 8:35:00-8:55: 00.
In some embodiments, when the video file comprises the third time interval prompt data and the new video file which are not spliced together, the appointed program time interval is 8:05:00-8:55:00, the power-off condition occurs at 7:50:00, and the power supply recovery time is 8:20: 00. And acquiring the prompt data of the third time interval in the video file at 0 second of the initial time of playing the video file and generating a frame picture to be displayed in the playing picture because the power-off condition occurs 15 minutes before the video recording process is started. The prompt data in the third time interval can be 'recording is interrupted at 8:05:00-8: 20:00 due to abnormal power failure, and the recording file is lost for 15 minutes'.
From the prompt data in the third time period, the information that the user can acquire is that the display device is powered off before the appointed program is scheduled for recording and started, the power supply of the display device is recovered at 8:20:00, so that the recording file is lost for 15 minutes, and the currently visible content is the program content corresponding to the original time period of 8:20:00-8:55: 00.
Since various situations of recording interruption caused by abnormality may occur in the recording process of the specified program, the finally generated recording file includes different file contents (refer to the three situations in the foregoing example, but may also include other contents in practical application, which is not described herein). When the video file is played, the corresponding prompt data of the appointed time interval is presented in the playing picture, so that the user can be informed of unexpected information generated in the video recording process of the appointed program, such as the reason that the video file is incomplete and the missing duration.
If the condition of causing the interruption of the video recording does not occur in the process of recording the appointed program, the program content only in the reserved time period in the finally generated video recording file is the complete program content, and the prompt data in the appointed time period does not need to be displayed.
In some embodiments, the prompt data of the specified time interval is not always displayed in the playing picture, but only displayed for a period of time, so as to avoid blocking the picture of the video file that the user needs to review. Accordingly, a display duration of the cue data for a specified period may be set, at which time, when the video file is played, the controller is further configured to perform the steps of:
and step 71, judging whether the current playing time of the video file is the file ending time of the video file or not when the display duration of the prompt data in the appointed time period exceeds the preset display duration.
And step 72, if the current playing time is the file ending time, stopping playing the video file.
And 73, if the current playing time is not the file ending time, continuing to play the video file, and stopping playing the video file when the current playing time reaches the file ending time.
When playing a video recording file comprising a recorded file (or a new recorded file) and prompt data in a specified time period which are not spliced together, if the video recording of a specified program is interrupted in the video recording process, the video recording file comprises the content of the prompt data in the specified time period independently. Therefore, when the prompt data in the specified time period is displayed, a preset display time length is configured for the display time length of the prompt data in the specified time period, and the preset display time length can be displayed in a countdown mode, such as countdown for 5 seconds.
And after the video file is played to the time stamp corresponding to the power-off time, the prompt data of the appointed time period is popped out from the playing picture, the prompt data of the appointed time period can be a frame of picture, and countdown is presented in the frame of picture. At this time, in order to determine whether the video file needs to be played continuously, it may be determined whether the current playing time of the video file is the file ending time of the video file. The current playing time is the position of the timestamp corresponding to the power-off time, and the file ending time is the last second ending position of the total duration of the video file.
If the current playing time is the file ending time, the content included in the video file is the recorded file and the first time period prompting data, and the display duration of the first time period prompting data exceeds 5 seconds, no other subsequent files need to be played, the video file is stopped being played, and the video file corresponding to the specified program is viewed again.
If the current playing time is not the file ending time, the content included in the video file is the recorded file, the prompt data in the second time interval and the new recorded file, or the content is the prompt data in the third time interval and the new recorded file. Then, after the display duration of the prompt data in the second time interval (or the prompt data in the third time interval) exceeds 5 seconds, other files need to be played in the follow-up process, and therefore the video file needs to be played continuously, that is, the newly recorded file needs to be played continuously. When playing the new recording file, if the current playing time reaches the file end time, the playing of the recording file is stopped, and the recording file corresponding to the specified program is viewed again.
In some embodiments, if there are recorded files and new recorded files in the video files, the recording time stamps of the two files are continuous, and there is a second time interval between the two files for prompting data to be displayed. Therefore, when the video file is played, the recorded file is played first, and the prompt data in the second time period is displayed at the position of the corresponding timestamp from the moment of playing to the moment of power failure.
When the prompt data in the second time interval is displayed, the recorded file content is played, the video file can be in a pause state, and then a frame of picture is popped up in the playing picture and covered in the playing picture, wherein the frame of picture is used for displaying the prompt data in the second time interval. And after the countdown of the display of the prompt data in the second time interval is finished, the display of the frame picture is cancelled, the video file is continuously played, and the played content is a new video file.
In some embodiments, in order to display the prompt data in the specified time period, in addition to the method for pausing the playing of the video file, the prompt data in the specified time period may be inserted into the front of the new video file according to the preset display duration when the video file is generated. At this time, the prompting data of the appointed time period and the recorded file and/or the new recorded file are spliced together to generate the video file, namely the video file is an independent file and comprises the recorded file (if the recorded file exists), the prompting data of the appointed time period and the new recorded file which are spliced together.
The recording time stamp of the newly recorded file needs to be continuously accumulated on the basis of the sum of the time stamp of the recorded file (if the recorded file exists) and the preset display time, for example, the total time of the recorded file is 100 seconds, the preset display time of the prompt data in the specified time period is 5 seconds, and the start time stamp of the newly recorded file is continuously accumulated from 106 seconds.
Under the scene, when the video file is played, the recorded file, the prompt data in the appointed time period and the newly recorded file can be continuously played directly based on the total duration of the video file because the video file is an independent file with continuous contents. The video recording file is not paused any more in the playing process, the prompting data in the appointed time interval is not required to be called to generate a frame picture for displaying, and the playing picture is always displayed in the display panel. After the contents of the recorded files are played, the prompt data of the appointed time interval are continuously played, then the contents of the newly recorded files are continuously played, and the playing is stopped until the whole video files are played.
As can be seen from the foregoing technical solutions, in the display device provided in the embodiments of the present invention, when a video recording file is generated, a video recording process is started based on a scheduled start time of a specified program, and when there is a power failure condition in the video recording process, the video recording process is interrupted, and program contents corresponding to the scheduled start time and the power failure time are used as a recorded file; when the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the recovery time of the power supply recovery and the reservation ending time; and generating a video recording file based on the recorded file and the specified file. The display equipment can restart the interrupted video recording process after the power failure and the power supply recovery in the video recording process, and splice the files generated before and after the power failure together to form a complete video recording file, so that the content of the video recording file is consistent with the content of the appointed program as much as possible; and when the video file is played back subsequently, the reason that the video file is not complete and the missing duration are informed to the user, so that the user experience is greatly improved.
FIG. 7 illustrates a flow diagram of a method for video file generation according to some embodiments. Referring to fig. 7, the present application further provides a video file generation method, which is executed by the controller in the display device provided in the foregoing embodiment, and the method includes:
s1, acquiring the reservation starting time and the reservation ending time for reservation video recording of the designated program set by the user, and starting the video recording process of the designated program when the reservation starting time is reached;
s2, if there is power-off condition in the recording process, interrupting the recording process at the power-off time when the power-off condition occurs, and using the program content corresponding to the reserved starting time and the power-off time as the recorded file;
s3, if the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the recovery time of the power supply recovery and the reservation ending time;
and S4, generating a video recording file based on the recorded file and the specified file.
In some embodiments of the present application, the generating a specific file based on a time relationship between the power supply recovery time and the reservation end time includes:
when power supply is recovered, judging the time relation between the recovery time corresponding to the power supply recovery and the reservation ending time;
if the recovery time is later than the reservation ending time, generating first time period prompting data based on the power-off time and the duration of the reservation ending time, wherein the specified file is the first time period prompting data;
if the recovery time is earlier than the reservation ending time, restarting a video recording process at the recovery time, and generating second time period prompt data based on the recovery time and the duration of the power-off time;
and when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating a specified file based on the second time period prompting data and the new recording file.
In some embodiments of the present application, the method further comprises:
when the video file is played, when the current playing time reaches the power-off time, acquiring prompt data of a specified time period in the video file;
and displaying the prompt data of the appointed time period in a playing picture of the video file, wherein the prompt data of the appointed time period is used for representing that the video file is a file with incomplete content caused by a power-off condition.
In some embodiments of the present application, the method further comprises:
when the display duration of the prompt data in the specified time period exceeds the preset display duration, judging whether the current playing time of the video file is the file ending time of the video file or not;
if the current playing time is the file ending time, stopping playing the video file;
and if the current playing time is not the file ending time, continuing to play the video file, and stopping playing the video file when the current playing time reaches the file ending time.
In some embodiments of the present application, the method further comprises:
when the power-off condition occurs before the start of the video recording process, if the power-off time is earlier than the reservation starting time and the recovery time is between the reservation starting time and the reservation ending time, starting the video recording process of the specified program at the recovery time;
when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating third time period prompt data based on the recovery time and the duration of the reservation starting time;
and generating a video file based on the prompt data of the third time period and the new video file.
As can be seen from the foregoing technical solutions, in the video file generation method and the display device provided in the embodiments of the present invention, when the video file is generated, the video recording process is started based on the scheduled start time of the specified program, and when there is a power failure condition in the video recording process, the video recording process is interrupted, and the program content corresponding to the scheduled start time and the power failure time is used as the recorded file; when the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the recovery time of the power supply recovery and the reservation ending time; and generating a video recording file based on the recorded file and the specified file. Therefore, the method and the display equipment can restart the interrupted video recording process after the power failure and the power supply recovery in the video recording process, and splice the files generated before and after the power failure together to form a complete video recording file, so that the content of the video recording file is consistent with the content of the appointed program as much as possible; and when the video file is played back subsequently, the reason that the video file is not complete and the missing duration are informed to the user, so that the user experience is greatly improved.
In a specific implementation, the present invention further provides a storage medium, where the storage medium may store a program, and the program may include some or all of the steps in each embodiment of the video file generation method provided in the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of software products, which may be stored in storage media, such as ROM/RAM, magnetic disk, optical disk, etc., or in the form of portions that contribute to the prior art.
The same and similar parts in the various embodiments in this specification may be referred to each other. Particularly, as for the embodiment of the method for generating the video file, since the embodiment is basically similar to the embodiment of the display device, the description is relatively simple, and the relevant points can be referred to the description in the embodiment of the display device.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, comprising:
a display configured to present a user interface;
a controller connected with the display, the controller configured to:
acquiring a reservation starting time and a reservation ending time for performing reservation video recording on a designated program set by a user, and starting a video recording process of the designated program when the reservation starting time is reached;
if the power-off condition exists in the video recording process, the video recording process is interrupted at the power-off moment when the power-off condition occurs, and the program content corresponding to the reservation starting moment and the power-off moment is used as a recorded file;
if the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the power supply recovery time and the reservation ending time;
and generating a video recording file based on the recorded file and the specified file.
2. The display device according to claim 1, wherein the controller generates a designation file in performing a time relationship between the restoration time based on the power supply restoration and the reservation end time, and is further configured to:
when power supply is recovered, judging the time relation between the recovery time corresponding to the power supply recovery and the reservation ending time;
if the recovery time is later than the reservation ending time, generating first time period prompting data based on the power-off time and the duration of the reservation ending time, wherein the specified file is the first time period prompting data;
if the recovery time is earlier than the reservation ending time, restarting a video recording process at the recovery time, and generating second time period prompt data based on the recovery time and the duration of the power-off time;
and when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating a specified file based on the second time period prompting data and the new recording file.
3. The display device of claim 2, wherein the controller is further configured to:
when the video file is played, when the current playing time reaches the power-off time, acquiring prompt data of a specified time period in the video file;
and displaying the prompt data of the appointed time period in a playing picture of the video file, wherein the prompt data of the appointed time period is used for representing that the video file is a file with incomplete content caused by a power-off condition.
4. The display device of claim 3, wherein the controller is further configured to:
when the display duration of the prompt data in the specified time period exceeds the preset display duration, judging whether the current playing time of the video file is the file ending time of the video file or not;
if the current playing time is the file ending time, stopping playing the video file;
and if the current playing time is not the file ending time, continuing to play the video file, and stopping playing the video file when the current playing time reaches the file ending time.
5. The display device of claim 1, wherein the controller is further configured to:
when the power-off condition occurs before the start of the video recording process, if the power-off time is earlier than the reservation starting time and the recovery time is between the reservation starting time and the reservation ending time, starting the video recording process of the specified program at the recovery time;
when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating third time period prompt data based on the recovery time and the duration of the reservation starting time;
and generating a video file based on the prompt data of the third time period and the new video file.
6. A method for generating a video file, the method comprising:
acquiring a reservation starting time and a reservation ending time for performing reservation video recording on a designated program set by a user, and starting a video recording process of the designated program when the reservation starting time is reached;
if the power-off condition exists in the video recording process, the video recording process is interrupted at the power-off moment when the power-off condition occurs, and the program content corresponding to the reservation starting moment and the power-off moment is used as a recorded file;
if the power supply recovery condition exists in the video recording process, generating a specified file based on the time relation between the power supply recovery time and the reservation ending time;
and generating a video recording file based on the recorded file and the specified file.
7. The method according to claim 6, wherein the generating a specification file based on a time relationship between a restoration time of the power supply restoration and the reservation end time includes:
when power supply is recovered, judging the time relation between the recovery time corresponding to the power supply recovery and the reservation ending time;
if the recovery time is later than the reservation ending time, generating first time period prompting data based on the power-off time and the duration of the reservation ending time, wherein the specified file is the first time period prompting data;
if the recovery time is earlier than the reservation ending time, restarting a video recording process at the recovery time, and generating second time period prompt data based on the recovery time and the duration of the power-off time;
and when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating a specified file based on the second time period prompting data and the new recording file.
8. The method of claim 7, further comprising:
when the video file is played, when the current playing time reaches the power-off time, acquiring prompt data of a specified time period in the video file;
and displaying the prompt data of the appointed time period in a playing picture of the video file, wherein the prompt data of the appointed time period is used for representing that the video file is a file with incomplete content caused by a power-off condition.
9. The method of claim 8, further comprising:
when the display duration of the prompt data in the specified time period exceeds the preset display duration, judging whether the current playing time of the video file is the file ending time of the video file or not;
if the current playing time is the file ending time, stopping playing the video file;
and if the current playing time is not the file ending time, continuing to play the video file, and stopping playing the video file when the current playing time reaches the file ending time.
10. The method of claim 6, further comprising:
when the power-off condition occurs before the start of the video recording process, if the power-off time is earlier than the reservation starting time and the recovery time is between the reservation starting time and the reservation ending time, starting the video recording process of the specified program at the recovery time;
when the reservation ending time is reached, generating a new recording file based on the program content corresponding to the recovery time and the reservation ending time, and generating third time period prompt data based on the recovery time and the duration of the reservation starting time;
and generating a video file based on the prompt data of the third time period and the new video file.
CN202110880814.9A 2021-08-02 2021-08-02 Video file generation method and display device Pending CN113596372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110880814.9A CN113596372A (en) 2021-08-02 2021-08-02 Video file generation method and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110880814.9A CN113596372A (en) 2021-08-02 2021-08-02 Video file generation method and display device

Publications (1)

Publication Number Publication Date
CN113596372A true CN113596372A (en) 2021-11-02

Family

ID=78253735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110880814.9A Pending CN113596372A (en) 2021-08-02 2021-08-02 Video file generation method and display device

Country Status (1)

Country Link
CN (1) CN113596372A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115618023A (en) * 2022-12-20 2023-01-17 苏州万店掌网络科技有限公司 Video retrieval method, system and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09275540A (en) * 1996-04-08 1997-10-21 Toshiba Corp Power failure warning device in vtr
KR19980023155A (en) * 1996-09-25 1998-07-06 배순훈 How to display scheduled recording error
CN1930874A (en) * 2004-03-09 2007-03-14 三菱电机株式会社 Recording programming apparatus and recording programming method
CN111277891A (en) * 2020-03-05 2020-06-12 海信视像科技股份有限公司 Program recording prompting method and display equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09275540A (en) * 1996-04-08 1997-10-21 Toshiba Corp Power failure warning device in vtr
KR19980023155A (en) * 1996-09-25 1998-07-06 배순훈 How to display scheduled recording error
CN1930874A (en) * 2004-03-09 2007-03-14 三菱电机株式会社 Recording programming apparatus and recording programming method
CN111277891A (en) * 2020-03-05 2020-06-12 海信视像科技股份有限公司 Program recording prompting method and display equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115618023A (en) * 2022-12-20 2023-01-17 苏州万店掌网络科技有限公司 Video retrieval method, system and device

Similar Documents

Publication Publication Date Title
CN114302238B (en) Display method and display device for prompt information in sound box mode
CN114302201B (en) Method for automatically switching on and off screen in sound box mode, intelligent terminal and display device
WO2022105409A1 (en) Fault diagnosis method, terminal device, and display device
CN113055728A (en) Multi-device synchronous playing method and display device
CN111277891B (en) Program recording prompting method and display equipment
CN113242444A (en) Display device, server and media asset playing method
CN112653906A (en) Video hotspot playing method on display device and display device
CN115776585A (en) Display device and content presentation method
CN113038210B (en) Double-screen synchronous playing method of video file and display equipment
CN113111214A (en) Display method and display equipment for playing records
CN113630654A (en) Display device and media resource pushing method
CN113596372A (en) Video file generation method and display device
CN113163258A (en) Channel switching method and display device
CN113613047B (en) Media file playing control method and display device
CN113490030A (en) Display device and channel information display method
CN113542901A (en) Display device and fast switching display method of network channels
CN112668546A (en) Video thumbnail display method and display equipment
CN113645479A (en) Live program state display method and display equipment
CN114296679A (en) Method for rapidly starting playing in loudspeaker box mode and display equipment
CN114915810A (en) Media asset pushing method and intelligent terminal
CN113014979A (en) Content display method and display equipment
CN114077584A (en) File transmission method and display device
CN112911371A (en) Double-channel video resource playing method and display equipment
CN112601107B (en) Method for synchronizing historical records in abnormal scene and display device
CN113207020B (en) Intelligent set top box and boot animation playing optimization method

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
TA01 Transfer of patent application right

Effective date of registration: 20221020

Address after: 83 Intekte Street, Devon, Netherlands

Applicant after: VIDAA (Netherlands) International Holdings Ltd.

Address before: 9 / F, Hisense south building, 1777 Chuangye Road, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: HISENSE ELECTRONIC TECHNOLOGY (SHENZHEN) Co.,Ltd.

TA01 Transfer of patent application right