CN108040286A - Video previewing method, device, electronic equipment and computer-readable recording medium - Google Patents

Video previewing method, device, electronic equipment and computer-readable recording medium Download PDF

Info

Publication number
CN108040286A
CN108040286A CN201711217864.9A CN201711217864A CN108040286A CN 108040286 A CN108040286 A CN 108040286A CN 201711217864 A CN201711217864 A CN 201711217864A CN 108040286 A CN108040286 A CN 108040286A
Authority
CN
China
Prior art keywords
video
preview
key frame
client
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711217864.9A
Other languages
Chinese (zh)
Inventor
吕鹏
左文平
郭晓龙
邹荣波
李超
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Panda Mutual Entertainment Technology Co Ltd
Original Assignee
Beijing Panda Mutual Entertainment 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 Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201711217864.9A priority Critical patent/CN108040286A/en
Publication of CN108040286A publication Critical patent/CN108040286A/en
Pending legal-status Critical Current

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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • H04N21/440272Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA for performing aspect ratio conversion

Landscapes

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

Abstract

An embodiment of the present invention provides a kind of video previewing method, device, electronic equipment and computer-readable recording medium.The video previewing method treats preview video including acquisition;From treating in preview video, the video of at least one section duration in preset time period is intercepted;Key frame in the intercepted video of extraction;Key frame is compressed;Key frame after output squeezing.The embodiment of the present invention can make the user of the first client review the video of one section of live mistake, i.e., by taking the technical solution:User, without watching the complete video of the section, is realized the preview of video, improves the speed that user checks video content interested by content interested in this section of network direct broadcasting video of preview;Thus user experience is also improved.

Description

