CN111901661B - Video recording method, video playing method and display equipment - Google Patents

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

Info

Publication number
CN111901661B
CN111901661B CN202010752244.0A CN202010752244A CN111901661B CN 111901661 B CN111901661 B CN 111901661B CN 202010752244 A CN202010752244 A CN 202010752244A CN 111901661 B CN111901661 B CN 111901661B
Authority
CN
China
Prior art keywords
video
video file
recording mark
image quality
frame data
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
CN202010752244.0A
Other languages
Chinese (zh)
Other versions
CN111901661A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202010752244.0A priority Critical patent/CN111901661B/en
Publication of CN111901661A publication Critical patent/CN111901661A/en
Application granted granted Critical
Publication of CN111901661B publication Critical patent/CN111901661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a video recording method, a playing method and display equipment.A controller encodes picture images collected by a camera to obtain video frame data when the video is recorded; and adding a local recording mark at the initial position of the first frame of the video frame data, packaging to obtain a video file, and sending the video file to a player for playing. When video playing is carried out, whether video frame data corresponding to a video file contains a local end recording mark or not is identified by the player; and if the local recording mark is contained, directly playing the video file. Therefore, according to the method and the display device provided by the invention, the local recording mark is added in the video recording process, and the mark is identified during video playing, so that the image quality of the video file is not processed, the phenomena of unstable frame rate and definition of the video file caused by the fluctuation of the resource environment of the display device can be avoided, the phenomenon of video image jitter during playing can not occur, and the user experience is good.

Description

