CN108156478A - Mp4 formatted files turn the video on-demand system and method for hls forms - Google Patents

Mp4 formatted files turn the video on-demand system and method for hls forms Download PDF

Info

Publication number
CN108156478A
CN108156478A CN201611108849.6A CN201611108849A CN108156478A CN 108156478 A CN108156478 A CN 108156478A CN 201611108849 A CN201611108849 A CN 201611108849A CN 108156478 A CN108156478 A CN 108156478A
Authority
CN
China
Prior art keywords
files
hls
video
file
formatted
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
CN201611108849.6A
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.)
Johnsen Shilian Digital Technology (beijing) Co Ltd
Chuangsheng Shilian Digital Technology Beijing Co Ltd
Original Assignee
Johnsen Shilian Digital Technology (beijing) 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 Johnsen Shilian Digital Technology (beijing) Co Ltd filed Critical Johnsen Shilian Digital Technology (beijing) Co Ltd
Priority to CN201611108849.6A priority Critical patent/CN108156478A/en
Publication of CN108156478A publication Critical patent/CN108156478A/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses the video on-demand systems that a kind of mp4 formatted files turn hls forms, and including mobile video playback terminal etc., mobile video playback terminal is used to initiate the target video file playing request of user and performance objective video file plays;Nginx types server is as the information interchange service platform contact mobile video playback terminal of system, unified resource library, configuration slice module, and the target video file generated m3u8 listing files being directed in unified resource library;Unified resource library is high in the clouds resources bank, for storing video file and supplying nginx type server calls video files.Mp4 format video resources in the resources bank of high in the clouds are converted into hls format video resources by the present invention using nginx types server, solve the problems, such as that mobile terminal broadcast format is single, because many customer requirements support the broadcasting of hls format videos.

Description

