CN102523513B - Implementation method for accurately obtaining images of original video file on basis of video player - Google Patents

Implementation method for accurately obtaining images of original video file on basis of video player Download PDF

Info

Publication number
CN102523513B
CN102523513B CN201110459662.1A CN201110459662A CN102523513B CN 102523513 B CN102523513 B CN 102523513B CN 201110459662 A CN201110459662 A CN 201110459662A CN 102523513 B CN102523513 B CN 102523513B
Authority
CN
China
Prior art keywords
video
image
former
video file
implementation method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110459662.1A
Other languages
Chinese (zh)
Other versions
CN102523513A (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.)
Chengdu Lead Science & Technology Co., Ltd.
Original Assignee
Chengdu Lead Science & Technology Co Ltd
Southwest Jiaotong University
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 Chengdu Lead Science & Technology Co Ltd, Southwest Jiaotong University filed Critical Chengdu Lead Science & Technology Co Ltd
Priority to CN201110459662.1A priority Critical patent/CN102523513B/en
Publication of CN102523513A publication Critical patent/CN102523513A/en
Application granted granted Critical
Publication of CN102523513B publication Critical patent/CN102523513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an implementation method for accurately obtaining images of an original video file on the basis of a video player. The method comprises the steps as follows: monitoring the video player through a client side in the whole process to obtain parameters of a video, plugging all the obtained parameters of the video into a function and executing the function, obtaining the video data range of the video played currently through calculation, and performing difference smoothing to video data to obtain the images of the original video file closest to the video data, namely the current frame images. According to the invention, the images of the original video file are obtained according to the video played by the video player, so that the obtained images are clear, and the effect is better.

Description