Video recording method, video playing method and display equipment
Technical Field
The present application relates to the field of video recording and playing technologies, and in particular, to a video recording method, a video playing method, and a display device.
Background
Along with the rapid development of display equipment, the function of display equipment will be more and more abundant, and the performance is also more and more powerful, and at present, display equipment includes intelligent TV, intelligent STB, intelligent box to and have products of intelligent display screen etc.. Taking an intelligent television as an example, an existing intelligent television not only has a traditional television function, but also has some functions on a mobile phone, for example, a magic show application program is configured in the intelligent television to realize a video recording function and the like.
When video recording is realized by using display equipment, a camera arranged in the display equipment realizes the collection of user pictures, and a video file is obtained after synthesis; and when playing, playing the synthesized video file by a player configured in the display equipment. However, since special effects can be added to the video stream to increase the picture effect during video recording, when synthesizing a video file, operations such as encoding and packaging can be performed only after special effects are performed on the video stream. The special effect processing has higher requirements on the resource environment of the display equipment, and the fluctuation of the resource environment easily causes the problem that the frame rate and the definition of the video file are unstable.
When the player is used to play the synthesized video file, a series of image quality processing is required to enhance the user experience. However, the image quality processing depends on media information such as the frame rate and resolution of the video file itself, and when these pieces of information are unstable, the image quality processing may have an adverse effect, that is, the image quality processing during playback may aggravate the phenomenon of image blurring during playback due to the unstable frame rate during video recording, and thus may result in a bad experience.
Disclosure of Invention
The application provides a video recording method, a video playing method and a display device, which aim to solve the problem that video pictures are easy to shake when a video file recorded by the existing method is played.
In a first aspect, the present application provides a display device comprising:
a camera configured to capture a picture image;
a player configured to play a video file;
a controller connected to the player and camera, the controller configured to:
acquiring a picture image acquired by a camera;
coding the picture image collected by the camera to obtain video frame data;
adding a home terminal recording mark at the initial position of a first frame of the video frame data, wherein the home terminal recording mark is used for marking the video frame data as a display device for recording;
Packaging the video frame data added with the local recording mark to obtain a video file;
and sending the video file to a player for playing.
In some embodiments of the present application, the controller is further configured to add a local recording mark at a start position of the first frame of the video frame data, and the controller is further configured to:
judging whether the video frame data is received for the first time;
and if the video frame data is received for the first time, adding a local recording mark at the initial position of the first frame picture, wherein the first frame picture refers to the picture corresponding to the video frame data received for the first time.
In some embodiments of the application, the controller is further configured to, after the adding the home recording mark at the start position of the first frame of picture is executed:
determining local end marking parameters of a local end recording mark according to system setting information, wherein the local end marking parameters comprise a local end type identifier, a local end load type identifier, a local end UUID and local end self-defining data, the local end type identifier is used for determining that the type of the recording mark is the local end recording type, the local end load type identifier is a user-defined identifier, the local end UUID is a display device self-defined identifier, and the local end self-defining data is used for identifying that a film source for recording a video is a display device;
And acquiring the initial position of the first frame picture, and adding a home terminal recording mark carrying the home terminal type identifier, the home terminal load type identifier, the home terminal UUID and the home terminal custom data at the initial position.
In a second aspect, the present application also provides a display device, including:
a camera configured to capture a picture image;
the controller is connected with the camera and configured to package the picture image acquired by the camera to obtain a video file and send the video file to a player for playing;
a player connected to the controller, the player configured to:
receiving a video file sent by the controller;
analyzing the video file to obtain video frame data corresponding to the video file;
identifying whether the video frame data contains a local recording mark, wherein the local recording mark is used for identifying the video frame data as a display device to record;
and if the video frame data contains the local recording mark, playing the video file.
In some embodiments of the present application, the player is further configured to, when performing the identifying whether the video frame data contains a home recording flag:
Identifying whether the video frame data contains a recording mark;
if the video frame data contains a recording mark, acquiring a mark parameter of the recording mark;
judging whether the marking parameters are consistent with the marking parameters of the local terminal;
and if the video frame data are consistent, determining that the recording mark is a local terminal recording mark, and determining that the video frame data contain the local terminal recording mark.
In some embodiments of the application, the player, when performing the determining whether the marking parameter is consistent with the local marking parameter, is further configured to:
acquiring a type identifier in a marking parameter of the recording mark;
if the type identifier is a home terminal type identifier, acquiring a load type identifier in the marking parameters of the recording mark;
if the load type identifier is a user-defined identifier, acquiring a UUID in the marking parameters of the recording mark;
if the UUID is a display device self-defined identifier, acquiring load data in a marking parameter of the recording mark;
and if the load data is consistent with the home terminal custom data, determining that the marking parameters are consistent with the home terminal marking parameters.
In some embodiments of the present application, the playing unit is further configured to, when the playing unit plays the video file if the video frame data contains the local recording flag:
If the video frame data contains a local recording mark, sending an image quality processing closing notification to a display module, wherein the image quality processing closing notification is used for indicating the display module to close an interface for performing image quality processing on the video file;
and after a closing completion signal returned by the display module responding to the image quality processing closing notification is received, playing the video file, wherein the closing completion signal is used for representing that the display module closes an interface for performing image quality processing on the video file.
In some embodiments of the present application, the player is further configured to:
if the video frame data does not contain the local recording mark, sending an image quality processing starting notice to a display module, wherein the image quality processing starting notice is used for indicating the display module to start image quality processing on the video file;
and playing the video file subjected to the image quality processing after receiving a processing completion signal returned by the display module in response to the image quality processing start notification.
In a third aspect, the present application further provides a video recording method applied to a controller, where the method includes:
acquiring a picture image acquired by a camera;
Coding the picture image collected by the camera to obtain video frame data;
adding a home terminal recording mark at the initial position of a first frame of the video frame data, wherein the home terminal recording mark is used for marking the video frame data as a display device for recording;
packaging the video frame data added with the local recording mark to obtain a video file;
and sending the video file to a player for playing.
In a fourth aspect, the present application further provides a video recording method applied to a player, where the method includes:
receiving a video file sent by the controller;
analyzing the video file to obtain video frame data corresponding to the video file;
identifying whether the video frame data contains a home terminal recording mark, wherein the home terminal recording mark is used for identifying the video frame data as a display device recording;
and if the video frame data contains the local recording mark, playing the video file.
In a fifth aspect, the present application further provides a storage medium, where the computer storage medium may store a program, and the program may implement, when executed, some or all of the steps in the embodiments of the video recording method and the video playing method provided by the present application.
According to the technical scheme, the video recording method, the playing method and the display device provided by the embodiment of the invention have the advantages that when the video recording is carried out, the controller carries out coding processing on the picture image collected by the camera to obtain the video frame data; and adding a home terminal recording mark at the initial position of the first frame of the video frame data, packaging to obtain a video file, and sending the video file to a player for playing. When video playing is carried out, whether video frame data corresponding to a video file contains a local end recording mark or not is identified by the player; if the local recording mark is contained, the video file is directly played. Therefore, according to the method and the display device provided by the embodiment of the invention, the local recording mark is added in the video recording process, and the mark is identified during video playing, so that the image quality of the video file is not processed, the phenomena of unstable frame rate and definition of the video file caused by the fluctuation of the resource environment of the display device can be avoided, the phenomenon of video image jitter during playing can not occur, and the user experience is good.
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 block diagram of a display device according to some embodiments;
a flow diagram of a video recording method according to some embodiments is illustrated in fig. 2;
a flow diagram of a method of adding a home recording mark according to some embodiments is illustrated in fig. 3;
a flow diagram of a video playback method according to some embodiments is illustrated in fig. 4;
a data flow diagram of a video playback method according to some embodiments is illustrated in fig. 5;
FIG. 6 illustrates a flow diagram of a method of identifying a home recording mark in accordance with some embodiments;
a flow diagram of a method of determining whether a marking parameter is consistent with a local marking parameter in accordance with some embodiments is illustrated in fig. 7.
Detailed Description
When a video file is obtained by recording a video using a display device and played, a series of image quality processing is performed to enhance user experience. However, since image quality processing depends on media information such as the frame rate and resolution of the video file itself, image quality processing may have an adverse effect when the information is unstable, and a phenomenon such as a video image being jittered when playing a video may occur, which may result in a poor experience.
Therefore, in order to avoid the image jitter, embodiments of the present invention provide a display device, which can add a local recording mark in the video recording process, and when the mark is identified during video playing, the image quality of the video file is not processed, so as to avoid the jitter of the video image caused by the unstable frame rate and definition of the video file due to the fluctuation of the resource environment of the display device.
A block diagram of a display device according to some embodiments is illustrated in fig. 1. Referring to fig. 1, an embodiment of the present invention provides a display device 200, including: a camera 201, a player 202 and a controller 203. The camera 201 is configured to capture picture images, the controller 203 is configured to receive the picture images captured by the camera and synthesize a video file, and the player 202 is configured to receive the video file synthesized by the controller for playing.
A flow diagram of a video recording method according to some embodiments is illustrated in fig. 2. Referring to fig. 2, in a display device provided in an embodiment of the present invention, when a home recording flag is added in a video recording process, a controller is configured to perform the following steps:
and S11, acquiring the picture image collected by the camera.
And S12, coding the picture image collected by the camera to obtain video frame data.
When a user records videos by using the display equipment, the camera is started and collects picture images in real time, and the camera sends the collected picture images to the controller every time the camera collects one frame of picture image. The picture image includes a picture or a video.
The controller receives each frame of picture image collected by the camera, and codes the current picture image so as to code all picture images in the video recording process into video frame data.
The camera sends the picture images to the controller according to a frame-by-frame rule, and the controller performs coding processing according to the frame-by-frame rule, namely, the controller performs coding processing once every time the controller receives one frame of picture images.
In some embodiments, the method used by the controller to encode the picture image is an H264 encoding rule, and other encoding rules may also be used, which is not specifically limited in this embodiment.
And S13, adding a home terminal recording mark at the initial position of the first frame of the video frame data, wherein the home terminal recording mark is used for marking the video frame data as recorded by the display equipment.
The fluctuation of the resource environment of the display equipment causes the frame rate and the definition of a video file to be unstable, so that the video pictures are jittered, which shows that the resource environment of the display equipment for recording the video is a key factor causing the video pictures to be jittered during playing. Therefore, in order to avoid the picture jitter, if the video file played by the display device is the video recorded by the local terminal, the video file can be directly played without executing the image quality processing process.
In order to accurately determine whether the video file played by the display device is recorded by the local terminal, a local terminal recording mark can be added in the video frame data when the video is recorded. The local recording mark is used for marking the video file as a file obtained by recording and synthesizing the display equipment, namely, the film source of the mark video file comes from the display equipment but not other terminal equipment.
In order to facilitate the display device to quickly and timely determine whether the video file played by the display device is a file recorded by the local terminal itself, the local terminal recording mark may be added to the start position of the first frame of the video frame data when the video is recorded.
A flow chart of a method of adding a home recording mark according to some embodiments is illustrated in fig. 3. In some embodiments, referring to fig. 3, the controller is configured to add a home recording mark at a start position of a first frame of the video frame data, and further configured to perform the following steps:
s131, judging whether the video frame data is received for the first time.
And S132, if the video frame data are received for the first time, adding a local recording mark at the initial position of a first frame picture, wherein the first frame picture refers to a picture corresponding to the video frame data received for the first time.
And a packaging module is configured in the controller, and the packaging module is used for judging whether the controller receives video frame data for the first time in the video recording process. If the controller receives the video frame data for the first time, the controller acquires the picture image acquired by the camera for the first time and finishes the encoding processing process.
The first video frame data received by the controller is the first frame of the video file, so that in order to facilitate the display device to quickly judge whether the video file to be played is the file recorded by the local terminal itself, the local terminal recording mark can be added at the initial position of the first frame of the video file, and the first frame of the video file refers to the frame corresponding to the first received video frame data.
When the home recording mark is added, the home recording mark is a mark comprising 35 continuous bytes, and the content of the mark is self-defined data. For identification, the home terminal recording mark comprises a plurality of home terminal mark parameters, and the video file recorded by the home terminal is marked by the home terminal mark parameters.
In some embodiments, the controller is further configured to perform the following steps when adding the home recording mark at the start position of the first frame:
step 1321, according to the system setting information, determining a home terminal marking parameter of a home terminal recording mark, where the home terminal marking parameter includes a home terminal type identifier, a home terminal load type identifier, a home terminal UUID, and home terminal custom data, the home terminal type identifier is used to determine that the type of the recording mark is a home terminal recording type, the home terminal load type identifier is a user-defined identifier, the home terminal UUID is a display device custom identifier, and the home terminal custom data is used to identify a film source for recording a video as a display device.
And 1322, acquiring the initial position of the first frame picture, and adding a home terminal recording mark carrying a home terminal type identifier, a home terminal load type identifier, a home terminal UUID and home terminal custom data at the initial position.
The home terminal mark parameters can be obtained according to the system setting information of the display device. If the local terminal display equipment records the video, the corresponding system setting information will generate corresponding information. And determining the home terminal mark parameters of the home terminal recording marks according to the system setting information.
The marking parameters of video recording generally comprise type identification, load type identification, UUID and custom data, wherein the type identification is used for determining the type of a recording mark, including a home terminal recording type and other terminal recording types; the load type identification is used for identifying whether the video is user-defined, the UUID is used for identifying whether the video is user-defined or not, the user-defined data is used for identifying a film source for recording the video, and the film source comprises the video from the display equipment or other terminal equipment.
Therefore, the home terminal mark parameters are used for identifying the recording parameters of the home terminal display equipment, the home terminal mark parameters comprise a home terminal type identifier, a home terminal load type identifier, a home terminal UUID and home terminal self-defined data, the home terminal type identifier is used for determining that the type of the recording mark is the home terminal recording type, the home terminal load type identifier is a user-defined identifier, the home terminal UUID is a display equipment self-defined identifier, and the home terminal self-defined data is used for identifying a film source for recording videos as the display equipment.
And after the initial position of the first frame picture is determined, generating a home terminal recording mark by the home terminal type identifier, the home terminal load type identifier, the home terminal UUID and the home terminal custom data, and adding the home terminal recording mark to the initial position of the first frame picture.
In some embodiments, the local tag parameters further include a tag size, and the tag size is used to identify a volume size of the recording tag. Therefore, when the home terminal recording mark is added at the initial position of the first frame picture, the home terminal recording mark can be generated according to the home terminal type mark, the home terminal load type mark, the mark size, the home terminal UUID and the home terminal custom data.
In some embodiments, the home recording mark includes, but is not limited to, the following formats: 0x 000 x 000 x 010 x 060 x 050 x1b 0x 480 x 690 x 730 x4d 0x 750 x6c 0x 740 x 690 x6d 0x 650 x 640 x 690 x 610 x 540 x 610 x 670 x 480 x 690 x 730 x 520 x 650 x 630 x6f 0x 720 x 640 x 650 x 720 x 80.
It should be noted that the home recording mark includes 35 consecutive bytes, and the lines are only for convenience of explanation, as follows:
0x00 0x00 0x00 0x01//start-code
0x06 0x05 0x1b//nal type+user_data_unregistered type+payloadsize
0x 480 x 690 x 730 x4d 0x 750 x6c 0x 740 x 690 x6d 0x 650 x 640 x 690 x 610 x 540 x 610 x67// pseudo UUID, ASCII code "HisMultiMediaTag"
0x48 0x69 0x73 0x52 0x65 0x63 0x6f 0x72 0x64 0x65 0x72//user_data_payload bytes,ASCII code"HisRecorder"
0x80//trailing bits
In the above home recording mark, "0 x 000 x 000 x 000 x 01" is a start mark of the H264 byte stream. "0 x 06" is the home terminal type identifier, which is used to identify the label as the home terminal recording label. "0 x 05" is used to identify the payload type of the record label as user-defined. "0 x1 b" is the mark size of the home recording mark.
"0 x 480 x 690 x 730 x4d 0x 750 x6c 0x 740 x 690 x6d 0x 650 x 640 x 690 x 610 x 540 x 610 x 67" is a custom UUID, denoted as a display device custom identifier. "0 x 480 x 690 x 730 x 520 x 650 x 630 x6f 0x 720 x 640 x 650 x 72" is custom data for indicating that the source of the video file is the source recorded by the display device.
And S14, packaging the video frame data added with the local recording mark to obtain a video file.
And S15, sending the video file to a player for playing.
When the local terminal display equipment records the video, a local terminal recording mark is added in the video frame data. And after the video recording is finished, the controller calls a packaging module to package the video frame data added with the local recording mark to obtain a video file. And the controller sends the synthesized video file to the player for playing.
Therefore, when the display device provided by the embodiment of the invention performs video recording, a home terminal recording mark is added at the initial position of the first frame of the video frame data, so as to identify the video frame data as the display device for recording. When the subsequent display equipment plays the video file, if the local recording mark is identified, the image quality processing is not carried out on the video file, so that the phenomenon that the video image shakes easily in the image quality processing process during playing and the user experience is influenced is avoided.
A flow diagram of a video playback method according to some embodiments is illustrated in fig. 4; a data flow diagram of a video playback method according to some embodiments is illustrated in fig. 5. Referring to fig. 1, 4 and 5, a display device according to an embodiment of the present invention includes: camera, player and controller. A camera configured to capture a picture image; the controller connected with the camera is configured to package the picture images collected by the camera to obtain a video file, and send the video file to the player for playing; a player connected to the controller, configured to perform the following steps when playing video:
and S21, receiving the video file sent by the controller.
And S22, analyzing the video file to obtain video frame data corresponding to the video file.
When the display device plays the video, the player receives the video file sent from the controller. In order to determine whether the received video file is a file recorded by the home terminal display device, the video file needs to be analyzed first to obtain video frame data required for synthesis.
And S23, identifying whether the video frame data contain a home terminal recording mark, wherein the home terminal recording mark is used for identifying the video frame data as recorded by the display equipment.
And S24, if the video frame data contains the local recording mark, playing the video file.
When playing the video, the display device needs to perform image quality processing and then play the video so as to obtain the high-definition video. However, in order to avoid the influence of image quality processing on the frame rate and the definition of the video file, which causes the video image to be jittered, the image quality processing may not be performed on the video file recorded by the local display device.
Therefore, it is necessary to determine whether the video file received by the player contains the local recording mark, so as to accurately determine whether the video file needs to be subjected to image quality processing.
A flow diagram of a method of identifying a home recording mark according to some embodiments is illustrated in fig. 6. Referring to fig. 6, in some embodiments, the player, in performing the identifying whether the video frame data contains the local recording flag, is further configured to perform the following steps:
s231, identifying whether the video frame data contains a recording mark.
S232, if the video frame data contains the recording mark, obtaining the mark parameter of the recording mark.
And S233, judging whether the marking parameters are consistent with the marking parameters of the local terminal.
And S234, if the video frame data are consistent, determining that the recording mark is the local recording mark, and determining that the video frame data contain the local recording mark.
And identifying the video frame data obtained after analysis to determine whether the video file received by the player contains a recording mark. If the recording mark is contained, whether the recording mark is a local recording mark needs to be further judged so as to accurately determine whether the video file is a file recorded by local display equipment.
When judging whether the recording mark is the home terminal recording mark, the judgment can be carried out by judging whether the mark parameter corresponding to the recording mark is consistent with the home terminal mark parameter corresponding to the home terminal recording mark.
And if the marking parameters are consistent with the marking parameters of the local terminal, determining that the recording mark in the video frame data is the recording mark of the local terminal, and further determining that the local terminal recording mark exists in the video frame data, namely the video file is a file recorded by local terminal display equipment.
A flow diagram of a method of determining whether a marking parameter is consistent with a local marking parameter in accordance with some embodiments is illustrated in fig. 7. Referring to fig. 7, in some embodiments, the player, in performing the determining whether the marking parameter is consistent with the home-end marking parameter, is further configured to:
s2331, obtaining the type identification in the marking parameter of the recording mark.
And S2332, if the type identifier is the home terminal type identifier, acquiring the load type identifier in the marking parameters of the recording mark.
And S2333, if the load type identifier is a user-defined identifier, acquiring the UUID in the marking parameters of the recording mark.
And S2334, if the UUID is the self-defined identifier of the display device, acquiring load data in the marking parameters of the recording mark.
And S2335, if the load data is consistent with the self-defined data of the home terminal, determining that the marking parameters are consistent with the marking parameters of the home terminal.
And acquiring the marking parameters of the recording marks identified from the video files received by the player, and extracting the type identifiers of the marking parameters. If the type identification identifies that the type of the mark is the home terminal recording type, the type identification can be determined to be consistent with the home terminal type identification.
And reading the load type identifier in the marking parameter, and if the load type identifier identifies that the mark is a user-defined identifier, determining that the load type identifier is consistent with the local terminal load type identifier.
And reading the UUID in the marking parameters, and if the UUID marks the mark as a display device self-defined mark, determining that the UUID is consistent with the local end UUID.
And reading load data in the marking parameters, and if the load data is completely the same as the self-defined data of the local terminal, indicating that the film source of the video file is a film source recorded by the display equipment.
The marking parameters are consistent with the marking parameters of the local terminal, which indicates that the recording mark identified by the player from the received video file is the recording mark of the local terminal, so that the video file can be directly played when the video frame data contains the recording mark of the local terminal, and the image quality processing of the video file is not needed.
In some embodiments, to ensure that the video file is not processed any more when the home recording flag is identified in the video file, the player is further configured to perform the following steps when the player performs playing the video file if the video frame data contains the home recording flag:
and 241, if the video frame data contains the local recording mark, sending an image quality processing closing notification to the display module, wherein the image quality processing closing notification is used for indicating the display module to close an interface for performing image quality processing on the video file.
Step 242, after receiving a close completion signal returned by the display module in response to the image quality processing close notification, playing the video file, where the close completion signal is used to represent that the display module has closed the interface for performing image quality processing on the video file.
When the display device plays a video, the player needs to call a picture quality processing interface configured in the display device to perform a picture quality processing process, that is, in a normal case, the picture quality processing interface is in an on state. Therefore, in order to ensure that the image quality processing interface is not closed when the local recording mark can be identified in the video file, the image quality processing interface is not required to be closed.
And after judging that the local recording mark exists in the video file, the player generates an image quality processing closing notification and sends the image quality processing closing notification to a display module configured in the display equipment, wherein the display module is used for calling an image quality processing interface to perform image quality processing on the video file.
The display module responds to the image quality processing closing notification, closes the image quality processing interface, and generates a closing completion signal to be fed back to the player after the image quality processing closing notification is completed. And after receiving the closing completion signal, the player decodes the video file and plays the video file.
In some embodiments, if the player does not recognize that the video file from the controller contains the local recording mark, it indicates that the video file is not recorded by the local recording of the display device but is recorded by other terminal devices, and therefore, the image quality processing process can be performed. At this time, the player is further configured to perform the steps of:
Step 251, if the video frame data does not contain the home recording mark, sending an image quality processing start notification to the display module, where the image quality processing start notification is used to instruct the display module to start image quality processing on the video file.
Step 252, after receiving the processing completion signal returned by the display module in response to the image quality processing start notification, plays the image quality processed video file.
If the player identifies that the video frame data corresponding to the video file does not contain the local recording mark, the player can perform image quality processing on the video file. Therefore, an image quality processing start notification is generated and transmitted to the display module, and the display module starts image quality processing of the video file in response to the image quality processing start notification.
After the display module calls the image quality processing interface to complete image quality processing of the video file, a processing completion signal is generated and fed back to the player, and after the player receives the processing completion signal, the player decodes the image quality processed video file to play the image quality processed video file.
Therefore, when the display device provided by the embodiment of the invention plays the video, whether the video file contains the local recording mark or not is firstly identified. And after the video file containing the local recording mark is identified, the video file is not subjected to image quality processing, but is directly played, so that the phenomenon that the video image shakes easily in the image quality processing process during playing is avoided, and the user experience is influenced.
According to the technical scheme, when video recording is carried out, the controller encodes the picture image collected by the camera to obtain video frame data; and adding a home terminal recording mark at the initial position of the first frame of the video frame data, packaging to obtain a video file, and sending the video file to a player for playing. When video playing is carried out, whether video frame data corresponding to a video file contains a local end recording mark or not is identified by the player; and if the local recording mark is contained, directly playing the video file. Therefore, the display device provided by the embodiment of the invention can avoid the frame rate and definition instability of the video file caused by the fluctuation of the resource environment of the display device by adding the local recording mark in the video recording process and identifying the mark during the video playing, so that the video frame jitter phenomenon can not occur during the playing, and the user experience is good.
A flow diagram of a video recording method according to some embodiments is illustrated in fig. 2. Referring to fig. 2, the present application further provides a video recording method applied to a controller, the method including:
S11, acquiring a picture image acquired by the camera;
s12, coding the picture image collected by the camera to obtain video frame data;
s13, adding a home terminal recording mark at the initial position of the first frame of the video frame data, wherein the home terminal recording mark is used for marking the video frame data as the recording of the display equipment;
s14, packaging the video frame data added with the local recording mark to obtain a video file;
and S15, sending the video file to a player for playing.
A flow diagram of a video playback method according to some embodiments is illustrated in fig. 4. Referring to fig. 4, the present application further provides a video recording method applied to a player, where the method includes:
s21, receiving the video file sent by the controller;
s22, analyzing the video file to obtain video frame data corresponding to the video file;
s23, identifying whether the video frame data contain a home terminal recording mark, wherein the home terminal recording mark is used for identifying the video frame data as a display device recording mark;
and S24, if the video frame data contains the local recording mark, playing the video file.
In a specific implementation manner, the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the video recording method and the video playing method provided by the present invention. 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 essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts among the various embodiments in this specification may be referred to each other. Especially, for the embodiments of the video recording method and the video playing method, since they are basically similar to the embodiments of the display device, the description is relatively simple, and the relevant points can be referred to the description in the embodiments 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 camera configured to capture a picture image;
A player configured to play a video file;
a controller connected to the player and camera, the controller configured to:
acquiring a picture image acquired by a camera;
coding the picture image collected by the camera to obtain video frame data;
adding a home terminal recording mark at the initial position of a first frame of the video frame data, wherein the home terminal recording mark is used for marking the video frame data as a display device for recording;
packaging the video frame data added with the local recording mark to obtain a video file;
sending the video file to a player, wherein when the controller controls the player to play the video file, if the player identifies the local recording mark in the video file, the controller controls the player to close an image quality processing interface of a display device, not to perform image quality processing on the video file, and to play the video file without image quality processing;
if the local recording mark is not identified in the video file by the player, the controller controls the player to call an image quality processing interface of the display device, perform image quality processing on the video file, and play the video file subjected to image quality processing.
2. The display device according to claim 1, wherein the controller adds a home recording mark at a start position of the first frame of the video frame data, and is further configured to:
judging whether the video frame data is received for the first time;
and if the video frame data is received for the first time, adding a local recording mark at the initial position of the first frame picture, wherein the first frame picture refers to the picture corresponding to the video frame data received for the first time.
3. The display device according to claim 2, wherein the controller is further configured to, in performing the adding of the home recording mark at the start position of the first frame:
determining local end marking parameters of a local end recording mark according to system setting information, wherein the local end marking parameters comprise a local end type identifier, a local end load type identifier, a local end UUID and local end self-defining data, the local end type identifier is used for determining that the type of the recording mark is the local end recording type, the local end load type identifier is a user-defined identifier, the local end UUID is a display device self-defined identifier, and the local end self-defining data is used for identifying that a film source for recording a video is a display device;
And acquiring the initial position of the first frame of picture, and adding a local recording mark carrying the local type identifier, the local load type identifier, the local UUID and the local custom data at the initial position.
4. A display device, comprising:
a camera configured to capture a picture image;
the controller is connected with the camera and configured to package the picture image collected by the camera to obtain a video file and send the video file to a player for playing;
a player connected to the controller, the player configured to:
receiving a video file sent by the controller;
analyzing the video file to obtain video frame data corresponding to the video file;
identifying whether the video frame data contains a home terminal recording mark, wherein the home terminal recording mark is used for identifying the video frame data as a display device recording;
if the video frame data contains the local recording mark, closing an image quality processing interface of display equipment, not performing image quality processing on the video file, and playing the video file without image quality processing;
And if the video frame data does not contain the local recording mark, calling an image quality processing interface of display equipment, carrying out image quality processing on the video file, and playing the video file subjected to image quality processing.
5. The display device of claim 4, wherein the player, in performing the identifying whether the video frame data contains a home recording flag, is further configured to:
identifying whether the video frame data contains a recording mark or not;
if the video frame data contains a recording mark, acquiring a mark parameter of the recording mark;
judging whether the marking parameters are consistent with the marking parameters of the local terminal;
and if the video frame data are consistent, determining that the recording mark is a local terminal recording mark, and determining that the video frame data contain the local terminal recording mark.
6. The display device according to claim 5, wherein the player, in performing the determining whether the marking parameter is consistent with a home marking parameter, is further configured to:
acquiring a type identifier in a marking parameter of the recording mark;
if the type identifier is a home terminal type identifier, acquiring a load type identifier in the marking parameters of the recording mark;
If the load type identifier is a user-defined identifier, acquiring a UUID in the marking parameters of the recording mark;
if the UUID is a display device self-defined identifier, acquiring load data in a marking parameter of the recording mark;
and if the load data is consistent with the home terminal custom data, determining that the marking parameters are consistent with the home terminal marking parameters.
7. The display device of claim 4, wherein the player is further configured to play the video file if the video frame data contains a local recording flag, and further configured to:
if the video frame data contains a local recording mark, sending an image quality processing closing notification to a display module, wherein the image quality processing closing notification is used for indicating the display module to close an interface for performing image quality processing on the video file;
and after a closing completion signal returned by the display module responding to the image quality processing closing notification is received, playing the video file, wherein the closing completion signal is used for representing that the display module closes an interface for performing image quality processing on the video file.
8. The display device of claim 4, wherein the player is further configured to:
If the video frame data does not contain the local recording mark, sending an image quality processing starting notice to a display module, wherein the image quality processing starting notice is used for indicating the display module to start image quality processing on the video file;
and playing the video file subjected to the image quality processing after receiving a processing completion signal returned by the display module in response to the image quality processing starting notice.
9. A video recording method applied to a controller is characterized by comprising the following steps:
acquiring a picture image acquired by a camera;
coding the picture image collected by the camera to obtain video frame data;
adding a home terminal recording mark at the initial position of a first frame of the video frame data, wherein the home terminal recording mark is used for marking the video frame data as a display device for recording;
packaging the video frame data added with the local recording mark to obtain a video file;
sending the video file to a player, wherein when the controller controls the player to play the video file, if the player identifies the local recording mark in the video file, the controller controls the player to close an image quality processing interface of a display device, not to perform image quality processing on the video file, and to play the video file without image quality processing;
If the local recording mark is not identified in the video file by the player, the controller controls the player to call an image quality processing interface of the display device, perform image quality processing on the video file, and play the video file subjected to image quality processing.
10. A video playing method is applied to a player, and is characterized in that the method comprises the following steps:
receiving a video file sent by a controller;
analyzing the video file to obtain video frame data corresponding to the video file;
identifying whether the video frame data contains a home terminal recording mark, wherein the home terminal recording mark is used for identifying the video frame data as a display device recording;
if the video frame data contains the local recording mark, closing an image quality processing interface of display equipment, not performing image quality processing on the video file, and playing the video file without image quality processing;
and if the video frame data does not contain the local recording mark, calling an image quality processing interface of display equipment, carrying out image quality processing on the video file, and playing the video file subjected to image quality processing.
CN202010752244.0A 2020-07-30 2020-07-30 Video recording method, video playing method and display equipment Active CN111901661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010752244.0A CN111901661B (en) 2020-07-30 2020-07-30 Video recording method, video playing method and display equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010752244.0A CN111901661B (en) 2020-07-30 2020-07-30 Video recording method, video playing method and display equipment