Mp4 formatted files turn the video on-demand system and method for hls forms
Technical field
The present invention relates to a kind of video on-demand system and methods, turn hls forms more particularly to a kind of mp4 formatted files Video on-demand system and method.
Background technology
Traditional internet video cloud playing platform, is typically used as using the link of " .m3u8 " as a suffix name The broadcasting url of the video is asked, then the corresponding ts files of the m3u8 are transferred to the client of request broadcasting by server.It is existing Video cloud playing platform have of both shortcoming:First, the broadcasting url of one m3u8 of request, server-side only can be by corresponding ts Client is returned to, and if the file stored in server is mp4 or extended formatting, client request m3u8 can not will be right The mp4 file downloads answered play back;Second is that for the user of mobile terminal iOS platforms, due to platform identity, the overwhelming majority is broadcast Request is put based on m3u8 agreements, therefore this certain customers just must to mp4 or the video of extended formatting in viewing program request platform First file download must be got off, could be watched.
Invention content
The technical problems to be solved by the invention are to provide the video on-demand system that a kind of mp4 formatted files turn hls forms And method, the mp4 format video resources in the resources bank of high in the clouds are converted into hls format videos using nginx types server and are provided Source, do not supported for mobile terminal mp4 format videos file play the problem of provide mp4 format video document play-back methods, together When solve iOS system user video playing request can not by high in the clouds resources bank respond lead to not watch high in the clouds resources bank online The problem of interior video resource.
The present invention is to solve above-mentioned technical problem by following technical proposals:A kind of mp4 formatted files turn hls forms Video on-demand system, including mobile video playback terminal, nginx types server, configuration slice module, unified resource library, Mp4 formatted files turn hls formatted file modules, and the target video file broadcasting that mobile video playback terminal is used to initiate user please Performance objective video file of summing plays;Nginx types server contacts mobile video as the information interchange service platform of system Playback terminal, unified resource library, configuration slice module, and for the target video file generated m3u8 lists in unified resource library File;Unified resource library is high in the clouds resources bank, for storing video file and supplying nginx type server calls video files;Match It puts slice module and is used to being configured the slice length of target video file, nginx types server is according to the slice of target video file Length generates m3u8 listing files, and m3u8 listing files are sent to mp4 formatted files and turn hls formatted file modules;Mp4 lattice Formula file turns hls formatted files module for receiving and parsing the corresponding mp4 formatted files of m3u8 listing files, and will be after parsing The hls formatted files of generation are sent to the broadcasting of mobile video playback terminal, and mp4 formatted files turn hls formatted file modules and include Box resolvers, audio data packing device, hls formatted file generators, box resolvers are used to parse box in mp4 files simultaneously Box is reduced into video media information;Audio data packing device is used to the aac audio datas in mp4 files being packaged into adts After head in write-in audio packages;Hls formatted files generator is video media information and audio packages generation ts texts Part, ts files are played by mobile video playback terminal.
Preferably, the configuration slice module includes the file item there are one entitled hls_length, hlslength files Item is used to record the specific slice length value of target video file.
Preferably, the mp4 formatted files turn the video on-demand system compatibility high standard mp4 audio datas HE_ of hls forms AACv1 and HE_AACv2.
The present invention also provides the VOD method that a kind of mp4 formatted files turn hls forms, including having descended step:
Step 1, configuration slice module are configured the slice length of video file in unified resource library and pass through hls_length File item provides nginx types server the slice length numerical value of each video file;
Step 2, user initiate nginx types server by mobile video playback terminal the broadcasting of target video file Request, the particular content of playing request is the filename of target video file;
Step 3, nginx type servers judge the file name suffix of target video file, for the file that suffix is mp4 Name, nginx types server find target video file corresponding with filename out of unified resource library, according to target video text The slice length numerical generation m3u8 listing files of part are simultaneously sent to mobile video playback terminal, for the file that suffix is m3u8 Name, the uri path of nginx types server parsing file name obtain target video file url corresponding with filename, and will The ancient deed name for initiating playing request is modified as new filename corresponding with target video file url, and nginx types server is from system Target video file corresponding with new filename is found in one resources bank, is given birth to according to the slice length numerical value of the target video file Into m3u8 listing files and it is sent to mobile video playback terminal;
Step 4, mobile video playback terminal, which parses the url in m3u8 listing files and passes through url, calls unified resource library Interior mp4 form target video files;
Step 5, turn hls formatted files module by mp4 formatted files is by the target video document analysis of mp4 forms Video media information and audio packages, ultimately generate hls formatted files, are played on mobile video playback terminal.
Preferably, the ancient deed name in the step 3 is modified as new filename including changing file name suffix, with m3u8 Ancient deed name for suffix is modified as the new filename using mp4 as suffix.
The positive effect of the present invention is:The present invention utilizes nginx types server by the mp4 lattice in the resources bank of high in the clouds Formula video resource is converted into hls format video resources, is mp4 format videos source for server-side, and mobile terminal can not play hls The problem of, while the video playing request for solving iOS system user can not be responded by high in the clouds resources bank and lead to not watch online The problem of video resource in the resources bank of high in the clouds.
Description of the drawings
Fig. 1 is flow chart of the method for the present invention.
Specific embodiment
Present pre-ferred embodiments are provided below in conjunction with the accompanying drawings, with the technical solution that the present invention will be described in detail.
As shown in Figure 1, the video on-demand system that mp4 formatted files of the present invention turn hls forms includes mobile video broadcasting eventually End, nginx types server, configuration slice module, unified resource library, mp4 formatted files turn hls formatted file modules, and movement regards Frequency playback terminal is used to initiate the target video file playing request of user and performance objective video file plays;Nginx types take Device be engaged in as the information interchange service platform contact mobile video playback terminal of system, unified resource library, configuration slice module, and For the target video file generated m3u8 listing files in unified resource library;Unified resource library is high in the clouds resources bank, for depositing It stores up video file and supplies nginx type server calls video files;Configuration slice module is used to that cutting for target video file to be configured Leaf length, (iOS system is dedicated according to the slice length of target video file generation m3u8 listing files for nginx types server List of videos file), and m3u8 listing files are sent to mp4 formatted files and turn hls formatted file modules;Mp4 forms text Part turns hls formatted files module for receiving and parsing the corresponding mp4 formatted files of m3u8 listing files, and will be generated after parsing Hls formatted files be sent to mobile video playback terminal broadcasting, mp4 formatted files turn hls formatted files module include box solution Parser, audio data packing device, hls formatted file generators, box resolvers are used to parse the box (multimedias in mp4 files To-go box plays video information store function in mp4 files) and box is reduced into video media information;Audio data is packaged Device is used to aac (mp4 audio datas format name) audio data in mp4 files being packaged into adts (hls audio data lattice Formula title) it is written in audio packages (packets of audio data of hls) afterwards;Hls formatted file generators are video media information With audio packages generation ts files (generating hls formatted files), ts files are played by mobile video playback terminal.
Configuration slice module includes the file item there are one entitled hls_length, and hls_length file items are used to record Hls_length is such as configured in the specific slice length value of target video file:5, then it represents that the slice length of target video file For 5 seconds fragments.
Mp4 formatted files turn video on-demand system compatibility high standard mp4 the audio datas HEAACv1 and HE_ of hls forms AACv2 (HE_AAC, that is, High Efficiency_acc represent high-performance acc data), ordinary playing device are playing and F.F. height It will appear the problem of audio is noisy during specification mp4 audio datas, the reason is that high standard mp4 audio datas pass through frequency range reproduction technology Frequency spectrum is cut open to achieve the purpose that more preferably to preserve sound quality, the separately encoded preservation main component of low-frequency spectra, high frequency spectrum list Solely amplification coding preserves sound quality, and audio data packing device is when being packaged HE_AAC and HE_AACv2 audio datas to audio sample rate Double operation is carried out, halves audio encapsulation rate when being packaged into adts, such mobile video playback terminal is when decoding broadcasting It is double to audio data progress, it just can normal play high standard mp4 audio datas.
The VOD method that mp4 formatted files of the present invention turn hls forms includes the following steps:
Step 1, configuration slice module are configured the slice length of video file in unified resource library and pass through hls_length File item provides nginx types server the slice length numerical value of each video file;
Step 2, user initiate nginx types server by mobile video playback terminal the broadcasting of target video file Request, the particular content of playing request is the filename of target video file;
Step 3, nginx type servers judge the file name suffix of target video file, for the file that suffix is mp4 Name, nginx types server find target video file corresponding with filename out of unified resource library, according to target video text The slice length numerical generation m3u8 listing files of part are simultaneously sent to mobile video playback terminal, for the file that suffix is m3u8 Name, nginx types server parsing file name uri path (uniform resource identifier path) obtain it is corresponding with filename Target video file url (uniform resource locator, i.e., target video file is in the resource location information in unified resource library), and will The ancient deed name for initiating playing request is modified as new filename corresponding with target video file url, and nginx types server is from system Target video file corresponding with new filename is found in one resources bank, is given birth to according to the slice length numerical value of the target video file Into m3u8 listing files and it is sent to mobile video playback terminal;
Step 4, mobile video playback terminal, which parses the url in m3u8 listing files and passes through url, calls unified resource library Interior mp4 form target video files;
Step 5, turn hls formatted files module by mp4 formatted files is by the target video document analysis of mp4 forms Video media information and audio packages, ultimately generate hls formatted files, are played on mobile video playback terminal.
Ancient deed name in step 3 is modified as new filename and includes modification file name suffix, using m3u8 as the old text of suffix Part name is modified as the new filename using mp4 as suffix.
In conclusion the mp4 format video resources in the resources bank of high in the clouds are converted by the present invention using nginx types server Hls format video resources, the problem of mp4 format videos file is not supported to play for mobile terminal, provide mp4 format videos text Part playback method, while the video playing request for solving iOS system user can not be responded by high in the clouds resources bank and be led to not online The problem of watching the video resource in the resources bank of high in the clouds.
Particular embodiments described above, the technical issues of to the solution of the present invention, technical solution and advantageous effect carry out It is further described, it should be understood that the above is only a specific embodiment of the present invention, is not limited to The present invention, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in this Within the protection domain of invention.

