CN112637649A - Video file processing method - Google Patents

Video file processing method Download PDF

Info

Publication number
CN112637649A
CN112637649A CN202011466766.0A CN202011466766A CN112637649A CN 112637649 A CN112637649 A CN 112637649A CN 202011466766 A CN202011466766 A CN 202011466766A CN 112637649 A CN112637649 A CN 112637649A
Authority
CN
China
Prior art keywords
video file
played
video
index identifier
acquiring
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
CN202011466766.0A
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 Shouqi Zhixing Technology Co Ltd
Original Assignee
Beijing Shouqi Zhixing 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 Shouqi Zhixing Technology Co Ltd filed Critical Beijing Shouqi Zhixing Technology Co Ltd
Priority to CN202011466766.0A priority Critical patent/CN112637649A/en
Publication of CN112637649A publication Critical patent/CN112637649A/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Abstract

The invention discloses a video file processing method, which relates to the technical field of rolling video playing, and is characterized in that whether finger sliding operation exists or not is judged in real time, if yes, an index identifier corresponding to a currently displayed video file is obtained after the finger sliding operation is completed, the video file is obtained according to the index identifier and marked as a video file needing to be played currently, the running stability and maintainability of a system are improved, and the application smoothness and user experience are improved.

Description

Video file processing method
Technical Field
The invention relates to the technical field of rolling video playing, in particular to a video file processing method.
Background
With the rapid development of the mobile internet, people have more and more diversified entertainment ways, and the popular short video in recent years is more prominent.
The current mobile platform is not optimized for the rolling video playing, part of short video players take a UIScrollView control as a rolling view, players are directly added to the rolling view, and whether the video playing is performed or not is determined by the offset of the rolling view, and the scheme has the following defects:
(1) the player does not multiplex, and the memory cannot be released as the playing video increases, so that the memory overflow is finally caused;
(2) the video playing fluency is poor, the stability is poor, and collapse can be caused during use;
(3) the video file and the corresponding first frame image are not cached, so that the interactive fluency is poor;
(4) the video files are not dynamically loaded, and manual triggering is needed for paging loading of the video files by a user;
(5) the video file is loaded and the user slides in an asynchronous interactive operation, so that the synchronization is difficult to maintain.
Disclosure of Invention
In order to solve the defects of the prior art, an embodiment of the present invention provides a video file processing method, including the following steps:
judging whether finger sliding operation exists in real time;
if the video file exists, acquiring an index identifier corresponding to the currently displayed video file after the finger sliding operation is finished;
and acquiring the video file according to the index identifier and marking the video file as the video file which needs to be played currently.
Preferably, before determining whether there is a finger sliding operation in real time, the method further includes:
acquiring an index identifier corresponding to a first video file in a first video file list in a video file list set, acquiring the first video file according to the index identifier, and marking the first video file as a video file to be played, wherein one video file list comprises a plurality of video files;
preferably, after marking the video file as a video file which needs to be played currently according to the index identifier, the method further includes:
judging whether the video file can be played, if so, counting the playing time of the video file when the video file is played;
and judging whether the duration is greater than a set threshold value, if so, adding 1 to the current browsing amount of the video file.
Preferably, after the finger sliding operation is completed and the index identifier corresponding to the currently displayed video file is acquired, the method further includes:
and judging whether the video file is the last piece of data in the video file list, if so, acquiring the first video file from the next video file list and taking the video file as a video file to be played.
Preferably, the determining whether the video file can be played comprises:
and judging whether the loading of the video file is finished, if so, determining that the video file can be played.
Preferably, after the video file is acquired, the method further comprises:
cleaning the video file and writing the video file and the first frame image of the video file into a cache;
and loading the video file and the first frame image of the video file through a front-end interface.
The video file processing method provided by the embodiment of the invention has the following beneficial effects:
(1) the problem that the terminal is not smooth in heating and the like due to overlarge memory overhead of the player is solved, and the operation stability and maintainability of the system are improved;
(2) the view is dynamically loaded, so that the automation degree is improved;
(3) user interaction and video file loading are combined, the consistency of video file playing is kept, and application fluency and user experience are improved.
Detailed Description
The present invention will be described in detail with reference to the following embodiments.
The video file processing method provided by the embodiment of the invention comprises the following steps:
and S101, judging whether the finger sliding operation exists in real time.
As a specific example, the finger sliding operation includes a left-right sliding operation, an up-down sliding operation on the screen of the mobile phone.
And S102, if the video file exists, acquiring the index identification corresponding to the currently displayed video file after the finger sliding operation is finished.
Wherein, an index mark corresponds to a video file, and the index mark represents the position of the video file in the video file list.
S103, according to the index identification, obtaining a video file and marking the video file as a video file which needs to be played currently.
Optionally, before determining whether there is a finger sliding operation in real time, the method further includes:
acquiring an index identifier corresponding to a first video file in a first video file list in a video file list set, acquiring the first video file according to the index identifier, and marking the first video file as a video file to be played, wherein one video file list comprises a plurality of video files;
optionally, after marking the video file as a video file which needs to be played currently according to the index identifier, the method further includes:
judging whether the video file can be played, if so, counting the playing time of the video file when the video file is played;
and judging whether the duration is greater than a set threshold value, if so, adding 1 to the current browsing amount of the video file.
As a specific example, when the duration of the video file is played exceeds 10 seconds, it is determined that the video file has been browsed.
Optionally, after the finger sliding operation is completed and the index identifier corresponding to the currently displayed video file is acquired, the method further includes:
and judging whether the video file is the last piece of data in the video file list, if so, acquiring the first video file from the next video file list and taking the video file as a video file to be played.
Optionally, the determining whether the video file can be played comprises:
and judging whether the loading of the video file is finished, if so, determining that the video file can be played.
Optionally, after acquiring the video file, the method further includes:
cleaning a video file and writing the video file and a first frame image of the video file into a cache;
and loading the video file and the first frame image of the video file through a front-end interface.
The purpose of cleaning the video file is to filter data which is not concerned by a user in the video file.
According to the video file processing method provided by the embodiment of the invention, whether the finger sliding operation exists is judged in real time, if yes, the index identification corresponding to the currently displayed video file is obtained after the finger sliding operation is finished, and the video file is obtained and marked as the video file which needs to be played currently according to the index identification, so that the running stability and maintainability of the system are improved, and the application smoothness and the user experience are improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (6)

