CN113347462B - Method for realizing video-on-demand of multiple videos according to time based on video source information joint - Google Patents

Method for realizing video-on-demand of multiple videos according to time based on video source information joint Download PDF

Info

Publication number
CN113347462B
CN113347462B CN202110611417.1A CN202110611417A CN113347462B CN 113347462 B CN113347462 B CN 113347462B CN 202110611417 A CN202110611417 A CN 202110611417A CN 113347462 B CN113347462 B CN 113347462B
Authority
CN
China
Prior art keywords
video
stream
time point
server
file
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.)
Active
Application number
CN202110611417.1A
Other languages
Chinese (zh)
Other versions
CN113347462A (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.)
Fujian Wanfu Information Technology Co ltd
Original Assignee
Fujian Wanfu Information 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 Fujian Wanfu Information Technology Co ltd filed Critical Fujian Wanfu Information Technology Co ltd
Priority to CN202110611417.1A priority Critical patent/CN113347462B/en
Publication of CN113347462A publication Critical patent/CN113347462A/en
Application granted granted Critical
Publication of CN113347462B publication Critical patent/CN113347462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/21Server components or server architectures
    • H04N21/222Secondary servers, e.g. proxy server, cable television Head-end
    • 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/233Processing of audio elementary streams
    • H04N21/2335Processing of audio elementary streams involving reformatting operations of audio signals, e.g. by converting from one coding standard to another
    • 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
    • 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/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • 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/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • 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/439Processing of audio elementary streams
    • H04N21/4398Processing of audio elementary streams involving reformatting operations of audio signals
    • 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • 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)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for realizing the on-demand of a plurality of videos according to time based on video source information joint. The method comprises the following steps: storing the video file on a file server; adding a media proxy server and a streaming media server between a file server and a client browser; the client browser sends a time point for starting playing to the media proxy server; the media proxy server searches the video file containing the time point from the file server, and pushes the stream to the streaming media server from the appointed time point, and returns a stream playing address to the client browser; the client browser receives the flv format video stream to start playing by using an h5 player; the end of the video or the client re-selection time is encountered and the process is repeated. The method and the device are convenient to operate, the client does not need to interact with the file server, the flow is saved, in addition, the flv protocol is used for packaging the video, compared with the hls protocol, the flv protocol does not need to slice the video, and the video playing speed is high.

Description

