CN105592319A - Server screenshot method and server - Google Patents

Server screenshot method and server Download PDF

Info

Publication number
CN105592319A
CN105592319A CN201410572694.6A CN201410572694A CN105592319A CN 105592319 A CN105592319 A CN 105592319A CN 201410572694 A CN201410572694 A CN 201410572694A CN 105592319 A CN105592319 A CN 105592319A
Authority
CN
China
Prior art keywords
stream file
server
catalogue
sectional drawing
video
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
CN201410572694.6A
Other languages
Chinese (zh)
Other versions
CN105592319B (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.)
SHANGHAI TVMINING CULTURE MEDIA Co Ltd
Original Assignee
SHANGHAI TVMINING CULTURE MEDIA 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 SHANGHAI TVMINING CULTURE MEDIA Co Ltd filed Critical SHANGHAI TVMINING CULTURE MEDIA Co Ltd
Priority to CN201410572694.6A priority Critical patent/CN105592319B/en
Publication of CN105592319A publication Critical patent/CN105592319A/en
Application granted granted Critical
Publication of CN105592319B publication Critical patent/CN105592319B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a server screenshot method and a server. The method comprises steps: the server downloads a transport stream file from a media live stream and the transport stream file is stored in a transport stream file directory; the server scans all transport stream files in the transport stream file directory and calls a screenshot module; and the server stores a first frame of video in the stream file into a picture format and stores the picture format in a directory for a channel corresponding to the channel. By adopting the server screenshot method and the server disclosed by the invention, the technical problems that the server in the prior art is only responsible for screenshot of one channel, the screenshot efficiency is low, and the use experience of a user is thus influenced can be solved.

Description