Claims (5)

1. a kind of mp4 formatted files turn the video on-demand system of hls forms, which is characterized in that it includes mobile video and plays eventually End, nginx types server, configuration slice module, unified resource library, mp4 formatted files turn hls formatted file modules, and movement regards Frequency playback terminal is used to initiate the target video file playing request of user and performance objective video file plays;Nginx types take Device be engaged in as the information interchange service platform contact mobile video playback terminal of system, unified resource library, configuration slice module, and For the target video file generated m3u8 listing files in unified resource library;Unified resource library is high in the clouds resources bank, for depositing It stores up video file and supplies nginx type server calls video files;Configuration slice module is used to that cutting for target video file to be configured Leaf length, nginx types server generate m3u8 listing files, and m3u8 lists is literary according to the slice length of target video file Part is sent to mp4 formatted files and turns hls formatted file modules;Mp4 formatted files turn hls formatted files module for receive reconciliation The corresponding mp4 formatted files of m3u8 listing files are analysed, and the hls formatted files generated after parsing are sent to mobile video and are played Terminal plays, mp4 formatted files turn hls formatted files module and include box resolvers, audio data packing device, hls formatted files Generator, box resolvers are used to parse the box in mp4 files and box is reduced into video media information;Audio data is packaged Device is used for after the aac audio datas in mp4 files are packaged into adts in write-in audio packages;Hls formatted files are given birth to It grows up to be a useful person video media information and audio packages generation ts files, ts files are played by mobile video playback terminal.
2. mp4 formatted files as described in claim 1 turn the video on-demand system of hls forms, which is characterized in that the configuration Slice module includes the file item there are one entitled hls_length, and hlslength file items are used to record target video file Specific slice length value.
3. mp4 formatted files as described in claim 1 turn the video on-demand system of hls forms, which is characterized in that the mp4 Formatted file turns video on-demand system compatibility high standard mp4 the audio datas HE_AACv1 and HE_AACv2 of hls forms.
4. a kind of mp4 formatted files turn the VOD method of hls forms, which is characterized in that it includes the following steps:
Step 1, configuration slice module are configured the slice length of video file in unified resource library and pass through hls_length files Item provides nginx types server the slice length numerical value of each video file;
Step 2, user initiate nginx types server by mobile video playback terminal the playing request of target video file, The particular content of playing request is the filename of target video file;
Step 3, nginx type servers judge the file name suffix of target video file, for suffix be mp4 filename, Nginx types server finds target video file corresponding with filename out of unified resource library, according to the target video file Slice length numerical generation m3u8 listing files and be sent to mobile video playback terminal, for suffix be m3u8 file Name, the uri path of nginx types server parsing file name obtain target video file url corresponding with filename, and will The ancient deed name for initiating playing request is modified as new filename corresponding with target video file url, and nginx types server is from system Target video file corresponding with new filename is found in one resources bank, is given birth to according to the slice length numerical value of the target video file Into m3u8 listing files and it is sent to mobile video playback terminal;
Step 4, mobile video playback terminal parse the url in m3u8 listing files and are called in unified resource library by url Mp4 form target video files;
Step 5, it is video to turn hls formatted files module by the target video document analysis of mp4 forms by mp4 formatted files Media information and audio packages, ultimately generate hls formatted files, are played on mobile video playback terminal.
5. mp4 formatted files as claimed in claim 4 turn the VOD method of hls forms, which is characterized in that the step Ancient deed name in three be modified as new filename include modification file name suffix, the ancient deed name using m3u8 as suffix be modified as with Mp4 is the new filename of suffix.
CN201611108849.6A 2016-12-06 2016-12-06 Mp4 formatted files turn the video on-demand system and method for hls forms Pending CN108156478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611108849.6A CN108156478A (en) 2016-12-06 2016-12-06 Mp4 formatted files turn the video on-demand system and method for hls forms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611108849.6A CN108156478A (en) 2016-12-06 2016-12-06 Mp4 formatted files turn the video on-demand system and method for hls forms