Method for realizing video-on-demand of multiple videos according to time based on video source information joint
Technical Field
The invention relates to a method for realizing on-demand of a plurality of videos according to time based on video source information joint.
Background
In the existing method of playing a video through a browser, as shown in fig. 1, since a video file is stored in a file server, if a user wants to watch a video at a corresponding time node, the user needs to select to download the video file containing the corresponding time node according to a video file directory on the browser and then play the video, and if the user wants to watch a video at another time node and the originally downloaded video file does not contain the video at the time node, the user needs to return to the video file directory to select to download the corresponding video file and then play the video.
Disclosure of Invention
The invention aims to provide a method for realizing the on-demand of a plurality of videos according to time based on video source information joint, which ensures that the video playing operation is convenient and fast, a client does not need to interact with a file server, and the flow is saved.
In order to achieve the purpose, the technical scheme of the invention is as follows: a method for realizing the on-demand of a plurality of videos according to time based on the information joint of video sources comprises the following steps:
s1, storing the video file on a file server;
s2, adding a media proxy server and a streaming media server between the file server and the client browser;
s3, the client browser sends the time point of starting playing to the media proxy server;
s4, the media proxy server searches the video file containing the time point from the file server; after finding out the video file, the media proxy server starts to push the stream to the streaming media server from the appointed time point, and returns a stream playing address to the client browser;
s5, the client browser uses the h5 player to accept the flv format video stream to start playing;
s6, encountering the end of the video or the customer reselection time, then repeating steps S3-S5.
In an embodiment of the present invention, a specific implementation manner in which the media proxy server starts streaming to the streaming media server from a specified time point and returns a streaming address to the client browser is as follows:
(1) after finding out the video file, the media proxy server obtains the start time S corresponding to the video file, calculates the start time T of the video at the time point R requested by the client, and adopts the formula: t = R-S; and converted into seconds;
(2) separating a video stream and an audio stream from a video file;
(3) stuffing the video stream and the audio stream into a pipeline, and jumping to the starting time T calculated in the step (1);
(4) for the video stream, a first key frame after the time point needs to be found, traversal is started from the first frame, if the first key frame is not found, the first key frame is abandoned until the first key frame is found, a time point U corresponding to the key frame is recorded, and the audio stream is made to jump to the time point;
(5) encapsulating the video stream and the audio stream starting from the time point U into an FLV format;
(6) acquiring the address of a streaming media server and starting pushing;
(7) and the client browser acquires a stream playing address and starts to pull and play the stream.
In an embodiment of the present invention, the process of starting streaming from a specified time point by the media proxy server to the streaming media server and returning a streaming address to the client browser further includes:
(8) and (4) if the video file is played to the end, recording the playing time, taking the time as a time point R requested by a new client, and returning to the step (1).
In one embodiment of the present invention, in step (2), the video file is an mp4 video file.
Compared with the prior art, the invention has the following beneficial effects:
1. the method is convenient and fast to operate, the client does not need to interact with the file server, and does not need to know whether the file server has files, namely, the method carries out on-demand according to time periods and does not need the front end to obtain a video directory;
2. the flow is saved, and the client does not need to download a complete video file and plays the video file where the video file is downloaded.
3. The speed is improved, the flv protocol is used for packaging the video, compared with the hls protocol, the flv protocol does not need to slice the video, the speed is inherently faster than hls, the hls delay is 6-10 seconds through tests, and the flv delay is within 3 seconds.
Drawings
Fig. 1 shows a conventional browser video playback mode.
FIG. 2 is a schematic diagram of a method for implementing a plurality of videos on demand according to time based on video source information splicing according to the present invention.
Detailed Description
The technical scheme of the invention is specifically explained below with reference to the accompanying drawings.
As shown in fig. 2, the method for implementing a plurality of videos on demand according to time based on video source information splicing of the present invention comprises the following steps:
s1, storing the video file on a file server;
s2, adding a media proxy server and a streaming media server between the file server and the client browser;
s3, the client browser sends the time point of starting playing to the media proxy server;
s4, the media proxy server searches the video file containing the time point from the file server; after finding out the video file, the media proxy server starts to push the stream to the streaming media server from the appointed time point, and returns a stream playing address to the client browser; the specific implementation mode is as follows:
(1) after finding out the video file, the media proxy server obtains the start time S corresponding to the video file, calculates the start time T of the video at the time point R requested by the client, and adopts the formula: t = R-S; and converted into seconds;
(2) separating a video stream and an audio stream from a video file;
(3) stuffing the video stream and the audio stream into a pipeline, and jumping to the starting time T calculated in the step (1);
(4) for the video stream, a first key frame after the time point needs to be found, traversal is started from the first frame, if the first key frame is not found, the first key frame is abandoned until the first key frame is found, a time point U corresponding to the key frame is recorded, and the audio stream is made to jump to the time point;
(5) encapsulating the video stream and the audio stream starting from the time point U into an FLV format;
(6) acquiring the address of a streaming media server and starting pushing;
(7) and the client browser acquires a stream playing address and starts to pull and play the stream.
(8) And (4) if the video file is played to the end, recording the playing time, taking the playing time as a time point R requested by a new client, and returning to the step (1).
S5, the client browser receives the flv format video stream to start playing by using the h5 player;
s6, encountering the end of the video or the customer reselection time, then repeating steps S3-S5.
Compared with the existing video playing mode, the method for realizing the on-demand of a plurality of videos according to time based on video source information joint has the following differences;
1. the invention realizes the on-demand according to the time period without the need of the front end to obtain the video directory;
2. without playing using the HLS protocol, HLS is slower than FLV and has higher requirements on network quality. And because the HLS protocol is not used, splicing the m3u8 file and cutting the small video file on the server side are not needed.
The above are preferred embodiments of the present invention, and all changes made according to the technical scheme of the present invention that produce functional effects do not exceed the scope of the technical scheme of the present invention belong to the protection scope of the present invention.

Claims (2)