A kind of server screenshot method and server
Technical field
The present invention relates to areas of information technology, particularly a kind of server screenshot method and server.
Background technology
Along with continuous progress and a large amount of of internet of information technology popularize, the equipment such as computer, smart mobile phone and mutualThe application of networking has become a part for people's daily life, has brought a lot of work also to people's lifeWith facility in life. For example wait smart machine people to hold a meeting by calculating, can chat with kith and kinMy god, can use computer graphics, share information etc. In extensively should of the smart machines such as computer and internetWith in, between user, often carry out information exchange by chat, or user often appreciates entertainment, thereforeSectional drawing is a very general user's request. Operating user by sectional drawing can will feel in view screen interfaceThe image section of interest intercepts. In prior art, can only for sectional drawing process of server of sectional drawingServe a channel, can only be responsible for the sectional drawing of a channel, cause sectional drawing efficiency low, and affect user'sExperience.
Summary of the invention
In view of the above problems, the invention provides a kind of improve server performance be intended to solve existing server onlyThe sectional drawing that can be responsible for a channel, causes sectional drawing efficiency low, and affects the technical problem of user's experience.
Technical scheme provided by the invention comprises:
A kind of server screenshot method, comprising: server is downloaded and transmitted stream file from medium living broadcast stream, andTransmission stream file is left in and transmitted in stream file catalogue; Described in server scanning transmission stream file catalogueTransmit stream file, call sectional drawing module; Described server saves as the first frame video in described stream filePicture format is also stored in the catalogue under the channel that described video is corresponding. This sectional drawing main program comprises the first sonProgram, the first subprogram scans described stream file catalogue and reads described transmission stream file, calls sectional drawing module,The first frame video in stream file is saved as to picture format and is stored under the channel that described video is correspondingIn catalogue, this sectional drawing main program also comprises the second subprogram, and the second subprogram is by video pair described in cyclic checkAll sectional drawings of the catalogue under the channel of answering, delete the picture generating before this cycle. Above-mentioned server passes throughHypertext preprocessor interface module receives user's request, according to the parameter of user's request, corresponding at videoIn catalogue under channel, find the picture of corresponding channel to send to user.
A kind of server, memory module, for downloading and transmit stream file from medium living broadcast stream, and will transmit stream literary compositionPart leaves in and transmits in stream file catalogue; Sectional drawing main program module, for scanning transmission stream file, calls and cutsModule; The first frame video in stream file is saved as to picture format and is stored in the frequency that described video is correspondingIn catalogue under road, this sectional drawing program primary module also comprises the first subprogram sectional drawing module, described in scanningStream file catalogue also reads described transmission stream file, calls sectional drawing module, by the first frame video in stream fileSave as picture format and be stored in the catalogue under the channel that described video is corresponding; The second subprogram sectional drawing mouldPiece, for all sectional drawings of the catalogue by under channel corresponding to video described in cyclic check, will generate before the cyclePicture delete, this server also comprises hypertext preprocessor interface module, for receiving user's sectional drawingRequest, and sectional drawing is sent to user.
The invention provides server and collect the method for the sectional drawing request of multiple channel sectional drawings quick relative users, canCan only be responsible for the sectional drawing of a channel to solve existing server, cause sectional drawing efficiency low, and affect userThe technical problem of experience.
Other features and advantages of the present invention will be set forth in the following description, and, partly from descriptionBecome apparent, or understand by implementing the present invention. Object of the present invention and other advantages can be passed throughIn write description, claims and accompanying drawing, specifically noted structure realizes and obtains.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Brief description of the drawings
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for description, with thisBright embodiment mono-is used from explanation the present invention, is not construed as limiting the invention. In the accompanying drawings:
Fig. 1 is a kind of server screenshot method flow chart in the embodiment of the present invention one.
Fig. 2 is the structural representation of a kind of server in the embodiment of the present invention two.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that described hereinPreferred embodiment only, for description and interpretation the present invention, is not intended to limit the present invention.
Embodiment mono-, a kind of server screenshot method
As shown in Figure 1, embodiment mono-comprises:
Step 101, server is downloaded and is transmitted stream file from medium living broadcast stream, and by described transmission stream fileLeave in and transmit in stream file catalogue; Particularly, server flows the downloading process of (TS) file according to transmission,From the medium living broadcast stream of corresponding channel, as m3u8 live TV stream, the each TS file of middle download leaves stream file inIn storing directory, for example/opt/ts_file/ catalogue.
Step 102, described server scans the described transmission stream file in described transmission stream file catalogue, adjustsUse sectional drawing module;
Particularly, this server is by sectional drawing main program, and for example vcps sectional drawing main program, scans and transmit stream file,Call sectional drawing module.
Step 103, described server saves as the first frame video in described stream file picture format and depositsBe put in the catalogue under the channel that described video is corresponding;
Preferably, this sectional drawing main program comprises the first subprogram, and this first subprogram scanning transmits stream file orderTransmission file under record, for example, ts file under/opt/ts_file catalogue, this first subprogram is readingTo ts file call ffmpeg sectional drawing module, the first frame video is saved as to jpg picture and is stored inIn catalogue under/opt/vcps/ corresponding channel. Preferably, this first subprogram can be deleted this TS fileFall, then continue circulation and read next TS file.
Above-mentioned sectional drawing main program can further include the second subprogram, and this second subprogram is by cyclic checkAll sectional drawings of the catalogue under channel corresponding to video, delete the picture generating before the cycle. For example the second sonProgram can execution per minute once, remove the sectional drawing of all channels under inspection/opt/vcps/ catalogue, this inspectionThe cycle of looking into can be 1 minute, the second subprogram before 1 minute generate picture, as the picture of JPG form,Delete, make only to retain on server the picture within a minute.
Preferably, this server can also further pass through hypertext preprocessor (php) interface module, receives and usesFamily request, according to the parameter of user request, finds up-to-date one of corresponding channel under go/opt/vcps/ cataloguePictures is returned to user.
Comprehensive above step, the embodiment of the present invention one provides server to collect multiple channel sectional drawings application mutually fastThe method of the sectional drawing request at family, can solve existing server and can only be responsible for the sectional drawing of a channel, causesSectional drawing efficiency is low, and affects the technical problem of user's experience.
Embodiment bis-, a kind of server, as shown in Figure 2, comprising:
Memory module 21, for downloading and transmit stream file from medium living broadcast stream, and leaves transmission stream file in biographySend in stream file catalogue;
Sectional drawing main program module 22, for scanning described transmission stream file, calls sectional drawing module,The first frame video in stream file is saved as to picture format and is stored under the channel that described video is correspondingIn catalogue.
This sectional drawing program primary module also can further comprise:
The first subprogram sectional drawing module 221, for scanning stream file catalogue and reading described transmission stream file, callsSectional drawing module, saves as picture format and is stored in described video corresponding by the first frame video in stream fileIn catalogue under channel;
The second subprogram sectional drawing module 222, for the institute of the catalogue by under channel corresponding to video described in cyclic checkThere is sectional drawing, the picture generating before the cycle is deleted.
Above-mentioned server also wraps and can draw together: hypertext preprocessor interface module 23, and for the ginseng of asking according to userNumber, finds the picture of corresponding channel to send to user in the catalogue under channel corresponding to video. Preferably,This server can be applied in following concrete scene:
Server is the media file live TV stream from corresponding channel by memory module 21, as m3u8 live TV stream,In each the leave in/opt/ts_file/ of TS file of middle download catalogue; Sectional drawing main program module 22, for sweepingRetouch TS file, call sectional drawing module, the first frame video in TS file is saved as to picture format and depositsIn the catalogue under channel corresponding to described video. In this sectional drawing main program module Program, there are two subprogramsModule: the ts file under the first subroutine module 221 meeting scanning/opt/ts_file catalogues, according to readingTo ts file call ffmpeg sectional drawing module and the first frame video is saved as to jpg picture be stored inIn catalogue under/opt/vcps/ corresponding channel, then this TS file is deleted, continue circulation and read secondIndividual file: the second subroutine module can be by the cycle, for example per minute, goes under inspection/opt/vcps/ catalogueThe sectional drawing of all channels, before the cycle, the jpg picture for example generating before 1 minute is deleted, and makes serviceOn device, only retain the picture within a minute. This server also can further comprise php interface module, this phpInterface module is used for receiving user's request, according to the parameter of user's request, under go/opt/vcps/ catalogue, looks forA up-to-date pictures to corresponding channel is returned to user.
To sum up, the embodiment of the present invention two provides server to collect multiple channel sectional drawings quick relative usersThe device of sectional drawing request, can solve existing server and can only be responsible for the sectional drawing of a channel, causes sectional drawingEfficiency is low, and affects the technical problem of user's experience.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or meterCalculation machine program product. Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or knotClose the form of the embodiment of software and hardware aspect. And the present invention can adopt at one or more wherein bagsThe computer-usable storage medium that contains computer usable program code (include but not limited to magnetic disc store andOptical memory etc.) form of the upper computer program of implementing.
The present invention is that reference is according to the method for the embodiment of the present invention, equipment (system) and computer program productThe flow chart of product and/or block diagram are described. Should understand can be by computer program instructions realization flow figure and/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/Or the combination of square frame. Can provide these computer program instructions to all-purpose computer, special-purpose computer, embeddingThe processor of formula processor or other programmable data processing device, to produce a machine, makes by calculatingThe instruction that the processor of machine or other programmable data processing device is carried out produces for realizing at flow chart oneThe device of the function of specifying in square frame of individual flow process or multiple flow process and/or block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or other programmable data processing are establishedIn the standby computer-readable memory with ad hoc fashion work, make to be stored in this computer-readable memoryInstruction produce and comprise the manufacture of command device, this command device is realized in flow process or multiple of flow chartThe function of specifying in square frame of flow process and/or block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makeMust on computer or other programmable devices, carry out sequence of operations step to produce computer implemented placeReason, thus the instruction of carrying out on computer or other programmable devices is provided for realizing one of flow chartThe step of the function of specifying in square frame of flow process or multiple flow process and/or block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various changes and modification and not depart from this present inventionBright spirit and scope. Like this, if of the present invention these amendment and modification belong to the claims in the present invention andWithin the scope of its equivalent technologies, the present invention be also intended to comprise these change and modification interior.