1. A video file processing method, comprising:
judging whether finger sliding operation exists in real time;
if the video file exists, acquiring an index identifier corresponding to the currently displayed video file after the finger sliding operation is finished;
and acquiring the video file according to the index identifier and marking the video file as the video file which needs to be played currently.
2. The video file processing method according to claim 1, wherein before determining in real time whether there is a finger swipe operation, the method further comprises:
acquiring an index identifier corresponding to a first video file in a first video file list in a video file list set, acquiring the first video file according to the index identifier, and marking the first video file as a video file to be played, wherein one video file list comprises a plurality of video files;
3. the method of claim 1, wherein after marking the video file as a video file that needs to be currently played according to the index identifier, the method further comprises:
judging whether the video file can be played, if so, counting the playing time of the video file when the video file is played;
and judging whether the duration is greater than a set threshold value, if so, adding 1 to the current browsing amount of the video file.
4. The method for processing the video file according to claim 1, wherein after the finger sliding operation is completed and the index identifier corresponding to the currently displayed video file is obtained, the method further comprises:
and judging whether the video file is the last piece of data in the video file list, if so, acquiring the first video file from the next video file list and taking the video file as a video file to be played.
5. The video file processing method according to claim 3, wherein determining whether the video file can be played comprises:
and judging whether the loading of the video file is finished, if so, determining that the video file can be played.
6. The video file processing method according to claim 1 or 2, wherein after the video file is acquired, the method further comprises:
cleaning the video file and writing the video file and the first frame image of the video file into a cache;
and loading the video file and the first frame image of the video file through a front-end interface.
CN202011466766.0A 2020-12-14 2020-12-14 Video file processing method Pending CN112637649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011466766.0A CN112637649A (en) 2020-12-14 2020-12-14 Video file processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011466766.0A CN112637649A (en) 2020-12-14 2020-12-14 Video file processing method

