CN108200061A - Video file processing method, application server and computer readable storage medium - Google Patents

Video file processing method, application server and computer readable storage medium Download PDF

Info

Publication number
CN108200061A
CN108200061A CN201810003943.8A CN201810003943A CN108200061A CN 108200061 A CN108200061 A CN 108200061A CN 201810003943 A CN201810003943 A CN 201810003943A CN 108200061 A CN108200061 A CN 108200061A
Authority
CN
China
Prior art keywords
servers
content
video
nginx
memory paragraph
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
CN201810003943.8A
Other languages
Chinese (zh)
Other versions
CN108200061B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810003943.8A priority Critical patent/CN108200061B/en
Priority to PCT/CN2018/089425 priority patent/WO2019134338A1/en
Publication of CN108200061A publication Critical patent/CN108200061A/en
Application granted granted Critical
Publication of CN108200061B publication Critical patent/CN108200061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of video file processing method, including:Calling interface between S3 servers and nginx servers is defined based on CEPH specifications;Uploaded videos file is to S3 servers 4 and stores to a memory paragraph;The order of the memory paragraph content is played defined in the configuration file of nginx servers;The video playing that client is received by nginx servers instructs, and judges whether the video playing instruction matches with the order for playing the memory paragraph content;If the and commands match of video playing instruction and the broadcasting memory paragraph content, the content of the memory paragraph is transferred to the nginx servers by the calling interface, and as described in the nginx server transports storage end content to the client.The present invention also provides a kind of application server and computer readable storage mediums.The present invention can realize the unlimited dilatation of video file storage, ensure the stability of video file storage and the convenience of reading, improve user experience.

Description