Publications (2)

Publication Number Publication Date
CN111901661A CN111901661A (en) 2020-11-06
CN111901661B true CN111901661B (en) 2022-05-24

Family

ID=73182603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010752244.0A Active CN111901661B (en) 2020-07-30 2020-07-30 Video recording method, video playing method and display equipment

Country Status (1)

Country Link
CN (1) CN111901661B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929686B (en) * 2021-02-04 2022-12-20 北京华宇信息技术有限公司 Method and device for playing back recorded video in real time on line

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461194A (en) * 2009-06-17 2012-05-16 通用仪表公司 Insertion of recorded secondary digital video content during playback of primary digital video content
CN107547790A (en) * 2016-06-27 2018-01-05 中兴通讯股份有限公司 The processing method of IMAQ, apparatus and system
CN111314646A (en) * 2020-02-27 2020-06-19 Oppo(重庆)智能科技有限公司 Image acquisition method, image acquisition device, terminal device and readable storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000333071A (en) * 1999-05-18 2000-11-30 Sony Corp Image processing unit, its method and medium
CN1507279A (en) * 2002-12-11 2004-06-23 中国科学院计算技术研究所 Video acquisition method adopting digital watermark technology
JP4743007B2 (en) * 2006-06-16 2011-08-10 ソニー株式会社 Image processing apparatus, image processing method, recording medium, and program
JP2016220048A (en) * 2015-05-21 2016-12-22 日本電産コパル株式会社 Imaging system and information processor
CN105049918A (en) * 2015-07-08 2015-11-11 成都西可科技有限公司 Method for separating local recorded video and network live video
US20170163878A1 (en) * 2015-12-08 2017-06-08 Le Holdings Beijing Co Ltd Method and electronic device for adjusting shooting parameters of camera
CN105872843B (en) * 2016-04-18 2019-02-19 青岛海信电器股份有限公司 A kind of method and device playing video
CN106454182A (en) * 2016-10-26 2017-02-22 维沃移动通信有限公司 Video generation method and mobile terminal
JP6857032B2 (en) * 2017-01-05 2021-04-14 キヤノン株式会社 Control device, system, control method of control device
CN107135362A (en) * 2017-04-27 2017-09-05 北京小米移动软件有限公司 Image quality processing method, device and the Split TV set of Split TV set
CN110086905B (en) * 2018-03-26 2020-08-21 华为技术有限公司 Video recording method and electronic equipment
CN108712654B (en) * 2018-05-18 2020-04-14 网宿科技股份有限公司 Audio and video stream transcoding method and device
CN109495788B (en) * 2018-12-13 2021-02-02 四川长虹电器股份有限公司 MEMC dynamic control method based on slice source frame rate
CN111193895B (en) * 2019-12-20 2022-09-27 视联动力信息技术股份有限公司 Recording and broadcasting method, recording and broadcasting system, client, electronic equipment and storage medium
CN111447488B (en) * 2020-04-01 2022-08-26 青岛海信传媒网络技术有限公司 MEMC control method and display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461194A (en) * 2009-06-17 2012-05-16 通用仪表公司 Insertion of recorded secondary digital video content during playback of primary digital video content
CN107547790A (en) * 2016-06-27 2018-01-05 中兴通讯股份有限公司 The processing method of IMAQ, apparatus and system
CN111314646A (en) * 2020-02-27 2020-06-19 Oppo(重庆)智能科技有限公司 Image acquisition method, image acquisition device, terminal device and readable storage medium

