CN103079089A - Device and method for dynamically generating ts file by utilizing video file - Google Patents

Device and method for dynamically generating ts file by utilizing video file Download PDF

Info

Publication number
CN103079089A
CN103079089A CN2012105788089A CN201210578808A CN103079089A CN 103079089 A CN103079089 A CN 103079089A CN 2012105788089 A CN2012105788089 A CN 2012105788089A CN 201210578808 A CN201210578808 A CN 201210578808A CN 103079089 A CN103079089 A CN 103079089A
Authority
CN
China
Prior art keywords
web browser
file
video
address
list
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
CN2012105788089A
Other languages
Chinese (zh)
Other versions
CN103079089B (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.)
Alibaba China Co Ltd
Youku Network Technology Beijing Co Ltd
Original Assignee
1Verge Internet 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 1Verge Internet Technology Beijing Co Ltd filed Critical 1Verge Internet Technology Beijing Co Ltd
Priority to CN201210578808.9A priority Critical patent/CN103079089B/en
Publication of CN103079089A publication Critical patent/CN103079089A/en
Application granted granted Critical
Publication of CN103079089B publication Critical patent/CN103079089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a device and a method for dynamically generating a ts file by utilizing a video file. The device comprises a content dispatching system, a websocket interface and a dynamic generation module, wherein the content dispatching system is positioned at a server end and provides multiple video clips for downloading by virtue of a http (Hyper Text Transport Protocol); the websocket interface is used for realizing bidirectional communication between a webpage browser and the server end, receiving a video file downloading request of the webpage browser and downloading the multiple video clips on the content dispatching system to the webpage browser; and the dynamic generation module is positioned in the webpage browser and is used for dynamically generating the ts file and simultaneously providing a video list formatted file. The method comprises the following steps that the websocket interface used for realizing the bidirectional communication between the webpage browser and the server end receives the video file downloading request of the webpage browser; the content dispatching system downloads the multiple video clips on the content dispatching system to the webpage browser by virtue of the http; and the dynamic generation module in the webpage browser dynamically generates the ts file and simultaneously provides the video list formatted file.

Description