Publications (1)

Publication Number Publication Date
CN112637649A true CN112637649A (en) 2021-04-09

Family

ID=75312674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011466766.0A Pending CN112637649A (en) 2020-12-14 2020-12-14 Video file processing method

Country Status (1)

Country Link
CN (1) CN112637649A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488252A (en) * 2016-11-03 2017-03-08 腾讯音乐娱乐(深圳)有限公司 A kind of direct broadcasting room list processing method and processing device
US20170153774A1 (en) * 2015-11-27 2017-06-01 Le Holdings (Beijing) Co., Ltd. Method and device for displaying program information and terminal apparatus
CN108668172A (en) * 2018-04-03 2018-10-16 北京奇艺世纪科技有限公司 A kind of video broadcasting method and device
CN108763316A (en) * 2018-04-27 2018-11-06 维沃移动通信有限公司 A kind of audio list management method and mobile terminal
CN109996102A (en) * 2019-04-11 2019-07-09 北京字节跳动网络技术有限公司 Video information synchronous display method, device, equipment and storage medium
CN111464858A (en) * 2020-03-09 2020-07-28 五八有限公司 Video playing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170153774A1 (en) * 2015-11-27 2017-06-01 Le Holdings (Beijing) Co., Ltd. Method and device for displaying program information and terminal apparatus
CN106488252A (en) * 2016-11-03 2017-03-08 腾讯音乐娱乐(深圳)有限公司 A kind of direct broadcasting room list processing method and processing device
CN108668172A (en) * 2018-04-03 2018-10-16 北京奇艺世纪科技有限公司 A kind of video broadcasting method and device
CN108763316A (en) * 2018-04-27 2018-11-06 维沃移动通信有限公司 A kind of audio list management method and mobile terminal
CN109996102A (en) * 2019-04-11 2019-07-09 北京字节跳动网络技术有限公司 Video information synchronous display method, device, equipment and storage medium
CN111464858A (en) * 2020-03-09 2020-07-28 五八有限公司 Video playing method and device

Similar Documents

Publication Publication Date Title
CN107644085B (en) Method and device for generating sports event news
CN104599307B (en) A kind of method for showing picture using animation on mobile terminals
CN111475241B (en) Interface operation method and device, electronic equipment and readable storage medium
US20200310842A1 (en) System for User Sentiment Tracking
US20090209337A1 (en) User-Powered Always Available Contextual Game Help
CN108024079A (en) Record screen method, apparatus, terminal and storage medium
US20220249956A1 (en) Spoiler Block Service
CN112601127B (en) Video display method and device, electronic equipment and computer readable storage medium
JP2007267173A (en) Content reproducing apparatus and method
JP2010004309A (en) Server, method, and program for generating digest video of moving image content
CN110215707B (en) Method and device for voice interaction in game, electronic equipment and storage medium
JP4942684B2 (en) Video distribution system, terminal device program, distributed video playback method, and command setting method
JP2017169159A (en) Determination device, determination method and determination program
CN112969100A (en) Video playing control method, device, equipment and medium
CN107333163A (en) A kind of method for processing video frequency and device, a kind of terminal and storage medium
CN104702986A (en) Ranking method and device of program list
CN112104908A (en) Audio and video file playing method and device, computer equipment and readable storage medium
JP2024059704A (en) Data Model for a Uniform Data Platform
JP2022505813A (en) Cross-platform consumption of in-game objects
CN112637649A (en) Video file processing method
CN106454393A (en) Video caching method and device
CN111343508B (en) Information display control method and device, electronic equipment and storage medium
CN106936830A (en) A kind of playing method and device of multi-medium data
JP2009060458A (en) Moving picture distributing system, program of terminal device, distributed moving picture reproducing method, and command setting method
KR20150024298A (en) Role clearing method, device and system for emulator game

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210409