CN107734354A - It is a kind of that real-time clipping method and device are carried out to live stream video - Google Patents
It is a kind of that real-time clipping method and device are carried out to live stream video Download PDFInfo
- Publication number
- CN107734354A CN107734354A CN201710977307.0A CN201710977307A CN107734354A CN 107734354 A CN107734354 A CN 107734354A CN 201710977307 A CN201710977307 A CN 201710977307A CN 107734354 A CN107734354 A CN 107734354A
- Authority
- CN
- China
- Prior art keywords
- video
- live
- forms
- stream
- stream video
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234309—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/85406—Content authoring involving a specific file format, e.g. MP4 format
Abstract
The invention discloses one kind to carry out real-time clipping method and device to live stream video, comprises the following steps:Service end receives the live stream video of RTMP forms, by video processing tools to the live TV stream video code conversions of RTMP forms into m3u8 forms;The live stream video of m3u8 forms after client preview transcoding is got ready, records the time in real time, and the live TV stream video index of m3u8 forms is revised as the order video of m3u8 forms by service end;The time point information for thinking interception is uploaded to HTTP server by client by HTTP message structure, and HTTP server is cut to the order video of m3u8 forms by video processing tools, then issued.Live TV stream can be switched to m3u8 forms by the present invention in service end, utilize the attribute of m3u8 file formats, live TV stream is switched into program request file in real time in service end, client preview m3u8 live TV streams, get ready to upload onto the server information and carry out editing, the editing video distribution time is greatly shortened, reaches the purpose of release quickly video.
Description
Technical field
It is particularly a kind of that real-time clipping method and dress are carried out to live stream video the present invention relates to Internet technical field
Put.
Background technology
With the development of science and technology and living standards of the people raising, video has become people's work, study, social
And the important way that amusement and recreation are irreplaceable, also, requirement of the people for video also more and more higher.At present, in video
To broadcast in list, video file generally to be played is transport stream video file rather than live TV stream, therefore for broadcasting single broadcasting
Editor and processing mode are also typically to be directed to transport stream video file, and comparatively the processing for live stream video is then compared
Compared with shortage, therefore, need to add live stream video broadcast in list and play out when, due to edit and processing mode not into
Ripe, its workload obviously can increase, and editorial efficiency is low, and therefore, it is next real will to provide a kind of reliable efficient mode for urgent need at present
The broadcasting of existing live stream video.
Present network direct broadcasting stream is typically the live TV stream of RTMP protocol formats, and RTMP is Real Time Messaging
Protocol (real-time messages host-host protocol) acronym.The agreement is based on TCP, is a protocol suite, including RTMP bases
A variety of mutation such as this agreement and RTMPT/RTMPS/RTMPE.RTMP is a kind of network for being designed to carry out real-time data communication
Agreement, be mainly used to Flash/AIR platforms and support RTMP agreements Streaming Media/interactive server between carry out audio frequency and video and
Data communicate.Supporting the software of the agreement includes Adobe Media Server/Ultrant Media Server/red5 etc.,
Staff needs quickly to carry out editing to live TV stream, and the content of editing is mainly live wonderful, is quickly sent out in network
In the epoch of exhibition, who can issue video faster, and who just grasps more resources and advantage.Existing live TV stream editing scheme needs
Live TV stream is first indexed to local, editing is being carried out to the video included with local editing software, generally needed when including
Time such as potplayer are set, editing then is being carried out to the software of recording with the Premiere softwares of local.
Potplayer record live video can not real-time editing, live end can only be recorded to, then with local Premiere it is soft
Part carries out editing to the software of recording.So time loss will greatly increase.
The content of the invention
The invention aims to solve to record live TV stream editing in the prior art, real-time playback can not be accomplished, it is necessary to wait
Terminate to obtain total data source to live, then carry out editing, considerably increase the time of editing, influence the skill of video release quickly
Art problem, there is provided a kind of that real-time clipping method and device are carried out to live stream video.
To reach above-mentioned purpose, the present invention is implemented according to following technical scheme:
It is a kind of that real-time clipping method is carried out to live stream video, comprise the following steps:
S1, service end receive the live stream video of RTMP forms, the live TV stream by video processing tools to RTMP forms
Video carries out transcoding, is transcoded into the live stream video of m3u8 forms;
The live stream video of m3u8 forms after S2, client preview transcoding, when getting ready, recording in real time when needing editing
Between, the live TV stream video index of m3u8 forms is revised as the order video of m3u8 forms by service end, and client is again to m3u8 lattice
The order video of formula carries out quickly getting editing ready;
The time point information for thinking interception is uploaded to HTTP server, HTTP clothes by S3, client by HTTP message structure
Business device is cut by video processing tools to the order video of m3u8 forms, is then issued.
Further, the video processing tools are FFmpeg softwares.
It is a kind of that real-time editing device, including the live TV stream video reception of RTMP forms and transmission mould are carried out to live stream video
Block, video processing tools, the live TV stream video preview module of m3u8 forms, the live TV stream video reception and hair of the RTMP forms
Module is sent to be used in Flash/AIR platforms and support to carry out audio frequency and video sum between Streaming Media/interactive server of RTMP agreements
According to communication;The video processing tools are used for carrying out transcoding to live stream video and get editing ready;The m3u8 forms it is straight
Broadcast live stream video of the stream video previewing module for the m3u8 forms after preview transcoding.
Compared with prior art, live TV stream can be switched to m3u8 forms by the present invention in service end, utilize m3u8 trays
The attribute of formula, live TV stream is switched into program request file in real time in service end, for client submit interception video access point with go out
Point, carry out real-time live broadcast turning point and broadcast editing, client preview m3u8 live TV streams, get ready to upload onto the server information and cut
Volume, the editing video distribution time is greatly shortened, reaches the purpose of release quickly video.
Brief description of the drawings
Fig. 1 is the flow chart of the present invention.
Embodiment
With reference to specific embodiment, the invention will be further described, the illustrative examples and explanation invented herein
For explaining the present invention, but it is not as a limitation of the invention.
As shown in figure 1, a kind of of the present embodiment carries out real-time clipping method to live stream video, comprise the following steps that:
S1, service end receive the live stream video of RTMP forms, and the live TV stream of RTMP forms is regarded by FFmpeg softwares
Frequency carries out transcoding, is transcoded into the live stream video of m3u8 forms:The live stream video of RTMP forms is actually m3u files, and
M3u files are to have recorded an index text-only file, and playout software is not to play it when opening it, but according to its rope
The network address for drawing audio-video document corresponding to finding is played online, is transcoded into m3u files beneficial to FFmpeg softwares
The m3u8 files of UTF-8 coded formats;M3u8 files, file content are as follows:
#EXTM3U
#EXT-X-MEDIA-SEQUENCE:140651513
#EXT-X-TARGETDURATION:10
#EXTINF:8,
http://vapp1.fw.live.cntv.cn/cache/289_/seg0/index140651513
[140651513].ts
#EXTINF:9,
http://vapp1.fw.live.cntv.cn/cache/289_/seg0/index140651514
[140651514].ts
#EXTINF:11,
http://vapp1.fw.live.cntv.cn/cache/289_/seg0/index140651515
[140651515].ts
#EXTINF:10,
M3u8 files support live and program request simultaneously, and difference is whether end of file has #EXT-X-ENDLIST marks;
The live stream video of m3u8 forms after S2, client preview transcoding, client are that an application program can be
Web browser or other any clients, got ready in real time when needing editing, record the time, service end is straight by m3u8 forms
The order video that stream video index modification is m3u8 forms is broadcast, that is, inserts end mark, such file translations are program request file, visitor
Family end carries out quickly getting editing ready to the order video of m3u8 forms again;
The time point information for thinking interception is uploaded to HTTP server, HTTP clothes by S3, client by HTTP message structure
Business device is cut by FFmpeg softwares to the order video of m3u8 forms, is then issued.
One kind is just needed to carry out in real time live stream video the real-time clipping method of live stream video progress to reach above-mentioned
Editing device, including the live TV stream video reception and sending module of RTMP forms, video processing tools, the live TV stream of m3u8 forms
Video preview module, the live TV stream video reception and sending module of the RTMP forms are used in Flash/AIR platforms and support
Audio frequency and video and data communication, the live TV stream video reception of RTMP forms are carried out between Streaming Media/interactive server of RTMP agreements
It is the softwares such as Adobe Media Server/Ultrant Media Server/red5 with sending module;The Video processing work
Have and be used for carrying out transcoding to live stream video for FFmpeg softwares and get editing ready;The live TV stream video preprocessor of the m3u8 forms
Live stream video of the module of looking at for the m3u8 forms after preview transcoding.
Summary, live stream video is switched into m3u8 forms in service end, carry out real-time live broadcast turning point and broadcast editing, client is pre-
The live stream videos of the m3u8 that lookes at, get ready and information is uploaded into service end progress editing, greatly shorten the editing video distribution time.
Technical scheme is not limited to the limitation of above-mentioned specific embodiment, and every technique according to the invention scheme is done
The technology deformation gone out, each falls within protection scope of the present invention.
Claims (3)
1. a kind of carry out real-time clipping method to live stream video, it is characterised in that comprises the following steps:
S1, service end receive the live stream video of RTMP forms, the live stream video by video processing tools to RTMP forms
Transcoding is carried out, is transcoded into the live stream video of m3u8 forms;
The live stream video of m3u8 forms after S2, client preview transcoding, gets ready, records the time in real time when needing editing,
The live TV stream video index of m3u8 forms is revised as the order video of m3u8 forms by service end, and client is again to m3u8 forms
Order video carries out quickly getting editing ready;
The time point information for thinking interception is uploaded to HTTP server, HTTP server by S3, client by HTTP message structure
The order video of m3u8 forms is cut by video processing tools, then issued.
2. according to claim 1 carry out real-time clipping method to live stream video, it is characterised in that:The Video processing
Instrument is FFmpeg softwares.
3. a kind of carry out real-time editing device to live stream video as claimed in claim 1, it is characterised in that including RTMP lattice
The live TV stream video reception and sending module of formula, video processing tools, the live TV stream video preview module of m3u8 forms, it is described
The live TV stream video reception and sending module of RTMP forms be used for Flash/AIR platforms and support RTMP agreements Streaming Media/
Audio frequency and video and data communication are carried out between interactive server;The video processing tools be used for live stream video carry out transcoding with
And get editing ready;The live TV stream video preview module of the m3u8 forms regards for the live TV stream of the m3u8 forms after preview transcoding
Frequently.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710977307.0A CN107734354A (en) | 2017-10-19 | 2017-10-19 | It is a kind of that real-time clipping method and device are carried out to live stream video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710977307.0A CN107734354A (en) | 2017-10-19 | 2017-10-19 | It is a kind of that real-time clipping method and device are carried out to live stream video |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107734354A true CN107734354A (en) | 2018-02-23 |
Family
ID=61212092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710977307.0A Pending CN107734354A (en) | 2017-10-19 | 2017-10-19 | It is a kind of that real-time clipping method and device are carried out to live stream video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734354A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109040770A (en) * | 2018-08-27 | 2018-12-18 | 佛山龙眼传媒科技有限公司 | A kind of method, the system of online editing |
CN110166831A (en) * | 2018-07-23 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Reset method, apparatus, storage medium and the computer equipment of files in stream media |
CN110460873A (en) * | 2018-05-08 | 2019-11-15 | 优酷网络技术(北京)有限公司 | The generation method and device of order video |
CN110505234A (en) * | 2019-08-30 | 2019-11-26 | 湖南快乐阳光互动娱乐传媒有限公司 | A kind of live streaming turning point broadcasting method and device based on B/S framework |
CN111385599A (en) * | 2018-12-28 | 2020-07-07 | 北京字节跳动网络技术有限公司 | Video processing method and device |
CN113747248A (en) * | 2020-05-28 | 2021-12-03 | 中央电视台 | Rapid synthesis method, device and system based on live stream editing |
CN113836094A (en) * | 2021-11-30 | 2021-12-24 | 成都同步新创科技股份有限公司 | File life cycle management method and system for distributed video storage |
CN114025199A (en) * | 2022-01-10 | 2022-02-08 | 北京美摄网络科技有限公司 | Live video editing method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103531218A (en) * | 2013-04-17 | 2014-01-22 | Tcl集团股份有限公司 | Online multimedia file editing method and system |
CN104639900A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | RTMP-to-M3U8 video slicing system and method |
CN105704124A (en) * | 2016-01-15 | 2016-06-22 | 北京天马网视科技有限公司 | Video value regenerating system and method based on Internet |
-
2017
- 2017-10-19 CN CN201710977307.0A patent/CN107734354A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103531218A (en) * | 2013-04-17 | 2014-01-22 | Tcl集团股份有限公司 | Online multimedia file editing method and system |
CN104639900A (en) * | 2015-02-03 | 2015-05-20 | 广西智询信息科技有限公司 | RTMP-to-M3U8 video slicing system and method |
CN105704124A (en) * | 2016-01-15 | 2016-06-22 | 北京天马网视科技有限公司 | Video value regenerating system and method based on Internet |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110460873A (en) * | 2018-05-08 | 2019-11-15 | 优酷网络技术(北京)有限公司 | The generation method and device of order video |
CN110166831A (en) * | 2018-07-23 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Reset method, apparatus, storage medium and the computer equipment of files in stream media |
CN109040770A (en) * | 2018-08-27 | 2018-12-18 | 佛山龙眼传媒科技有限公司 | A kind of method, the system of online editing |
CN111385599A (en) * | 2018-12-28 | 2020-07-07 | 北京字节跳动网络技术有限公司 | Video processing method and device |
CN110505234A (en) * | 2019-08-30 | 2019-11-26 | 湖南快乐阳光互动娱乐传媒有限公司 | A kind of live streaming turning point broadcasting method and device based on B/S framework |
CN113747248A (en) * | 2020-05-28 | 2021-12-03 | 中央电视台 | Rapid synthesis method, device and system based on live stream editing |
CN113836094A (en) * | 2021-11-30 | 2021-12-24 | 成都同步新创科技股份有限公司 | File life cycle management method and system for distributed video storage |
CN113836094B (en) * | 2021-11-30 | 2022-03-01 | 成都同步新创科技股份有限公司 | File life cycle management method and system for distributed video storage |
CN114025199A (en) * | 2022-01-10 | 2022-02-08 | 北京美摄网络科技有限公司 | Live video editing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107734354A (en) | It is a kind of that real-time clipping method and device are carried out to live stream video | |
CN104683884B (en) | A kind of stream media live broadcasting method and system | |
CN106170095B (en) | Content distribution network system and method | |
WO2017101369A1 (en) | Live video transcoding method and apparatus | |
US20190174184A1 (en) | Method and apparatus for content replacement in live production | |
CN106791933A (en) | The method and system of the online quick editor's video based on web terminal | |
CN110740386B (en) | Live broadcast switching method and device and storage medium | |
CN101848367B (en) | File-based video live webcasting method | |
CN109104614A (en) | A kind of live streaming caching system and method | |
CN112752115A (en) | Live broadcast data transmission method, device, equipment and medium | |
CN105743971A (en) | Using method of saas cloud platform applicable to new media content fusion | |
WO2013150611A1 (en) | Device and method for video streaming distribution | |
JP2007159126A (en) | Method for editing media content in network environment, and device for cache storage of media data | |
US10715836B2 (en) | Method and apparatus for delocalized management of video data | |
CN106851331B (en) | Easy broadcast processing method and system | |
JP6597604B2 (en) | Reception device, transmission device, data communication method, and data processing method | |
Timmerer et al. | Over-the-top content delivery: State of the art and challenges ahead | |
CN102244813A (en) | Video playing method and internet television terminal applying same | |
TWI482496B (en) | Apparatus, system for scheduling and broadcasting media, automatic channel scheduling method and recording medium | |
US9398351B2 (en) | Method and apparatus for converting content in multimedia system | |
CN107959888B (en) | A kind of method and system of web player dynamic more new video total duration | |
KR102391755B1 (en) | Information processing device and information processing method | |
Ening et al. | Editing in the Cloud | |
CN106330667A (en) | WeChat postcard generation method and system | |
Xin et al. | Live Signal Recording and Segmenting Solution Based on Cloud Architecture |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |
|
RJ01 | Rejection of invention patent application after publication |