Claims (10)

1. a server screenshot method, is characterized in that, comprising:
Server is downloaded and is transmitted stream file from medium living broadcast stream, and leaves described transmission stream file in transmissionIn stream file catalogue;
Described server scans the described transmission stream file in described transmission stream file catalogue, calls sectional drawing mouldPiece;
Described server the first frame video in described stream file is saved as to picture format and be stored in described inIn catalogue under channel corresponding to video.
2. method according to claim 1, is characterized in that, described server is by the main journey of sectional drawingOrder is called sectional drawing module.
3. method according to claim 2, is characterized in that, described sectional drawing main program comprises firstSubprogram, described the first subprogram scans described stream file catalogue and reads described transmission stream file, calls and cutsModule, saves as the first frame video in described stream file picture format and is stored in described video correspondenceChannel under catalogue in.
4. method according to claim 3, is characterized in that, described method also comprises:
Described the first subprogram is deleted follow-up the resuming studies of described transmission stream file and is got the next stream file that transmits.
5. method according to claim 2, is characterized in that, described sectional drawing main program also comprisesTwo subprograms, described the second subprogram is by all sections of the catalogue under channel corresponding to video described in cyclic checkFigure, deletes the picture generating before the described cycle.
6. method according to claim 5, is characterized in that, the described cycle comprises 1 minute.
7. according to the method described in claim 1-6, it is characterized in that, described server passes through hypertextPreprocessor interface module receives user's request, according to the parameter of user's request, at frequency corresponding to described videoIn catalogue under road, find the picture of corresponding channel to send to user.
8. a server, is characterized in that, comprising:
Memory module, for downloading and transmit stream file from medium living broadcast stream, and leaves described transmission stream file inTransmit in stream file catalogue;
Sectional drawing main program module, for scanning described transmission stream file, calls sectional drawing module,
The first frame video in described stream file is saved as to picture format and is stored in the channel that described video is correspondingUnder catalogue in.
9. server according to claim 8, is characterized in that, described sectional drawing program primary module bagDraw together:
The first subprogram sectional drawing module, for scanning described stream file catalogue and reading described transmission stream file, callsSectional drawing module, saves as the first frame video in described stream file picture format and is stored in described video pairIn catalogue under the channel of answering;
The second subprogram sectional drawing module, for all sections of the catalogue by under channel corresponding to video described in cyclic checkFigure, deletes the picture generating before the described cycle.
10. server according to claim 8, is characterized in that, described server also comprises: superText preprocessor interface module, for the parameter of asking according to user, under channel corresponding to described videoCatalogue in find the picture of corresponding channel to send to user.
CN201410572694.6A 2014-10-23 2014-10-23 A kind of server screenshot method and server Expired - Fee Related CN105592319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410572694.6A CN105592319B (en) 2014-10-23 2014-10-23 A kind of server screenshot method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410572694.6A CN105592319B (en) 2014-10-23 2014-10-23 A kind of server screenshot method and server

