CN109151520A - A kind of method, apparatus, electronic equipment and medium generating video - Google Patents

A kind of method, apparatus, electronic equipment and medium generating video Download PDF

Info

Publication number
CN109151520A
CN109151520A CN201811126108.XA CN201811126108A CN109151520A CN 109151520 A CN109151520 A CN 109151520A CN 201811126108 A CN201811126108 A CN 201811126108A CN 109151520 A CN109151520 A CN 109151520A
Authority
CN
China
Prior art keywords
data
video
processed
application
generation
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.)
Granted
Application number
CN201811126108.XA
Other languages
Chinese (zh)
Other versions
CN109151520B (en
Inventor
周凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rice Future Technology Co Ltd
Original Assignee
Beijing Rice Future Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rice Future Technology Co Ltd filed Critical Beijing Rice Future Technology Co Ltd
Priority to CN201811126108.XA priority Critical patent/CN109151520B/en
Publication of CN109151520A publication Critical patent/CN109151520A/en
Application granted granted Critical
Publication of CN109151520B publication Critical patent/CN109151520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8355Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
    • H04N21/83555Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed using a structured language for describing usage rules of the content, e.g. REL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Abstract

This application discloses a kind of method, apparatus, electronic equipment and media for generating video, and wherein this method is applied in browser Head less browser without a head.In the application, the display data generated in data is received and extracted in browser without a head, and according to the visualized data and audio data generation video to be processed in display data, then be based on video to be processed and preset video frame, generate and show video.Pass through the technical solution of application the application, the generation data of user terminal uploads can be generated in browser without a head and show video, and then when can solve user and uploading data information during giving lessons, the drawbacks of consuming computing resource and network bandwidth caused by can just being uploaded after need to being encoded to Video data.

Description

A kind of method, apparatus, electronic equipment and medium generating video
Technical field
This application involves image processing techniques, especially a kind of method, apparatus, electronic equipment and medium for generating video.
Background technique
With the development of society, more and more people can select to learn various knowledge constantly to expand oneself.Its In, it is required to both sides since traditional students and teacher gives lessons face-to-face and on the way takes a substantial amount of time and energy.Therefore, with The development of communication era, online teaching received by vast user.
In general, online teaching is the interaction training classroom based on internet remote online.Online teaching is using sound The network transmission technologies such as transmission of video and data collaborative simulate true class environment, are provided effectively by network to student Training Environment.Further, online teaching not only can to avoid give lessons under line bring additional time consumption energy the problem of, also Playback video when giving lessons can be watched, at any time to consolidate knowledge after giving lessons.
It is same by teacher side or student side during mostly using at school in the general mode recorded and give lessons video Step records process of giving lessons, and is uploaded to server after carrying out coding work to the recorded video.However, being regarded using such generation The mode of frequency can increase additional computing resource and bandwidth burden to user computer, often go out so as to cause during giving lessons It is now connected to the network Caton, situations such as video goes offline.Therefore, how under the premise of guaranteeing online teaching fluency, generation is given lessons Video becomes those skilled in the art and compels problem to be solved.
Summary of the invention
The embodiment of the present application technical problem to be solved is: how in the premise for guaranteeing online teaching fluency Under, generate video of giving lessons.
According to the one aspect of the embodiment of the present application, a kind of method of the generation video provided, this method is applied to without a head In browser Headless browser, comprising:
It receives and generates data;
The display data in the generation data is extracted, and according to the display data, generates video to be processed, the exhibition Registration includes visualized data and audio data in, includes html data, image data, CSS layer in the visualized data Stacking style table data, javascript data;
Based on the video to be processed and preset video frame, generates and show video.
Optionally, in another embodiment based on the application above method, after the reception generates data, also Include:
Visualized data described in the generation data is extracted, the visualized data is the visualized data that can be shown;
Based on the visualized data, image data is generated.
Optionally, in another embodiment based on the application above method, after the reception generates data, also Include:
Extract all image datas in the generation data;
Described image data are successively sorted according to pre-defined rule;
Every predetermined period, the image that frame number is preset in described image data is acquired;
Based on the image of the acquisition, image/video is generated.
Optionally, in another embodiment based on the application above method, in the image based on the acquisition, After generation image/video, comprising:
Extract the audio data in the generation data;
The audio data is synthesized in described image video, the video to be processed is generated.
Optionally, in another embodiment based on the application above method, it is described by described image data according to pre- Set pattern is then successively sorted, comprising:
Described image data are successively sorted according to the source of described image data;
And/or
Described image data are successively sorted sequentially in time.
Optionally, in another embodiment based on the application above method, it is described based on the video to be processed with And preset video frame, it generates and shows video, comprising:
Based on the video to be processed, corresponding video frame is selected;
The video to be processed is subjected to compression processing;
By the Video Composition to be processed after the compression processing into the video frame, generates and show video.
Optionally, in another embodiment based on the application above method, before the reception generates data, also Include:
The generation request that the target terminal user is sent is received, includes the target terminal user in the generation request Authentication information, generation request is for generating the displaying video;
The target terminal user is authenticated according to the authentication information;
After the authentication is passed to the target terminal user, the generation data that the target terminal is sent are received.
Optionally, in another embodiment based on the application above method, after the reception generates data, also Include:
Extract the document data in the generation data;
The document data is synthesized in described image video, the video to be processed is generated.
According to the other side of the embodiment of the present application, a kind of device of the generation video provided, the device is applied to nothing In head browser Headless browser, comprising:
Receiving module generates data for receiving;
First generation module is generated for extracting the display data in the generation data, and according to the display data Video to be processed includes visualized data and audio data in the display data;
Second generation module generates for being based on the video to be processed and preset video frame and shows video.
According to the another aspect of the embodiment of the present application, a kind of electronic equipment that provides, comprising:
Memory, for storing executable instruction;And
Processor, for being communicated with the memory to execute the executable instruction to complete any of the above-described life At the operation of the method for video.
According to the still another aspect of the embodiment of the present application, a kind of computer readable storage medium provided, based on storing The instruction that calculation machine can be read, described instruction are performed the operation for executing any of the above-described method for generating video.
In the application, is received in browser without a head and extract the display data generated in data, and according to display data In visualized data and audio data generate video to be processed, then be based on video to be processed and preset video frame, it is raw At displaying video.It, can be by the generation data of user terminal uploads in browser without a head by the technical solution of application the application Middle generation shows video, and then when can solve user and uploading data information during giving lessons, due to need to Video data into Consuming computing resource caused by can just being uploaded after row coding and the drawbacks of network bandwidth.
Below by drawings and examples, the technical solution of the application is described in further detail.
Detailed description of the invention
The attached drawing for constituting part of specification describes embodiments herein, and together with description for explaining The principle of the application.
The application can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 is the flow chart of method one embodiment that the application generates video.
Fig. 2 is the flow chart that the application generates another embodiment of the method for video.
Fig. 3 is the structural schematic diagram of one embodiment that the application generates video.
Fig. 4 is the structural schematic diagram for the device that the application generates video.
Fig. 5 is the electronic devices structure schematic diagram that the application generates video.
Specific embodiment
The various exemplary embodiments of the application are described in detail now with reference to attached drawing.It should also be noted that unless in addition having Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally The range of application.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the application And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as part of specification.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present application In explaining in relative positional relationship, the motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if should When particular pose changes, then directionality instruction also correspondingly changes correspondingly.
In addition, the description for being such as related to " first ", " second " in this application is used for description purposes only, and should not be understood as Its relative importance of indication or suggestion or the quantity for implicitly indicating indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present application, " multiples' " contains Justice is at least two, such as two, three etc., unless otherwise specifically defined.
In this application unless specifically defined or limited otherwise, term " connection ", " fixation " etc. shall be understood in a broad sense, For example, " fixation " may be a fixed connection, it may be a detachable connection, or integral;It can be mechanical connection, be also possible to Electrical connection;It can be directly connected, the connection inside two elements or two can also be can be indirectly connected through an intermediary The interaction relationship of a element, unless otherwise restricted clearly.It for the ordinary skill in the art, can basis Concrete condition understands the concrete meaning of above-mentioned term in this application.
It in addition, the technical solution between each embodiment of the application can be combined with each other, but must be general with this field Based on logical technical staff can be realized, it will be understood that when the combination of technical solution appearance is conflicting or cannot achieve this The combination of technical solution is not present, also not this application claims protection scope within.
It is described below with reference to Fig. 1 to Fig. 3 according to the application illustrative embodiments for generate the side of video Method.It should be noted that following application scenarios are merely for convenience of understanding spirit herein and principle and showing, the application's Embodiment is unrestricted in this regard.On the contrary, presently filed embodiment can be applied to applicable any scene.
Fig. 1 schematically shows a kind of flow diagram of the method for generation video according to the application embodiment. As shown in Figure 1, comprising:
A method of video being generated, this method is applied in browser Headless browser without a head, comprising:
S101 is received and is generated data.
Firstly the need of explanation, browser (Headless browser) without a head refers to a kind of without graphical interface of user (GUI) browser.By browser without a head, the preset automatic test of developer can be completed.
Wherein, the application is not specifically limited the browser kernel of browser without a head, for example, the Headless of the application Browser kernel can be Gecko (kernel of red fox Firefox browser exploitation) or Trident (IE browser The kernel of exploitation), can also be Blink (kernel of Google's Google Development of Web Browser).In a kind of preferable embodiment, The Headless browser kernel of the method for generation video applied to the application can be Webkit (apple APPLE browsing The kernel of device exploitation.)
Optionally, the generation data in the application may include there are many data information.Such as can there are image data, sound Frequency according to etc., further, in addition to display data, generate data in can also carry document data, user terminal identification, Uplink time etc. data information.The specific variation for generating storing data information in data will not influence the protection model of the application It encloses.
In a kind of embodiment of the application, receives and generates the generation data that data can send for reception server, Or receive the generation data that target terminal user is sent.Target terminal user can be used for the either side given lessons online Family terminal.For example, target terminal user can be the terminal of online teaching teacher, target terminal user may be online teaching Several students in any one student terminal.Further, target terminal user can also be used to receive multiple other Each generation data of family terminal transmission and the user terminal summarized.
S102 extracts the display data generated in data, and according to display data, generates video to be processed, display data In include visualized data and audio data, include hypertext markup language html data, image data, layer in visualized data Stacking style table CSS data, literal translation formula script java script data;.
Optionally, in the application, when receiving after generation data, the display data in the generation data is extracted.And it is based on The speaker data of extraction are generated for generating the video to be processed for showing video.
It should be noted that including visualized data and audio data in display data in the application.Wherein, it visualizes Data are the visualized data that can be shown and the visualized data that can not be shown.Further, the visualized data of the application In can include but is not limited to it is following any one or more:
Html data, image data, cascading style sheets CSS data, javas cript data.
In addition, the audio data of the application is the background audio data during giving lessons.For example, background music, sound of giving lessons Sound, voice prompting etc..
S103 is generated according to video to be processed and preset video frame and is shown video.
Further alternative, the application is generated according to the video to be processed and preset video frame generated in S102 The displaying video of viewing can be presented to the user.
Wherein it should be noted that can have multiple preset video frames in the application.Wherein it is possible to according to generation The difference of video to be processed and select corresponding video frame.
In the application, is received in browser without a head and extract the display data generated in data, and according to display data In visualized data and audio data generate video to be processed, then be based on video to be processed and preset video frame, it is raw At displaying video.It, can be by the generation data of user terminal uploads in browser without a head by the technical solution of application the application Middle generation shows video, and then when can solve user and uploading data information during giving lessons, due to need to Video data into Consuming computing resource caused by can just being uploaded after row coding and the drawbacks of network bandwidth.
Optionally, in a kind of embodiment of the application, it is based on video to be processed and preset video frame, is generated The mode for showing video may include following manner:
Based on video to be processed, corresponding video frame is selected.
, can be based on the difference of video to be processed in the application, and then select corresponding video frame.The one of the application In kind preferred embodiment, corresponding video frame can be selected based on the particular content difference of video to be processed.
For example, when video to be processed be class of languages give lessons video when, can according to the difference of category of language in video of giving lessons, Select country variant/regional population video frame.Such as give lessons video language be English when, can choose with the U.S., Britain Or the country /regions such as New York, London are the theme the video frame of type.It, can be with for another example when the language for video of giving lessons is Japanese Selection is the theme the video frame of type with country /regions such as Japan, Tokyo.
For another example when video to be processed gives lessons video for science and education class, it can be according to science and education type in video of giving lessons not Together, the video frame of different science and education types is selected.When the type of video of such as giving lessons is GEOGRAPHIC ATTRIBUTES education, it can choose and be with geography The video frame of type of theme.For another example give lessons video type for political class education when, can choose and be the theme type with politics Video frame.
In another preferred embodiment of the application, it is also based on the difference of the object of giving lessons of video to be processed And select corresponding video frame.For example, when the object of giving lessons of video to be processed is adult, it can be according to the year of the adult The factors such as age, gender and nationality select corresponding video frame.It, can be with for another example when the object of giving lessons of video to be processed is children Corresponding video frame is selected according to factors such as the age of the children, gender and nationalities.
Video to be processed is subjected to compression processing.
Optionally, in the application, after for the corresponding video frame of video selection to be processed, video to be processed is pressed Contracting processing.
By the Video Composition to be processed after compression processing into video frame, generates and show video.
It is further alternative, by video to be processed carry out compression processing after, by compressed Video Composition to be processed to pair In the video frame answered, final displaying video is generated.By way of being played downloading or online for object of respectively giving lessons Review the displaying video.
It further, further include a kind of specific embodiment in this application after S101 (receive and generate data).Tool Body, the application further includes a kind of method for generating video, as shown in Fig. 2,
S201 is received and is generated data.
S202 extracts the visualized data generated in data, and visualized data is the visualized data that can be shown, being based on can Depending on changing data, image data is generated.
Optionally, after receiving generation data, all visualization numbers shown in the generation data can be extracted According to, and all visualized datas shown are converted into image data.
S203 is successively sorted image data according to pre-defined rule.
Optionally, in the application, in such a way that pre-defined rule is successively sorted may include by image data but not It is limited to any one or more of following three kinds of modes:
First way:
Image data is successively sorted according to the source of image data.
Optionally, in the application, each image data can successively be sorted according to its source.For example, the application can The image data sent with teacher's lateral terminal that this is given lessons is labeled as height according to importance height, the student that this is given lessons The image data that lateral terminal is sent is labeled as low according to importance height.Further, according to each important of image data source Property is successively sorted.
The second way:
Image data is successively sorted sequentially in time.
Optionally, in the application, each image data can also successively be sorted according to its time sequencing generated.
S204 acquires the image that frame number is preset in image data every predetermined period.
Further alternative, the application can be acquired from all image datas within the period every predetermined period The image of default frame number.
It should be noted that the application is not specifically limited predetermined period.I.e. predetermined period can be each second, make a reservation for Period may be every millisecond.The specific variation of predetermined period will not influence the protection scope of the application.
Explanation is also needed, the application is not also specifically limited default frame number.I.e. default frame number can be 30 frames, Default frame number may be 50 frames.The specific variation of default frame number will not influence the protection scope of the application.
It can be to acquire 30 frames in image data within the time every 1ms in a kind of preferred embodiment of the application Image.
S205, the image based on acquisition generate image/video.
Optionally, after the application acquires all images, according to all acquired images, corresponding image is generated Video.Wherein, the mode for which being generated video is same as the prior art, and details are not described herein.
S206 extracts the audio data generated in data.
It is further alternative, after generating image/video, it can also will generate all audio datas in data and extract Out.
Audio data is synthesized in image/video by S207, generates video to be processed.
Optionally, after the application extracts audio data, which can be synthesized in the image/video of generation, And then generate it is audio-visual video to be processed.Likewise, the audio data to be synthesized to the mode and existing skill of image/video Art is identical, and details are not described herein.
Further alternative, the application can also extract the document data generated in data after generating image/video.
Document data is synthesized in image/video, video to be processed is generated.
Likewise, the number of files in data can also will be generated after audio data is synthesized to image/video by the application According to extracting.And by the image/video of the document Data Synthesis to generation, and then generate to be processed comprising document data Video.Likewise, the mode that document data is synthesized to image/video is same as the prior art, details are not described herein.
S208 is based on video to be processed and preset video frame, generates and shows video.
It is further alternative, in another embodiment of the application, before S101 (receive and generate data), also wrap A kind of method for generating video is included, as shown in figure 3,
S301, receives the generation request that target terminal user is sent, and includes the authentication of target terminal user in generation request Information generates request for generating and shows video.
Optionally, the generation request that target terminal user is sent is for requesting after receiving generation data, according to generation Data, which generate, shows video.It further, is to reduce server to be attacked by malicious user or by nothing after receiving generation data Close the risk that user uses.In the application, it is also necessary to carry out identification authentication to the target terminal user first.Further, The terminal is verified according to the authentication information that target terminal user is sent.
S302 authenticates target terminal user according to authentication information.
S303 is received after the authentication is passed to target terminal user and is generated data.
Further, after the authentication information for receiving target terminal user transmission, it can use what itself was obtained in advance Verification information verifies the authentication information.Wherein it should be noted that the application does not do concrete restriction to the authentication information. I.e. the authentication information can be pre-generated key, be also possible to the equipment number of the terminal device.Authentication information it is specific Content change will not influence the protection scope of the application.
Further, by taking authentication information is the equipment number of target terminal as an example, when the equipment for receiving terminal transmission After number, pre-stored authorised device list is traversed, when the equipment number is not present in authorised device list, then Determine to fail to the identification authentication of the target terminal.And the notice of identification authentication failure is sent to the target terminal.When the equipment When number is present in authorised device list, then determine to pass through the authentication of the target terminal user.And then determine to be somebody's turn to do Target terminal user is the permission user for having transmission and generating data.
S304 extracts the display data generated in data, and according to display data, generates video to be processed.
S305 is based on video to be processed and preset video frame, generates and shows video.
In another embodiment of the application, as shown in figure 4, the application also provides a kind of dress for generating video It sets, which includes receiving module 401, the first generation module 402, the second generation module 403.Wherein,
Receiving module 401 generates data for receiving;
First generation module 402, for extracting the display data in the generation data, and according to the display data, Video to be processed is generated, includes visualized data and audio data in the display data;
Second generation module 403 generates for being based on the video to be processed and preset video frame and shows view Frequently.
In the application, is received in browser without a head and extract the display data generated in data, and according to display data In visualized data and audio data generate video to be processed, then be based on video to be processed and preset video frame, it is raw At displaying video.It, can be by the generation data of user terminal uploads in browser without a head by the technical solution of application the application Middle generation shows video, and then when can solve user and uploading data information during giving lessons, due to need to Video data into Consuming computing resource caused by can just being uploaded after row coding and the drawbacks of network bandwidth.
In the another embodiment of the application, further includes: extraction module 404, sorting module 405, acquisition module 406, third generation module 407, in which:
Extraction module 404 generates visualized data in data for extracting, and visualized data is the visualization number that can be shown According to.
Sorting module 405, for described image data successively to be sorted according to pre-defined rule.
Acquisition module 406, for acquiring the image for presetting frame number in described image data every predetermined period.
Third generation module 407 generates image/video for the image based on the acquisition.
Wherein, sorting module, further includes:
Described image data are successively sorted according to the source of described image data;
And/or
Described image data are successively sorted sequentially in time.
In the another embodiment of the application, further includes: extraction module 404 is also used to:
Extraction module 404 is also used to extract the audio data in the generation data.
Third generation module 407 is also used to for the audio data being synthesized in described image video, generates described wait locate Manage video.
In the another embodiment of the application, the second generation module 403, further includes:
Second generation module 403 is also used to select corresponding video frame based on the video to be processed.
Second generation module 403 is also used to the video to be processed carrying out compression processing;
Second generation module 403 is also used to the Video Composition to be processed after the compression processing to the video frame In, it generates and shows video.
In the another embodiment of the application, further includes: the first receiving module 408, authentication module 409, second connects Receive module 410, comprising:
First receiving module 408 is requested for receiving the generation that the target terminal user is sent, in the generation request Authentication information comprising the target terminal user, the generation request is for generating the displaying video.
Authentication module 409, for being authenticated according to the authentication information to the target terminal user.
Second receiving module 410, for receiving and generating data after the authentication is passed to the target terminal user.
In the another embodiment of the application, extraction module 404, third generation module 407, further includes:
Extraction module 404 is also used to extract the document data in the generation data.
Third generation module 407 is also used to for the document data being synthesized in described image video, generates described wait locate Manage video.
After the method for the generation video for describing the application illustrative embodiments and the device of generation video, connect down Come, with reference to Fig. 5 to the application illustrative embodiments, for realizing each step documented in above method embodiment Electronic equipment is illustrated.The computer system/server 50 that Fig. 5 is shown is only an example, should not be implemented to the application The function and use scope of example bring any restrictions.
As shown in figure 5, computer system/server 50 is showed in the form of universal computing device.Computer system/service The component of device 50 can include but is not limited to: one or more processor or processing unit 501, system storage 502, even Connect the bus 503 of different system components (including system storage 502 and processing unit 501).
Computer system/server 50 typically comprises a variety of computer system readable media.These media, which can be, appoints What usable medium that can be accessed by computer system/server 50, including volatile and non-volatile media, it is moveable and Immovable medium.
System storage 502 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 5021 and/or cache memory 5022.Computer system/server 50 may further include it Its removable/nonremovable, volatile/non-volatile computer system storage medium.Only as an example, ROM 5023 can be with For reading and writing immovable, non-volatile magnetic media (not showing in Fig. 5, commonly referred to as " hard disk drive ").Although not existing It is shown in Fig. 5, disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") and right can be provided The CD drive of removable anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these feelings Under condition, each driver can be connected by one or more data media interfaces with bus 503.In system storage 502 It may include at least one program product, which has one group of (for example, at least one) program module, these program moulds Block is configured to perform the function of each embodiment of the application.
Program/utility 5025 with one group of (at least one) program module 5024, can store in such as system In memory 502, and such program module 5024 includes but is not limited to: operating system, one or more application program, its It may include the realization of network environment in its program module and program data, each of these examples or certain combination. Program module 5024 usually executes function and/or method in embodiments described herein.
Computer system/server 50 can also be with one or more external equipment 504 (such as keyboard, sensing equipment, displays Device etc.) communication.This communication can be carried out by input/output (I/O) interface 505.Also, computer system/server 50 Can also by network adapter 505 and one or more network (such as local area network (LAN), wide area network (WAN) and/or Public network, such as internet) communication.As shown in figure 5, network adapter 505 passes through bus 503 and computer system/service Other modules (such as processing unit 501) of device 50 communicate.It should be understood that department of computer science can be combined although being not shown in Fig. 5 System/server 50 uses other hardware and/or software module.
The computer program that processing unit 501 is stored in system storage 502 by operation, thereby executing various functions Using and data processing, for example, execute for realizing each step in above method embodiment instruction;Specifically, place Reason unit 501 can execute the computer program stored in system storage 502, and the computer program is performed, following Instruction is run:
It receives and generates data;
The display data in the generation data is extracted, and according to the display data, generates video to be processed, the exhibition Registration includes visualized data and audio data in;
Based on the video to be processed and preset video frame, generates and show video.
Certainly, also included other of electronic equipment instruct the content as described in the device side of equipment side method side, herein no longer It repeats one by one.
In the application, the file to be stored for carrying first identifier that target terminal is sent is received by transfer server, and After the processing that the file to be stored is carried out to predetermined manner, file to be uploaded is generated.Further according to first identifier, by generation to be uploaded Video to cloud server.It, can be by the upload file reception of each user terminal by the technical solution of application the application And it is uploaded to corresponding cloud server respectively, and then can solve user when uploading data information, due to being taken to each cloud Business device is unfamiliar with caused time-consuming problem using rule.
The embodiment of the present application also provides a kind of computer readable storage medium, for storing computer-readable instruction, Described instruction is performed the operation for executing the method for the generation video for including in above-mentioned Fig. 1-Fig. 3.The generation video Method description content, this is no longer going to repeat them.
The above is only the part optional embodiment of the application, be not intended to limit the scope of the patents of the application, it is all Under the design of the application, using equivalent structure transformation made by present specification and accompanying drawing content, or directly/be used in indirectly Other related technical areas are included in the scope of patent protection of the application.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with its The difference of its embodiment, the same or similar part cross-reference between each embodiment.For system embodiment For, since it is substantially corresponding with embodiment of the method, so being described relatively simple, referring to the portion of embodiment of the method in place of correlation It defends oneself bright.
The present processes and device may be achieved in many ways.For example, can by software, hardware, firmware or Software, hardware, firmware any combination realize the present processes and device.The said sequence of the step of for the method Merely to be illustrated, the step of the present processes, is not limited to sequence described in detail above, special unless otherwise It does not mentionlet alone bright.In addition, in some embodiments, also the application can be embodied as to record program in the recording medium, these programs Including for realizing according to the machine readable instructions of the present processes.Thus, the application also covers storage for executing basis The recording medium of the program of the present processes.
The description of the present application is given for the purpose of illustration and description, and is not exhaustively or by the application It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches Embodiment is stated and be the principle and practical application in order to more preferably illustrate the application, and those skilled in the art is enable to manage Solution the application is to design various embodiments suitable for specific applications with various modifications.

Claims (11)

1. a kind of method for generating video, which is characterized in that the method is applied to browser Headless browser without a head In, comprising:
It receives and generates data;
The display data in the generation data is extracted, and according to the display data, generates video to be processed, the displaying number Include visualized data and audio data in, includes hypertext markup language html data, picture in the visualized data Data, cascading style sheets CSS data, literal translation formula script java script data;
Based on the video to be processed and preset video frame, generates and show video.
2. the method as described in claim 1, which is characterized in that after the reception generates data, further includes:
Visualized data described in the generation data is extracted, the visualized data is the visualized data that can be shown;
Based on the visualized data, image data is generated.
3. method according to claim 2, which is characterized in that be based on the visualized data described, generate image data Later, further includes:
Described image data are successively sorted according to pre-defined rule;
Every predetermined period, the image that frame number is preset in described image data is acquired;
Based on the image of the acquisition, image/video is generated.
4. method as claimed in claim 3, which is characterized in that in the image based on the acquisition, generate image/video Later, further includes:
Extract the audio data in the generation data;
The audio data is synthesized in described image video, the video to be processed is generated.
5. method as claimed in claim 3, which is characterized in that described to carry out described image data successively according to pre-defined rule Sequence, comprising:
Described image data are successively sorted according to the source of described image data;
And/or
Described image data are successively sorted sequentially in time.
6. the method as described in claim 1, which is characterized in that described to be based on the video to be processed and preset video frame Frame generates and shows video, comprising:
Based on the video to be processed, corresponding video frame is selected;
The video to be processed is subjected to compression processing;
By the Video Composition to be processed after the compression processing into the video frame, generates and show video.
7. the method as described in claim 1, which is characterized in that before the reception generates data, further includes:
Receive the generation request that the target terminal user is sent, the mirror generated in request comprising the target terminal user Information is weighed, the generation request is for generating the displaying video;
The target terminal user is authenticated according to the authentication information;
After the authentication is passed to the target terminal user, receives and generate data.
8. such as the described in any item methods of claim 3-5, which is characterized in that after the reception generates data, further includes:
Extract the document data in the generation data;
The document data is synthesized in described image video, the video to be processed is generated.
9. a kind of device for generating video, which is characterized in that described device is applied to browser Headless browser without a head In, comprising:
Receiving module generates data for receiving;
First generation module is generated for extracting the display data in the generation data, and according to the display data wait locate Video is managed, includes visualized data and audio data in the display data;
Second generation module generates for being based on the video to be processed and preset video frame and shows video.
10. a kind of electronic equipment characterized by comprising
Memory, for storing executable instruction;And
It is any in claim 1-8 to complete to execute the executable instruction for communicating with the memory for processor The operation of the method for generating video.
11. a kind of computer readable storage medium, for storing computer-readable instruction, which is characterized in that described instruction It is performed perform claim and requires any operation for generating video in 1-8.
CN201811126108.XA 2018-09-26 2018-09-26 Method, device, electronic equipment and medium for generating video Active CN109151520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811126108.XA CN109151520B (en) 2018-09-26 2018-09-26 Method, device, electronic equipment and medium for generating video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811126108.XA CN109151520B (en) 2018-09-26 2018-09-26 Method, device, electronic equipment and medium for generating video

Publications (2)

Publication Number Publication Date
CN109151520A true CN109151520A (en) 2019-01-04
CN109151520B CN109151520B (en) 2021-09-07

Family

ID=64812785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811126108.XA Active CN109151520B (en) 2018-09-26 2018-09-26 Method, device, electronic equipment and medium for generating video

Country Status (1)

Country Link
CN (1) CN109151520B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640023A (en) * 2019-01-31 2019-04-16 北京字节跳动网络技术有限公司 A kind of video recording method, device, server and storage medium
CN113573102A (en) * 2021-08-18 2021-10-29 北京中网易企秀科技有限公司 Video generation method and device
CN113938619A (en) * 2021-10-28 2022-01-14 稿定(厦门)科技有限公司 Video synthesis method, system and storage device based on browser

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921612A (en) * 2005-08-26 2007-02-28 萧学文 Method and system for automatic video production
CN102801942A (en) * 2012-07-23 2012-11-28 北京小米科技有限责任公司 Method and device for recording video and generating GIF (Graphic Interchange Format) dynamic graph
CN105791950A (en) * 2014-12-24 2016-07-20 珠海金山办公软件有限公司 Power Point video recording method and device
CN106331749A (en) * 2016-08-31 2017-01-11 北京云图微动科技有限公司 Video request method and system
CN107786582A (en) * 2016-08-24 2018-03-09 腾讯科技(深圳)有限公司 A kind of online teaching methods, apparatus and system
CN108495174A (en) * 2018-04-09 2018-09-04 深圳格莱珉文化传播有限公司 A kind of H5 pages effect generates the method and system of video file

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921612A (en) * 2005-08-26 2007-02-28 萧学文 Method and system for automatic video production
CN102801942A (en) * 2012-07-23 2012-11-28 北京小米科技有限责任公司 Method and device for recording video and generating GIF (Graphic Interchange Format) dynamic graph
CN105791950A (en) * 2014-12-24 2016-07-20 珠海金山办公软件有限公司 Power Point video recording method and device
CN107786582A (en) * 2016-08-24 2018-03-09 腾讯科技(深圳)有限公司 A kind of online teaching methods, apparatus and system
CN106331749A (en) * 2016-08-31 2017-01-11 北京云图微动科技有限公司 Video request method and system
CN108495174A (en) * 2018-04-09 2018-09-04 深圳格莱珉文化传播有限公司 A kind of H5 pages effect generates the method and system of video file

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109640023A (en) * 2019-01-31 2019-04-16 北京字节跳动网络技术有限公司 A kind of video recording method, device, server and storage medium
CN109640023B (en) * 2019-01-31 2021-06-18 北京字节跳动网络技术有限公司 Video recording method, device, server and storage medium
CN113573102A (en) * 2021-08-18 2021-10-29 北京中网易企秀科技有限公司 Video generation method and device
CN113938619A (en) * 2021-10-28 2022-01-14 稿定(厦门)科技有限公司 Video synthesis method, system and storage device based on browser

Also Published As

Publication number Publication date
CN109151520B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US11145216B2 (en) Methods and systems for dynamically generating a training program
Mandaville Reimagining Islam in diaspora: The politics of mediated community
US20090162822A1 (en) Internet-based mobile learning system and method therefor
KR101587926B1 (en) Comment tagging system for streaming video and providing method thereof
CN109151520A (en) A kind of method, apparatus, electronic equipment and medium generating video
Nichols et al. Rethinking availability in multimodal composing: Frictions in digital design
US20150294582A1 (en) Information communication technology in education
Carter et al. Tools to support expository video capture and access
WO2023091388A1 (en) Lesson creator capability within on-line instructional system and tools
CN109257546A (en) A kind of image display method, device, electronic equipment and medium
Maidin et al. Design campus map using OpenStreetMap digital software
KR101521330B1 (en) Method of managing books in electronic form by mapping onto knowlege hierarchy
Balaouras et al. Towards an online video platform for MOOCs
Glushkova et al. A Hybrid Content-learning Management System for Education and Access to Intangible Cultural Heritage.
KR20120078117A (en) Workbook provision system via network and method thereof
Mertens et al. Interactive content overviews for lecture recordings
KR20140036483A (en) Method of dynamically summoning learning tool in learning management system
Klug et al. Designing a Web Application for Simple and Collaborative Video Annotation That Meets Teaching Routines and Educational Requirements
Brotherton et al. EClass
Rich et al. Choosing the Right Video Annotation Tool for the Job: A Conceptual Framework
Rachel et al. Being ‘purposeful’in today's digital world
Sawyer New/small news in the English curriculum
Records SIVA Suite: An Open-Source Framework for Hypervideos
Johnson A user study of an educational video system
Hamouda Eyewitness: Platform Design for Visualizing and Synthesizing Media Video Content of Political Significance

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