Publications (1)

Publication Number Publication Date
CN108156478A true CN108156478A (en) 2018-06-12

Family

ID=62469837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611108849.6A Pending CN108156478A (en) 2016-12-06 2016-12-06 Mp4 formatted files turn the video on-demand system and method for hls forms

Country Status (1)

Country Link
CN (1) CN108156478A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587517A (en) * 2018-12-07 2019-04-05 咪咕视讯科技有限公司 Multimedia file playing method and device, server and storage medium
CN110493662A (en) * 2019-08-21 2019-11-22 广州汇思信息科技有限公司 A kind of video segment method, apparatus, computer equipment and storage medium
WO2020034330A1 (en) * 2018-09-28 2020-02-20 Zte Corporation Video encoding and decoding methods and apparatus
CN110856047A (en) * 2019-12-05 2020-02-28 湖南省农业信息与工程研究所 Decomposition method of traceability video file, streaming media server and client
CN111356028A (en) * 2020-03-16 2020-06-30 南京巨鲨显示科技有限公司 Method and device for realizing file sequence on demand by streaming media service
CN112148917A (en) * 2019-06-28 2020-12-29 西安诺瓦星云科技股份有限公司 Media playing control method, device and system and computer readable storage medium
CN113497952A (en) * 2021-05-12 2021-10-12 北京阳光云视科技有限公司 MP4 file real-time streaming gateway control system and control flow
CN113766270A (en) * 2021-02-26 2021-12-07 北京沃东天骏信息技术有限公司 Video playing method, system, server, terminal equipment and electronic equipment
CN114339452A (en) * 2022-01-25 2022-04-12 福建中科多特健康科技有限公司 Video playing method and storage device
CN115174992A (en) * 2022-07-06 2022-10-11 深圳市瑞驰信息技术有限公司 Method and system for realizing TS video playing based on NGINX

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020034330A1 (en) * 2018-09-28 2020-02-20 Zte Corporation Video encoding and decoding methods and apparatus
US11589047B2 (en) 2018-09-28 2023-02-21 Zte Corporation Video encoding and decoding methods and apparatus
CN109587517A (en) * 2018-12-07 2019-04-05 咪咕视讯科技有限公司 Multimedia file playing method and device, server and storage medium
CN112148917A (en) * 2019-06-28 2020-12-29 西安诺瓦星云科技股份有限公司 Media playing control method, device and system and computer readable storage medium
CN112148917B (en) * 2019-06-28 2024-05-10 西安诺瓦星云科技股份有限公司 Media play control method, device and system and computer readable storage medium
CN110493662A (en) * 2019-08-21 2019-11-22 广州汇思信息科技有限公司 A kind of video segment method, apparatus, computer equipment and storage medium
CN110856047A (en) * 2019-12-05 2020-02-28 湖南省农业信息与工程研究所 Decomposition method of traceability video file, streaming media server and client
CN111356028A (en) * 2020-03-16 2020-06-30 南京巨鲨显示科技有限公司 Method and device for realizing file sequence on demand by streaming media service
CN113766270A (en) * 2021-02-26 2021-12-07 北京沃东天骏信息技术有限公司 Video playing method, system, server, terminal equipment and electronic equipment
CN113497952A (en) * 2021-05-12 2021-10-12 北京阳光云视科技有限公司 MP4 file real-time streaming gateway control system and control flow
CN114339452A (en) * 2022-01-25 2022-04-12 福建中科多特健康科技有限公司 Video playing method and storage device
CN115174992A (en) * 2022-07-06 2022-10-11 深圳市瑞驰信息技术有限公司 Method and system for realizing TS video playing based on NGINX

