Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Disk space optimization method for video-on-demand system

A technology of disk space and optimization method, applied in the direction of instrument, input/output to record carrier, calculation, etc., can solve the problems of trouble to upgrade the server, alarm, unable to have a lot of server resources, etc., to ensure normal playback and reduce disk usage. Effect

Active Publication Date: 2019-12-03
南京焦点领动云计算技术有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] For enterprises and institutions that use self-built server rooms, they cannot have a large number of server resources like cloud platform manufacturers, and upgrading servers is a very troublesome thing. It takes a long time to approve and purchase and then install and debug Time, and the growth of business does not wait for the procurement process of enterprises or institutions, which may cause the system to alarm before the new equipment is in place

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Disk space optimization method for video-on-demand system
  • Disk space optimization method for video-on-demand system
  • Disk space optimization method for video-on-demand system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described below in conjunction with accompanying drawing and exemplary embodiment:

[0024] A method for optimizing disk space of a video-on-demand system, comprising the steps of:

[0025] Step 1: Receive the original video file uploaded by the user, and pre-calculate the MD5 value of the original video file. If the MD5 value already exists in the system, the original video file will not be rewritten to the disk, and another file of this file will be added to the database. A reference, if the MD5 value does not exist in the system, create a directory named after the MD5 value to store the file;

[0026] Step 2: Use FFmpeg to transcode to obtain mp4 video files with resolutions of 480P, 720P and 1080P respectively, and then delete the original video files;

[0027] Step 3: Use FFmpeg again to generate corresponding MPEG2-TS files from the mp4 video files with three resolutions, delete the mp4 video files with 480P and 720P resoluti...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a disk space optimization method of a video-on-demand system, which is characterized by comprising the following steps: step 1, receiving an original video file uploaded by a user, and step 2, transcoding to obtain mp4 video files with different resolutions; step 3, generating a corresponding MPEG2-TS file from the mp4 video file; step 4, segmenting the MPEG2-TS file into MPEG2-TS video slices with different time lengths, and generating an m3u8 index file at the same time; and step 5, storing the video file weight value in a database according to the MD5 value of the file, using a calculation result of a formula (D-100) 3 / 1000 + 100 as a reference value as a judgment basis, and deleting and recovering the file when the reference value is reduced to 40 or increased to 60 or above. The effects of efficiently utilizing the disk, avoiding repeated files, reducing disk occupation of files which are not commonly used and ensuring normal playing of the files which arenot commonly used can be achieved.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a disk space optimization method for a video-on-demand system. Background technique [0002] For such enterprises and institutions that use self-built server rooms, they cannot have a large number of server resources like cloud platform manufacturers, and upgrading servers is a very troublesome thing. Time, and the growth of the business does not wait for the procurement process of the enterprise or institution, which may cause the system to alarm before the new equipment is in place. [0003] For the VOD system, the consumption of the disk is very large. First of all, most of the videos uploaded by users cannot be played directly on the network, and the server needs to perform transcoding processing, which is equivalent to copying the original video files. One copy, the disk usage will be doubled. According to the current conventional user experience requirements, it is necessa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/06H04N21/4335
CPCG06F3/0608G06F3/0652H04N21/4335
Inventor 张天昊胡成钢
Owner 南京焦点领动云计算技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products