Video file processing method, application server and computer readable storage medium
Technical field
The present invention relates to a kind of field of communication technology more particularly to video file processing method, application server and calculating Machine readable storage medium storing program for executing.
Background technology
At present, the storage of video and transmission architecture include client, a nginx servers (high performance HTTP and anti- To proxy server and an IMAP/POP3/SMTP server, leading portion server can also be referred to as), local disk, Middle local disk refers to the application server of connection nginx servers.And for video file, all video files are equal It is stored on above-mentioned local disk, nginx servers is sent to by the I/O interfaces of file system (file system, fs), And it is docked by rtmp (Real Time Messaging Protocol, real-time messages transport protocol) module of nginx servers The video file of receipts is handled, and video file is sent to client in the form of live TV stream according to rtmp agreements.Upper In the video storage stated and the structure of transmission, since the hardware capabilities of local disk limit so that the storage size of video file It is restricted, in addition, since present application server is during digital independent is carried out, due to by size of data, depositing The influence in space etc. is stored up, leads to digital independent and unhappy, therefore the data content of application server is obtained again by nginx servers Video file is sent to by client in the form of the live TV stream of rtmp by rtmp modules, client just can not achieve directly right The video file of local disk storage carries out the effect of program request.
Invention content
In view of this, the present invention proposes a kind of video file processing method, application server and computer-readable storage medium Matter can utilize the characteristic of S3 servers to realize the unlimited dilatation of video file storage, ensure the stability of video file storage And the convenience read, while the clothes that video on demand is realized under rtmp agreements can also be instructed according to embedded video on demand Business, improves user experience.
First, to achieve the above object, the present invention proposes a kind of application server, and the application server includes storage Device, processor are stored with the video file processing routine that can be run on the processor, the video text on the memory Part processing routine realizes following steps when being performed by the processor:
Calling interface between S3 servers and nginx is defined based on CEPH specifications;
Uploaded videos file is to S3 servers and stores to a memory paragraph;
The video playing that client is received by nginx servers instructs, and judge video playing instruction with it is described Whether the order for playing the memory paragraph content matches;And
If the video playing instruction and the commands match for playing the memory paragraph content, pass through the calling interface The content of the memory paragraph is transferred to the nginx servers, and as described in the nginx server transports storage end content To the client.
Optionally,
The content of storage end to the step of client, specifically includes described in the nginx server transports:
The content of the memory paragraph of acquisition is transmitted to the client with rtmp agreements.
Optionally, the click order of link is opened in the video playing instruction for the client using player.
Optionally, the nginx servers include rtmp modules, wherein, defined in the configuration file of nginx servers The step of playing the order of the memory paragraph content is specifically for the rtmp modules of the configuration nginx servers.
Optionally, the uploaded videos file is to S3 servers and the step of store to a memory paragraph, including:
Define the video files names uploaded;And
The access rights of the video file are accessed according to the setting of S3 server specifications.
In addition, to achieve the above object, the present invention also provides a kind of video file processing method, this method is applied to application Server, the method includes:
Calling interface between S3 servers and nginx servers is defined based on CEPH specifications;
Uploaded videos file is to S3 servers and stores to a memory paragraph;
The order of the memory paragraph content is played defined in the configuration file of nginx servers;
The video playing that client is received by nginx servers instructs, and judge video playing instruction with it is described Whether the order for playing the memory paragraph content matches;And
If the video playing instruction and the commands match for playing the memory paragraph content, pass through the calling interface The content of the memory paragraph is transferred to the nginx servers, and as described in the nginx server transports storage end content To the client.
Optionally, content to the step of client of storage end described in the nginx server transports, specifically includes:
The content of the memory paragraph of acquisition is transmitted to the client with rtmp agreements
Optionally, the click order of link is opened in the video playing instruction for the client using player.
Optionally, the nginx servers include rtmp modules, wherein, defined in the configuration file of nginx servers The step of playing the order of the memory paragraph content is specifically for the rtmp modules of the configuration nginx servers.
Optionally, the uploaded videos file is specifically included to S3 servers and the step of store to a memory paragraph:
Define the video files names uploaded;And
The access rights of the video file are accessed according to the setting of S3 server specifications.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with video file processing routine, and the video file processing routine can be held by least one processor Row, so that the step of at least one processor performs video file processing method as described above.
Compared to the prior art, application server proposed by the invention, video file processing method and computer-readable Storage medium first, the calling interface between S3 servers and nginx servers is defined based on CEPH specifications;Secondly, upload regards Frequency file is to S3 servers and stores to a memory paragraph;Then, it is deposited described in being played defined in the configuration file of nginx servers Store up the order of section content;Then, the video playing that client is received by nginx servers instructs, and judge that the video is broadcast Put whether instruction matches with the order for playing the memory paragraph content;If described in the video playing instruction and the broadcasting The commands match of memory paragraph content is transferred the content of the memory paragraph finally by the calling interface and is serviced to the nginx Device, and as described in the nginx server transports storage end content to the client.In this way, can both S3 be utilized to service Device quickly reads the characteristic of data, realizes the program request effect of video file that client stores local disk.It can utilize again The characteristic of S3 servers realizes the arbitrary storage of video file storage, and the stability of guarantee video file storage and reading are just Victory, while the service that video on demand is realized under rtmp agreements can also be instructed according to embedded video on demand, improve use It experiences at family.
Description of the drawings
Fig. 1 is each one optional application environment schematic diagram of embodiment of the present invention;
Fig. 2 is the schematic diagram of one optional hardware structure of application server in Fig. 1;
Fig. 3 is the Program modual graph of video file processing routine first embodiment of the present invention;
Fig. 4 is the flow chart of video file processing method first embodiment of the present invention;
Fig. 5 is the flow chart of video file processing method second embodiment of the present invention.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before creative work is made All other embodiments obtained are put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for description purpose, and cannot It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Define as a result, " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present with reference to there is conflicting or can not realize when, also not the present invention claims Protection domain within.
As shown in fig.1, it is each one optional application environment schematic diagram of embodiment of the present invention.
In the present embodiment, present invention can apply to include but are not limited to, client 1, application server 2, network 3, S3 (Simple Storage Service, simple storage service) server 4, nginx servers 5 application environment in, wherein Application server 2 connects and manages S3 servers 4 and nginx servers 5, and client 1 is then directly connected to nginx servers 5, and Respective request is initiated to application server 2 by nginx servers 5, and is transferred or is handled by the control of application server 2 and be stored in Object in S3 servers 4.In addition, the client 1 can be mobile phone, smart phone, laptop, digital broadcasting It is receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), navigation device, vehicle-mounted The movable equipment of device etc. and such as fixed terminal of number TV, desktop computer, notebook, server etc..Institute It can be that the calculating such as rack-mount server, blade server, tower server or Cabinet-type server are set to state application server 2 Standby, which can be the server cluster that independent server or multiple servers are formed.It is described Network 3 can be intranet (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi, speech path network etc. is wireless or has Gauze network.
The assets that the S3 servers 4 are stored and retrieved are referred to as object, and object is stored in memory paragraph (bucket), And according to the difference of object, different objects is stored in different memory paragraphs, for example file files are stored in file memory paragraphs, Video file is stored in movie memory paragraphs.Wherein S3 servers have the characteristics that other servers are not had, i.e., file stores Amount is big, without the limitation for worrying memory space;In addition, other storages to be significantly faster than to the reading speed of file on S3 servers The data reading speed of medium.
Wherein, it is serviced respectively with one or more clients 1, S3 by the network 3 in the application server 2 Device 4, nginx servers 5 communicate to connect, to carry out data transmission and interact.
Based on the introduction of above application environment various components, application server 2 connects and manages S3 servers 4 and nginx Server 5 defines respective calls interface, and client 1 is then directly connected to nginx servers 5, and passes through nginx servers 5 and send out Respective request is played to application server 2, and the object being stored in S3 servers 4 is transferred or handle by the control of application server 2.
In the present embodiment, when the application server 2 is installed and run video file processing routine 200, based on CEPH Specification defines the calling interface between S3 servers 4 and nginx servers 5;Uploaded videos file to S3 servers 4 and store to One memory paragraph;The order of the memory paragraph content is played defined in the configuration file of nginx servers 5;It is serviced by nginx Device 5 receives the video playing instruction of client 1, and judges the broadcasting memory paragraph of the video playing instruction and definition Whether the order of content matches;If the video playing instruction and the order of the broadcasting memory paragraph content of definition Match, the content of the memory paragraph is transferred to nginx servers by the calling interface;Nginx servers will be described in acquisition The content of memory paragraph is transmitted to client 1 with rtmp agreements.In this way, since the characteristic that S servers quickly read data in itself makes The program request of the video file stored to local disk can be realized by obtaining client 1.The characteristic realization of S3 servers 4 can be utilized to regard again Frequency file arbitrarily stores, and ensures the stability of video file storage and the convenience of reading, while can also be according to insertion The service of video on demand is realized in video on demand instruction under rtmp agreements, improves user experience.
As shown in fig.2, it is the schematic diagram of 2 one optional hardware structure of application server in Fig. 1.In the present embodiment, institute Stating application server 2 may include, but be not limited only to, and connection memory 11, processor 12, net can be in communication with each other by system bus Network interface 13.It should be pointed out that Fig. 2 illustrates only the application server 2 with component 11-13, it should be understood that simultaneously All components shown realistic are not applied, the more or less component of the implementation that can be substituted.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed only Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be described answers With the hard disk or memory of the internal storage unit of server 2, such as the application server 2.In further embodiments, it is described to deposit Reservoir 11 can also be that the plug-in type being equipped on the External memory equipment of the application server 2, such as the application server 2 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the application server 2 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the application server 2 commonly used in storage Make system and types of applications software, such as program code of the video file processing routine 200 etc..In addition, the memory 11 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is answered commonly used in control is described Data interaction or communicate relevant control and processing are carried out with the overall operation of server 2, such as execution and the client 1 Deng.In the present embodiment, the processor 12 is used to run the program code stored in the memory 11 or processing data, example Video file processing routine 200 as described in running.
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the application server 2 and other electronic equipments.In the present embodiment, the network interface 13 is mainly used In by the network 3 by the application server 2 and one or more clients 1, S3 servers 4, nginx servers 5 are connected, building between the application server 2 and one or more of clients 1, S3 servers 4, nginx servers 5 Vertical data transmission channel and communication connection.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and work(of relevant device in detail Energy.In the following, above application environment and relevant device will be based on, each embodiment of the present invention is proposed.
First, the present invention proposes a kind of video file processing routine 200.
As shown in fig.3, it is the Program modual graph of 200 first embodiment of video file processing routine of the present invention.
In the present embodiment, the video file processing routine 200 includes a series of meter being stored on memory 11 Calculation machine program instruction when the computer program instructions are performed by processor 12, can realize the video of various embodiments of the present invention The processing operation of file.In some embodiments, the specific operation realized based on the computer program instructions each section, institute One or more modules can be divided by stating video file processing routine 200.For example, in figure 3, at the video file Reason program 200 can be divided into interface definition module 201, uploading module 202, command definition module 203, receiving module 204, Acquisition module 205 and transmission module 206.Wherein:
The interface definition module 201, for being defined between S3 servers 4 and nginx servers 5 based on CEPH specifications Calling interface.
CEPH is a kind of distributed file system, can be divided into four levels:(1) basic storage system, (2) base library Librados, (3) higher layer applications interface:This layer includes three parts:RADOS GW(RADOS Gateway)、RBD (Reliable Block Device) and Ceph FS (Ceph File System), effect is on the basis in librados libraries It is upper that abstraction hierarchy higher is provided, is more convenient for applying or high-level interface that client 1 uses, wherein RADOS GW be one provide with The gateway of Amazon S3 servers 4 and the RESTful API of Swift compatibilities, so that corresponding object stores application and development It uses.(4) application layer.Above-mentioned CEPH has CEPH specifications, can be between at all levels in CEPH systems by CEPH specifications Interface calls.
In above-mentioned CEPH systems, one of level --- higher layer applications interface can be external connected server or Person's client 1 provides high-level interface, i.e. CEPH can with specification itself with S3 servers 4 and the calling interface of nginx servers 5, Simultaneously as S3 servers 4 are a kind of simple storage service units, there are specific access interface, CEPH can pass through specification Define the calling interface of S3 servers 4 and nginx servers 5 in storage object calling process.
The uploading module 202 for uploaded videos file to S3 servers 4 and is stored to a memory paragraph.Specifically, institute Uploading module 202 is stated the uploaded videos file is accomplished by the following way to S3 servers 4 and stores to the step of a memory paragraph Suddenly:
The video files names that the definition of uploading module 202 uploads;And according to accessing the setting of 4 specification of S3 servers The access rights of video file.
In the present embodiment, mp4 flv files can be uploaded to this bucket of the movie of S3 servers 4 (memory paragraph), and the file name of upload is named as " video.mp4 ", while it is " public-read " to set access rights And corresponding content-type, by taking s3cmd as an example, setting instruction is:s3cmd put video.mp4s3:// movie--acl-public。
The command definition module 203 plays the memory paragraph content defined in the configuration file of nginx servers 5 Order.
Specifically, the nginx servers 5 include rtmp modules, wherein, it is fixed in the configuration file of nginx servers 5 Justice plays the rtmp module of the step of order of the memory paragraph content specifically for the configuration nginx servers 5. Rtmp (Real Time Messaging Protocol) real-time messages transportation protocol is that Adobe Systems companies are Flash The open protocol of audio, video and data transmission exploitation between player and server.
In the present embodiment, the rtmp modules of configuration nginx servers 5 are as follows by being increased newly in nginx.conf Content is realized:
The receiving module 204, the video playing that client 1 is received by nginx servers 5 instruct, and described in judgement Whether video playing is instructed matches with the order for playing the memory paragraph content., video playing instruction is for triggering Play the order of the memory paragraph content.The point of link is opened in the video playing instruction for the client 1 using player Hit order.
In the present embodiment, the client 1 can be by using VLC multimedia players or other supports rtmp The player of agreement opens following chain and fetches initiation video playing instruction:rtmp://{nginx_server}/vod_http/ video.mp4。
The acquisition module 205, in video playing instruction and the order for playing the memory paragraph content During matching, the content of the memory paragraph is transferred to the nginx servers by the calling interface.
The transmission module 206, for controlling the content of storage end described in the nginx server transports to client 1.
By above procedure module 201-206, video file processing routine 200 proposed by the invention first, is based on CEPH specifications define the calling interface between S3 servers 4 and nginx servers 5;Secondly, uploaded videos file to S3 servers It 4 and stores to a memory paragraph;Then, the life of the memory paragraph content is played defined in the configuration file of nginx servers 5 It enables;Then, the video playing that client is received by nginx servers instructs, and judge video playing instruction with it is described Whether the order for playing the memory paragraph content matches;If the video playing instruction and the broadcasting memory paragraph content Commands match transfers the content of the memory paragraph to the nginx servers, and by described finally by the calling interface The content of storage end described in nginx server transports is to the client.In this way, both it can quickly read number using S3 servers According to characteristic, realize the program request effect of video file that is stored to local disk of client.The spy of S3 servers can be utilized again Property realize video file storage arbitrary storage, ensure video file storage stability and reading convenience, simultaneously also The service that video on demand is realized under rtmp agreements can be instructed according to embedded video on demand, improves user experience.
In addition, the present invention also proposes a kind of video file processing method.
As shown in fig.4, it is the implementation process diagram of video file processing method first embodiment of the present invention.In this reality It applies in example, according to different demands, the execution of the step in flow chart shown in Fig. 4 sequence can change, and certain steps can be with It omits.
Step S401 defines the calling interface between S3 servers 4 and nginx servers 5 based on CEPH specifications.
CEPH is a kind of distributed file system, can be divided into four levels:(1) basic storage system, (2) base library Librados, (3) higher layer applications interface:This layer includes three parts:RADOS GW(RADOS Gateway)、RBD (Reliable Block Device) and Ceph FS (Ceph File System), effect is on the basis in librados libraries It is upper that abstraction hierarchy higher is provided, is more convenient for applying or high-level interface that client 1 uses, wherein RADOS GW be one provide with The gateway of Amazon S3 servers 4 and the RESTful API of Swift compatibilities, so that corresponding object stores application and development It uses.(4) application layer.Above-mentioned CEPH has CEPH specifications, can be between at all levels in CEPH systems by CEPH specifications Interface calls.
In above-mentioned CEPH systems, one of level --- higher layer applications interface can be external connected server or Person's client 1 provides high-level interface, i.e. CEPH can with specification itself with S3 servers 4 and the calling interface of nginx servers 5, Simultaneously as S3 servers 4 are a kind of simple storage service units, there are specific access interface, CEPH can pass through specification Define the calling interface of S3 servers 4 and nginx servers 5 in storage object calling process.
Step S402, uploaded videos file to S3 servers 4 are simultaneously stored to a memory paragraph.Specifically, the uploaded videos File to S3 servers 4 and the specific steps that store to a memory paragraph will be in video file processing method second embodiment of the present invention (Fig. 5) is described in detail.
Step S403 plays the order of the memory paragraph content defined in the configuration file of nginx servers 5.
Specifically, the nginx servers 5 include rtmp modules, wherein, it is fixed in the configuration file of nginx servers 5 Justice plays the rtmp module of the step of order of the memory paragraph content specifically for the configuration nginx servers 5. Rtmp (Real Time Messaging Protocol) real-time messages transportation protocol is that Adobe Systems companies are Flash The open protocol of audio, video and data transmission exploitation between player and server.
In the present embodiment, the rtmp modules of configuration nginx servers 5 are as follows by being increased newly in nginx.conf Content is realized:
Step S404, the video playing that client 1 is received by nginx servers 5 instruct, and judge the video playing It instructs and whether is matched with the order for playing the memory paragraph content.The video playing instruction is utilized for the client 1 Player opens the click order of link.
In the present embodiment, the client 1 can be by using VLC multimedia players or other supports rtmp The player of agreement opens following chain and fetches initiation video playing instruction:rtmp://{nginx_server}/vod_http/ video.mp4。
Step S405 in video playing instruction and the commands match of the broadcasting memory paragraph content, passes through The calling interface transfers the content of the memory paragraph to the nginx servers..
Step S406, for controlling the content of storage end described in the nginx server transports to client 1.
By above-mentioned steps S401-406, video file processing method proposed by the invention, first, based on CEPH specifications Define the calling interface between S3 servers 4 and nginx servers 5;Secondly, uploaded videos file is to S3 servers 4 and stores To a memory paragraph;Then, the order of the memory paragraph content is played defined in the configuration file of nginx servers 5;Then, The video playing that client is received by nginx servers instructs, and judges described in the video playing instruction and the broadcasting Whether the order of memory paragraph content matches;If the video playing instruction and the order for playing the memory paragraph content Match, the content that the memory paragraph is transferred finally by the calling interface takes to the nginx servers, and by the nginx Device of being engaged in transmits the content of the storage end to the client.In this way, the spy of data both can be quickly read using S3 servers Property, realize the program request effect of video file that client stores local disk.The characteristic of S3 servers can be utilized to realize again The arbitrary storage of video file storage ensures the stability of video file storage and the convenience of reading, while can also be according to The service that video on demand is realized under rtmp agreements is instructed according to embedded video on demand, improves user experience.
As shown in fig.5, it is the implementation process diagram of video file processing method second embodiment of the present invention.In this reality It applies in example, according to different demands, the execution of the step in flow chart shown in fig. 5 sequence can change, and certain steps can be with It omits.
In the present embodiment, the uploaded videos file to S3 servers 4 and is stored to the flow of a memory paragraph, specific to wrap Include following steps:
Step S501 defines the video files names of upload.
Step S502 accesses the access rights of the video file according to the setting of 4 specification of S3 servers.
In the present embodiment, mp4 flv files can be uploaded to this bucket of the movie of S3 servers 4 (memory paragraph), and the file name of upload is named as " video.mp4 ", while it is " public-read " to set access rights And corresponding content-type, by taking S3 servers cmd as an example, setting instruction is:s3cmd put video.mp4s3://movie--acl-public。
By above-mentioned steps S501-502, video file processing method proposed by the invention can be uploaded by defining Video files names and the access rights of the video file are accessed come uploaded videos text according to the setting of 4 specification of S3 servers Part is to S3 servers 4.In this way, realizing the unlimited dilatation of video file storage, ensure stability and the reading of video file storage The convenience taken.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored with video file processing routine, and the video file processing routine can be held by least one processor Row, so that the step of at least one processor performs video file processing method as described above.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of video file processing method, applied to application server, which is characterized in that the method includes:
Calling interface between S3 servers and nginx servers is defined based on CEPH specifications;
Uploaded videos file is to S3 servers and stores to a memory paragraph;
The order of the memory paragraph content is played defined in the configuration file of nginx servers;
The video playing that client is received by nginx servers instructs, and judges the video playing instruction and the broadcasting Whether the order of the memory paragraph content matches;And
If the video playing instruction and the commands match for playing the memory paragraph content, are transferred by the calling interface The content of the memory paragraph to the nginx servers, and as described in the nginx server transports storage end content to institute State client.
2. video file processing method as described in claim 1, which is characterized in that deposited described in the nginx server transports The content of Chu Duan to the step of client, specifically includes:
The content of the memory paragraph of acquisition is transmitted to the client with rtmp agreements.
3. video file processing method as described in claim 1, which is characterized in that the video playing instruction is the client The click order of link is opened using player in end.
4. video file processing method as described in claim 1, which is characterized in that the nginx servers include rtmp moulds Block, wherein, it is specifically used for matching the step of the order of the broadcasting memory paragraph content defined in the configuration file of nginx servers Put the rtmp modules of the nginx servers.
5. video file processing method as described in claim 1, which is characterized in that the uploaded videos file to S3 servers And the step of storing to a memory paragraph, including:
Define the video files names uploaded;And
The access rights of the video file are accessed according to the setting of S3 server specifications.
6. a kind of application server, which is characterized in that the application server includes memory, processor, on the memory The video file processing routine that can be run on the processor is stored with, the video file processing routine is by the processor Following steps are realized during execution:
Calling interface between S3 servers and nginx servers is defined based on CEPH specifications;
Uploaded videos file is to S3 servers and stores to a memory paragraph;
The order of the memory paragraph content is played defined in the configuration file of nginx servers;
The video playing that client is received by nginx servers instructs, and judges the video playing instruction and the broadcasting Whether the order of the memory paragraph content matches;And
If the video playing instruction and the commands match for playing the memory paragraph content, are transferred by the calling interface The content of the memory paragraph to the nginx servers, and as described in the nginx server transports storage end content to institute State client.
7. application server as claimed in claim 6, which is characterized in that the video file processing routine is by the processor During execution, the content of storage end to the step of client described in the nginx server transports, specifically includes:
The content of the memory paragraph of acquisition is transmitted to the client with rtmp agreements.
8. application server as claimed in claim 6, which is characterized in that the video playing instruction is utilized for the client Player opens the click order of link.
9. application server as claimed in claim 6, which is characterized in that the uploaded videos file is to S3 servers and stores The step of to a memory paragraph, including:
Define the video files names uploaded;And
The access rights of the video file are accessed according to the setting of S3 server specifications.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has video file processing routine, institute Stating video file processing routine can be performed by least one processor, so that at least one processor performs such as claim The step of video file processing method described in any one of 1-5.
CN201810003943.8A 2018-01-03 2018-01-03 Video file processing method, application server and computer readable storage medium Active CN108200061B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810003943.8A CN108200061B (en) 2018-01-03 2018-01-03 Video file processing method, application server and computer readable storage medium
PCT/CN2018/089425 WO2019134338A1 (en) 2018-01-03 2018-06-01 Video file processing method and program, application server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810003943.8A CN108200061B (en) 2018-01-03 2018-01-03 Video file processing method, application server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108200061A true CN108200061A (en) 2018-06-22
CN108200061B CN108200061B (en) 2020-12-04

Family

ID=62587657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810003943.8A Active CN108200061B (en) 2018-01-03 2018-01-03 Video file processing method, application server and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108200061B (en)
WO (1) WO2019134338A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565168A (en) * 2020-03-02 2020-08-21 杭州云毅网络科技有限公司 Object storage method, system, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102154A1 (en) * 2010-10-26 2012-04-26 Futurewei Technologies, Inc. Cloud-Based Transcoding Platform Systems and Methods
CN105657440A (en) * 2016-01-05 2016-06-08 福建星网智慧科技股份有限公司 Video broadcast method and system
CN105657443A (en) * 2015-12-30 2016-06-08 深圳市云宙多媒体技术有限公司 Live broadcast and time shifting playing method and system
US20170054590A1 (en) * 2015-08-21 2017-02-23 Rohit Agarwal Multi-Tenant Persistent Job History Service for Data Processing Centers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657379A (en) * 2017-01-06 2017-05-10 重庆邮电大学 Implementation method and system for NGINX server load balancing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120102154A1 (en) * 2010-10-26 2012-04-26 Futurewei Technologies, Inc. Cloud-Based Transcoding Platform Systems and Methods
US20170054590A1 (en) * 2015-08-21 2017-02-23 Rohit Agarwal Multi-Tenant Persistent Job History Service for Data Processing Centers
CN105657443A (en) * 2015-12-30 2016-06-08 深圳市云宙多媒体技术有限公司 Live broadcast and time shifting playing method and system
CN105657440A (en) * 2016-01-05 2016-06-08 福建星网智慧科技股份有限公司 Video broadcast method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
RAZVAN TUDORICA: "Streaming Video on Demand with nginx and RTMP Module", 《HTTP://WWW.LEASEWEB.COM/LABS/2013/11/STREAMING-VIDEO-DEMAND-NGINX-RTMP-MODULE/》 *
RUFAEL MEKURIA等: "Multi-Protocol Video Delivery with Late Trans-Muxing", 《MM’16:PROCEEDINGS OF THE 24TH ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA》 *
V.D. AMBETH KUMAR等: "Cloud Enabled Media Streaming using Amazon Web Services", 《2017 IEEE INTERNATIONAL CONFERENCE ON SMART TECHNOLOGIES AND MANAGEMENT FOR COMPUTING》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565168A (en) * 2020-03-02 2020-08-21 杭州云毅网络科技有限公司 Object storage method, system, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2019134338A1 (en) 2019-07-11
CN108200061B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
KR101196080B1 (en) Content management for packet-communicating devices
CN111277869B (en) Video playing method, device, equipment and storage medium
CN105025351B (en) The method and device of DST PLAYER buffering
US20140298395A1 (en) Methods and systems for playing video on multiple terminals
CN101977218B (en) Internet playing file transcoding method and system
US20090094652A1 (en) Methods and Apparatus for Simultaneous Uploading and Streaming of Media
CN109286820B (en) Stream media ordering method and system based on distributed memory system
CN102710789A (en) Interaction method, system and device for data between intelligent terminals
CN107147921A (en) Based on section and the intelligence CDN video playback accelerated methods dispatched and equipment
US20180373736A1 (en) Method and apparatus for storing resource and electronic device
CN109218430A (en) A kind of video file transfer method, system and electronic equipment and storage medium
CN102006368A (en) Streaming media audio file play method based on mobile terminal memory card cache technology
CN107911401A (en) Application plug-in expansion function methods and application server
CN109800594A (en) Document access authority management method, device and computer equipment
CN108429922A (en) Video file processing method, application server and computer readable storage medium
CN103686429A (en) Audio system and method for realizing shared playing of cloud media
CN110139123A (en) The broadcasting of files in stream media, transmission, treating method and apparatus
CN103873929A (en) Method and device for playing multimedia data
CN107682426A (en) interface proxy method and application server
CN108200061A (en) Video file processing method, application server and computer readable storage medium
EP3160101B1 (en) Multi-media resource management method, cloud server and electronic device
CN101997743A (en) Method for sharing file information
US20220365959A1 (en) Multimedia file storage and access method
US8291004B2 (en) Remotely controlling playback of media content on a wireless communication device
WO2022242461A1 (en) Method and apparatus for processing livestream audio/video, client, and server

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
GR01 Patent grant
GR01 Patent grant