Also Published As

Publication number Publication date
CN111901661A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
US11200426B2 (en) Video frame extraction method and apparatus, computer-readable medium
US11070893B2 (en) Method and apparatus for encoding media data comprising generated content
TWI707309B (en) Method, system and storage medium for processing image file
CN101867796B (en) Method and device for monitoring video
JP2009159359A (en) Moving image data encoding apparatus, moving image data decoding apparatus, moving image data encoding method, moving image data decoding method and program
US11985339B2 (en) Method and apparatus for encapsulating images or sequences of images with proprietary information in a file
US20240015307A1 (en) Method and image-capturing device for encoding image frames of an image stream and transmitting encoded image frames on a communications network
CN111901661B (en) Video recording method, video playing method and display equipment
CN113014953A (en) Video tamper-proof detection method and video tamper-proof detection system
JP5808485B2 (en) Mobile terminal recording method, related apparatus and system
US20230025664A1 (en) Data processing method and apparatus for immersive media, and computer-readable storage medium
US12056926B2 (en) Method and image-processing device for video processing
CN115866254A (en) Method and equipment for transmitting video frame and camera shooting parameter information
CN113055706B (en) Video synthesis method, device, electronic equipment and storage medium
CN110855619B (en) Processing method and device for playing audio and video data, storage medium and terminal equipment
CN114079823A (en) Video rendering method, device, equipment and medium based on Flutter
Calibo et al. Metadata Extraction Analysis: A Review of Video Data in Effect to Social Media Compression
GB2602644A (en) Method, device, and computer program for encapsulating timed media content data in a single track of encapsulated media content data
US12052454B2 (en) Data processing method, apparatus, and device for point cloud media, and storage medium
GB2573096A (en) Method and apparatus for encapsulating images with proprietary information in a file
CN116110410B (en) Audio data processing method, device, electronic equipment and storage medium
US12069118B2 (en) Streaming media processing method, transmitting device and receiving device
CN113141536B (en) Video cover adding method and device, electronic equipment and storage medium
CN113542720A (en) Apparatus and method for providing camera information associated with point cloud content
CN116320309A (en) Monitoring method and monitoring equipment of inspection equipment

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