The implementation method of former video file image is accurately obtained based on video player
Technical field
The present invention relates to video player field, particularly a kind of implementation method accurately obtaining former video file image based on video player.
Background technology
Video player refers to the software can play with the video of digital signal form storage, and except minority wave file, most of video player carries decoder with reduction through compressed media file.Frame per second due to former video file is generally 24-30 frame/second, and video player carrys out displaying video with the frame per second of about 50-60 frame/second usually, all video players also want the algorithm of a whole set of inversion frequency built-in and buffering, after frequency inverted, the frame per second of video player is just different from the frame per second of former video file, add many new video images, this video image processes the image of former video file and obtains, will inevitably be different with the image of former video file, image effect declines.
The function of existing calculating video image can only calculate the video image of video player in addition, when carrying out the operations such as sectional drawing to this video image, the video image obtained, compared with the image of former video file, there will be effect and declines, the not fogging problem such as clear.
Summary of the invention
The object of the invention is, provides a kind of implementation method accurately obtaining former video file image based on video player, accurately can obtain the image of former video file, thus cause sectional drawing clear picture, and improve the effect of sectional drawing image.
For solving above technical problem, a kind of implementation method accurately obtaining former video file image based on video player, comprising:
Obtain the video data scope of current displaying video;
Difference smoothing processing is carried out to this video data;
Obtain the current frame image of former video file.
The frame per second of described video player displaying video is different from the frame per second of former video file.
Described difference determines according to the frame per second of video player displaying video and the frame per second of former video file.
The length of described video data scope is greater than the frame length of former video file image one frame.
Described current frame image is the former video file image closest to video data.
Described video player is when carrying out sectional drawing to a certain two field picture, corresponding former video file image is obtained by obtaining current playing video data scope and carrying out difference smoothing processing to this video data, to this image sectional drawing, after sectional drawing completes, picture is preserved in prompting.
When adding remark information to client, client can respond and eject the remarks frame for inputting information.
After video player obtains remark information, client sends HTTP request and this remark information is transferred to server.
Server adds remark information to database, then data storage condition is transferred to client by return information after receiving the HTTP request of client transmission.
By analyzing described return information, for judging whether described remark information is preserved successfully, perform corresponding operation according to judged result.
Compared with prior art, the present invention is based on the implementation method that video player accurately obtains former video file image, by obtaining the video data scope of current displaying video, and difference smoothing processing is carried out to this video data, thus obtain the current frame image of former video file, and this video player can to current frame image sectional drawing while displaying video, without the need to using external auxiliary instrument sectional drawing, thus cause sectional drawing clear picture, reduce time and the step of sectional drawing while improving sectional drawing image effect; In addition, this video player can add remark information, after client obtains remark information, send HTTP request and remark information is transferred to server, this remark information adds in database by server, returns interpolation information, whether user is liked this video by remark information, broadcasting situation etc. has detailed understanding, searches the problems such as the follow-up connection of video, for user provides convenience after solving video breaks.
Accompanying drawing explanation
Fig. 1 the present invention is based on the data flow figure that video player accurately obtains the implementation method of former video file image;
Fig. 2 the present invention is based on the implementation method flow chart that video player accurately obtains former video file image;
Fig. 3 is the implementation method flow chart of the former video file sectional drawing of video player of the present invention;
Fig. 4 is the implementation method flow chart that video player of the present invention adds remark information.
Embodiment
In order to make those skilled in the art understand technical scheme of the present invention better, below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
See Fig. 1, player is based on Flash technology, in webpage, mainly carry out the broadcasting of video, and client browser first request server obtains corresponding video, and server returns video to client, is then loaded in client terminal web page player and plays.
The concrete operations that this video player realizes displaying video are as follows:
Client browser, by sending HTTP request, sends the information such as the address of client and the video that will play to server;
Server receives HTTP request, searches the video required for client in a database according to the information of HTTP request;
Server turns back to client according to the result of searching, and client performs corresponding operation according to the result returned, and concrete operations are as follows:
If server can not find this video, then in video player at client end, show this video file do not exist.
If server have found this video, then video player at client end is through carrying out decompress(ion) to this video file and playing.
See Fig. 2, image is realized to the precise manipulation of single frames in video display process to realize video player, the present invention mainly adopts following methods:
The parameter of S201, acquisition displaying video:
Video uses the video web page player in client to play, client just can monitored over time video display process, obtain the parameters such as the reproduction time of video, video frame rate, F.F. and retrogressing, and all video parameters are transferred to corresponding function.
S202, operation function:
Described function is the function of existing calculating video image, all video parameters obtained is substituted into function, and to substituting into the function operation of parameter, will obtain current video data like this.
The video data scope of S203, acquisition displaying video:
The result running function obtains current video data, then selects suitable data area according to the frame per second of former video file in the front and back of the position at current video data place.
S204, difference smoothing processing is carried out to video data:
Obtain the concrete numerical value of difference after tested according to the frame per second of video player displaying video and the frame per second of former video file, then just video data carries out moving forward and retreating, and searches the image that video player enters to overlap with former video literary composition.
S205, obtain the current frame image of former video file:
According to obtaining two adjacent images after difference smoothing processing, selecting from the image that video data is nearest is current frame image, and reads from former video file.
S206, obtain the consecutive frame image of former video file:
By the current frame image obtained, navigate to lower some frames or upper some two field pictures according to the frame per second of former video file, the image of location is arranged to current frame image to operate.
In sum, the present invention is by obtaining the video data scope of current displaying video, and this video data of difference smoothing processing, obtain the former video file image of present frame, then required image is navigated to according to current frame image, precise manipulation is carried out to former video file, makes the clear picture of acquisition and effect is better.
Video player of the present invention can while displaying video cut-away view picture, described image is the image obtaining the former video file corresponded according to the video data of current broadcasting, and its concrete operations are as follows:
S301, acquisition current video data scope:
According to the video of the current broadcasting of client monitored over time, obtain video parameter, and parameter is substituted into function operation, obtain just in the video data scope of displaying video.
S302, obtain and need the current frame image of sectional drawing:
Carry out difference smoothing processing to above-mentioned video data, obtain current frame image, described current frame image is the former video file image closest to video data.
S303, carry out sectional drawing:
Current frame image is presented at video player, and sectional drawing is carried out to this image.
S304, preservation image:
If Image Saving success, then enter step S305;
If Image Saving failure, then enter step S306;
After above-mentioned image completes sectional drawing, point out and preserve this image, person easy to use searches or uses this image.
S305, return and preserve image successful information:
After preserving sectional drawing success, preservation image successful information will be returned and be transferred to user, remind this successful operation of user.
S306, return and preserve image failure information:
The image of sectional drawing cannot be preserved or other modes cause Image Saving failure, then return preservation image failure information and be transferred to user, remind this operation failure of user, user according to circumstances by oneself.
Said method can carry out sectional drawing to the image of former video file while video playback, makes truncated picture clear and better effects if, facilitates user simultaneously, decreases the time and step that use outside sectional drawing aid.
Video player of the present invention can add remark information, after client obtains remark information, by HTTP request, remark information is transferred to server, server receives this HTTP request, according to the content of request by described remark information stored in database, and data storage condition is turned back to client, client is analyzed return information, carry out corresponding operation response according to actual conditions, its concrete steps are as follows:
S401, obtains the remark information added:
When user has certain idea to the video play time, some remark informations will be added, such as user will terminate now video for a certain reason and prepare viewing next time, with regard to needing, remarks are carried out to the time of current displaying video, according to custom and the idea of user oneself, inputting the remark information facilitating oneself to understand, ejecting while client can respond this operation for obtaining the remarks frame adding remark information.
S402, transmission remark information are to server:
After client obtains remark information, by sending HTTP request, this remark information is transferred to server.
The return information of S403, acquisition server:
Server receives HTTP request, according to the content of HTTP request, described remark information is transferred to database and by this remark information stored in database, the result that data store is transmitted so that client obtains this return information by return information simultaneously.
S404, analysis return information:
If analysis result display data store unsuccessfully, then enter step S405;
If analysis result display data are stored as merit, then enter step S406;
Client receives return information, and analyzes this return information, and the result according to analyzing performs different operations.
S405, prompting user:
Namely data store unsuccessfully adds remark information failure, and client reminds user by sending the means such as alarm, and after receiving prompting, user determines the operation whether returning step S401 or abandon remarks according to the actual conditions of oneself.
Remark information success is added in S407, display:
The analysis result display data of client to return information are stored as merit, then represent that this remark information adds successfully, client will point out the successful information transmission of this remark information to user.
Said method client passes through HTTP request, remarks letter is transferred to server, server adds remark information in a database according to request, described remark information can be pointed out to user when user again displaying video, person easy to use has detailed understanding to this video broadcasting last time situation etc., thus provides convenience for user.
Below be only the preferred embodiment of the present invention, it should be pointed out that above-mentioned preferred implementation should not be considered as limitation of the present invention, protection scope of the present invention should be as the criterion with claim limited range.For those skilled in the art, without departing from the spirit and scope of the present invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (9)