Video previewing method, device, electronic equipment and computer-readable recording medium
Technical field
The present invention relates to video technique field, more particularly to a kind of video previewing method, device, electronic equipment and calculating Machine readable storage medium storing program for executing.
Background technology
At present, internet video live broadcasting is on the basis of Internet technology, by network on different intercommunion platforms it is live Game, meeting, product introduction etc.;Since it has the advantages that intuitive is strong, interactive strong, become more and more popular.
In existing network direct broadcasting, for example, when user wants to check the content interested of one section of video, the user Need to review complete this section of video;Then, the video segment to be checked is found.
It can be seen from the above that the prior art exists when user needs viewing should to check the content interested of certain section of video Video caused by section complete video checks slow-footed defect.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of video previewing method, device, electronic equipment and computer-readable Storage medium, to improve the speed that user in network direct broadcasting checks video content interested.
To achieve these goals, first aspect, there is provided following technical scheme:
A kind of video previewing method, applied to the first client in network direct broadcasting;The described method includes:
Preview video is treated in acquisition;
Treated from described in preview video, intercept the video of at least one section duration in preset time period;
Key frame in the intercepted video of extraction;
The key frame is compressed;
According to predetermined frame per second, the key frame after output squeezing.
Optionally, described the step of being compressed to the key frame, the described method includes:
According to the size of predetermined preview form and the resolution ratio for treating preview video, the length and width of the key frame are adjusted Than.
Optionally, before the step of preview video is treated in the acquisition, the method further includes:
Transfer video flowing;
According to predetermined code check, transcoding is carried out to the video flowing;
Video flowing after transcoding is decoded, obtains described treating preview video.
Optionally, first client is connected with the second client communication;Key frame after the output squeezing After step, the method further includes:
The key frame exported is sent to second client.
To achieve these goals, second aspect, additionally provides following technical scheme:
A kind of video preview device, applied to the first client in network direct broadcasting;Described device includes:
Acquisition module, preview video is treated for obtaining;
Interception module, for being treated from described in preview video, intercepts the video of at least one section duration in preset time period;
Extraction module, for extracting the key frame in intercepted video;
Compression module, for being compressed to the key frame;
Output module, for according to predetermined frame per second, the key frame after output squeezing.
Optionally, the compression module includes:
Adjustment unit, for the size according to predetermined preview form and the resolution ratio for treating preview video, adjusts institute State the aspect ratio of key frame.
Optionally, described device further includes:
Module is transferred, for transferring video flowing;
Transcoding module, for according to predetermined code check, transcoding to be carried out to the video flowing;
Decoder module, for decoding the video flowing after transcoding, obtains described treating preview video.
Optionally, first client is connected with the second client communication;Described device further includes:
Sending module, for sending the key frame exported to second client.
To achieve these goals, the third aspect, additionally provides following technical scheme:
A kind of electronic equipment, it includes processor, communication interface, memory and communication bus, wherein, the processor, The communication interface and the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor, during for performing the program stored on memory, realizes the method and step described in first aspect.
To achieve these goals, fourth aspect, additionally provides following technical scheme:
A kind of computer-readable recording medium, the computer-readable recording medium memory contains computer program, described The method and step described in first aspect is realized when computer program is executed by processor.
The embodiment of the present invention provides a kind of video previewing method, device, electronic equipment and computer-readable recording medium.Should Video previewing method treats preview video including acquisition;From treating in preview video, at least one section of duration is intercepted in preset time period Video;Key frame in the intercepted video of extraction;Key frame is compressed;Key frame after output squeezing.It is of the invention real Example is applied by taking the technical solution, the user of the first client can be made to review the video of one section of live mistake, i.e.,:User passes through Content interested realizes the preview of video without watching the complete video of the section in this section of network direct broadcasting video of preview, Improve the speed that user checks video content interested;Which thereby enhance user experience.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being emerged from by implementing the present invention.The purpose of the present invention and other advantages can by specification, Specifically noted structure is realized and obtained in claims and attached drawing.
Certainly, implement any of the products of the present invention or method it is not absolutely required to reach all the above excellent at the same time Point.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the schematic diagram according to the network direct broadcasting application environment of the embodiment of the present invention;
Fig. 2 is the flow diagram according to the video previewing method of the embodiment of the present invention;
Fig. 3 is the flow diagram according to the video previewing method of another embodiment of the present invention;
Fig. 4 is the structure diagram according to the video preview device of the embodiment of the present invention;
Fig. 5 is the structure diagram according to the video preview device of another embodiment of the present invention;
Fig. 6 is the structure diagram according to the electronic equipment of the embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment, belongs to the scope of protection of the invention.
Herein, video can be the multimedia including at least video, it is aided with audio, word etc. based on video, That is, it includes but not limited to the forms such as pure video, pure audio, video and audio, video and audio and word.
Key frame refers to that two field picture residing for the key operations in object of which movement or change.
The application environment of the embodiment of the present invention is described in detail with reference to Fig. 1.
As shown in Figure 1, the application environment includes network main broadcaster end 11, communication link 12, high in the clouds 13 and client 14.Its In, network main broadcaster end 11 is using RTMP (Real Time Messaging Protocol, real-time messages transport protocol), by logical Letter link 12 is communicated to connect with high in the clouds 13;Client 14 is drawn from high in the clouds to flow, and obtains Internet video.
Network main broadcaster end 11 includes image capture device and RTMP encoders.Network main broadcaster end 11 can include but unlimited In smart mobile phone, tablet computer, computer, wearable device etc..Image capture device includes but not limited to video camera, camera Deng.Network main broadcaster end 11 is used for by the video stream pushing that image capture device obtains to high in the clouds 13, by live content Push to high in the clouds.
High in the clouds 13 includes streaming media server, signaling scheduling server and mixed flow server etc..High in the clouds 13 is according to resolution ratio With bandwidth required during code check setting internet video live broadcasting.For example, it is 1000kbps that if resolution ratio, which is 1280 ╳ 720, code check, Then bandwidth at least needs 1.2Mbps.
Client 14 obtains live Internet video by way of drawing and flowing from high in the clouds.The client 14 includes but not limited to Smart mobile phone, tablet computer, computer, personal digital assistant, wearable device, virtual reality device etc..
The network direct broadcasting process bag carried out between network main broadcaster end 11, communication link 12, high in the clouds 13 and client 14 Include collection, pre-process (for example, U.S. face, filter, watermark etc.), coding, encapsulation, plug-flow, transcoding, distribution, drawing stream, decoding, broadcasting Etc. several stages.Wherein, network main broadcaster end 11 gathers video flowing by camera and microphone, then flows into the video of collection After row pretreatment, coding, encapsulation, for example, by RTMP agreements according to plug-flow address by the video flowing plug-flow after encapsulation to flowing matchmaker Body server is distributed;Video flowing is drawn and flow to local cache by client 14, is then decoded, played.It is straight in the network During broadcasting, in order to improve the speed that user checks video content interested, the embodiment of the present invention provides a kind of video preview side Method.This method is applied to the first client in network direct broadcasting.As shown in Fig. 2, this method comprises the following steps S210 is to step S250.Wherein:
S210:Preview video is treated in acquisition.
, can also be from via from caching for example, this step can be obtained from the caching of the first client treats preview video In be transferred in predetermined memory obtain treat preview video.
This step can send preview to first client and refer to during user operates the first client Performed when order.Wherein, which includes preview initial time and preview finish time.The preview initial time and should What preview finish time can be fixed the moment or be specified by user, this is not limited by the present invention.The preview refers to The modes such as order can be slided by touch, finger, clicked on, button triggers realize that the present invention does not limit specific triggering mode It is fixed.In addition, during actual network direct broadcasting, in order to avoid preview video is disturbed just in live content, the instruction for previewing It can also include mute command, so that the preview video of follow-up play is mute, so that it is straight to avoid preview video from interfering with The content broadcast.
In certain embodiments, as shown in figure 3, before the step of preview video is treated in acquisition, the video previewing method is also Include the following steps S310 to step S330.Wherein:
S310:Transfer video flowing.
Wherein, video flowing draws from high in the clouds for the first client and flow to local caching.Wherein, the first client can pass through RTMP agreements, a kind of HTTP-FLV (Hyper Text Transfer Protocol-Flash Video, stream media format) associations (Http Live Streaming, one kind are based on HTTP (Hyper Text Transfer Protocol, hypertext by view or HLS Transport protocol) Streaming Media real-time transport protocol) etc., from away from its nearest CDN (content distributing network) by video flowing draw flow to In local caching.
This step can transfer video flowing from the caching of the first client.
S320:According to predetermined code check, transcoding is carried out to video flowing.
Wherein, when code check refers to data transfer, the unit interval interior data bits transmitted.In general, in certain resolution In the case of rate, code check is bigger, then for video compress than smaller, the quality of video pictures is also better.Above-mentioned predetermined code check can To be cbr (constant bit rate) or the code check depending on actual conditions.
Above-mentioned transcoding can be realized by the cutting to video flowing.
For example, exemplified by drawing stream by RTMP agreements, the video flowing of FLV forms is decapsulated, obtains H264 codings The video data of H264 coded formats, then, is converted to the video data of M3U8 forms by the video data of form, and according to pre- Fixed code check forms the video flowing after transcoding.Wherein, the video data of M3U8 forms refers to UTF-8 forms (Unicode System Transformation Format, uniform character encoding standard system format transformation) M3U files.M3U texts Part is the file of recording indexes.The video data of M3U8 forms includes multiple TS data files;Wherein, each TS data files There is a unique sequence number of fixation.The sequence number can be with one section of video of unique mark.
In practical applications, each terminal as the first client, for example, IOS (iPhone Operating System, Mobile phone operating system) terminal, android terminal etc. have differences in terms of the configurations such as network bandwidth, screen resolution.At this time, if Distributed with fixed code check to terminal in high in the clouds;What is then played in terminal is the video of the cbr (constant bit rate), in network bandwidth, screen point In the case that resolution meets network direct broadcasting requirement, terminal can not select to play out the clearer code check of video, so that User, which can not obtain, preferably plays experience., whereas if network quality is bad, for example, network jitter, then terminal can not with than The current low code check of code check plays out, so that video cardton can be caused.For this reason, this step can also carry out multi-code to video flowing The adaptive transcoding of rate, to adapt to different configuration of terminal.
S330:Video flowing after transcoding is decoded, obtains treating preview video.
Wherein, decoding includes hardware decoding (referred to as hard solution) and software decoding (referred to as soft solution).Wherein, hard solution is by the first visitor Call graphics processor or be integrated with system-on-chip of graphics processor etc. to decode in family end;Soft solution is by the first client call Reason device is (for example, central processing unit, being integrated with the system-on-chip of central processing unit, being integrated with central processing unit and graphics processor System-on-chip etc.) decode.By taking hard solution as an example, it can be walked by stream process, frequency conversion, motion compensation and block elimination filtering etc. Suddenly the video flowing after transcoding is decoded, obtains treating preview video., can be according to the plug-flow stage specifically in decoding process Coding mode carries out corresponding decoding, for example, can be solved by a kind of H264 (method for video coding) of the first client Previewing video files are resolved to a kind of video data of yuv format (colour coding method) by code device, then, then by preview video The video data of the yuv format is plotted on the screen of the first client by streaming player, obtains treating preview video.
In practical applications, hard solution or soft solution can be taken according to the difference of the configuration of the first client, if for example, The operating system of first client is IOS, then can take hard solution;And if the operating system of the first client operates for Android System, then can take soft solution.
S220:From treating in preview video, the video of at least one section duration in preset time period is intercepted.
Wherein, preset time period can be determined by the content that user crosses according to network direct broadcasting.For example, user broadcast to upright and outspoken Content it is interested, then it can determine initial time and the finish time of preset time period according to current reproduction time.In advance If the period is such as can be 60 seconds, 100 seconds.A length of playing duration for treating preview video at one section, for example, it can be 15 Second, 30 seconds etc..
Above-mentioned interception way includes but not limited to:(1) by the video of at least one section duration in preset time period from treating preview Extracted in video;(2) it is chronologically-based in preview video is treated, replicate at least one section of duration in preset time period Video.
S230:Key frame in the intercepted video of extraction.
Wherein, extracting method include but not limited to the method based on sampling, the method based on shot boundary, the frame method of average, The histogram method of average, based drive analytic approach method, method based on cluster etc..By taking the method based on cluster as an example, extraction Step can specifically include:The distinction of interframe histogram is extracted, the feature extracted is clustered, chooses key Frame.
In practical applications, due to the configuration of different the first clients (for example, smart mobile phone, personal digital assistant etc.) Difference, thus, causes the quality for the preview video that different configuration of first client can play also different.For example, for The first higher client is put, the video frame number that the video of one section of duration is included can be more;If on the contrary, the first client The configuration at end is relatively low, and the video frame number that the video of duration that it can be played, same is included is relatively fewer.So practical application It is middle to need to treat that preview video is further processed to what is obtained according to the configuration of the first client, reach video smooth playing Purpose, with improve user's preview experience.
Specifically, the first client can be deleted positioned at the successive video frames for treating preview video front end or rear end, for example, The video frame for being 1-10 for numbering, can delete the video frame numbered the video frame for being 1-4 or delete numbering 6-10;But It is that, in order not to influence the experience of the video preview of user, the first client can select relatively scattered and discontinuous in this section of video Video frame is deleted;Since preview video is the continuous broadcasting of video frame, so, delete relatively scattered and discontinuous video frame Preview influence on user is smaller, for example, the video frame that above-mentioned numbering is 2,4,7,9 can be deleted.
Pass through extraction of this step to key frame, it is possible to reduce existing substantial amounts of redundancy between video frame, can Extract the information that one section of video flowing is included more condensedly, thus be conducive to it is quick, comprehensively understand more video contents.
S240:Key frame is compressed.
In certain embodiments, step S240 is specifically included:
According to the size of predetermined preview form and the resolution ratio for treating preview video, the aspect ratio of key frame is adjusted.
Wherein, resolution ratio is, for example, 360P, 540P, 720P etc..Wherein, P represents progressive scan.
The Aspect Ratio of above-mentioned key frame such as can be 3:4、16:9 etc..
If as an example, the size of predetermined preview form for 360 ╳ 640 (i.e. screen it is horizontal and vertical on it is effective Pixel number be 360 and 640), the resolution ratio for the treatment of preview video be 720P;Then the aspect ratio of key frame can be adjusted to 9:16.
S250:According to predetermined frame per second, the key frame after output squeezing.
Wherein, frame per second refers to frame number per second, i.e. fps (Frames per Second), it is understood that broadcast for video frame Put speed.High frame per second can obtain video more smooth, true to nature, in general, frame per second can take 25fps, 30fps etc..
Position of the key frame of above-mentioned output on the screen of the first client can be the edge of screen, the four of screen Angle Chu Deng positions, this is not limited by the present invention.
The compressed key frame exported can be showed in the form of form, and the shape of the form, style etc. can To be determined according to actual conditions.
As can be seen from the above description, the present embodiment can make the first client by using step S200 to step S250 User reviews the video of one section of live mistake, i.e.,:User by content interested in this section of network direct broadcasting video of preview without The complete video of the section is watched, realizes the preview of video, improves the speed that user checks video content interested;Thus carry High user experience.
In certain embodiments, the first client is connected with the second client communication;After step S250, above-mentioned video Method for previewing further includes:
The key frame exported is sent to the second client.
Wherein, the second client can be computer, smart mobile phone, virtual reality device, wearable device etc., but unlimited In this.
For example, the present embodiment is by sending exported key frame, the preview video that will can be obtained to the second client It is shared with the second client.
It should be noted that the step in above method embodiment can perform parallel, can also sequentially it perform, the present invention This is not construed as limiting.And above method embodiment can either hardware be also or the combination of software and hardware gives by software Realize.
In addition, the embodiment of the present invention also provides a kind of video preview device, applied to the first client in network direct broadcasting; The video preview device can be used for performing above-mentioned video previewing method embodiment.As shown in figure 4, the video preview device includes:
Acquisition module 41, preview video is treated for obtaining;
Interception module 42, for from treating in preview video, intercepting the video of at least one section duration in preset time period;
Extraction module 43, for extracting the key frame in intercepted video;
Compression module 44, for being compressed to key frame;
Output module 45, for according to predetermined frame per second, the key frame after output squeezing.
The present embodiment is by taking above-mentioned technical proposal, by extraction module 43 from interception module 42 is utilized from by acquisition mould In the video for treating to be truncated in preview video that block 41 obtains, key frame is extracted;Then, by compression module 44 to the pass Key frame is compressed;Finally, then by output module 45 export;So as to so that the user of the first client reviews one section of live mistake Video, i.e.,:User is complete without watching the section by video content interested in this section of network direct broadcasting video of preview Video, realizes the preview of video, improves the speed that user checks video content interested;Which thereby enhance user experience Degree.
In certain embodiments, above-mentioned compression module includes:
Adjustment unit, for the size according to predetermined preview form and the resolution ratio for treating preview video, adjusts key frame Aspect ratio.
In certain embodiments, as shown in figure 5, above-mentioned video preview device further includes:
Module 51 is transferred, for transferring video flowing;
Transcoding module 52, for according to predetermined code check, transcoding to be carried out to video flowing;
Decoder module 53, for decoding the video flowing after transcoding, obtains treating preview video.
In certain embodiments, the first client is connected with the second client communication;Above-mentioned video preview device further includes:
Sending module, for sending the key frame exported to the second client.
The related explanation of above-mentioned video preview device may refer to the related explanation in aforementioned video method for previewing embodiment, Details are not described herein.
Based on the technical concept identical with embodiment of the method, the embodiment of the present invention additionally provides a kind of electronic equipment, such as Fig. 6 It is shown, including processor 61, communication interface 62, memory 63 and communication bus 64, wherein, processor 61, communication interface 62, is deposited Reservoir 63 completes mutual communication by communication bus 64,
Memory 63, for storing computer program;
Processor 61, during for performing the program stored on memory 63, is realized described in above method embodiment Method and step.
The communication bus 64 that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just Only represented in expression, Fig. 6 with a thick line, it is not intended that an only bus or a type of bus.
Above-mentioned communication interface 62 is used for the communication between above-mentioned electronic equipment and other equipment.
Above-mentioned memory 63 can include random access memory (Random Access Memory, RAM), can also wrap Include nonvolatile memory (non-volatile memory, NVM), for example, at least a magnetic disk storage.Optionally, store Device can also be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor 61 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Ne twork Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), application-specific integrated circuit (Applica tion Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components.
Above-mentioned electronic equipment includes but not limited to smart mobile phone, computer, personal digital assistant, wearable device etc..
In the present embodiment, the program stored on memory 63 is performed by processor 61, user can be made to review one section The video of live mistake, i.e.,:User is complete without watching the section by content interested in this section of network direct broadcasting video of preview Video, realize the preview of video, improve the speed that user checks video content interested;Which thereby enhance user experience Degree.
Based on the technical concept identical with embodiment of the method, the embodiment of the present invention additionally provides a kind of computer-readable storage Medium.The computer-readable recording medium memory contains computer program, is realized when computer program is executed by processor above-mentioned Method and step described in embodiment of the method.
It will be understood by those skilled in the art that above computer program can include some instructions, so that computing device (for example, personal computer, server etc.) performs the method and step described in any of the above-described embodiment of the method.
Above computer readable storage medium storing program for executing can include but is not limited to random access memory (RAM), dynamic random is deposited Access to memory (DRAM), static RAM (SRAM), read-only storage (ROM), programmable read only memory (PROM), Erarable Programmable Read only Memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory (example Such as, NOR type flash memory or NAND-type flash memory), Content Addressable Memory (CAM), polymer memory is (for example, ferroelectric polymers Memory), phase transition storage, ovonic memory, silicon-oxide-nitride silicon-silica-silicon (Silicon- Oxide-Nitride-Oxide-Silicon, SONOS) memory, magnetic card or light-card, also or any other appropriate type Computer-readable recording medium.
In the present embodiment, when computer program is executed by processor, user can be made to review the video of the live mistake of fraction, I.e.:User, without watching the complete video of the section, is realized by content interested in this section of network direct broadcasting video of preview The preview of video, improves the speed that user checks video content interested;Which thereby enhance user experience.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there are other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described using relevant mode, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.Especially for video preprocessor Look at for device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to side The part explanation of method embodiment.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

  1. A kind of 1. video previewing method, applied to the first client in network direct broadcasting;It is characterized in that, the described method includes:
    Preview video is treated in acquisition;
    Treated from described in preview video, intercept the video of at least one section duration in preset time period;
    Key frame in the intercepted video of extraction;
    The key frame is compressed;
    According to predetermined frame per second, the key frame after output squeezing.
  2. 2. according to the method described in claim 1, it is characterized in that, described the step of being compressed to the key frame, described Method includes:
    According to the size of predetermined preview form and the resolution ratio for treating preview video, the aspect ratio of the key frame is adjusted.
  3. 3. according to the method described in claim 1, it is characterized in that, it is described acquisition treat preview video the step of before, it is described Method further includes:
    Transfer video flowing;
    According to predetermined code check, transcoding is carried out to the video flowing;
    Video flowing after transcoding is decoded, obtains described treating preview video.
  4. 4. according to the method described in claim 1, it is characterized in that, first client is connected with the second client communication; After the step of key frame after the output squeezing, the method further includes:
    The key frame exported is sent to second client.
  5. A kind of 5. video preview device, applied to the first client in network direct broadcasting;It is characterized in that, described device includes:
    Acquisition module, preview video is treated for obtaining;
    Interception module, for being treated from described in preview video, intercepts the video of at least one section duration in preset time period;
    Extraction module, for extracting the key frame in intercepted video;
    Compression module, for being compressed to the key frame;
    Output module, for according to predetermined frame per second, the key frame after output squeezing.
  6. 6. device according to claim 5, it is characterised in that the compression module includes:
    Adjustment unit, for the size according to predetermined preview form and the resolution ratio for treating preview video, adjusts the pass The aspect ratio of key frame.
  7. 7. device according to claim 5, it is characterised in that described device further includes:
    Module is transferred, for transferring video flowing;
    Transcoding module, for according to predetermined code check, transcoding to be carried out to the video flowing;
    Decoder module, for decoding the video flowing after transcoding, obtains described treating preview video.
  8. 8. device according to claim 5, it is characterised in that first client is connected with the second client communication; Described device further includes:
    Sending module, for sending the key frame exported to second client.
  9. 9. a kind of electronic equipment, it is characterised in that including processor, communication interface, memory and communication bus, wherein, it is described Processor, the communication interface and the memory complete mutual communication by the communication bus;
    The memory, for storing computer program;
    The processor, during for performing the program stored on memory, realizes any method steps of claim 1-4 Suddenly.
  10. 10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium memory contains computer Program, the computer program realize claim 1-4 any method and steps when being executed by processor.
CN201711217864.9A 2017-11-28 2017-11-28 Video previewing method, device, electronic equipment and computer-readable recording medium Pending CN108040286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711217864.9A CN108040286A (en) 2017-11-28 2017-11-28 Video previewing method, device, electronic equipment and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711217864.9A CN108040286A (en) 2017-11-28 2017-11-28 Video previewing method, device, electronic equipment and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN108040286A true CN108040286A (en) 2018-05-15

Family

ID=62093079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711217864.9A Pending CN108040286A (en) 2017-11-28 2017-11-28 Video previewing method, device, electronic equipment and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN108040286A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882055A (en) * 2018-06-28 2018-11-23 广州虎牙信息科技有限公司 The method and device of net cast method and system, synthetic video stream
CN108958852A (en) * 2018-07-16 2018-12-07 济南浪潮高新科技投资发展有限公司 A kind of system optimization method based on FPGA heterogeneous platform
CN109299326A (en) * 2018-10-31 2019-02-01 网易(杭州)网络有限公司 Video recommendation method and device, system, electronic equipment and storage medium
CN109547839A (en) * 2018-12-11 2019-03-29 网易(杭州)网络有限公司 The dynamic previewing processing method and processing device of live content, medium, electronic equipment
CN110062262A (en) * 2019-04-12 2019-07-26 北京字节跳动网络技术有限公司 Transcoding control method, device, electronic equipment and the storage medium of video data
CN110119757A (en) * 2019-03-28 2019-08-13 北京奇艺世纪科技有限公司 Model training method, video category detection method, device, electronic equipment and computer-readable medium
CN110300261A (en) * 2019-06-27 2019-10-01 努比亚技术有限公司 Video previewing method, wearable device and computer readable storage medium
CN111083416A (en) * 2018-10-19 2020-04-28 杭州海康威视数字技术股份有限公司 Data processing method and device, electronic equipment and readable storage medium
CN111314658A (en) * 2020-02-06 2020-06-19 浙江大华技术股份有限公司 Method, device and storage medium for pre-monitoring or back-displaying signal source
CN111416959A (en) * 2020-03-25 2020-07-14 福建升腾资讯有限公司 HID (high intensity discharge) -cabinet-based equipment camera bidirectional preview method, device and medium
CN111432248A (en) * 2020-03-30 2020-07-17 北京百度网讯科技有限公司 Quality monitoring method and device for live video stream
CN111770386A (en) * 2020-05-29 2020-10-13 维沃移动通信有限公司 Video processing method, video processing device and electronic equipment
CN112887749A (en) * 2021-02-01 2021-06-01 北京百度网讯科技有限公司 Method and device for providing live content preview, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080065507A1 (en) * 2006-09-12 2008-03-13 James Morrison Interactive digital media services
CN104540000A (en) * 2014-12-04 2015-04-22 广东欧珀移动通信有限公司 Method for generating dynamic thumbnail and terminal
CN106412677A (en) * 2016-10-28 2017-02-15 北京奇虎科技有限公司 Generation method and device of playback video file
CN106937129A (en) * 2015-12-31 2017-07-07 广州华多网络科技有限公司 A kind of live real-time clipping method of Online Video and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080065507A1 (en) * 2006-09-12 2008-03-13 James Morrison Interactive digital media services
CN104540000A (en) * 2014-12-04 2015-04-22 广东欧珀移动通信有限公司 Method for generating dynamic thumbnail and terminal
CN106937129A (en) * 2015-12-31 2017-07-07 广州华多网络科技有限公司 A kind of live real-time clipping method of Online Video and device
CN106412677A (en) * 2016-10-28 2017-02-15 北京奇虎科技有限公司 Generation method and device of playback video file

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882055A (en) * 2018-06-28 2018-11-23 广州虎牙信息科技有限公司 The method and device of net cast method and system, synthetic video stream
CN108958852A (en) * 2018-07-16 2018-12-07 济南浪潮高新科技投资发展有限公司 A kind of system optimization method based on FPGA heterogeneous platform
CN111083416B (en) * 2018-10-19 2021-04-27 杭州海康威视数字技术股份有限公司 Data processing method and device, electronic equipment and readable storage medium
CN111083416A (en) * 2018-10-19 2020-04-28 杭州海康威视数字技术股份有限公司 Data processing method and device, electronic equipment and readable storage medium
CN109299326A (en) * 2018-10-31 2019-02-01 网易(杭州)网络有限公司 Video recommendation method and device, system, electronic equipment and storage medium
CN109547839A (en) * 2018-12-11 2019-03-29 网易(杭州)网络有限公司 The dynamic previewing processing method and processing device of live content, medium, electronic equipment
CN110119757A (en) * 2019-03-28 2019-08-13 北京奇艺世纪科技有限公司 Model training method, video category detection method, device, electronic equipment and computer-readable medium
CN110119757B (en) * 2019-03-28 2021-05-25 北京奇艺世纪科技有限公司 Model training method, video category detection method, device, electronic equipment and computer readable medium
CN110062262A (en) * 2019-04-12 2019-07-26 北京字节跳动网络技术有限公司 Transcoding control method, device, electronic equipment and the storage medium of video data
CN110062262B (en) * 2019-04-12 2022-05-03 北京字节跳动网络技术有限公司 Transcoding control method and device for video data, electronic equipment and storage medium
CN110300261A (en) * 2019-06-27 2019-10-01 努比亚技术有限公司 Video previewing method, wearable device and computer readable storage medium
CN110300261B (en) * 2019-06-27 2021-11-12 努比亚技术有限公司 Video preview method, wearable device and computer-readable storage medium
CN111314658A (en) * 2020-02-06 2020-06-19 浙江大华技术股份有限公司 Method, device and storage medium for pre-monitoring or back-displaying signal source
CN111416959A (en) * 2020-03-25 2020-07-14 福建升腾资讯有限公司 HID (high intensity discharge) -cabinet-based equipment camera bidirectional preview method, device and medium
CN111416959B (en) * 2020-03-25 2022-05-17 福建升腾资讯有限公司 HID (high intensity discharge) -cabinet-based equipment camera bidirectional preview method, device and medium
CN111432248A (en) * 2020-03-30 2020-07-17 北京百度网讯科技有限公司 Quality monitoring method and device for live video stream
CN111770386A (en) * 2020-05-29 2020-10-13 维沃移动通信有限公司 Video processing method, video processing device and electronic equipment
CN112887749A (en) * 2021-02-01 2021-06-01 北京百度网讯科技有限公司 Method and device for providing live content preview, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN108040286A (en) Video previewing method, device, electronic equipment and computer-readable recording medium
US20240022796A1 (en) Systems, apparatus, and methods for rendering digital content streams of events, and synchronization of event information with rendered streams, via multiple internet channels
US10187668B2 (en) Method, system and server for live streaming audio-video file
US12028564B2 (en) Methods, systems, processors and computer code for providing video clips
US11557015B2 (en) System and method of data transfer in-band in video via optically encoded images
US9514783B2 (en) Video editing with connected high-resolution video camera and video cloud server
US10218990B2 (en) Video encoding for social media
US8752113B1 (en) Insertion of graphic overlays into a stream
CN103702139B (en) Video-on-demand system based on scalable coding under mobile environment
CN110636346B (en) Code rate self-adaptive switching method and device, electronic equipment and storage medium
WO2021147448A1 (en) Video data processing method and apparatus, and storage medium
US20140219634A1 (en) Video preview creation based on environment
CN110139113B (en) Transmission parameter distribution method and device for video resources
CN111416989A (en) Video live broadcast method and system and electronic equipment
US11438645B2 (en) Media information processing method, related device, and computer storage medium
CN111343504B (en) Video processing method, video processing device, computer equipment and storage medium
US11997324B2 (en) Systems and methods for dynamic optimization of content delivery in a wireless communication network
CN108040038A (en) The live method of network interdynamic, network main broadcaster end and user terminal
CN107948715A (en) Live network broadcast method and device
CN102447950A (en) Method and equipment for video play
CN106792111A (en) A kind of use FFMPEG interfaces record the method and device of webcast website's video
CN110266706A (en) A kind of playing method and device of multimedia streaming data
US20240314396A1 (en) Methods for generating videos, and related systems and servers
US10893331B1 (en) Subtitle processing for devices with limited memory
Grape Unlimited seeking during videotranscoding

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180515