Video processing method apparatus
First Claim
1. A video processing method, comprising:
- parsing, by a buffer server, a video file, and creating a video index file, wherein the index file comprises a position of a key frame in the video file;
updating the index file according to information about a target position of video dragging and received from a client;
determining a key frame closest to the target position according to the updated index file; and
sending video file data that begins with a position of the closest key frame to the client so that the client starts playing from the target position.
2 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a video processing method, including: parsing, by a buffer server, a video file, and creating a video index file, where the index file includes a position of a key frame in the video file; receiving information about a target position of video dragging and sent by a client; determining a key frame closest to the target position according to the index file and the target position; and sending video file data that begins with a position of the closest key frame to the client so that the client starts playing from the target position. Correspondingly, the embodiments of the present invention further provide a buffer server, which solves the problem that a video without a file header and a video dragged beyond a storage range of a server cannot be played after being dragged, and improves user experience.
-
Citations
10 Claims
-
1. A video processing method, comprising:
-
parsing, by a buffer server, a video file, and creating a video index file, wherein the index file comprises a position of a key frame in the video file; updating the index file according to information about a target position of video dragging and received from a client; determining a key frame closest to the target position according to the updated index file; and sending video file data that begins with a position of the closest key frame to the client so that the client starts playing from the target position. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A buffer server for processing a video, comprising:
-
a creating unit, configured to parse a video file, and create a video index file, wherein the index file comprises a position of a key frame in the video file; an updating unit, configured to;
according to information about a target position of video dragging and sent by a client, update the index file created by the creating unit;a determining unit, configured to determine a key frame closest to the target position according to the index file updated by the updating unit; and a sending unit, configured to send video file data that begins with a position of the closest key frame to the client so that the client starts playing from the target position. - View Dependent Claims (7, 8, 9)
-
-
10. An apparatus comprising:
a buffer server for processing a video configured to parse a video file, and create a video index file, wherein the index file comprises a position of a key frame in the video file, configured to;
according to information about a target position of video dragging and sent by a client, update the created index file, configured to determine a key frame closest to the target position according to the updated index file, and configured to send video file data that begins with a position of the closest key frame to the client so that the client starts playing from the target position.
Specification