1. accurately obtain an implementation method for former video file image based on video player, it is characterized in that, comprising:
According to the frame per second of former video file in the position of current video data, obtain the video data scope of current broadcasting;
Difference smoothing processing is carried out to this video data;
Obtain the current frame image of former video file;
Wherein, describedly difference smoothing processing is carried out to this video data be specially: according to the frame per second of video player displaying video and the frame per second determination difference of former video file, then video data is carried out moving forward or retreating, search the image that video player overlaps with former video file.
2. accurately obtain the implementation method of former video file image as claimed in claim 1 based on video player, it is characterized in that, the frame per second of described video player displaying video is different from the frame per second of former video file.
3. accurately obtain the implementation method of former video file image as claimed in claim 1 based on video player, it is characterized in that, the length of described video data scope is greater than the frame length of former video file image one frame.
4. accurately obtain the implementation method of former video file image as claimed in claim 1 based on video player, it is characterized in that, described current frame image is the former video file image closest to video data.
5. the implementation method of former video file image is accurately obtained as claimed in claim 1 based on video player, it is characterized in that, when carrying out sectional drawing to a certain two field picture, corresponding former video file image is obtained by obtaining current playing video data scope and carrying out difference smoothing processing to this video data, to this image sectional drawing, after sectional drawing completes, picture is preserved in prompting.
6. accurately obtain the implementation method of former video file image as claimed in claim 1 based on video player, it is characterized in that, when adding remark information to client, client can respond and eject the remarks frame for inputting remark information.
7. accurately obtain the implementation method of former video file image as claimed in claim 6 based on video player, it is characterized in that, after video player obtains remark information, client sends HTTP request and this remark information is transferred to server.
8. the implementation method of former video file image is accurately obtained as claimed in claim 7 based on video player, it is characterized in that, server adds remark information to database, then data storage condition is transferred to client by return information after receiving the HTTP request of client transmission.
9. accurately obtaining the implementation method of former video file image as claimed in claim 8 based on video player, it is characterized in that, by analyzing described return information, for judging whether described remark information is preserved successfully, performing corresponding operation according to judged result.
CN201110459662.1A 2011-12-31 2011-12-31 Implementation method for accurately obtaining images of original video file on basis of video player Active CN102523513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110459662.1A CN102523513B (en) 2011-12-31 2011-12-31 Implementation method for accurately obtaining images of original video file on basis of video player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110459662.1A CN102523513B (en) 2011-12-31 2011-12-31 Implementation method for accurately obtaining images of original video file on basis of video player

