CN110730320B - Video recording and video playing method, device and equipment - Google Patents

Video recording and video playing method, device and equipment Download PDF

Info

Publication number
CN110730320B
CN110730320B CN201810777625.7A CN201810777625A CN110730320B CN 110730320 B CN110730320 B CN 110730320B CN 201810777625 A CN201810777625 A CN 201810777625A CN 110730320 B CN110730320 B CN 110730320B
Authority
CN
China
Prior art keywords
file
video
player
parameters
parameter
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.)
Active
Application number
CN201810777625.7A
Other languages
Chinese (zh)
Other versions
CN110730320A (en
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810777625.7A priority Critical patent/CN110730320B/en
Publication of CN110730320A publication Critical patent/CN110730320A/en
Application granted granted Critical
Publication of CN110730320B publication Critical patent/CN110730320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Abstract

The embodiment of the application provides a method, a device and equipment for recording and playing videos, wherein the method comprises the following steps: acquiring a video file corresponding to video data to be recorded; obtaining a parameter configuration file, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the player plays the video file; and acquiring a recording result for recording the video data to be recorded according to the video file and the parameter configuration file. By applying the technical scheme provided by the embodiment of the application, when the preset player plays the video file in the recording result, the preset player can be subjected to parameter configuration according to the parameter configuration file in the recording result, and the preset player can play the video file with a better effect without manually setting the configuration parameters of the player by a user.

Description

Video recording and playing methods, devices and equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, and a device for video recording and video playing.
Background
In order to facilitate a user to view video data collected by the video collecting device, the video data collected by the video collecting device needs to be recorded.
In the related art, a video stream is obtained by compressing original video data acquired by a video acquisition device, and the obtained video stream is stored as a video file, thereby completing recording of the video data acquired by the video acquisition device. During the recording of the video stream, the staff member may need to know the video condition captured by the video capturing device, and therefore, the video file is usually previewed by the player. Because the player has more configuration parameters and the video data acquired by the video acquisition device are different due to different scenes, when a worker previews a video file through the player each time, if the player plays the video file with the default configuration parameters, the playing effect may be poor due to improper configuration parameter setting. Therefore, the staff usually sets various configuration parameters of the player according to the specific situation of the video data collected by the video collecting device, so that the player plays the video file with a better playing effect.
Although the working personnel can make the player play the video file with a better playing effect by setting the configuration parameters of the player, after the video data is recorded, when the user checks the recorded video file, the configuration parameters of the player also need to be manually set to make the player play the video file with a better effect, so that the process of playing the video file by the player is complicated, and the convenience is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, and a device for recording and playing a video, so that when a user views a recorded video file, the preset player can play the video file with a better effect without manually setting configuration parameters of the preset player. The specific technical scheme is as follows:
in one aspect of this application, a video recording method is provided, where the method includes:
acquiring a video file corresponding to video data to be recorded;
obtaining a parameter configuration file, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the player plays the video file;
and acquiring a recording result for recording the video data to be recorded according to the video file and the parameter configuration file.
Optionally, the step of obtaining a recording result of recording the video data to be recorded according to the video file and the parameter configuration file includes:
and packaging the video file and the parameter configuration file to generate an executable file, and determining the executable file as a recording result for recording the video data to be recorded.
Optionally, before the step of packaging the video file and the parameter configuration file, the method further includes:
acquiring a program file of the player, wherein the program file of the player is a file required for operating the player;
the step of packing the video file and the parameter configuration file to generate an executable file, and determining the executable file as a recording result of recording the video data to be recorded comprises the following steps:
and packaging the video file, the parameter configuration file and the program file of the player to generate an executable file, and determining the executable file as a recording result for recording the video data to be recorded.
Optionally, when the video data to be recorded is multi-channel video data,
the step of obtaining the video file corresponding to the video data to be recorded comprises the following steps:
respectively obtaining a video file corresponding to each path of video data to be recorded;
the step of obtaining a parameter profile comprises:
determining configuration parameters of a player corresponding to each video file when the video files are played in a preset player at the same time;
a parameter profile containing the determined configuration parameters is obtained.
In another aspect of this embodiment, a video playing method is further provided, where the method includes:
acquiring a video file and a parameter configuration file corresponding to video data from a video recording result, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the video file is played in the player;
calling the player and carrying out parameter configuration on the player according to the parameter configuration file;
and instructing the player after parameter configuration to play the video file.
Optionally, the video recording result is: the video file and the parameter configuration file are packaged to generate an executable file;
the step of obtaining the video file and the parameter configuration file corresponding to the video data from the video recording result comprises the following steps:
and obtaining the video file and the parameter configuration file by operating the executable file.
Optionally, the video recording result is: the video file, the parameter configuration file and the program file of the player are packaged to generate an executable file, wherein the program file of the player is a file required for operating the player;
the step of invoking the player comprises:
after running the executable file, the executable file runs the program file of the player.
Optionally, the invoking the player and performing parameter configuration on the player according to the parameter configuration file includes:
calling the player;
determining the number of the obtained video files;
instructing the player to open the determined number of play windows;
obtaining configuration parameters of the player corresponding to each video file from the parameter configuration file;
and indicating the player to configure a playing window by adopting the configuration parameters of the player corresponding to the video files, wherein the video files correspond to the playing windows one to one.
In another aspect of this embodiment, a video recording apparatus is further provided, and the apparatus includes:
the file obtaining module is used for obtaining a video file corresponding to the video data to be recorded;
the device comprises a parameter obtaining module, a parameter configuration module and a video playing module, wherein the parameter obtaining module is used for obtaining a parameter configuration file, and the parameter configuration file is used for recording configuration parameters of a preset player when the video file is played in the player;
and the result obtaining module is used for obtaining a recording result for recording the video data to be recorded according to the video file and the parameter configuration file.
Optionally, the result obtaining module is specifically configured to perform packing processing on the video file and the parameter configuration file to generate an executable file, and determine the executable file as a recording result of recording the video data to be recorded.
Optionally, the apparatus further comprises:
an obtaining module, configured to obtain a program file of the player before performing a packaging process on the video file and the parameter configuration file, where the program file of the player is a file required for operating the player;
the result obtaining module is specifically configured to perform packaging processing on the video file, the parameter configuration file, and the program file of the player to generate an executable file, and determine the executable file as a recording result for recording the video data to be recorded.
Optionally, the file obtaining module is specifically configured to, when the video data to be recorded is multiple paths of video data, respectively obtain a video file corresponding to each path of video data to be recorded;
the parameter obtaining module is specifically configured to determine configuration parameters of the player corresponding to each video file when the video files are simultaneously played in a preset player;
a parameter profile containing the determined configuration parameters is obtained.
In another aspect of this embodiment, a video playing apparatus is further provided, where the apparatus includes:
an obtaining module, configured to obtain a video file and a parameter configuration file corresponding to video data from a video recording result, where the parameter configuration file is used to record configuration parameters of a preset player when the video file is played in the player;
the calling module is used for calling the player and carrying out parameter configuration on the player according to the parameter configuration file;
and the indicating module is used for indicating the player after parameter configuration to play the video file.
Optionally, the obtaining module is specifically configured to: an executable file generated by packaging the video file and the parameter configuration file,
and obtaining the video file and the parameter configuration file by operating the executable file.
Optionally, the calling module is specifically configured to: the video file, the parameter configuration file and the program file of the player are packaged to generate an executable file, wherein the program file of the player is a file required for running the player,
after running the executable file, the executable file runs the program file of the player.
Optionally, the invoking module is specifically configured to invoke the player;
determining the number of the obtained video files;
instructing the player to open the determined number of play windows;
obtaining configuration parameters of the player corresponding to each video file from the parameter configuration file;
and indicating the player to configure a playing window by adopting the configuration parameters of the player corresponding to the video files, wherein the video files correspond to the playing windows one to one.
In another aspect of the present application, there is also provided a video recording device, including a processor and a memory, where the processor and the communication interface complete communication between the processor and the memory through a communication bus; a memory for storing a computer program;
and the processor is used for realizing any video recording method when executing the program stored in the memory.
In another aspect of this embodiment, there is also provided a video playback device, including a processor and a memory, where the memory is used for storing a computer program;
and the processor is used for realizing any video playing method when executing the program stored in the memory.
In yet another aspect of this embodiment, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform any of the video recording methods described above.
In yet another aspect of this embodiment, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any of the above-mentioned video playing methods.
Embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform any of the above-mentioned video recording methods.
The present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the above-mentioned video playing methods.
According to the method, the device and the equipment for recording and playing the video, the recording result is obtained according to the video file and the parameter configuration file, and the configuration parameters of the player when the video file is played in the preset player are recorded in the parameter configuration file, so that when the video file in the recording result is played by the player, the parameter configuration can be carried out on the player according to the parameter configuration file in the recording result, a user does not need to manually set the configuration parameters of the player, and the player can play the video file with a better effect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a video recording method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a video playing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a video playing device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a video recording device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Referring to fig. 1, a schematic flow chart of a video recording method provided in an embodiment of the present application is shown, where the method includes:
and S100, obtaining a video file corresponding to the video data to be recorded.
The execution main body of the scheme provided by the implementation of the application can be equipment with a video acquisition function, and also can be equipment in communication connection with the equipment with the video acquisition function.
When the execution main body is equipment with a video acquisition function, the video data to be recorded can be video data acquired by a video acquisition module in the execution main body in real time; when the execution main body is a device in communication connection with the video acquisition device, the video data to be recorded can be the video data directly sent to the execution main body by the video acquisition device through physical connection, or the video data obtained by the execution main body from the network side after the video acquisition device sends the video data to the network side through network connection.
Specifically, when the execution main body is a device with a video acquisition function, the execution main body compresses the acquired video data to be recorded through the video acquisition module to obtain a video stream, and then stores the obtained video stream through the storage module to obtain a video file corresponding to the video data to be recorded.
When the execution main body is a device in communication connection with the video acquisition device, the video acquisition device compresses the acquired video data to be recorded to obtain a video stream, then the video acquisition device sends the obtained video stream to the execution main body, and after the execution main body receives the video stream sent by the video acquisition device, the received video stream is stored to obtain a video file corresponding to the video data to be recorded.
In one implementation manner, after a recording start instruction input by a user is received, the video stream can be continuously stored, and after a recording stop instruction input by the user is received, the video stream is stopped being stored, so that a video file corresponding to video data to be recorded in a time period from recording start to recording stop is obtained.
In another implementation manner, a video file corresponding to the video data to be recorded can be obtained according to a timing instruction set by a user. Specifically, the user may set to store the video stream within a fixed time period to obtain a video file corresponding to the video data to be recorded within the fixed time period. For example, the fixed time period may be 8:00-10:00 per day, that is, the video stream in the time period of 8:00-10:00 per day is saved to obtain the video file corresponding to the time period.
And S110, acquiring a parameter configuration file, wherein the parameter configuration file is used for recording configuration parameters of a player when the video file is played in a preset player.
The configuration parameters are parameters that need to be set when playing the obtained video file in a preset player. Specifically, the method may include: parameters representing video file types, parameters representing code stream types, fisheye parameters, eagle eye parameters, other effect parameters, other playing parameters and the like.
The parameter indicating the type of the video file may include: parameters representing a normal file, parameters representing an eagle eye file, and the like.
The parameter indicating the type of the codestream may include: parameters representing a single-path code stream, parameters representing multiple-path code streams, and the like.
Other effect parameters may include: a parameter indicating a partial zoom-in effect, a parameter indicating a full screen effect, a parameter indicating a synchronized playback effect, and the like. The synchronous playing refers to playing the video files with the same timestamp in a preset player.
Other playback parameters may include: parameters for controlling the playing speed of the video file, etc.
And S120, acquiring a recording result for recording the video data to be recorded according to the video file and the parameter configuration file.
In one implementation manner, a link relationship between a video file and a parameter configuration file may be established, and the video file and the parameter configuration file after the link relationship is established are used as a recording result, based on which, when a video file in the recording result is played by a preset player, the parameter configuration file corresponding to the video file may be read through the established link relationship, and the player may be configured according to configuration parameters in the parameter configuration file, so that the player plays the video file with a better effect.
In another implementation manner, the video file and the parameter configuration file may be packaged to obtain a packaged file, where the obtained packaged file may be an executable file, for example: an exe file; but also non-executable files such as: a rar file. The video file and the parameter configuration file are packaged into a file, so that the transmission and management of the file can be facilitated.
The video recording method provided by the embodiment of the application can obtain the recording result according to the video file and the parameter configuration file recorded with the configuration parameters of the player when the preset player plays the video file, so that when the player plays the video file in the recording result, the player can be subjected to parameter configuration according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user.
In an implementation manner of this embodiment, to facilitate transmission of the recording result, the step S120 may include the following steps:
and step A, packaging the video file and the parameter configuration file to generate an executable file, and determining the executable file as a recording result for recording the video data to be recorded.
An executable file refers to a file that is capable of running independently. Typically, the executable file includes: the code file comprises all steps required to be executed when the executable file runs and the execution sequence of all the steps, and the resource file comprises files required by the executable file when the executable file runs.
In an implementation manner of the present application, a video file and a parameter file may be placed in a resource file, then a code file defining a calling sequence of each file when the video file is played is generated, and finally the resource file and the code file are packaged to obtain an executable file.
According to the embodiment of the application, the video file and the parameter configuration file are packaged to generate the executable file, so that the problem that a preset player cannot automatically play the video file with a better effect if the parameter file is lost when the video file and the parameter file are transmitted simultaneously is avoided while the transmission of the recording result is facilitated.
In order to prevent the situation that the video file cannot be viewed due to the fact that the preset player is not installed in the terminal device when the video file in the recording result is viewed, in an implementation manner of the embodiment of the present application, before the step of packaging the video file and the parameter configuration file and generating the executable file, the method further includes:
acquiring a preset program file of a player, wherein the preset program file of the player is a file required for operating the preset player;
accordingly, the step a may include:
and packaging the video file, the parameter configuration file and a preset program file of the player to generate an executable file, and determining the executable file as a recording result for recording the video data to be recorded.
Specifically, the preset program file of the player may include: the method comprises the steps of running an exe file required by a preset player, running a dynamic link library file required by the preset player, running an interface file required by the preset player and the like.
The program files of the preset players are packaged simultaneously, so that the program files of the players contained in the resource files of the executable files can be directly called to run the preset players when the executable files run, the video files in the resource files are played through the preset players, and the video files can be played by directly running the executable files with better effect.
In an implementation manner of this embodiment, when the video data to be recorded is multi-channel video data, the step S100 may include:
respectively obtaining a video file corresponding to each path of video data to be recorded;
accordingly, the above S110 may include:
determining configuration parameters of a player corresponding to each video file when the video files are played in a preset player at the same time;
a parameter profile containing the determined configuration parameters is obtained.
The simultaneous playing is to set a plurality of playing windows in a preset playing interface of the player, and then to make each playing window play one video file, so as to realize the simultaneous playing of a plurality of video files in the playing interface.
In the actual recording process, when previewing a video file by a player, a worker may set a plurality of playing windows in a playing interface simultaneously according to the number of the video files to realize simultaneous playing of each video file, and in the playing process, configuration parameters of the playing windows playing each video file are usually set respectively according to specific situations of each video file, so that, in order to enable a user to play each video file simultaneously, the player can play each video file with a better effect, when the video files are multiple, configuration parameters of the player corresponding to each video file need to be determined respectively, and then the configuration parameters of the player corresponding to each video file are stored in a parameter configuration file.
Referring to fig. 2, a schematic flow chart of a video playing method provided in an embodiment of the present application is shown, where the method includes:
s200, obtaining a video file and a parameter configuration file corresponding to the video data from the video recording result, wherein the parameter configuration file is used for recording configuration parameters of a player when the video file is played in a preset player.
S210, calling a preset player, and performing parameter configuration on the preset player according to the parameter configuration file.
In one implementation, the locally installed preset player may be called through an installation path of the preset player in the terminal device.
The video recording result can also include a link address for downloading a preset player, and when the preset player is not installed locally, the preset player can be downloaded and installed according to the link address to call the preset player.
The video recording result may further include an exe file for running a preset player, and based on this, the preset player included in the video recording result may be directly invoked.
In another implementation manner, when there are a plurality of obtained video files, S210 may include the following steps:
calling a preset player;
determining the number of the obtained video files;
instructing a preset player to start the determined number of playing windows;
obtaining configuration parameters of a player corresponding to each video file from the parameter configuration files;
and indicating a preset player to configure a playing window by adopting the configuration parameters of the player corresponding to the video files, wherein the video files correspond to the playing windows one to one.
When there are a plurality of video files included in the video recording result, the number of the playing windows needs to be determined according to the number of the video files, and each synchronous playing window plays one video file, so that each video file included in the video recording result is played at the same time.
In the process of instructing a preset player to configure a playing window by using the configuration parameter of the player corresponding to the video file, in an implementation manner of the present application, first, a playing window may be allocated to each video file for playing, and then, for each video file, the configuration parameter of the player corresponding to the video file is used to configure the playing window allocated to the video file.
In another implementation manner, each playing window may also be configured according to configuration parameters included in the parameter configuration file, and then the video file played in each configured playing window is determined according to the corresponding relationship between the video file and the configuration parameters of the player.
And S220, indicating the preset player with the configured parameters to play the video file.
Specifically, the video file can be sent to a preset player, so that the preset player plays the video file; and the preset player can be instructed to read the video file in the storage position of the video file, so that the video file can be played in the preset player.
Under the condition that a plurality of video files are provided, the video files corresponding to the configuration parameters are respectively played in each playing window configured by the parameter configuration files, and the simultaneous playing of the plurality of video files is realized.
According to the video playing method provided by the embodiment of the application, the preset player can be subjected to parameter configuration according to the parameter configuration file in the recording result, and the preset player can play the video file with a better effect without manually setting the configuration parameters of the preset player by a user.
In an implementation manner of the embodiment of the application, the recording result may be a video file and a parameter configuration file after a link relationship is established; the video file and the parameter configuration file can be packaged to obtain an executable file or a non-executable file.
And the video recording result is: in the case of an executable file generated by packaging a video file and a parameter configuration file, S200 may include:
the video file and the parameter configuration file are obtained by running the executable file.
Specifically, after the user runs the executable file through the terminal device, the executable file calls the video file and the parameter configuration file stored in the resource file; then, the executable file calls a preset player installed in the terminal equipment, and configures the called player according to the configuration parameters in the parameter configuration file; and finally, the executable file instructs the configured player to play the video file.
In an implementation manner of the embodiment of the present application, a video recording result is: under the condition of an executable file generated by packaging a video file, a parameter configuration file and a preset program file of a player, wherein the preset program file of the player is a file required by the running of the player, the step of calling the player comprises the following steps of:
after the executable file is executed, the executable file executes a program file of a preset player.
The preset program files of the player may include: exe files required for running the player, dynamic link library files required for running the player, interface files required for running the player, and the like.
Specifically, after the executable file is run, the executable file starts an exe file required for running a preset player to start the player, so that the preset player calls a dynamic link library file, an interface file and the like to realize normal start of the preset player, then the executable file calls a parameter configuration file in a resource file, the preset player is configured by using configuration parameters contained in the parameter configuration file, and finally the executable file calls a video file and sends the video file to the preset player after the parameter configuration, so that the preset player plays the video file. The video file can be played with a better effect by directly running the executable file.
The following describes a video recording method and a video playing method provided by the embodiments of the present application with a specific embodiment:
assuming that video data to be recorded is 4 paths of video data, the video acquisition device continuously compresses each path of video data to obtain a video stream 1, a video stream 2, a video stream 3 and a video stream 4, and sends each video stream to the video recording device, after recording is started, the video recording device respectively stores each received video stream to obtain a video file 1, a video file 2, a video file 3 and a video file 4, and when each video file is obtained, configuration parameters 1 of the player when the video file 1 is played in a preset player are respectively obtained, configuration parameters 2 of the player when the video file 2 is played in the preset player, configuration parameters 3 of the player when the video file 3 is played in the preset player, and configuration parameters 4 of the player when the video file 4 is played in the preset player.
When recording is stopped, obtaining a video file 1, a video file 2, a video file 3 and a video file 4 at the moment, and a configuration parameter 1, a configuration parameter 2, a configuration parameter 3 and a configuration parameter 4 corresponding to each video file, storing the configuration parameters corresponding to each video file in a parameter configuration file, and then obtaining an exe file, a dynamic link library file and an interface file which are required by running a preset player; and finally, putting an exe file, a dynamic link library file and an interface file required by the running player, a video file 1, a video file 2, a screen file 3, a video file 4 and a parameter configuration file into a resource file of the executable file, generating a code file for defining the calling sequence of the files when the video file is played, and packaging the resource file and the code file to obtain the executable file.
When a user checks a video file through an executable file, the user runs the executable file through a terminal device, after the executable file runs, the executable file reads a code file, according to an execution step set in the code file, firstly, an exe file required by running a player is started to start a preset player, so that the preset player calls a dynamic link library file and an interface file to realize normal starting of the player, and then, the executable file opens 4 synchronous playing windows in the player according to the number of the video files: a playing window 1, a playing window 2, a playing window 3 and a playing window 4; then, the executable file reads and analyzes the parameter configuration file to obtain configuration parameters 1, 2, 3 and 4 corresponding to each video file, the configuration parameter 1 is used for configuring the playing window 1, the configuration parameter 2 is used for configuring the playing window 2, the configuration parameter 3 is used for configuring the playing window 3, and the configuration parameter 4 is used for configuring the playing window 4; finally, the executable file respectively sends the video file 1, the video file 2, the video file 3 and the video file 4 to the playing window 1, the playing window 2, the playing window 3 and the playing window 4, and finally the video file 1 is played in the playing window 1 according to the effect corresponding to the configuration parameter 1, the video file 2 is played in the playing window 2 according to the effect corresponding to the configuration parameter 2, the video file 3 is played in the playing window 3 according to the effect corresponding to the configuration parameter 3, and the video file 4 is played in the playing window 4 according to the effect corresponding to the configuration parameter 4.
Referring to fig. 3, a schematic structural diagram of a video recording apparatus provided in an embodiment of the present application is shown, where the apparatus includes:
a file obtaining module 300, configured to obtain a video file corresponding to video data to be recorded;
a parameter obtaining module 310, configured to obtain a parameter configuration file, where the parameter configuration file is used to record configuration parameters of a preset player when the player plays the video file;
and a result obtaining module 320, configured to obtain, according to the video file and the parameter configuration file, a recording result for recording the video data to be recorded.
In an implementation manner of the embodiment of the present application, the result obtaining module 320 is specifically configured to perform packing processing on the video file and the parameter configuration file to generate an executable file, and determine the executable file as a recording result of recording the video data to be recorded.
In an implementation manner of the embodiment of the present application, the apparatus further includes:
an obtaining module 330, configured to obtain a program file of the player before performing a packaging process on the video file and the parameter configuration file, where the program file of the player is a file required for running the player;
correspondingly, the result obtaining module 320 is specifically configured to perform a package processing on the video file, the parameter configuration file, and the program file of the player, generate an executable file, and determine the executable file as a recording result of recording the video data to be recorded.
In an implementation manner of the embodiment of the present application, the file obtaining module 300 is specifically configured to, when the video data to be recorded is multiple paths of video data, respectively obtain a video file corresponding to each path of video data to be recorded;
correspondingly, the parameter obtaining module 310 is specifically configured to determine configuration parameters of the player corresponding to each video file when the video files are simultaneously played in a preset player;
a parameter profile containing the determined configuration parameters is obtained.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the parameter configuration can be performed on the player according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user.
Referring to fig. 4, a schematic structural diagram of a video playing apparatus provided in an embodiment of the present application is shown, where the apparatus includes:
an obtaining module 400, configured to obtain a video file and a parameter configuration file corresponding to video data from a video recording result, where the parameter configuration file is used to record configuration parameters of a preset player when the video file is played in the player;
a calling module 410, configured to call the player, and perform parameter configuration on the player according to the parameter configuration file;
an indicating module 420, configured to indicate the player after performing parameter configuration to play the video file.
In an implementation manner of the embodiment of the present application, the obtaining module 400 is specifically configured to: an executable file generated by packaging the video file and the parameter configuration file,
and obtaining the video file and the parameter configuration file by operating the executable file.
In an implementation manner of the embodiment of the present application, the calling module 410 is specifically configured to: the video file, the parameter configuration file and the program file of the player are packaged to generate an executable file, wherein the program file of the player is a file required for running the player,
after running the executable file, the executable file runs the program file of the player.
In an implementation manner of the embodiment of the present application, the invoking module 410 is specifically configured to invoke the player;
determining the number of the obtained video files;
instructing the player to open the determined number of playing windows;
obtaining configuration parameters of the player corresponding to each video file from the parameter configuration file;
and indicating the player to configure a playing window by adopting the configuration parameters of the player corresponding to the video files, wherein the video files correspond to the playing windows one to one.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the parameter configuration can be performed on the player according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user.
The embodiment of the present application further provides a video recording device, as shown in fig. 5, which includes a processor 001, a communication interface 002, a memory 003 and a communication bus 004, wherein the processor 001, the communication interface 002 and the memory 003 complete communication with each other through the communication bus 004,
a memory 003 for storing a computer program;
the processor 001 is configured to implement the video recording method according to the embodiment of the present application when executing the program stored in the memory 003.
Specifically, the video recording method includes:
acquiring a video file corresponding to video data to be recorded;
obtaining a parameter configuration file, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the player plays the video file;
and acquiring a recording result for recording the video data to be recorded according to the video file and the parameter configuration file.
It should be noted that other embodiments of the method for implementing live recording by the processor 001 executing the program stored in the memory 003 are the same as the embodiments provided in the foregoing embodiments of the method, and are not described again here.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the parameter configuration can be performed on the player according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user.
The embodiment of the present application further provides a video playing device, as shown in fig. 6, which includes a processor 011, a communication interface 012, a memory 013, and a communication bus 014, wherein the processor 011, the communication interface 012, and the memory 013 complete communication with each other through the communication bus 014,
a memory 013 for storing computer programs;
the processor 011 is configured to implement the video playing method according to the embodiment of the present application when executing the program stored in the memory 013.
Specifically, the video playing method includes:
acquiring a video file and a parameter configuration file corresponding to video data from a video recording result, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the video file is played in the player;
calling the player and carrying out parameter configuration on the player according to the parameter configuration file;
and instructing the player after parameter configuration to play the video file.
It should be noted that, the processor 011 executes the program stored in the memory 013 to implement other embodiments of the video playing method, which are the same as the embodiments provided in the previous embodiment of the method, and are not described again here.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the player can be configured with the parameters according to the parameter configuration file in the recording result, and the user does not need to manually set the configuration parameters of the player, so that the player can play the video file with a better effect.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another aspect of this embodiment, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform any of the video recording methods described above.
Specifically, the video recording method includes:
acquiring a video file corresponding to video data to be recorded;
obtaining a parameter configuration file, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the player plays the video file;
and acquiring a recording result for recording the video data to be recorded according to the video file and the parameter configuration file.
It should be noted that other embodiments of the video recording method implemented by the computer-readable storage medium are the same as the embodiments provided in the foregoing method embodiments, and are not described herein again.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the parameter configuration can be performed on the player according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user. In yet another aspect of this embodiment, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any of the above-mentioned video playing methods.
Specifically, the video playing method includes:
obtaining a video file and a parameter configuration file corresponding to video data from a video recording result, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the video file is played in the player;
calling the player and carrying out parameter configuration on the player according to the parameter configuration file;
and instructing the player after parameter configuration to play the video file.
It should be noted that other embodiments of the video playing method implemented by the computer-readable storage medium are the same as the embodiments provided in the foregoing method embodiments, and are not described herein again.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the parameter configuration can be performed on the player according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user.
In another aspect of this embodiment, a computer program product containing instructions is provided, which when executed on a computer, causes the computer to perform any of the above-mentioned video recording methods.
Specifically, the video recording method includes:
acquiring a video file corresponding to video data to be recorded;
obtaining a parameter configuration file, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the player plays the video file;
and obtaining a recording result for recording the video data to be recorded according to the video file and the parameter configuration file.
It should be noted that other embodiments of the video recording method implemented by the computer program product are the same as the embodiments provided in the foregoing method embodiment section, and are not described again here.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the parameter configuration can be performed on the player according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user. In another aspect of this embodiment, a computer program product containing instructions is provided, which when executed on a computer, causes the computer to perform any one of the video playing methods described above.
Specifically, the video playing method includes:
acquiring a video file and a parameter configuration file corresponding to video data from a video recording result, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the video file is played in the player;
calling the player and carrying out parameter configuration on the player according to the parameter configuration file;
and instructing the player after parameter configuration to play the video file.
It should be noted that other embodiments of the video playing method implemented by the computer program product are the same as the embodiments provided in the foregoing method embodiments, and are not described herein again.
In each of the solutions provided in the embodiments of the present application, since the recording result is obtained according to the video file and the parameter configuration file, and since the parameter configuration file records the configuration parameters of the player when the video file is played in the preset player, when the video file in the recording result is played by the player, the parameter configuration can be performed on the player according to the parameter configuration file in the recording result, and the player can play the video file with a better effect without manually setting the configuration parameters of the player by a user. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A method of video recording, the method comprising:
acquiring a video file corresponding to video data to be recorded;
obtaining a parameter configuration file, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the video file is played in the preset player, and the configuration parameters are parameters which need to be set when the obtained video file is played in the preset player; the configuration parameters include: parameters representing the type of the video file, parameters representing the type of the code stream, fisheye parameters, eagle eye parameters, other effect parameters and other playing parameters; the other effect parameters include: the parameter representing the local amplification effect, the parameter representing the full screen effect and the parameter representing the synchronous playing effect; the other play parameters include: a parameter for controlling a playing speed of the video file;
obtaining a recording result for recording the video data to be recorded according to the video file and the parameter configuration file;
the step of obtaining a recording result of recording the video data to be recorded according to the video file and the parameter configuration file comprises the following steps:
and packaging the video file and the parameter configuration file to generate an executable file, and determining the executable file as a recording result for recording the video data to be recorded.
2. The method of claim 1, wherein prior to the step of packaging the video file and the parameter configuration file, further comprising:
acquiring a program file of the player, wherein the program file of the player is a file required for operating the player;
the step of packing the video file and the parameter configuration file to generate an executable file, and determining the executable file as a recording result of recording the video data to be recorded comprises the following steps:
and packaging the video file, the parameter configuration file and the program file of the player to generate an executable file, and determining the executable file as a recording result for recording the video data to be recorded.
3. The method of claim 1, wherein when the video data to be recorded is multi-channel video data,
the step of obtaining the video file corresponding to the video data to be recorded comprises the following steps:
respectively obtaining a video file corresponding to each path of video data to be recorded;
the step of obtaining a parameter profile comprises:
determining configuration parameters of a player corresponding to each video file when the video files are played in a preset player at the same time;
a parameter profile containing the determined configuration parameters is obtained.
4. A video playback method, the method comprising:
obtaining a video file and a parameter configuration file corresponding to video data from a video recording result, wherein the parameter configuration file is used for recording configuration parameters of a preset player when the video file is played in the preset player, and the configuration parameters are parameters which need to be set when the obtained video file is played in the preset player; the configuration parameters include: parameters representing the type of the video file, parameters representing the type of the code stream, fisheye parameters, eagle eye parameters, other effect parameters and other playing parameters; the other effect parameters include: the parameter representing the local amplification effect, the parameter representing the full screen effect and the parameter representing the synchronous playing effect; the other play parameters include: a parameter for controlling a playing speed of the video file;
calling the player and carrying out parameter configuration on the player according to the parameter configuration file;
instructing the player after parameter configuration to play the video file;
wherein the video recording result is as follows: the video file and the parameter configuration file are packaged to generate an executable file;
the step of obtaining the video file and the parameter configuration file corresponding to the video data from the video recording result comprises the following steps:
and obtaining the video file and the parameter configuration file by operating the executable file.
5. The method of claim 4,
the video recording result is as follows: the video file, the parameter configuration file and the program file of the player are packaged to generate an executable file, wherein the program file of the player is a file required for operating the player;
the step of invoking the player comprises:
after running the executable file, the executable file runs the program file of the player.
6. The method of claim 4, wherein the invoking the player and performing parameter configuration on the player according to the parameter configuration file comprises:
calling the player;
determining the number of the obtained video files;
instructing the player to open the determined number of play windows;
obtaining configuration parameters of the player corresponding to each video file from the parameter configuration file;
and indicating the player to configure a playing window by adopting the configuration parameters of the player corresponding to the video files, wherein the video files correspond to the playing windows one to one.
7. A video recording apparatus, characterized in that the apparatus comprises:
the file obtaining module is used for obtaining a video file corresponding to the video data to be recorded;
a parameter obtaining module, configured to obtain a parameter configuration file, where the parameter configuration file is used to record configuration parameters of a preset player when the video file is played in the preset player, and the configuration parameters are parameters that need to be set when the obtained video file is played in the preset player; the configuration parameters include: parameters representing the type of the video file, parameters representing the type of the code stream, fisheye parameters, eagle eye parameters, other effect parameters and other playing parameters; the other effect parameters include: the parameter representing the local amplification effect, the parameter representing the full screen effect and the parameter representing the synchronous playing effect; the other play parameters include: a parameter for controlling a playing speed of the video file;
the result obtaining module is used for obtaining a recording result for recording the video data to be recorded according to the video file and the parameter configuration file;
the result obtaining module is specifically configured to perform packing processing on the video file and the parameter configuration file to generate an executable file, and determine the executable file as a recording result of recording the video data to be recorded.
8. The apparatus of claim 7, wherein the apparatus further comprises:
an obtaining module, configured to obtain a program file of the player before performing a packaging process on the video file and the parameter configuration file, where the program file of the player is a file required for operating the player;
the result obtaining module is specifically configured to package the video file, the parameter configuration file, and the program file of the player, generate an executable file, and determine the executable file as a recording result of recording the video data to be recorded.
9. The apparatus of claim 7,
the file obtaining module is specifically configured to obtain a video file corresponding to each path of video data to be recorded when the video data to be recorded is multiple paths of video data;
the parameter obtaining module is specifically configured to determine configuration parameters of the player corresponding to each video file when the video files are simultaneously played in a preset player;
a parameter profile containing the determined configuration parameters is obtained.
10. A video playback apparatus, comprising:
an obtaining module, configured to obtain a video file and a parameter configuration file corresponding to video data from a video recording result, where the parameter configuration file is used to record a configuration parameter of a preset player when the video file is played in the preset player, and the configuration parameter is a parameter that needs to be set when the obtained video file is played in the preset player; the configuration parameters include: parameters representing the type of the video file, parameters representing the type of the code stream, fisheye parameters, eagle eye parameters, other effect parameters and other playing parameters; the other effect parameters include: the parameter representing the local amplification effect, the parameter representing the full screen effect and the parameter representing the synchronous playing effect; the other play parameters include: a parameter for controlling a playing speed of the video file;
the calling module is used for calling the player and carrying out parameter configuration on the player according to the parameter configuration file;
the indicating module is used for indicating the player after parameter configuration to play the video file;
wherein the video recording result is as follows: the video file and the parameter configuration file are packaged to generate an executable file; the obtaining module is specifically configured to obtain the video file and the parameter configuration file by running the executable file.
11. The apparatus of claim 10,
the calling module is specifically configured to enable the video recording result to be: an executable file generated by packaging the video file, the parameter configuration file and the program file of the player, wherein the program file of the player is a file required by the player to operate,
after running the executable file, the executable file runs the program file of the player.
12. The apparatus of claim 10,
the calling module is specifically used for calling the player;
determining the number of the obtained video files;
instructing the player to open the determined number of play windows;
obtaining configuration parameters of the player corresponding to each video file from the parameter configuration file;
and indicating the player to configure a playing window by adopting the configuration parameters of the player corresponding to the video files, wherein the video files correspond to the playing windows one to one.
CN201810777625.7A 2018-07-16 2018-07-16 Video recording and video playing method, device and equipment Active CN110730320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810777625.7A CN110730320B (en) 2018-07-16 2018-07-16 Video recording and video playing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810777625.7A CN110730320B (en) 2018-07-16 2018-07-16 Video recording and video playing method, device and equipment

Publications (2)

Publication Number Publication Date
CN110730320A CN110730320A (en) 2020-01-24
CN110730320B true CN110730320B (en) 2022-06-03

Family

ID=69217256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810777625.7A Active CN110730320B (en) 2018-07-16 2018-07-16 Video recording and video playing method, device and equipment

Country Status (1)

Country Link
CN (1) CN110730320B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135179A (en) * 2020-09-11 2020-12-25 游艺星际(北京)科技有限公司 Video playing method and device, electronic equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777944A (en) * 2003-04-23 2006-05-24 柯尼卡美能达影像株式会社 Input data recorder and input data recording method
JP5040292B2 (en) * 2006-12-19 2012-10-03 ソニー株式会社 Information processing apparatus, information processing method, and program
US20080158422A1 (en) * 2007-01-03 2008-07-03 Creative Technology Ltd Circuit, method and system for determining video signal type for generation by a media player
CN101471109B (en) * 2007-12-24 2011-05-25 中兴通讯股份有限公司 Method for controlling Bluetooth media play list
US9270718B2 (en) * 2011-11-25 2016-02-23 Harry E Emerson, III Internet streaming and the presentation of dynamic content
CN104602105B (en) * 2014-12-31 2017-09-12 腾讯科技(北京)有限公司 The player method and user equipment of video file
CN108702479A (en) * 2016-02-19 2018-10-23 索尼公司 Information processing equipment, information processing method and program
CN106385632B (en) * 2016-09-21 2019-10-22 微鲸科技有限公司 Video broadcasting method and video play device
CN108055579B (en) * 2017-12-14 2020-05-08 Oppo广东移动通信有限公司 Video playing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110730320A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN109089154B (en) Video extraction method, device, equipment and medium
CN111010614A (en) Method, device, server and medium for displaying live caption
CN109089127B (en) Video splicing method, device, equipment and medium
CN109274982B (en) Video carousel method and device, computer equipment and storage medium
WO2015196693A1 (en) Data collection method and apparatus
CN108933948A (en) A kind of video playing progress synchronous method and device
KR20090091722A (en) Aggregation of multiple media streams to a user
CN111988647A (en) Sound and picture synchronous adjusting method, device, equipment and medium
US10341710B2 (en) Program recording method and device, and set top box
CN105451071A (en) Video stream processing method, device and system
CN107426629A (en) A kind of streaming media file processing method and live broadcast system
CN110264280A (en) A kind of outdoor advertising monitoring method
CN111447239B (en) Video stream playing control method, device and storage medium
CN109803151A (en) Multi-medium data stream switching method, device, storage medium and electronic device
CN108391160A (en) A kind of screenshotss method, system and set-top box
CN110730320B (en) Video recording and video playing method, device and equipment
WO2015154549A1 (en) Data processing method and device
CN113286161A (en) Live broadcast method, device, equipment and storage medium
CN112866603B (en) Program recording method, device, computer equipment and storage medium
CN108228477A (en) It is a kind of that the method and system of operation data are obtained based on memory capacity
CN114584821A (en) Video processing method and device
CN113992553A (en) Platform flow generation system, method, computer and storage medium based on micro-service
CN109144613B (en) Android definition switching method and device, terminal and readable medium
CN109213534A (en) A kind of method and device of extension live streaming software function
CN111835955B (en) Data acquisition method and device

Legal Events

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