当前位置:网站首页>How does easydss, an online classroom / online medical live on demand platform, separate audio and video data?
How does easydss, an online classroom / online medical live on demand platform, separate audio and video data?
2022-06-24 16:18:00 【Tsingsee green rhino video】
With all of TSINGSEE Green rhino video cloud edge architecture products are the same ,EasyDSS The VOD platform can transmit and record audio and video data synchronously , But in part of the scene , The project needs to separate the live video and audio streams , Separate access to audio stream data .
For example, in the case we share in this article , Generated from live streaming data ts Files have video streams and audio streams , But in fact, the streaming end only pushes audio stream data , To meet the needs of customers , Live data only needs to generate audio stream data , In this way, when playing data with the mobile phone, you can also hear the sound when the screen is locked , But at present, if there are both audio and video streams , Mobile phone lock screen will cause audio and video streams to stop playing simultaneously .
Here we need to separate the video stream and audio stream before getting the data . In the interface for downloading videos of a specified period of time , take ts The document was converted into MP4 file , And then MP4 Separate the video from the file , All that's left is audio data output to MP4 file .
Check the output of live data again , Only the audio stream is output .
The reference codes are as follows :
if ty == "0" {
var params1 []string
params1 = append(params1, "-i", mp4PathTmpAudio)
params1 = append(params1, "-acodec", "copy", "-vn", mp4Path)
//params = append(params, mp4Path)
cmd := exec.Command(EasyTrans(), params1...)
cmd.Start()
cmd.Wait()
fmt.Println(cmd.Args)
efile.RemoveFile(mp4PathTmpAudio)
}Of course, in audio coding , To ensure the standard of audio coding , Otherwise, there will be problems such as unable to play or audio recognition failure . Of course EasyDSS It also supports users to actually download and deploy tests , Welcome to .
边栏推荐
- great! The novel website project is completely open source
- Wechat official account debugging and natapp environment building
- ZOJ - 4104 sequence in the pocket
- 打破内存墙的新利器成行业“热搜”!持久内存让打工人也能玩转海量数据+高维模型
- Is Guotai Junan Futures safe? How to open a futures account? How to reduce the futures commission?
- Dismantle the industrial chain of synthetic rubber industry, and the supply chain may become a sharp weapon for breakthrough
- Bitwise Operators
- The equipment is connected to the easycvr platform through the national standard gb28181. How to solve the problem of disconnection?
- 嵌入式开发基础之线程间通信
- 【云原生 | Kubernetes篇】Kubernetes基础入门(三)
猜你喜欢

存在安全隐患 路虎召回部分混动揽运

用 Oasis 开发一个跳一跳(一)—— 场景搭建

60 divine vs Code plug-ins!!
![[download attached] installation and simple use of Chinese version of awvs](/img/3b/f26617383690c86edff465c9a1099e.png)
[download attached] installation and simple use of Chinese version of awvs

Solution to the problem that FreeRTOS does not execute new tasks

CAP:多重注意力机制,有趣的细粒度分类方案 | AAAI 2021

How to easily realize online karaoke room and sing "mountain sea" with Wang Xinling
![[application recommendation] the hands-on experience and model selection suggestions of apifox & apipost in the recent fire](/img/dd/24df91a8a1cf1f1b9ac635abd6863a.png)
[application recommendation] the hands-on experience and model selection suggestions of apifox & apipost in the recent fire

Still worried about missing measurements? Let's use Jacobo to calculate the code coverage
MySQL進階系列:鎖-InnoDB中鎖的情况
随机推荐
There are potential safety hazards Land Rover recalls some hybrid vehicles
2021-04-27: if the adjacent position of a character does not have the same character
SIGGRAPH 2022 | 真实还原手部肌肉,数字人双手这次有了骨骼、肌肉、皮肤
Build go command line program tool chain
C. K-th Not Divisible by n(数学+思维) Codeforces Round #640 (Div. 4)
一文理解OpenStack网络
Wechat official account debugging and natapp environment building
Script design for automatic login and command return
Cap: multiple attention mechanism, interesting fine-grained classification scheme | AAAI 2021
The decline of China's product managers: starting from the nostalgia for jobs
Installer la Bibliothèque imagemagick 7.1 et l'extension imagick de PHP
Understanding of deep separable convolution, block convolution, extended convolution, transposed convolution (deconvolution)
Siggraph 2022 | truly restore the hand muscles. This time, the digital human hands have bones, muscles and skin
Some experiences of K project: global template highlights
SQL multi table updating data is very slow
A new weapon to break the memory wall has become a "hot search" in the industry! Persistent memory enables workers to play with massive data + high-dimensional models
One article explains Jackson configuration information in detail
Batch BOM Bapi test
CDs view permission check
Global and Chinese markets of natural insect repellents 2022-2028: Research Report on technology, participants, trends, market size and share