Similar Documents

Publication Publication Date Title
CN108156478A (en) Mp4 formatted files turn the video on-demand system and method for hls forms
JP6681986B2 (en) Coded next generation audio data selection for transport
US10560726B2 (en) System and method for delivery and caching of personalized media streaming content
CN104396263B (en) For the method and system of the real-time multiplexing transformation of streaming content
CN104902343B (en) A kind of method, server and the terminal of transmission and playing audio-video and message
CN102118428B (en) Method and system for playing streaming media
US8973032B1 (en) Advertisement insertion into media content for streaming
CN103051931B (en) Review performance recording, playback method, server, client and system
CN107277081A (en) Section method for down loading and device, the stream media system of stream medium data
KR101885852B1 (en) Method and apparatus for transmitting and receiving content
CN104125516B (en) Media file reception, media file sending method and apparatus and system
CN105828096B (en) Method and device for processing media stream file
WO2015035942A1 (en) Method for playing back live video and device
CN105228001B (en) A kind of method and system that FLV format videos play online
US20140310762A1 (en) Receiving device and method of controlling the same, distribution device and distribution method, program, and distribution system
CN104410902B (en) The player method and terminal of a kind of programme televised live, the generation method and equipment of index file
CN103763637A (en) Stream media broadcasting method and system
CN104125229B (en) The player method of Streaming Media and playing device
WO2017092327A1 (en) Playing method and apparatus
WO2017185601A1 (en) Method and device for providing and downloading video
CN104661058A (en) MP4 video on demand data stream transmission method, client side and video on demand system
KR102085192B1 (en) Rendering time control
CN105409235A (en) File generation device and method, and content reproduction device and method
CN105208440A (en) Online playing method and system for MP4-format video
JP2022019932A (en) Information processing apparatus and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180612

WD01 Invention patent application deemed withdrawn after publication