CN108737884B - Content recording method and equipment, storage medium and electronic equipment - Google Patents
Content recording method and equipment, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN108737884B CN108737884B CN201810550094.8A CN201810550094A CN108737884B CN 108737884 B CN108737884 B CN 108737884B CN 201810550094 A CN201810550094 A CN 201810550094A CN 108737884 B CN108737884 B CN 108737884B
- Authority
- CN
- China
- Prior art keywords
- recording
- event
- parameter value
- playing
- content
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/27—Server based end-user applications
- H04N21/274—Storing end-user multimedia data in response to end-user request, e.g. network recorder
- H04N21/2743—Video hosting of uploaded data from client
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4781—Games
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The embodiment of the invention discloses a content recording method and equipment, a storage medium and electronic equipment thereof, wherein the method comprises the following steps: acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event; acquiring a recording control instruction triggered based on the event attribute information, and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction; and when the end of the playing of the current playing event is detected, generating the recorded content corresponding to the current playing event. By adopting the invention, the recording parameter value can be adjusted to record the playing event with different quality requirements, the watching requirements of users can be met, and the user experience can be improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a content recording method and apparatus, a storage medium, and an electronic apparatus.
Background
In electronic equipment, a live broadcast recording function is provided, and through the live broadcast recording function, played videos, audios, images and the like can be synchronously recorded to generate standardized streaming media files for live broadcast, storage, later edition or on-demand broadcasting. The user can conveniently play the far-end live broadcast content in real time without visiting the scene, such as events, meetings, teaching, operations and the like.
The existing live broadcast recording adopts fixed recording parameter values to record the played content, then the recorded content is coded and compressed frame by frame and then is transmitted to a server terminal by stamping a timestamp, and then the server transcodes the code and transmits the code to other terminal equipment to decompress and display. However, since the user has different requirements for the playing quality of different events in the played content, for example, some events need to be displayed with slow motion, and some events need to have high definition and fluency, if all events in the played content are recorded with fixed recording parameter values, the recorded content cannot meet the viewing requirements of the user, and the user experience is reduced.
Disclosure of Invention
Embodiments of the present invention provide a content recording method and device, a storage medium, and an electronic device, which can adjust recording parameter values to record playing events with different quality requirements, and can meet the viewing requirements of users and improve user experience.
An aspect of an embodiment of the present invention provides a content recording method, which may include:
acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event;
acquiring a recording control instruction triggered based on the event attribute information, and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction;
and when the end of the playing of the current playing event is detected, generating the recorded content corresponding to the current playing event.
Optionally, when the recording control instruction triggered based on the event attribute information is obtained, recording the current playing event by using the recording parameter value corresponding to the recording control instruction includes:
and when the event attribute information is the set moment of the current playing event, acquiring a recording operation signal input by a recording interface aiming at the playing content, and recording the current playing event by adopting a first recording parameter value corresponding to the recording operation signal.
Optionally, the recording the current playing event by using the first recording parameter value corresponding to the recording operation signal includes:
gradually adjusting the current recording parameter value by adopting a set step length, and recording the current playing event by adopting the adjusted current recording parameter value;
and when the current recording parameter value is adjusted to the first recording parameter value, recording the current playing event by using the first recording parameter value.
Optionally, when the recording control instruction triggered based on the event attribute information is obtained, recording the current playing event by using the recording parameter value corresponding to the recording control instruction includes:
and when the event attribute information is matched with target attribute information in a set of set event attribute information, recording the current playing event by adopting a second recording parameter value corresponding to the target attribute information.
Optionally, the recording the current playing event by using the second recording parameter value corresponding to the target attribute information includes:
acquiring system broadcast information of terminal equipment, and acquiring target attribute information carried in the system broadcast information;
and searching a second recording parameter value corresponding to the target attribute information in a recording parameter set, and recording the current playing event by adopting the second recording parameter value.
Optionally, when the recording control instruction triggered based on the event attribute information is obtained, recording the current playing event by using the recording parameter value corresponding to the recording control instruction includes:
and when the event attribute information is not matched with any attribute information in the set event attribute information, recording the current playing event by adopting a set third recording parameter value.
Optionally, the recording the current playing event by using the recording parameter value corresponding to the recording control instruction includes:
acquiring at least one recording parameter value supported by terminal equipment;
when it is detected that the recording parameter value corresponding to the recording control instruction is not matched with any recording parameter value in the at least one recording parameter value, selecting a fourth recording parameter value with the highest matching degree with the recording parameter value corresponding to the recording control instruction from the at least one recording parameter value;
and recording the current playing event by adopting the fourth recording parameter value.
Optionally, when it is detected that the playing of the current playing event is finished, generating the recorded playing content corresponding to the current playing event includes:
when the end of the playing of the current playing event is detected, determining the next playing event of the current playing event as the current playing event, and turning to the step of acquiring the event attribute information of the current playing event;
and when detecting that the next playing event does not exist, generating a recorded content set containing the recorded content corresponding to the current playing event.
An aspect of an embodiment of the present invention provides a content recording device, which may include:
the attribute acquisition unit is used for acquiring a current playing event in playing content and acquiring event attribute information of the current playing event;
the event recording unit is used for acquiring a recording control instruction triggered based on the event attribute information and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction;
and the content generating unit is used for generating the recorded content corresponding to the current playing event when the end of the playing of the current playing event is detected.
Optionally, the event recording unit is configured to:
and when the event attribute information is the set moment of the current playing event, acquiring a recording operation signal input by a recording interface aiming at the playing content, and recording the current playing event by adopting a first recording parameter value corresponding to the recording operation signal.
Optionally, the event recording unit is specifically configured to:
gradually adjusting the current recording parameter value by adopting a set step length, and recording the current playing event by adopting the adjusted current recording parameter value;
and when the current recording parameter value is adjusted to the first recording parameter value, recording the current playing event by using the first recording parameter value.
Optionally, the event recording unit is configured to:
and when the event attribute information is matched with target attribute information in a set of set event attribute information, recording the current playing event by adopting a second recording parameter value corresponding to the target attribute information.
Optionally, the event recording unit includes:
the attribute acquisition subunit is used for acquiring system broadcast information of the terminal equipment and acquiring target attribute information carried in the system broadcast information;
and the event recording subunit is used for searching a second recording parameter value corresponding to the target attribute information in the recording parameter set and recording the current playing event by adopting the second recording parameter value.
Optionally, the event recording unit is configured to:
and when the event attribute information is not matched with any attribute information in the set event attribute information, recording the current playing event by adopting a set third recording parameter value.
Optionally, the event recording unit includes:
the parameter value acquisition subunit is used for acquiring at least one recording parameter value supported by the terminal equipment;
a parameter value selecting subunit, configured to select, when it is detected that a recording parameter value corresponding to the recording control instruction does not match any recording parameter value in the at least one recording parameter value, a fourth recording parameter value with a highest matching degree with the recording parameter value corresponding to the recording control instruction;
and the event recording subunit is used for recording the current playing event by adopting the fourth recording parameter value.
Optionally, the content generating unit includes:
an event cycle subunit, configured to determine, when it is detected that the playing of the current playing event is finished, a next playing event of the current playing event as a current playing event, and perform a step of acquiring event attribute information of the current playing event;
and the content generating subunit is used for generating a recording content set containing the recording content corresponding to the current playing event when detecting that the next playing event does not exist.
An aspect of the embodiments of the present invention provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
An aspect of an embodiment of the present invention provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event;
acquiring a recording control instruction triggered based on the event attribute information, and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction;
and when the end of the playing of the current playing event is detected, generating the recorded content corresponding to the current playing event.
In the embodiment of the invention, the current playing event in the playing content is acquired, the event attribute information of the current playing event is acquired, the current playing event is recorded based on the recording parameter value corresponding to the recording control instruction triggered by the event attribute information, and the recording content corresponding to the current playing event is generated when the playing of the current playing event is finished. The recording parameter value is adjusted based on the triggered recording control instruction so as to record the playing event with different quality requirements, the watching requirements of the user can be met, and the user experience can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, 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 content recording method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a content recording method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a content recording method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a content recording method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a content recording method according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an interface for recording content according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a content recording device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an event recording unit according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an event recording unit according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a content generating unit according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The content recording method according to the embodiment of the present invention will be described in detail below with reference to fig. 1 to 5.
Referring to fig. 1, a flow chart of a content recording method according to an embodiment of the present invention is schematically shown. As shown in fig. 1, the method of the embodiment of the present invention may include the following steps S101 to S103.
S101, acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event;
it is to be understood that the playback content may be any form of multimedia content, such as audio, video, animation, documents, etc. The playing content may be live content or recorded content. The recorded content may be recorded, because the played content may be an independent event, such as a complete event or a segment of an event, or a series of events, such as a complete PPT or a complete game, and all the played events are recorded in the same manner, only with different recording parameter values, the recorded content may be understood as being for one played event.
Of course, the recording scene may be understood as being played and recorded in parallel by the content recording device, as if the playing and recording of one user terminal are performed synchronously, and may also be understood as being played by another terminal, as if one user terminal plays a game, and another user terminal records the playing content. In the embodiment of the present invention, the content recording device performs parallel playing and recording as an example.
Each playing event has event attribute information, which may be an event occurrence period, an event occurrence scene, an event purpose, and the like.
In a specific implementation, when the content recording device detects a recording instruction triggered by content played on the display screen (for example, a virtual control is detected to be recorded by touch on the display screen, a physical recording button on the content recording device is pressed, a recording voice signal is received by a voice receiver or a gesture motion of recording is acquired by a camera), the content currently played on the screen is determined as a current playing event, and the current playing event is analyzed to obtain event attribute information of the current playing event. The content recording device may be a user terminal, including a tablet computer, a Personal Computer (PC), a smart phone, a palm computer, a Mobile Internet Device (MID), and other terminal devices having a screen recording function.
S102, acquiring a recording control instruction triggered based on the event attribute information, and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction;
it should be understood that the recording control instruction refers to an instruction for controlling recording of a currently recorded broadcast event, such as adjusting a recording parameter to meet a recording requirement for content quality. The instruction can be triggered by content recording equipment detection, and when certain event is detected to occur, the instruction is transmitted to a recording program, and the recording program readjusts recording parameter values; or may be triggered by a user input control signal. The mode of inputting the control signal may be to touch a recording control (setting) virtual control on the display screen, press a recording control physical button on the content recording device, receive a recording control voice signal through a voice receiver, or acquire a recording control gesture action through a camera, and the like.
The recording parameters may include frame rate, resolution, code rate, and definition, and the value (recording parameter value) of each recording parameter is different under different event attributes. The recording parameter values are adjusted to meet different requirements of different time periods on the content quality in the recording process.
Here, the resolution (screen resolution) is the precision of a screen image, and refers to the number of pixels that can be displayed on a display. Since the dots, lines and planes on the screen are all composed of pixels, the more pixels the display can display, the finer the picture, and the more information can be displayed in the same screen area.
The code rate (bit rate) refers to the number of bits (bits) transmitted per second, in bps (bit per second). The higher the bit rate, the faster the data transfer speed. The bit rate in sound is a binary data amount per unit time after an analog sound signal is converted into a digital sound signal, and is an index for indirectly measuring the audio quality. The bit rate principle in video is the same as that in sound, and refers to the amount of binary data per unit time after converting an analog signal into a digital signal.
The frame rate is a measure for measuring the number of display frames. The measurement unit is the number of display Frames Per Second (FPS) or "Hertz" (Hz).
The definition refers to the definition of each detail shadow and its boundary on the image. Image quality is generally compared from a video recorder point of view by looking at the sharpness of the reproduced image.
TABLE 1
Event attribute information | Recording parameter values |
Five-killing pesticide | resolution=a1*b1&record_fps=c1&qp=d1 |
Breaking dough | resolution=a2*b2&record_fps=c2&qp=d2 |
Playback of video | resolution=a3*b3&record_fps=c3&qp=d3 |
Blood-remnants walking position | resolution=a4*b4&record_fps=c4&qp=d4 |
It should be noted that, the content recording device defines a recording parameter protocol in advance, where the protocol mainly includes a protocol name + an event name + a recording parameter, where the recording parameter includes a resolution, an acquisition frame rate, a coding parameter, and so on, and qzone _ schema? event _ name ═ resolution ═ 540 ═ 960& > record _ fps ═ 25& qp ═ 18.
resolution is resolution, record _ fps is frame rate, and qp is coding parameter. Of course, the defined recording parameter protocol may also be stored in the form of a mapping table, that is, a mapping relationship between event attribute information and recording parameter values, as shown in table 1, for example, when the obtained event attribute information is the event name "wusha", the corresponding recording parameter value may be determined as resolution ═ a1 × b1& record _ fps ═ c1& qp ═ d1 by looking up table 1.
In a specific implementation, when the event attribute information is a set time of the current broadcast event (e.g., a start time of a team battle in a game scene), acquiring a recording operation signal input by a user for a recording interface of the broadcast content, that is, the user actively triggers a content recording device to adjust a recording parameter value, wherein the recording parameter value is acquired by looking up table 1 (by a team battle name) or a predefined protocol statement, and then recording the current broadcast event by using a first recording parameter value corresponding to the recording operation signal; when the event attribute information is matched with target attribute information in a set of set event attribute information, the current playing event is indicated to be a set special event, and a second recording parameter value corresponding to the target attribute information is adopted to record the current playing event; and when the event attribute information is not matched with any attribute information in the set event attribute information set, indicating that the current playing event is a common event, and recording the current playing event by adopting a set (default) third recording parameter value. Of course, no matter the first recording parameter value, the second recording parameter value or the third recording parameter value is adopted for recording, the current recording parameter value needs to be adjusted to the first recording parameter value, the second recording parameter value or the third recording parameter value.
And S103, when the end of the playing of the current playing event is detected, generating the recording content corresponding to the current playing event.
It can be understood that, if the playing of the current playing event is finished, that is, the recording process using the obtained recording parameter value is finished, the recording content is obtained. The recorded content is the content recorded from the beginning to the end of the current playing event by adopting the acquired recording parameter value. In this embodiment of the present invention, for the recorded content only for the current playing event, the playing content may include one playing event or multiple playing events, and when the playing content only includes one playing event (current playing event), the playing content is the same as the content of the recorded content, but the playing effect is different. For example, if the broadcast content only includes a "fifties" event in a game, the broadcast content and the recorded content are both the "fifties" event, but the broadcast content may be played at a faster frame rate while the recorded content is played at a slower frame rate.
Optionally, if the recorded broadcast content is live broadcast content, the recorded content may be encoded and compressed by using the obtained code rate frame by frame and then transmitted to the server side by stamping a timestamp, or the recorded content after being recorded may be integrated and encoded and compressed and then transmitted to the server side, so that the server transcodes the code and transmits the code to other user terminals for decompression and broadcast.
If the recorded playing content is recorded playing content, determining the next playing event of the current playing event as the current playing event after the recording of the current playing event is finished, recording in the same mode, generating a recorded content set containing the recorded content of the current playing event when the next playing event does not exist, encoding and compressing the recorded content set after the recording is finished, and then transmitting the encoded and compressed recorded content set to a server end, or encoding and compressing each playing event, then stamping a time stamp, and then transmitting the encoded and compressed recorded content set to the server end, so that the server transcodes and transmits the encoded and compressed recorded content set to other user terminals for decompression and playing. Of course, the recorded content set may also be encoded and compressed frame by frame and then transmitted to the server.
In the embodiment of the invention, the current playing event in the playing content is acquired, the event attribute information of the current playing event is acquired, the current playing event is recorded based on the recording parameter value corresponding to the recording control instruction triggered by the event attribute information, and the recording content corresponding to the current playing event is generated when the playing of the current playing event is finished. The recording parameter value is adjusted based on the triggered recording control instruction so as to record the playing event with different quality requirements, the watching requirements of the user can be met, and the user experience can be improved.
Referring to fig. 2, a flow chart of a content recording method according to an embodiment of the present invention is shown. As shown in fig. 3, the method of the embodiment of the present invention may include the following steps S201 to S208.
S201, acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event;
it is to be understood that the playback content may be any form of multimedia content, such as audio, video, animation, documents, etc. The playing content may be live content or recorded content. The recorded content may be recorded, because the played content may be an independent event, such as a complete event or a segment of an event, or a series of events, such as a complete PPT or a complete game, and all the played events are recorded in the same manner, only with different recording parameter values, the recorded content may be understood as being for one played event.
Each playing event has event attribute information, which may be an event occurrence period, an event occurrence scene, an event purpose, and the like.
In a specific implementation, when the content recording device detects a recording instruction triggered by content played on the display screen (for example, a virtual control is detected to be recorded by touch on the display screen, a physical recording button on the content recording device is pressed, a recording voice signal is received by a voice receiver or a gesture motion of recording is acquired by a camera), the content currently played on the screen is determined as a current playing event, and the current playing event is analyzed to obtain event attribute information of the current playing event. The content recording device may be a user terminal, including a tablet computer, a Personal Computer (PC), a smart phone, a palm computer, a Mobile Internet Device (MID), and other terminal devices having a screen recording function.
S202, when the event attribute information is the set time of the current playing event, acquiring a recording operation signal input by a recording interface aiming at the playing content, and recording the current playing event by adopting a first recording parameter value corresponding to the recording operation signal.
It is understood that the set time may be a start time of a current broadcast event (e.g., a group opening time when a player calls a group war during a recording game), a multiple killing (triple killing) time of the current broadcast event, a main point time of a lecture of the current broadcast event (e.g., an important knowledge point time of the lecture during a recording lecture content), and the like.
The recording operation signal is used for controlling the recording of the currently recorded playing event, such as adjusting the recording parameter, so as to meet the recording requirement on the content quality. The recording operation signal is actively triggered by a user according to a current recording event, if a certain page of PPT content is expected to be clearer when the lecture content is recorded, the change of the acquisition frame rate can be triggered by three fingers on a screen, the default frame rate is adjusted to 60 frames/second from 15 frames/second, and if a scene needing slow motion display appears, the recording frame rate can be adjusted to be lower through voice input.
The method for inputting the recording operation signal may be to touch a recording control (setting) virtual control on the display screen, press a recording control physical button on the content recording device, receive a recording control voice signal through a voice receiver, or collect a recording control gesture action through a camera, and the like. For example, the specified special numbers can be directly used as voice control commands, such as: special prefix + digital control, 22 for fast frame rate live broadcast, 33 for slow frame rate live broadcast, 44 for high resolution live broadcast, and 55 for low resolution live broadcast, which helps to improve recording efficiency and accuracy.
The recording parameters may include frame rate, resolution, code rate, and definition, and the value (recording parameter value) of each recording parameter is different under different event attributes. The recording parameter values are adjusted to meet different requirements of different time periods on the content quality in the recording process.
Here, the resolution (screen resolution) is the precision of a screen image, and refers to the number of pixels that can be displayed on a display. Since the dots, lines and planes on the screen are all composed of pixels, the more pixels the display can display, the finer the picture, and the more information can be displayed in the same screen area.
The code rate (bit rate) refers to the number of bits (bits) transmitted per second, in bps (bit per second). The higher the bit rate, the faster the data transfer speed. The bit rate in sound is a binary data amount per unit time after an analog sound signal is converted into a digital sound signal, and is an index for indirectly measuring the audio quality. The bit rate principle in video is the same as that in sound, and refers to the amount of binary data per unit time after converting an analog signal into a digital signal.
The frame rate is a measure for measuring the number of display frames. The measurement unit is the number of display Frames Per Second (FPS) or "Hertz" (Hz).
The definition refers to the definition of each detail shadow and its boundary on the image. Image quality is generally compared from a video recorder point of view by looking at the sharpness of the reproduced image.
It should be noted that, the content recording device defines a recording parameter protocol in advance, where the protocol mainly includes a protocol name + an event name + a recording parameter, where the recording parameter includes a resolution, an acquisition frame rate, a coding parameter, and so on, and qzone _ schema? event _ name & resolution & 540 & 960& record _ fps & 25& qp & 18. resolution is resolution, record _ fps is frame rate, and qp is coding parameter. Of course, the defined recording parameter protocol may also be stored in the form of a mapping table, that is, a mapping relationship between event attribute information and recording parameter values, as shown in table 1, for example, when the obtained event attribute information is the event name "wusha", the corresponding recording parameter value may be determined as resolution ═ a1 × b1& record _ fps ═ c1& qp ═ d1 by looking up table 1.
In a specific implementation manner, the recording the current playing event by using the first recording parameter value corresponding to the recording operation signal may include the following steps, as shown in fig. 3:
s301, gradually adjusting the current recording parameter value by adopting a set step length, and recording the current playing event by adopting the adjusted current recording parameter value;
that is, the adjustment process from the current recording parameter value to the first recording parameter value is adjusted step by step based on the set step size. But in the adjusting process, the recording is carried out synchronously while adjusting, and the adjusted recording parameter value is adopted for recording.
For example, for the frame rate, if the current frame rate is record _ fps equal to 15 frames/second, the first frame rate is record _ fps equal to 60 frames/second, and the step size is set to 15 frames/second, the current frame rate is first adjusted to 30 frames/second, and recording is performed at a frame rate of 30 frames/second, then adjusted to 45 frames/second, and recording is continued at a frame rate of 45 frames/second, and finally the frame rate is adjusted to 60 frames/second. The set step size may be a minimum step size.
S302, when the current recording parameter value is adjusted to the first recording parameter value, the current playing event is recorded by adopting the first recording parameter value.
For example, after the frame rate is adjusted to 60 frames/second, the remaining content of the current playing event is recorded at the frame rate of 60 frames/second.
Of course, resolution, code rate, and sharpness may be adjusted in the same manner.
S203, when the event attribute information is matched with the target attribute information in the set event attribute information, recording the current playing event by adopting a second recording parameter value corresponding to the target attribute information.
It is understood that at least one attribute information is included in the set event attribute information set, where the at least one attribute information is attribute information of a set specific event, such as an event occurrence period, an event occurrence scene, an event purpose, and the like.
If the event attribute information of the current playing event is matched with certain attribute information in the at least one attribute information, the current playing event is a special event or a wonderful event, such as a 'suicide' event in a game, a scene needing slow motion display and the like.
It should be noted that, after the current broadcast event is recorded, the second recording parameter value needs to be restored to the default recording parameter value, so as to reduce the bandwidth and the overhead.
In a specific implementation manner, the recording the current playing event by using the second recording parameter value corresponding to the recording operation signal may include the following steps, as shown in fig. 4:
s401, acquiring system broadcast information of terminal equipment, and acquiring target attribute information carried in the system broadcast information;
specifically, when the content recording device (terminal device) determines that the event attribute information of the current broadcast event matches the target attribute information in the at least one attribute information, the broadcast carrying the target attribute information is sent to the recording program.
S402, searching a second recording parameter value corresponding to the target attribute information in a recording parameter set, and recording the current playing event by adopting the second recording parameter value.
Specifically, the content recording device obtains a second recording parameter value through lookup table 1 or a predefined protocol statement, and then records the current playing event by using the second recording parameter value.
And S204, when the event attribute information is not matched with any attribute information in the set event attribute information, recording the current playing event by adopting a set third recording parameter value.
Specifically, when it is detected that the event attribute information does not match any attribute information in the set event attribute information set, it indicates that the current playing event is a normal event, and the current playing event is recorded by using a set (default) third recording parameter value.
For example, the event attribute information of the currently played event is "wild area, and the set event attribute set includes" three kills, four kills, five kills, group opening, blood circulation, and the like ", and then the wild process is recorded by using the default recording parameter value of the system.
S205, acquiring a recording control instruction triggered based on the event attribute information, and acquiring at least one recording parameter value supported by the terminal equipment;
it can be understood that after the screen recording program of the content recording device analyzes the event, it is necessary to determine and check the recording parameter values, such as whether the resolution is supported, whether the device performance meets the coding requirement, and the like.
In a specific implementation, the content recording device extracts a pre-stored recording parameter value set supported by the system or obtains the recording parameter value set supported by the system through analysis.
S206, when it is detected that the recording parameter value corresponding to the recording control instruction is not matched with any recording parameter value in the at least one recording parameter value, selecting a fourth recording parameter value with the highest matching degree with the recording parameter value corresponding to the recording control instruction from the at least one recording parameter value;
it can be understood that when it is detected that the recording parameter value corresponding to the recording control instruction does not match any of the at least one recording parameter value, the currently required recording parameter value that is not supported by the system is indicated, and in order to improve the recording quality, it is necessary to determine the closest recording parameter value among the supported recording parameter values.
For example, resolutions supported by the content recording device include 1600 × 900, 1366 × 768, 1280 × 720, and 800 × 600, and a resolution corresponding to the recording control instruction is 1080 × 1920, matching similarities of 1600 × 900, 1366 × 768, 1280 × 720, 800 × 600, and 1080 × 1920 are calculated, respectively, and 1600 × 900 with the highest matching similarity is used as the resolution for recording.
And S207, recording the current playing event by adopting the fourth recording parameter value.
I.e. the currently playing event is recorded with a resolution of 1600 x 900.
It should be noted that the frame rate, the definition, and the code rate are also obtained in the same manner.
And S208, when the end of the playing of the current playing event is detected, generating the recorded content corresponding to the current playing event.
It can be understood that, if the playing of the current playing event is finished, that is, the recording process using the obtained recording parameter value is finished, the recording content is obtained. The recorded content is the content recorded from the beginning to the end of the current playing event by adopting the acquired recording parameter value. In this embodiment of the present invention, for the recorded content only for the current playing event, the playing content may include one playing event or multiple playing events, and when the playing content only includes one playing event (current playing event), the playing content is the same as the content of the recorded content, but the playing effect is different. For example, if the broadcast content only includes a "fifties" event in a game, the broadcast content and the recorded content are both the "fifties" event, but the broadcast content may be played at a faster frame rate while the recorded content is played at a slower frame rate.
Optionally, if the recorded playing content is live content, the recorded content may be encoded and compressed by using the obtained code rate frame by frame and then transmitted to the server side by stamping a timestamp in the recording process, or the recorded complete recorded content may be encoded and compressed and then transmitted to the server side, so that the server transcodes the content and transmits the content to other user terminals for decompression and playing.
If the recorded broadcast content is recorded broadcast content, in a specific implementation manner, the generating the recorded content corresponding to the current broadcast event when it is detected that the broadcast of the current broadcast event is finished may include the following steps, as shown in fig. 5:
s501, when the end of playing the current playing event is detected, determining the next playing event of the current playing event as the current playing event, and turning to the step of acquiring the event attribute information of the current playing event;
it can be understood that, when it is detected that the playing of the current playing event is finished, a next playing event of the current playing event is obtained, and the next playing event is taken as the current playing event, and the recording is performed in the same manner as the previous playing event of the next playing event, and other playing events are recorded in sequence.
And S502, when detecting that the next playing event does not exist, generating a recording content set containing the recording content corresponding to the current playing event.
Specifically, the recorded content set includes recorded contents corresponding to a plurality of playing events respectively. When the next playing event does not exist, the fact that all the played contents are recorded is indicated, the recorded content set after recording is integrally encoded and compressed and then transmitted to the server side, or each recorded content in the recorded content set is encoded and compressed and then time stamp is printed and then transmitted to the server side, so that the server transcodes and transmits the transcoded recorded contents to other user terminals for decompression and playing. Of course, the recorded content set may also be encoded and compressed frame by frame and then transmitted to the server.
Of course, it can also be understood that the recorded current playing event is added to the recorded content set, and the next playing event is recorded and recorded, and finally the recorded content set is spliced, encoded and compressed, and then sent to the server, so that the server transcodes and sends the transcoded and compressed information to other user terminals for decompression and playing.
In the embodiment of the invention, the current playing event in the playing content is acquired, the event attribute information of the current playing event is acquired, the current playing event is recorded based on the recording parameter value corresponding to the recording control instruction triggered by the event attribute information, and the recording content corresponding to the current playing event is generated when the playing of the current playing event is finished. The recording parameter value is adjusted based on the triggered recording control instruction so as to record the playing event with different quality requirements, the watching requirements of the user can be met, and the user experience can be improved.
Referring to fig. 6, a schematic view of a recording interface of a content recording method according to an embodiment of the present invention is provided. As shown in fig. 6, the embodiment of the present invention specifically introduces the content recording method in a game scene manner.
If the interface shown in fig. 6 is a recording function interface of a user terminal (e.g., a mobile phone), the interface includes two functions of "live broadcast" and "recording screen", where "recording screen" indicates that the current live broadcast content is recorded. Of course, horizontal screen recording and vertical screen recording can also be selected.
For example, when the user currently operates an "a game" through the mobile phone, that is, the "a game" is being played on the playing interface of the mobile phone, and after the user selects the "screen recording" function, the mobile phone concurrently plays and records each event in the "a game", determines the currently playing event as the current playing event, and if the virtual character corresponding to the user is "calling a team war", the screen recording live broadcast application is triggered to record a clearer and smoother picture, then searches a mapping relation table between the stored event attribute information and the recording parameter value for the recording parameter value corresponding to the "calling team war" (e.g., qzone _ schema _ name ═ five _ series _ kill & resolution ═ 1080 ═ 1920& record _ fps ═ 50& qp ═ 12), and records the whole team war event with the recording parameter value, thereby generating the recorded content. Certainly, after the group war event is ended, if the event attribute information corresponding to the next event needs to be displayed in a slow motion mode, the corresponding recording parameter value is searched again to reduce the recording frame rate, for example, record _ fps is 5, and if the next event is a common event, the current recording parameter value is adjusted to the recording parameter value of the default configuration to reduce the bandwidth and the mobile phone cost. And if the current playing event is detected to be a common event, recording by adopting a default recording parameter value. In addition, the mode of triggering the recording of the current playing event by the specific recording parameter may also be that the user playing the game directly and actively controls the display interface, for example, controls by touching the display interface with a finger, like sliding the three fingers on the screen to trigger the change of the acquisition frame rate, or controls by inputting a special prefix + digital control by voice, like 22, indicating the fast frame rate live broadcast, 33, 44, 55, indicating the high resolution live broadcast, and the like. The recording parameter value is triggered and adjusted through user active control or system automatic detection control, so that playing events with different quality requirements can be recorded, the watching requirements of users can be met, and the user experience is improved.
A content recording apparatus according to an embodiment of the present invention will be described in detail with reference to fig. 7 to 10. It should be noted that the apparatuses shown in fig. 7-10 are used for executing the method according to the embodiments of the present invention shown in fig. 1-6, and for convenience of description, only the parts related to the embodiments of the present invention are shown, and details of the technology are not disclosed, please refer to the embodiments of the present invention shown in fig. 1-6.
Fig. 7 is a schematic structural diagram of a content recording device according to an embodiment of the present invention. As shown in fig. 7, the content recording apparatus 1 according to the embodiment of the present invention may include: an attribute acquisition unit 11, an event recording unit 12, and a content generation unit 13.
An attribute obtaining unit 11, configured to obtain a current playing event in playing content, and obtain event attribute information of the current playing event;
it is to be understood that the playback content may be any form of multimedia content, such as audio, video, animation, documents, etc. The played content may be live content or recorded content. The recorded content may be recorded, because the played content may be an independent event, such as a complete event or a segment of an event, or a series of events, such as a complete PPT or a complete game, and all the played events are recorded in the same manner, only with different recording parameter values, the recorded content may be understood as being for one played event.
Each playing event has event attribute information, which may be an event occurrence period, an event occurrence scene, an event purpose, and the like.
In a specific implementation, when the attribute obtaining unit 11 detects a recording instruction triggered by content played on the display screen (for example, detects that a virtual control is recorded by touch on the display screen, a physical recording button on the content recording device is pressed, a voice signal is received and recorded by a voice receiver or a gesture motion is collected and recorded by a camera, etc.), the content currently played on the screen is determined as a current playing event, and the current playing event is analyzed to obtain event attribute information of the current playing event.
An event recording unit 12, configured to obtain a recording control instruction triggered based on the event attribute information, and record the current playing event by using a recording parameter value corresponding to the recording control instruction;
optionally, the event recording unit 12 is configured to:
and when the event attribute information is the set moment of the current playing event, acquiring a recording operation signal input by a recording interface aiming at the playing content, and recording the current playing event by adopting a first recording parameter value corresponding to the recording operation signal.
It is understood that the set time may be a start time of a current broadcast event (e.g., a group opening time when a player calls a group war during a recording game), a multiple killing (triple killing) time of the current broadcast event, a main point time of a lecture of the current broadcast event (e.g., an important knowledge point time of the lecture during a recording lecture content), and the like.
The recording operation signal is used for controlling the recording of the currently recorded playing event, such as adjusting the recording parameter, so as to meet the recording requirement on the content quality. The recording operation signal is actively triggered by a user according to a current recording event, if a certain page of PPT content is expected to be clearer when the lecture content is recorded, the change of the acquisition frame rate can be triggered by three fingers on a screen, the default frame rate is adjusted to 60 frames/second from 15 frames/second, and if a scene needing slow motion display appears, the recording frame rate can be adjusted to be lower through voice input.
The method for inputting the recording operation signal may be to touch a recording control (setting) virtual control on the display screen, press a recording control physical button on the content recording device, receive a recording control voice signal through a voice receiver, or collect a recording control gesture action through a camera, and the like. For example, the specified special numbers can be directly used as voice control commands, such as: special prefix + digital control, 22 for fast frame rate live broadcast, 33 for slow frame rate live broadcast, 44 for high resolution live broadcast, and 55 for low resolution live broadcast, which helps to improve recording efficiency and accuracy.
The recording parameters may include frame rate, resolution, code rate, and definition, and the value (recording parameter value) of each recording parameter is different under different event attributes. The recording parameter values are adjusted to meet different requirements of different time periods on the content quality in the recording process.
Here, the resolution (screen resolution) is the precision of a screen image, and refers to the number of pixels that can be displayed on a display. Since the dots, lines and planes on the screen are all composed of pixels, the more pixels the display can display, the finer the picture, and the more information can be displayed in the same screen area.
The code rate (bit rate) refers to the number of bits (bits) transmitted per second, in bps (bit per second). The higher the bit rate, the faster the data transfer speed. The bit rate in sound is a binary data amount per unit time after an analog sound signal is converted into a digital sound signal, and is an index for indirectly measuring the audio quality. The bit rate principle in video is the same as that in sound, and refers to the amount of binary data per unit time after converting an analog signal into a digital signal.
The frame rate is a measure for measuring the number of display frames. The measurement unit is the number of display Frames Per Second (FPS) or "Hertz" (Hz).
The definition refers to the definition of each detail shadow and its boundary on the image. The image quality is generally compared from the point of view of the video recorder by looking at the sharpness of the reproduced image.
It should be noted that, the content recording device defines a recording parameter protocol in advance, where the protocol mainly includes a protocol name + an event name + a recording parameter, where the recording parameter includes a resolution, an acquisition frame rate, a coding parameter, and so on, and qzone _ schema? event _ name & resolution & 540 & 960& record _ fps & 25& qp & 18.
resolution is resolution, record _ fps is frame rate, and qp is coding parameter. Of course, the defined recording parameter protocol may also be stored in the form of a mapping relationship table, that is, the mapping relationship between the event attribute information and the recording parameter value, as shown in table 1, for example, when the obtained event attribute information is the event name "wusha", the corresponding recording parameter value may be determined as resolution ═ a1 ═ b1& record _ fps ═ c1& qp ═ d1 by table 1.
Further, the event recording unit 12 is specifically configured to:
gradually adjusting the current recording parameter value by adopting a set step length, and recording the current playing event by adopting the adjusted current recording parameter value;
that is, the adjustment process from the current recording parameter value to the first recording parameter value is adjusted step by step based on the set step size. But in the adjusting process, the recording is carried out synchronously while adjusting, and the adjusted recording parameter value is adopted for recording.
For example, for the frame rates, if the current frame rate is record _ fps equal to 15 frames/second, the first frame rate is record _ fps equal to 60 frames/second, and the step size is set to 15 frames/second, the current frame rate is first adjusted to 30 frames/second, and recording is performed at a frame rate of 30 frames/second, then adjusted to 45 frames/second, and recording is continued at a frame rate of 45 frames/second, and finally the frame rate is adjusted to 60 frames/second. The set step size may be a minimum step size.
And when the current recording parameter value is adjusted to the first recording parameter value, recording the current playing event by adopting the first recording parameter value.
For example, after the frame rate is adjusted to 60 frames/second, the remaining content of the current playing event is recorded at the frame rate of 60 frames/second.
Of course, resolution, code rate, and sharpness may be adjusted in the same manner.
Optionally, the event recording unit 12 is configured to:
and when the event attribute information is matched with target attribute information in a set of set event attribute information, recording the current playing event by adopting a second recording parameter value corresponding to the target attribute information.
It is understood that at least one attribute information is included in the set event attribute information set, where the at least one attribute information is attribute information of a set specific event, such as an event occurrence period, an event occurrence scene, an event purpose, and the like.
If the event attribute information of the current playing event is matched with certain attribute information in the at least one attribute information, the current playing event is a special event or a wonderful event, such as a 'suicide' event in a game, a scene needing slow motion display and the like.
It should be noted that, after the recording of the current playing event is completed, the second recording parameter value needs to be restored to the default recording parameter value, so as to reduce the bandwidth and the overhead.
Further, as shown in fig. 8, the event recording unit 12 includes:
an attribute obtaining subunit 121, configured to obtain system broadcast information of a terminal device, and obtain target attribute information carried in the system broadcast information;
specifically, when the attribute obtaining subunit 121 determines that the event attribute information of the current playing event matches the target attribute information in the at least one attribute information, the broadcast carrying the target attribute information is sent to the recording program.
And the event recording subunit 122 is configured to search a second recording parameter value corresponding to the target attribute information in the recording parameter set, and record the current playing event by using the second recording parameter value.
Specifically, the event recording subunit 122 obtains a second recording parameter value through lookup table 1 or a predefined protocol statement, and then records the current playing event by using the second recording parameter value.
Optionally, the event recording unit 12 is configured to:
and when the event attribute information is not matched with any attribute information in the set event attribute information, recording the current playing event by adopting a set third recording parameter value.
Specifically, when it is detected that the event attribute information does not match any attribute information in the set event attribute information set, it indicates that the current playing event is a normal event, and the current playing event is recorded by using a set (default) third recording parameter value.
For example, the event attribute information of the currently played event is "wild area, and the set event attribute set includes" three kills, four kills, five kills, group opening, blood circulation, and the like ", and then the wild process is recorded by using the default recording parameter value of the system.
Optionally, as shown in fig. 9, the event recording unit 12 includes:
a parameter value obtaining subunit 123, configured to obtain at least one recording parameter value supported by the terminal device;
it can be understood that, after the screen recording program of the parameter value obtaining subunit 123 parses the event, it is necessary to perform judgment and verification on the recording parameter value, such as whether the resolution is supported, whether the device performance meets the coding requirement, and the like.
In a specific implementation, the parameter value obtaining subunit 123 extracts a pre-stored recording parameter value set supported by the system or obtains the recording parameter value set supported by the system through parsing.
A parameter value selecting subunit 124, configured to select, when it is detected that the recording parameter value corresponding to the recording control instruction does not match any recording parameter value in the at least one recording parameter value, a fourth recording parameter value with a highest matching degree with the recording parameter value corresponding to the recording control instruction;
it can be understood that when it is detected that the recording parameter value corresponding to the recording control instruction does not match any of the at least one recording parameter value, the currently required recording parameter value that is not supported by the system is indicated, and in order to improve the recording quality, the closest recording parameter value needs to be determined among the supported recording parameter values.
For example, resolutions supported by the content recording device include 1600 × 900, 1366 × 768, 1280 × 720, and 800 × 600, and a resolution corresponding to the recording control instruction is 1080 × 1920, matching similarities of 1600 × 900, 1366 × 768, 1280 × 720, 800 × 600, and 1080 × 1920 are calculated, respectively, and 1600 × 900 with the highest matching similarity is used as the resolution for recording.
And an event recording subunit 125, configured to record the current playing event by using the fourth recording parameter value.
I.e. the currently playing event is recorded with a resolution of 1600 x 900.
It should be noted that the frame rate, the definition, and the code rate are also obtained in the same manner.
And a content generating unit 13, configured to generate a recording content corresponding to the current playing event when it is detected that the playing of the current playing event is finished.
It can be understood that, if the playing of the current playing event is finished, that is, the recording process using the obtained recording parameter value is finished, the recording content is obtained. The recorded content is the content recorded from the beginning to the end of the current playing event by adopting the acquired recording parameter value. In this embodiment of the present invention, for the recorded content only for the current play event, the play content may include one play event or multiple play events, and when the play content includes only one play event (current play event), the play content is the same as the content of the recorded content, but has a different play effect. For example, if the broadcast content only includes a "fifties" event in a game, the broadcast content and the recorded content are both the "fifties" event, but the broadcast content may be played at a faster frame rate while the recorded content is played at a slower frame rate.
Optionally, if the recorded playing content is live content, the recorded content may be encoded and compressed by using the obtained code rate frame by frame and then transmitted to the server side by stamping a timestamp in the recording process, or the recorded complete recorded content may be encoded and compressed and then transmitted to the server side, so that the server transcodes the content and transmits the content to other user terminals for decompression and playing.
Optionally, as shown in fig. 10, the content generating unit 13 includes:
an event cycle subunit 131, configured to determine, when it is detected that the playing of the current playing event is finished, a next playing event of the current playing event as a current playing event, and perform a step of acquiring event attribute information of the current playing event;
it can be understood that, when it is detected that the playing of the current playing event is finished, a next playing event of the current playing event is obtained, and the next playing event is taken as the current playing event, and the recording is performed in the same manner as the previous playing event of the next playing event, and other playing events are recorded in sequence.
The content generating subunit 132 is configured to generate a recorded content set including recorded content corresponding to the current play event when it is detected that there is no next play event.
Specifically, the recorded content set includes recorded contents corresponding to a plurality of playing events respectively. When the next playing event does not exist, the fact that all the played contents are recorded is indicated, the recorded content set after recording is integrally encoded and compressed and then transmitted to the server side, or each recorded content in the recorded content set is encoded and compressed and then time stamp is printed and then transmitted to the server side, so that the server transcodes and transmits the transcoded recorded contents to other user terminals for decompression and playing. Of course, the recorded content set may also be encoded and compressed frame by frame and then transmitted to the server.
Of course, it can also be understood that the recorded current playing event is added to the recorded content set, and the next playing event is recorded and recorded, and finally the recorded content set is spliced, encoded and compressed, and then sent to the server, so that the server transcodes and sends the transcoded and compressed information to other user terminals for decompression and playing.
In the embodiment of the invention, the current playing event in the playing content is acquired, the event attribute information of the current playing event is acquired, the current playing event is recorded based on the recording parameter value corresponding to the recording control instruction triggered by the event attribute information, and the recording content corresponding to the current playing event is generated when the playing of the current playing event is finished. The recording parameter value is adjusted based on the triggered recording control instruction so as to record the playing event with different quality requirements, the watching requirements of the user can be met, and the user experience can be improved.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 1 to 6, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 6, which are not described herein again.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 11, the electronic device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 11, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a content recording application program.
In the electronic device 1000 shown in fig. 11, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 1001 may be configured to call the content recording application stored in the memory 1005, and specifically perform the following operations:
acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event;
acquiring a recording control instruction triggered based on the event attribute information, and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction;
and when the end of the playing of the current playing event is detected, generating the recorded content corresponding to the current playing event.
In an embodiment, when the processor 1001 executes a recording control instruction triggered based on the event attribute information and records the current playing event by using a recording parameter value corresponding to the recording control instruction, the following operations are specifically executed:
and when the event attribute information is the set moment of the current playing event, acquiring a recording operation signal input by a recording interface aiming at the playing content, and recording the current playing event by adopting a first recording parameter value corresponding to the recording operation signal.
In an embodiment, when the processor 1001 executes recording of the current play event by using the first recording parameter value corresponding to the recording operation signal, the following operations are specifically executed:
gradually adjusting the current recording parameter value by adopting a set step length, and recording the current playing event by adopting the adjusted current recording parameter value;
and when the current recording parameter value is adjusted to the first recording parameter value, recording the current playing event by using the first recording parameter value.
In an embodiment, when the processor 1001 executes a recording control instruction triggered based on the event attribute information and records the current playing event by using a recording parameter value corresponding to the recording control instruction, the following operations are specifically executed:
and when the event attribute information is matched with target attribute information in a set of set event attribute information, recording the current playing event by adopting a second recording parameter value corresponding to the target attribute information.
In an embodiment, when the processor 1001 executes recording of the current play event by using the second recording parameter value corresponding to the target attribute information, the following operation is specifically executed:
acquiring system broadcast information of terminal equipment, and acquiring target attribute information carried in the system broadcast information;
and searching a second recording parameter value corresponding to the target attribute information in a recording parameter set, and recording the current playing event by adopting the second recording parameter value.
In an embodiment, when the processor 1001 executes a recording control instruction triggered based on the event attribute information and records the current playing event by using a recording parameter value corresponding to the recording control instruction, the following operations are specifically executed:
and when the event attribute information is not matched with any attribute information in the set event attribute information, recording the current playing event by adopting a set third recording parameter value.
In an embodiment, when the processor 1001 executes recording of the current play event by using the recording parameter value corresponding to the recording control instruction, the following operations are specifically executed:
acquiring at least one recording parameter value supported by terminal equipment;
when it is detected that the recording parameter value corresponding to the recording control instruction is not matched with any recording parameter value in the at least one recording parameter value, selecting a fourth recording parameter value with the highest matching degree with the recording parameter value corresponding to the recording control instruction from the at least one recording parameter value;
and recording the current playing event by adopting the fourth recording parameter value.
In an embodiment, when the processor 1001 detects that the playing of the current playing event is finished and generates the recording content corresponding to the current playing event, the following operations are specifically performed:
when the end of the playing of the current playing event is detected, determining the next playing event of the current playing event as the current playing event, and turning to the step of acquiring the event attribute information of the current playing event;
and when detecting that the next playing event does not exist, generating the recorded content containing the current playing event.
In the embodiment of the invention, the current playing event in the playing content is acquired, the event attribute information of the current playing event is acquired, the current playing event is recorded based on the recording parameter value corresponding to the recording control instruction triggered by the event attribute information, and the recording content corresponding to the current playing event is generated when the playing of the current playing event is finished. The recording parameter value is adjusted based on the triggered recording control instruction so as to record the playing event with different quality requirements, the watching requirements of the user can be met, and the user experience can be improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (13)
1. A method for content recording, comprising:
acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event; the event attribute information comprises an event occurrence scene and an event purpose; the current playing event comprises a game playing event, and the event attribute information comprises an event occurrence scene and an event purpose aiming at the game playing event;
acquiring a recording control instruction triggered based on the event attribute information, and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction, wherein the method specifically comprises the following steps: gradually adjusting the current recording parameter value by adopting a set step length, synchronously recording the current playing event by adopting the adjusted current recording parameter value, and recording the current playing event by adopting a first recording parameter value when the current recording parameter value is adjusted to the first recording parameter value; the triggering mode of the recording control instruction comprises a content recording equipment detection triggering mode;
when the fact that the playing of the current playing event is finished is detected, recording content corresponding to the current playing event is generated;
and when the recording parameter value corresponding to the recording control instruction comprises a frame rate, and the contents of the playing content and the recording content are the same as the current playing event, the playing frame rate of the playing content is different from the playing frame rate of the recording content.
2. The method according to claim 1, wherein the obtaining a recording control instruction triggered based on the event attribute information, and recording the current playing event by using a recording parameter value corresponding to the recording control instruction comprises:
and when the event attribute information is the set moment of the current playing event, acquiring a recording operation signal input by a recording interface aiming at the playing content, and recording the current playing event by adopting a first recording parameter value corresponding to the recording operation signal.
3. The method according to claim 1, wherein when the recording control instruction triggered based on the event attribute information is obtained, recording the current playing event by using a recording parameter value corresponding to the recording control instruction includes:
and when the event attribute information is matched with target attribute information in a set of set event attribute information, recording the current playing event by adopting a second recording parameter value corresponding to the target attribute information.
4. The method according to claim 3, wherein the recording the current broadcast event by using the second recording parameter value corresponding to the target attribute information comprises:
acquiring system broadcast information of terminal equipment, and acquiring target attribute information carried in the system broadcast information;
and searching a second recording parameter value corresponding to the target attribute information in a recording parameter set, and recording the current playing event by adopting the second recording parameter value.
5. The method according to claim 1, wherein when the recording control instruction triggered based on the event attribute information is obtained, recording the current playing event by using a recording parameter value corresponding to the recording control instruction includes:
and when the event attribute information is not matched with any attribute information in the set event attribute information, recording the current playing event by adopting a set third recording parameter value.
6. The method according to claim 1, wherein the recording the current playing event by using the recording parameter value corresponding to the recording control instruction comprises:
acquiring at least one recording parameter value supported by terminal equipment;
when it is detected that the recording parameter value corresponding to the recording control instruction is not matched with any recording parameter value in the at least one recording parameter value, selecting a fourth recording parameter value with the highest matching degree with the recording parameter value corresponding to the recording control instruction from the at least one recording parameter value;
and recording the current playing event by adopting the fourth recording parameter value.
7. The method according to claim 1, wherein the generating the recorded content corresponding to the current playing event when it is detected that the playing of the current playing event is finished comprises:
when the end of the playing of the current playing event is detected, determining the next playing event of the current playing event as the current playing event, and turning to the step of acquiring the event attribute information of the current playing event;
and when detecting that the next playing event does not exist, generating a recorded content set containing the recorded content corresponding to the current playing event.
8. A content recording device, comprising:
the attribute acquisition unit is used for acquiring a current playing event in playing content and acquiring event attribute information of the current playing event; the event attribute information comprises an event occurrence scene and an event purpose; the current playing event comprises a game playing event, and the event attribute information comprises an event occurrence scene and an event purpose aiming at the game playing event;
an event recording unit, configured to obtain a recording control instruction triggered based on the event attribute information, and record the current play event by using a recording parameter value corresponding to the recording control instruction, where the event recording unit specifically includes: gradually adjusting the current recording parameter value by adopting a set step length, synchronously recording the current playing event by adopting the adjusted current recording parameter value, and recording the current playing event by adopting a first recording parameter value when the current recording parameter value is adjusted to the first recording parameter value; the triggering mode of the recording control instruction comprises a content recording equipment detection triggering mode;
a content generating unit, configured to generate a recording content corresponding to the current playing event when it is detected that the playing of the current playing event is finished; and when the recording parameter value corresponding to the recording control instruction comprises a frame rate, and the contents of the playing content and the recording content are the same as the current playing event, the playing frame rate of the playing content is different from the playing frame rate of the recording content.
9. The apparatus of claim 8, wherein the event recording unit is configured to:
and when the event attribute information is the set moment of the current playing event, acquiring a recording operation signal input by a recording interface aiming at the playing content, and recording the current playing event by adopting a first recording parameter value corresponding to the recording operation signal.
10. The apparatus of claim 8, wherein the event recording unit is configured to:
and when the event attribute information is matched with target attribute information in a set of set event attribute information, recording the current playing event by adopting a second recording parameter value corresponding to the target attribute information.
11. The apparatus of claim 10, wherein the event recording unit comprises:
the attribute acquisition subunit is used for acquiring system broadcast information of the terminal equipment and acquiring target attribute information carried in the system broadcast information;
and the event recording subunit is used for searching a second recording parameter value corresponding to the target attribute information in the recording parameter set and recording the current playing event by adopting the second recording parameter value.
12. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
13. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
acquiring a current playing event in playing content, and acquiring event attribute information of the current playing event; the event attribute information comprises an event occurrence scene and an event purpose; the current playing event comprises a game playing event, and the event attribute information comprises an event occurrence scene and an event purpose aiming at the game playing event;
acquiring a recording control instruction triggered based on the event attribute information, and recording the current playing event by adopting a recording parameter value corresponding to the recording control instruction, wherein the method specifically comprises the following steps: gradually adjusting the current recording parameter value by adopting a set step length, synchronously recording the current playing event by adopting the adjusted current recording parameter value, and recording the current playing event by adopting a first recording parameter value when the current recording parameter value is adjusted to the first recording parameter value; the triggering mode of the recording control instruction comprises a content recording equipment detection triggering mode;
when the fact that the playing of the current playing event is finished is detected, recording content corresponding to the current playing event is generated;
and when the recording parameter value corresponding to the recording control instruction comprises a frame rate, and the contents of the playing content and the recording content are the same as the current playing event, the playing frame rate of the playing content is different from the playing frame rate of the recording content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810550094.8A CN108737884B (en) | 2018-05-31 | 2018-05-31 | Content recording method and equipment, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810550094.8A CN108737884B (en) | 2018-05-31 | 2018-05-31 | Content recording method and equipment, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108737884A CN108737884A (en) | 2018-11-02 |
CN108737884B true CN108737884B (en) | 2022-05-10 |
Family
ID=63931610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810550094.8A Active CN108737884B (en) | 2018-05-31 | 2018-05-31 | Content recording method and equipment, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737884B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020118560A1 (en) * | 2018-12-12 | 2020-06-18 | 深圳市欢太科技有限公司 | Recording method and apparatus, electronic device and computer readable storage medium |
CN110062262B (en) * | 2019-04-12 | 2022-05-03 | 北京字节跳动网络技术有限公司 | Transcoding control method and device for video data, electronic equipment and storage medium |
CN111556328A (en) * | 2020-04-17 | 2020-08-18 | 北京达佳互联信息技术有限公司 | Program acquisition method and device for live broadcast room, electronic equipment and storage medium |
CN112351290A (en) * | 2020-09-08 | 2021-02-09 | 深圳Tcl新技术有限公司 | Video recording method, device and equipment of intelligent equipment and readable storage medium |
CN113176922B (en) * | 2021-04-30 | 2024-05-24 | 上海云扩信息科技有限公司 | Universal interface element automatic detection system |
CN114173150A (en) * | 2021-12-22 | 2022-03-11 | Oppo广东移动通信有限公司 | Live video recording method, device and system and terminal equipment |
CN118450162B (en) * | 2024-07-05 | 2024-09-13 | 海马云(天津)信息技术有限公司 | Cloud application wonderful video recording method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104811787A (en) * | 2014-10-27 | 2015-07-29 | 深圳市腾讯计算机系统有限公司 | Game video recording method and game video recording device |
CN105979187A (en) * | 2015-07-24 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Data recording method and device |
CN106027933A (en) * | 2016-06-21 | 2016-10-12 | 维沃移动通信有限公司 | Video recording method, video playing method and mobile terminal |
CN107025165A (en) * | 2017-03-07 | 2017-08-08 | 腾讯科技(深圳)有限公司 | Game automated testing method and relevant apparatus |
WO2017139788A1 (en) * | 2016-02-12 | 2017-08-17 | Helms William Lynn | System and method for spectrum & power recovery in a communication network using media manipulation |
WO2018085982A1 (en) * | 2016-11-08 | 2018-05-17 | 深圳市大疆创新科技有限公司 | Video recording method and apparatus, and photographing device |
CN108055245A (en) * | 2017-11-28 | 2018-05-18 | 北京潘达互娱科技有限公司 | Internet video live broadcasting method, device, electronic equipment and computer storage media |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103400592A (en) * | 2013-07-30 | 2013-11-20 | 北京小米科技有限责任公司 | Recording method, playing method, device, terminal and system |
CN106534746A (en) * | 2016-10-26 | 2017-03-22 | 阔地教育科技有限公司 | Recording control method and apparatus |
CN107124662B (en) * | 2017-05-10 | 2022-03-18 | 腾讯科技(上海)有限公司 | Video live broadcast method and device, electronic equipment and computer readable storage medium |
CN107277411B (en) * | 2017-07-17 | 2019-12-13 | 维沃移动通信有限公司 | Video recording method and mobile terminal |
CN107835452A (en) * | 2017-10-17 | 2018-03-23 | 广东欧珀移动通信有限公司 | Data processing method and related product |
CN107659828B (en) * | 2017-10-30 | 2020-01-14 | Oppo广东移动通信有限公司 | Video image quality adjusting method and device, terminal equipment and storage medium |
CN108055491B (en) * | 2017-11-30 | 2021-07-23 | 努比亚技术有限公司 | Screen recording method, terminal and storage medium |
CN108052261A (en) * | 2017-12-07 | 2018-05-18 | 广东欧珀移动通信有限公司 | Record screen method, apparatus and terminal |
-
2018
- 2018-05-31 CN CN201810550094.8A patent/CN108737884B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104811787A (en) * | 2014-10-27 | 2015-07-29 | 深圳市腾讯计算机系统有限公司 | Game video recording method and game video recording device |
CN105979187A (en) * | 2015-07-24 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Data recording method and device |
WO2017139788A1 (en) * | 2016-02-12 | 2017-08-17 | Helms William Lynn | System and method for spectrum & power recovery in a communication network using media manipulation |
CN106027933A (en) * | 2016-06-21 | 2016-10-12 | 维沃移动通信有限公司 | Video recording method, video playing method and mobile terminal |
WO2018085982A1 (en) * | 2016-11-08 | 2018-05-17 | 深圳市大疆创新科技有限公司 | Video recording method and apparatus, and photographing device |
CN107025165A (en) * | 2017-03-07 | 2017-08-08 | 腾讯科技(深圳)有限公司 | Game automated testing method and relevant apparatus |
CN108055245A (en) * | 2017-11-28 | 2018-05-18 | 北京潘达互娱科技有限公司 | Internet video live broadcasting method, device, electronic equipment and computer storage media |
Also Published As
Publication number | Publication date |
---|---|
CN108737884A (en) | 2018-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108737884B (en) | Content recording method and equipment, storage medium and electronic equipment | |
USRE49990E1 (en) | Use of objective quality measures of streamed content to reduce streaming bandwidth | |
JP6564464B2 (en) | Video program segment detection | |
CN103188522B (en) | Method and system for providing and delivering a composite condensed stream | |
JP6624958B2 (en) | Communication device, communication system, communication control method, and computer program | |
CN111135569A (en) | Cloud game processing method and device, storage medium and electronic equipment | |
US20170171274A1 (en) | Method and electronic device for synchronously playing multiple-cameras video | |
CN107682714B (en) | Method and device for acquiring online video screenshot | |
CN110505522A (en) | Processing method, device and the electronic equipment of video data | |
CN108462896B (en) | Live data stream processing method and device and electronic equipment | |
US10701461B2 (en) | Video Processing Method, Terminal and Server | |
KR102381096B1 (en) | Method and apparatus for determining the experience quality of VR multimedia | |
CN113225585B (en) | Video definition switching method and device, electronic equipment and storage medium | |
CN108881956B (en) | Live stream transmission method and device and related equipment | |
CN107040825B (en) | Terminal, television, multi-screen interaction system and screen capture parameter setting method | |
KR101795537B1 (en) | System and method for providing of cloud streaming service which is adapting to network environment | |
CN105592369B (en) | A kind of video frequency abstract processing method and processing device | |
CN111698261B (en) | Video playing method, device, equipment and storage medium based on streaming media | |
CN112235600B (en) | Method, device and system for processing video data and video service request | |
CN111918074A (en) | Live video fault early warning method and related equipment | |
CN112235592B (en) | Live broadcast method, live broadcast processing method, device and computer equipment | |
CN112866745B (en) | Streaming video data processing method, device, computer equipment and storage medium | |
CN114302180A (en) | Video single-frame playing method, device, server, system and storage medium | |
JP6623905B2 (en) | Server device, information processing method and program | |
CN110392296B (en) | Online playback technology for aircraft custom format trial flight video image |
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 |