Publications (2)

Publication Number Publication Date
CN105592319A true CN105592319A (en) 2016-05-18
CN105592319B CN105592319B (en) 2019-07-26

Family

ID=55931489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410572694.6A Expired - Fee Related CN105592319B (en) 2014-10-23 2014-10-23 A kind of server screenshot method and server

Country Status (1)

Country Link
CN (1) CN105592319B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465845A (en) * 2017-08-02 2017-12-12 郑州云海信息技术有限公司 The methods, devices and systems of shared screen picture
CN109151545A (en) * 2018-08-24 2019-01-04 Tcl移动通信科技(宁波)有限公司 A kind of picture store method, mobile terminal and the storage medium at video playing interface
CN110971937A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Regulation and control method, storage medium, electronic device and system for screenshot service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079994A (en) * 2006-09-26 2007-11-28 腾讯科技(深圳)有限公司 A network TV monitoring system and method
US20120166952A1 (en) * 2010-12-23 2012-06-28 Albert Alexandrov Systems, methods, and devices for facilitating navigation of previously presented screen data in an ongoing online meeting
CN103024289A (en) * 2012-12-28 2013-04-03 天脉聚源(北京)传媒科技有限公司 Method and device for editing live stream on basis of M3U8 listing protocol
CN103369372A (en) * 2013-07-17 2013-10-23 广州珠江数码集团有限公司 Live television screen capturing system and live television screen capturing method
CN103634683A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Screen capturing method and device for intelligent televisions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079994A (en) * 2006-09-26 2007-11-28 腾讯科技(深圳)有限公司 A network TV monitoring system and method
US20120166952A1 (en) * 2010-12-23 2012-06-28 Albert Alexandrov Systems, methods, and devices for facilitating navigation of previously presented screen data in an ongoing online meeting
CN103024289A (en) * 2012-12-28 2013-04-03 天脉聚源(北京)传媒科技有限公司 Method and device for editing live stream on basis of M3U8 listing protocol
CN103369372A (en) * 2013-07-17 2013-10-23 广州珠江数码集团有限公司 Live television screen capturing system and live television screen capturing method
CN103634683A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Screen capturing method and device for intelligent televisions

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕云祥 等: "《现代电视系统》", 31 July 2017 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465845A (en) * 2017-08-02 2017-12-12 郑州云海信息技术有限公司 The methods, devices and systems of shared screen picture
CN109151545A (en) * 2018-08-24 2019-01-04 Tcl移动通信科技(宁波)有限公司 A kind of picture store method, mobile terminal and the storage medium at video playing interface
CN110971937A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Regulation and control method, storage medium, electronic device and system for screenshot service
CN110971937B (en) * 2018-09-30 2022-02-22 武汉斗鱼网络科技有限公司 Regulation and control method, storage medium, electronic device and system for screenshot service