Publications (2)

Publication Number Publication Date
CN102523513A CN102523513A (en) 2012-06-27
CN102523513B true CN102523513B (en) 2015-04-29

Family

ID=46294287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110459662.1A Active CN102523513B (en) 2011-12-31 2011-12-31 Implementation method for accurately obtaining images of original video file on basis of video player

Country Status (1)

Country Link
CN (1) CN102523513B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394345B (en) * 2014-12-10 2017-11-07 黄山中鼎信息技术有限公司 A kind of safety monitoring video storage and back method
CN110166795B (en) * 2018-07-19 2022-02-18 腾讯科技(深圳)有限公司 Video screenshot method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217638A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation
CN102118539A (en) * 2009-12-30 2011-07-06 Tcl集团股份有限公司 Multimedia playing terminal as well as playing method and device for dragging multimedia files
CN102157183A (en) * 2011-01-13 2011-08-17 福州瑞芯微电子有限公司 Method for realizing video capturing on video player of portable electronic equipment
CN102547374A (en) * 2010-12-07 2012-07-04 华录文化产业有限公司 Video image preview method and device based on play time point

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1873820A (en) * 2006-05-18 2006-12-06 北京中星微电子有限公司 Method for processing video file, method for indexing video, and video indexing unit
US8850318B2 (en) * 2007-04-23 2014-09-30 Digital Fountain, Inc. Apparatus and method for low bandwidth play position previewing of video content
US20090049186A1 (en) * 2007-08-16 2009-02-19 Sony Corporation, A Japanese Corporation Method to facilitate trick-modes for streaming video
CN101540881B (en) * 2008-03-19 2011-04-13 华为技术有限公司 Method, device and system for realizing positioning playing of streaming media
US8891939B2 (en) * 2009-12-22 2014-11-18 Citrix Systems, Inc. Systems and methods for video-aware screen capture and compression

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217638A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation
CN102118539A (en) * 2009-12-30 2011-07-06 Tcl集团股份有限公司 Multimedia playing terminal as well as playing method and device for dragging multimedia files
CN102547374A (en) * 2010-12-07 2012-07-04 华录文化产业有限公司 Video image preview method and device based on play time point
CN102157183A (en) * 2011-01-13 2011-08-17 福州瑞芯微电子有限公司 Method for realizing video capturing on video player of portable electronic equipment

Also Published As

Publication number Publication date
CN102523513A (en) 2012-06-27

Similar Documents

Publication Publication Date Title
US11229843B2 (en) Video recording and playback systems and methods
US20200322684A1 (en) Video recommendation method and apparatus
CN103024561A (en) Method and device for displaying dragging progress bar
CN109936763B (en) Video processing and publishing method
WO2017181598A1 (en) Method and device for playing video
CN106713964A (en) Method of generating video abstract viewpoint graph and apparatus thereof
US11184646B2 (en) 360-degree panoramic video playing method, apparatus, and system
WO2017181597A1 (en) Method and device for video playback
CN110166795B (en) Video screenshot method and device
CN106412702A (en) Video clip interception method and device
US20130312026A1 (en) Moving-image playing apparatus and method
US9055272B2 (en) Moving image reproduction apparatus, information processing apparatus, and moving image reproduction method
EP3614231A1 (en) Method and apparatus for determining quality of experience of vr multi-media
KR101458521B1 (en) A system for play a contents of augmented reality
CN102523513B (en) Implementation method for accurately obtaining images of original video file on basis of video player
US9472240B2 (en) Video editing method and video editing device
US20140255000A1 (en) Video playback system and method based on highlight information
CN105451098A (en) Method and device for providing multimedia file
US20140099041A1 (en) Method and apparatus for encoding cloud display screen by using application programming interface information
JP4667356B2 (en) Video display device, control method therefor, program, and recording medium
EP1455360A2 (en) Disc apparatus, disc recording method, disc playback method, recording medium, and program
US20140369422A1 (en) Remultiplexing Bitstreams of Encoded Video for Video Playback
WO2023207513A1 (en) Video processing method and apparatus, and electronic device
CN111225293B (en) Video data processing method and device and computer storage medium
KR101742420B1 (en) Video data file generation program, video data file generation method and video data file generation apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20170410