A kind of device and method for video file dynamically being generated as the ts file
Technical field
The present invention relates to the Internet video field, especially relate to a kind of device and method for video file dynamically being generated as the ts file.
Background technology
Online sees that with web browser the user of video is more and more, and at present popular is to watch at web browser with the flash plug-in unit.The clear and definite flash that do not support of apple ios system, the solution that apple provides is the livestreaming technology, exactly a video is divided into a plurality of ts small documents.(the livestreaming technology is that a kind of html5 that Apple proposes does not pass through plug-in unit, the local technology of supporting video playback).The video of playing adds that by a text take m3u8 as suffix a group of mean people ts file consists of.M3u8 file the inside is the address information of these little ts files.The m3u8 file should finish with #EXT-X-ENDLIST.If not, expression m3u8 file do not comprise all ts files, player should be asked again.
Video website has two schemes for the support of ipad at present, and a kind of is static the generation, stores harddisk memory into after generating in advance, directly transfers when needing, and a kind of is dynamic generation, and namely interim the generation is placed in the internal memory when request, uses rear deletion.The static benefit that generates is that the user experiences, and shortcoming is to double content delivering system cdn storage, and it is too large to adjust the segmentation scheme cost; The benefit that dynamically generates is province content dissemination system cdn storage, and the burst scheme can be adjusted at any time, and shortcoming is all to need to regenerate once poor user experience when asking at every turn.
The scheme that this patent proposes also is dynamic generation, gets on but generation ts file is transferred to client from server, has so both saved the memory capacity of content delivering system cdn, alleviates again the server burden.
Summary of the invention
The invention provides a kind of device for video file dynamically being generated as the ts file, this device comprises: content delivering system, be positioned at server end, and provide the segmentation video to download by the http agreement; The websocket interface is used for realizing two-way communication at web browser and server end, accepts the request of web browser downloading video files, and the segmentation video on the content delivering system is downloaded in the web browser; Dynamic generation module in the web browser is used for dynamically generating the ts file, and the list of videos formatted file is provided simultaneously.
Further, described web browser is the html5 web browser, this web browser is provided with a label and is called video, this label is used for defining video, this label has attribute src, for wanting the address of displaying video, this address is corresponding with the list of videos formatted file that provides, and web browser can be asked successively the ts file of the inside and be resolved, plays.
Further, when the user sent the displaying video request by web browser, web browser was searched the address among the src, and web browser is to this Address requests list of videos formatted file.
Further, described web browser can this list of videos formatted file of repetitive requests.
The present invention also provides a kind of method for video file dynamically being generated as the ts file, it is characterized in that the method may further comprise the steps: step (1) is used for accepting the request of web browser downloading video files at the websocket interface of web browser and server end realization two-way communication; Step (2) content delivering system downloads to the segmentation video in the web browser by the http agreement; Dynamic generation module in step (3) web browser dynamically generates the ts file, and the list of videos formatted file is provided simultaneously.
Further, web browser is the html5 web browser described in the step (3), this web browser is provided with a label and is called video, this label is used for defining video, this label has attribute src, for wanting the address of displaying video, this address is corresponding with the list of videos formatted file that provides, and web browser can be asked successively the ts file of the inside and be resolved, plays.
Further, when the user sent the displaying video request by web browser, web browser was searched the address among the src, and web browser is to this Address requests list of videos formatted file.
Further, described web browser can this list of videos formatted file of repetitive requests.
Description of drawings
Fig. 1 is the schematic diagram that illustrates according to device of the present invention.
Fig. 2 is the schematic diagram according to the inventive method.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage are become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments:
As shown in Figure 1, device according to the present invention has three large modules:
1. content delivering system cdn: be positioned at server end, provide flv or mp4 segmentation video to download by the http agreement.
2. be used for the websocket interface in web browser and server end realization two-way communication: accept web browser downloading video files (m3u8 file, the ts file) request is the flv(on the content delivering system cdn or mp4) the segmentation video downloads in the web browser.
3. the dynamic generation module in the web browser is used for dynamically generating the ts file, and list of videos form m3u8 file is provided simultaneously.Described web browser is the html5 web browser, and wherein newly-increased label is called video, and this label is used for defining video, for example vidclip or other video flowings, and there is attribute src the inside, for wanting the address of displaying video.This address is corresponding with the m3u8 file that provides, in case obtain this file, web browser just can be asked the ts file of the inside successively, then resolves, plays.
3 when the user sends the displaying video request by web browser, web browser search address among the src, web browser is to this Address requests m3u8 file.Present patent application is when the websocket interface accepts request, the dynamic ts file that generates of web browser needs.The address of these ts files is write in the m3u8 file, and this m3u8 file is made (not the having #EXT-X-ENDLIST) of live formula, and web browser can this m3u8 file of repetitive requests like this.For the ts file, dynamically generate the same with server.
As shown in Figure 2, the method according to this invention may further comprise the steps: step (1) is used for accepting the request of web browser downloading video files at the websocket interface of web browser and server end realization two-way communication; Step (2) content delivering system downloads to the segmentation video in the web browser by the http agreement; Dynamic generation module in step (3) web browser dynamically generates the ts file, and the m3u8 file is provided simultaneously.
Web browser is the html5 web browser described in the step (3), this web browser is provided with a label and is called video, this label is used for defining video, this label has attribute src, for wanting the address of displaying video, this address is corresponding with the list of videos formatted file that provides, and web browser can be asked successively the ts file of the inside and be resolved, plays.
When the user sent the displaying video request by web browser, web browser was searched the address among the src, and web browser is to this Address requests list of videos formatted file.
Described web browser can this list of videos formatted file of repetitive requests.
The obtained technique effect of the present invention is: alleviate the server burden, save bandwidth.
More than be the detailed description that the preferred embodiments of the present invention are carried out, but those of ordinary skill in the art should be appreciated that within the scope of the present invention, and guided by the spirit, various improvement, interpolation and replacement all are possible.These are all in the protection range that claim of the present invention limits.

Claims (8)

1. device that is used for video file dynamically is generated as the ts file is characterized in that this device comprises:
Content delivering system is positioned at server end, provides the segmentation video to download by HTML (Hypertext Markup Language) http;
The websocket interface is used for realizing two-way communication at web browser and server end, accepts the request of web browser downloading video files, and the segmentation video on the content delivering system is downloaded in the web browser;
Dynamic generation module in the web browser is used for dynamically generating the ts file, and the list of videos formatted file is provided simultaneously.
2. device according to claim 1 is characterized in that:
Described web browser is the html5 web browser, this web browser is provided with a label and is called video, this label is used for defining video, this label has attribute src, for wanting the address of displaying video, this address is corresponding with the list of videos formatted file that provides, and web browser can be asked successively the ts file of the inside and be resolved, plays.
3. device according to claim 1 is characterized in that:
When the user sent the displaying video request by web browser, web browser was searched the address among the src, and web browser is to this Address requests list of videos formatted file.
4. device according to claim 1 is characterized in that:
Described web browser can this list of videos formatted file of repetitive requests.
5. method that is used for video file dynamically is generated as the ts file is characterized in that the method may further comprise the steps:
Step (1) is used for accepting the request of web browser downloading video files at the websocket interface of web browser and server end realization two-way communication;
Step (2) content delivering system downloads to the segmentation video in the web browser by HTML (Hypertext Markup Language) http;
Dynamic generation module in step (3) web browser dynamically generates the ts file, and the list of videos formatted file is provided simultaneously.
6. method according to claim 5 is characterized in that:
Web browser is the html5 web browser described in the step (3), this web browser is provided with a label and is called video, this label is used for defining video, this label has attribute src, for wanting the address of displaying video, this address is corresponding with the list of videos formatted file that provides, and web browser can be asked successively the ts file of the inside and be resolved, plays.
7. method according to claim 5 is characterized in that:
When the user sent the displaying video request by web browser, web browser was searched the address among the src, and web browser is to this Address requests list of videos formatted file.
8. method according to claim 5 is characterized in that:
Described web browser can this list of videos formatted file of repetitive requests.
CN201210578808.9A 2012-12-27 2012-12-27 A kind of device and method for video file being dynamically generated as ts file Active CN103079089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210578808.9A CN103079089B (en) 2012-12-27 2012-12-27 A kind of device and method for video file being dynamically generated as ts file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210578808.9A CN103079089B (en) 2012-12-27 2012-12-27 A kind of device and method for video file being dynamically generated as ts file

Publications (2)

Publication Number Publication Date
CN103079089A true CN103079089A (en) 2013-05-01
CN103079089B CN103079089B (en) 2016-09-07

Family

ID=48155478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210578808.9A Active CN103079089B (en) 2012-12-27 2012-12-27 A kind of device and method for video file being dynamically generated as ts file

Country Status (1)

Country Link
CN (1) CN103079089B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561337A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Live web casting method and device based on intelligent television
CN107707966A (en) * 2016-08-08 2018-02-16 大唐软件技术股份有限公司 A kind of playing method and device of multi-medium data
CN108600777A (en) * 2018-04-09 2018-09-28 北京大米科技有限公司 A kind of stream media playback server, client
CN108737372A (en) * 2018-04-09 2018-11-02 北京大米科技有限公司 A kind of stream media playback method, computer equipment and readable medium
WO2019019370A1 (en) * 2017-07-24 2019-01-31 平安科技(深圳)有限公司 Processing method for live broadcast of audio and video, storage medium and mobile terminal
WO2021082299A1 (en) * 2019-11-01 2021-05-06 杭州海康威视系统技术有限公司 Video playback method and device
CN113938475A (en) * 2021-12-16 2022-01-14 深圳市大头兄弟科技有限公司 Data transmission method
WO2022057469A1 (en) * 2020-09-21 2022-03-24 苏州浪潮智能科技有限公司 Method and system for online playback and downloading prevention of web client audio, device, and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080205389A1 (en) * 2007-02-26 2008-08-28 Microsoft Corporation Selection of transrate and transcode processes by host computer
KR20100054464A (en) * 2008-11-14 2010-05-25 에스케이 텔레콤주식회사 Flash media service system and method
CN101778270A (en) * 2009-01-13 2010-07-14 深圳市同洲电子股份有限公司 Method for accelerating the image displaying speed, system and digital television receiving terminal
US20110289108A1 (en) * 2010-04-02 2011-11-24 Skyfire Labs, Inc. Assisted Hybrid Mobile Browser
CN102523248A (en) * 2011-11-24 2012-06-27 深圳市万兴软件有限公司 Method, client and server for playing webpage flash video
US20120265847A1 (en) * 2011-04-15 2012-10-18 Skyfire Labs, Inc. Real-Time Video Detector
US20120271948A1 (en) * 2011-04-19 2012-10-25 Sensormatic Electronics, LLC Method and system for load balancing between a video server and client

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080205389A1 (en) * 2007-02-26 2008-08-28 Microsoft Corporation Selection of transrate and transcode processes by host computer
KR20100054464A (en) * 2008-11-14 2010-05-25 에스케이 텔레콤주식회사 Flash media service system and method
CN101778270A (en) * 2009-01-13 2010-07-14 深圳市同洲电子股份有限公司 Method for accelerating the image displaying speed, system and digital television receiving terminal
US20110289108A1 (en) * 2010-04-02 2011-11-24 Skyfire Labs, Inc. Assisted Hybrid Mobile Browser
US20120265847A1 (en) * 2011-04-15 2012-10-18 Skyfire Labs, Inc. Real-Time Video Detector
US20120271948A1 (en) * 2011-04-19 2012-10-25 Sensormatic Electronics, LLC Method and system for load balancing between a video server and client
CN102523248A (en) * 2011-11-24 2012-06-27 深圳市万兴软件有限公司 Method, client and server for playing webpage flash video

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷锋网: "Skyfire:让iOS设备也能播放Flash的浏览器", 《硅谷》, no. 19, 31 December 2011 (2011-12-31), pages 59 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561337A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Live web casting method and device based on intelligent television
CN107707966A (en) * 2016-08-08 2018-02-16 大唐软件技术股份有限公司 A kind of playing method and device of multi-medium data
CN107707966B (en) * 2016-08-08 2021-01-22 大唐软件技术股份有限公司 Multimedia data playing method and device
WO2019019370A1 (en) * 2017-07-24 2019-01-31 平安科技(深圳)有限公司 Processing method for live broadcast of audio and video, storage medium and mobile terminal
CN108600777A (en) * 2018-04-09 2018-09-28 北京大米科技有限公司 A kind of stream media playback server, client
CN108737372A (en) * 2018-04-09 2018-11-02 北京大米科技有限公司 A kind of stream media playback method, computer equipment and readable medium
WO2021082299A1 (en) * 2019-11-01 2021-05-06 杭州海康威视系统技术有限公司 Video playback method and device
WO2022057469A1 (en) * 2020-09-21 2022-03-24 苏州浪潮智能科技有限公司 Method and system for online playback and downloading prevention of web client audio, device, and medium
CN113938475A (en) * 2021-12-16 2022-01-14 深圳市大头兄弟科技有限公司 Data transmission method
CN113938475B (en) * 2021-12-16 2022-03-29 深圳市大头兄弟科技有限公司 Data transmission method

Also Published As

Publication number Publication date
CN103079089B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN103079089A (en) Device and method for dynamically generating ts file by utilizing video file
CN101415069B (en) Server and method for sending on-line play video
US8843596B2 (en) Conversion between streaming media communication protocols
US20200029117A1 (en) Methods and Systems for Synchronizing Data Streams Across Multiple Client Devices
EP2941897B1 (en) Connected-media end user experience using an overlay network
CN103546540B (en) CDN realizes the method and system of data cached control
US20120185608A1 (en) Dynamic index file creation for media streaming
CN105828096B (en) Method and device for processing media stream file
CN108600777B (en) Streaming media playback server and client
US10262072B2 (en) Reception device, information processing method in reception device, transmission device, information processing device, and information processing method
CN103929427A (en) Dynamic multi-thread downloading device and method
CN102055718B (en) Method, device and system for layering request content in http streaming system
US20210400317A1 (en) Method for processing video-dragging data, and proxy server
AU2013240578B2 (en) Dynamic audio track selection for media streaming
CN103024604A (en) Device and method used for realizing seamless connection of ts files
CN102790772B (en) The processing method of Cookie data, server and client side
CN103813185A (en) Method, server and client for quickly distributing segmented programs
US8954540B2 (en) Dynamic audio track selection for media streaming
WO2014008637A1 (en) Method and apparatus for interacting with a media presentation description that describes a summary media presentation and an original media presentation
US20150058452A1 (en) Video loading method, device and system of mobile terminal
CN104980795A (en) Multi-terminal video file processing method and system
CN103533395A (en) Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel
US9578395B1 (en) Embedded manifests for content streaming
Van Deursen et al. On media delivery protocols in the web
CN107205177A (en) Video broadcasting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee after: Youku network technology (Beijing) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee before: 1VERGE INTERNET TECHNOLOGY (BEIJING) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20200619

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee before: Youku network technology (Beijing) Co.,Ltd.

TR01 Transfer of patent right