Also Published As

Publication number Publication date
CN105592319B (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN108924464B (en) Video file generation method and device and storage medium
CN106028092B (en) A kind of sharing method and device of TV screenshotss
US20140006921A1 (en) Annotating digital documents using temporal and positional modes
CN106453572B (en) Method and system based on Cloud Server synchronous images
US20150324477A1 (en) Two-Dimensional Code Processing Method and Terminal
CN103780949B (en) A kind of multi-medium data method for recording
CN103246830B (en) The cipher processing method of client script and device and decipher processing method and device
CN104703041A (en) Video sharing method and device
WO2017157135A1 (en) Media information processing method, media information processing device and storage medium
CN103186908A (en) Terminal, server and interactive type processing method based on caricature
CN104703039A (en) Video information acquiring method and device
CN105592319A (en) Server screenshot method and server
CN104639985A (en) Multimedia playing control method and system
CN110719526A (en) Video playing method and device
JP5792326B2 (en) Reading service providing method, content providing server and system
CN103488380A (en) Method and device for displaying information
CN113938620B (en) Image processing method, mobile terminal and storage medium
US10659826B2 (en) Cloud streaming service system, image cloud streaming service method using application code, and device therefor
JP6213041B2 (en) Web page takeover system, web page takeover method, communication terminal, web page display method, and program
WO2015131700A1 (en) File storage method and device
CN104883581A (en) Method and system for remote video screenshot
JP5347440B2 (en) Moving image processing device
CN111080750A (en) Robot animation configuration method, device and system
CN110636374A (en) Method and device for searching information
KR102273142B1 (en) System for cloud streaming service, method of image cloud streaming service using application code conversion and apparatus for the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method of server screenshot and server

Effective date of registration: 20201224

Granted publication date: 20190726

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: SHANGHAI TIANMAI JUYUAN CULTURE MEDIA Co.,Ltd.

Registration number: Y2020990001505

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190726

Termination date: 20211023