1. A method for realizing the on-demand of a plurality of videos according to time based on the information joint of video sources is characterized by comprising the following steps:
s1, storing the video file on a file server;
s2, adding a media proxy server and a streaming media server between the file server and the client browser;
s3, the client browser sends the time point of starting playing to the media proxy server;
s4, the media proxy server searches the video file containing the time point from the file server; after finding out the video file, the media proxy server starts to push the stream to the streaming media server from the appointed time point, and returns a stream playing address to the client browser;
s5, the client browser receives the flv format video stream to start playing by using the h5 player;
s6, when the end of the video is encountered or the time is reselected by the client, repeating the steps S3-S5;
the specific implementation mode that the media proxy server starts to push the stream to the streaming media server from the specified time point and returns the stream playing address to the client browser is as follows:
(1) after finding out the video file, the media proxy server obtains the start time S corresponding to the video file, calculates the start time T of the video at the time point R requested by the client, and adopts the formula: t = R-S; and converted into seconds;
(2) separating a video stream and an audio stream from a video file;
(3) stuffing the video stream and the audio stream into a pipeline, and jumping to the starting time T calculated in the step (1);
(4) for the video stream, a first key frame after the time point needs to be found, traversal is started from the first frame, if the first key frame is not found, the first key frame is abandoned until the first key frame is found, a time point U corresponding to the key frame is recorded, and the audio stream is made to jump to the time point;
(5) encapsulating the video stream and the audio stream starting from the time point U into an FLV format;
(6) acquiring the address of a streaming media server and starting pushing;
(7) the client browser acquires a stream playing address, and starts to pull and play the stream;
(8) and (4) if the video file is played to the end, recording the playing time, taking the time as a time point R requested by a new client, and returning to the step (1).
2. The method for on-demand playing of multiple videos according to claim 1, wherein in the step (2), the video file is an mp4 video file.
CN202110611417.1A 2021-06-02 2021-06-02 Method for realizing video-on-demand of multiple videos according to time based on video source information joint Active CN113347462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110611417.1A CN113347462B (en) 2021-06-02 2021-06-02 Method for realizing video-on-demand of multiple videos according to time based on video source information joint

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110611417.1A CN113347462B (en) 2021-06-02 2021-06-02 Method for realizing video-on-demand of multiple videos according to time based on video source information joint

Publications (2)

Publication Number Publication Date
CN113347462A CN113347462A (en) 2021-09-03
CN113347462B true CN113347462B (en) 2022-09-09

Family

ID=77474628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110611417.1A Active CN113347462B (en) 2021-06-02 2021-06-02 Method for realizing video-on-demand of multiple videos according to time based on video source information joint

Country Status (1)

Country Link
CN (1) CN113347462B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7203758B2 (en) * 2000-10-19 2007-04-10 Loudeye Technologies, Inc. System and method for selective insertion of content into streaming media
US9613042B1 (en) * 2012-04-09 2017-04-04 Conviva Inc. Dynamic generation of video manifest files
CN107222484B (en) * 2017-06-12 2020-11-24 北京经纬中天信息技术有限公司 Streaming media server system supporting multi-protocol input and output
CN110381340A (en) * 2019-06-10 2019-10-25 广州虎牙信息科技有限公司 Video file processing system
CN111901634B (en) * 2020-07-31 2022-07-08 北京嘀嘀无限科技发展有限公司 Stream media on-demand method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN113347462A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
US11470405B2 (en) Network video streaming with trick play based on separate trick play files
US20120246335A1 (en) Method, terminal, and server for implementing fast playout
US9601126B2 (en) Audio splitting with codec-enforced frame sizes
US9247317B2 (en) Content streaming with client device trick play index
CN107277081A (en) Section method for down loading and device, the stream media system of stream medium data
WO2012096372A1 (en) Content reproduction device, content reproduction method, delivery system, content reproduction program, recording medium, and data structure
KR102303582B1 (en) Processing media data using file tracks for web content
CN109587514B (en) Video playing method, medium and related device
CA2750544A1 (en) Smooth, stateless client media streaming
US20160134900A1 (en) Streaming media processing method, apparatus, and system
WO2013053326A1 (en) Method, server, client and system for recording and playing replay program
WO2017092327A1 (en) Playing method and apparatus
WO2018103696A1 (en) Media file playback method, server, client, and system
WO2014193996A2 (en) Network video streaming with trick play based on separate trick play files
WO2017071604A1 (en) Playback method, device and storage medium
CN105228001A (en) The method and system that a kind of FLV format video is play online
CN103607639A (en) Live broadcast time shifting method and server
CN110198494B (en) Video playing method, device, equipment and storage medium
US20220303602A1 (en) Reduction of startup time in remote hls
CN113923502B (en) Live video playing method and device
JP5278059B2 (en) Information processing apparatus and method, program, and information processing system
CN113347462B (en) Method for realizing video-on-demand of multiple videos according to time based on video source information joint
US20130124699A1 (en) Apparatus and method for transceiving a streaming service
JP5867549B2 (en) Transmitting apparatus and method, and receiving apparatus and method
CN114173145A (en) HLS protocol-based dynamic code rate low-delay live broadcast method

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