Address after: 610031 Sichuan City, Chengdu Province, No. two North Ring Road, No. 111

Co-patentee after: Chengdu Lead Science & Technology Co., Ltd.

Patentee after: Southwest Jiaotong University

Co-patentee after: Wang Li

Co-patentee after: Gao Xiaorong

Co-patentee after: Wang Zeyong

Co-patentee after: Zhao Quanke

Address before: 610031 City, Chengdu Province, north section of the ring road, Sichuan

Co-patentee before: Chengdu Lead Science & Technology Co., Ltd.

Patentee before: Southwest Jiaotong University

TR01 Transfer of patent right
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180507

Address after: Office building, modern industrial center, Southwest Jiao Tong University, 111 north section two ring road, Chengdu, Sichuan

Co-patentee after: Chengdu Lead Science & Technology Co., Ltd.

Patentee after: Chengdu Southwest Jiaotong University Tech Park Management Co., Ltd.

Co-patentee after: Wang Li

Co-patentee after: Gao Xiaorong

Co-patentee after: Wang Zeyong

Co-patentee after: Zhao Quanke

Address before: 610031 No. two, section 111, ring road, Chengdu, Sichuan, China

Co-patentee before: Chengdu Lead Science & Technology Co., Ltd.

Patentee before: Southwest Jiaotong University

Co-patentee before: Wang Li

Co-patentee before: Gao Xiaorong

Co-patentee before: Wang Zeyong

Co-patentee before: Zhao Quanke

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181025

Address after: 610000 Sichuan Chengdu Shuangliu District Southwest Airport Economic Development Zone Southwest Jiao Tong University Research Institute

Co-patentee after: Chengdu Leading Technology Co., Ltd.

Patentee after: CHENGDU SOUTHWEST JIAOTONG UNIVERSITY RESEARCH INSTITUTE CO., LTD.

Co-patentee after: Wang Li

Co-patentee after: Gao Xiaorong

Co-patentee after: Wang Zeyong

Co-patentee after: Zhao Quanke

Address before: 610000 office building, modern industrial center, Southwest Jiao Tong University, 111 ring two North Road, Chengdu, Sichuan.

Co-patentee before: Chengdu Leading Technology Co., Ltd.

Patentee before: Chengdu Southwest Jiaotong University Tech Park Management Co., Ltd.

Co-patentee before: Wang Li

Co-patentee before: Gao Xiaorong

Co-patentee before: Wang Zeyong

Co-patentee before: Zhao Quanke

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190211

Address after: 610000 block 45, zone A, high-tech zone, Jiao long industrial port, Qingyang District, Chengdu, Sichuan.

Co-patentee after: Wang Li

Patentee after: Chengdu Lead Science & Technology Co., Ltd.

Co-patentee after: Gao Xiaorong

Co-patentee after: Wang Zeyong

Co-patentee after: Zhao Quanke

Address before: 610000 Sichuan Chengdu Shuangliu District Southwest Airport Economic Development Zone Southwest Jiao Tong University Research Institute

Co-patentee before: Chengdu Leading Technology Co., Ltd.

Patentee before: CHENGDU SOUTHWEST JIAOTONG UNIVERSITY RESEARCH INSTITUTE CO., LTD.

Co-patentee before: Wang Li

Co-patentee before: Gao Xiaorong

Co-patentee before: Wang Zeyong

Co-patentee before: Zhao Quanke