当前位置:网站首页>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 .
边栏推荐
- Little red book, hovering on the edge of listing
- Istio FAQ: region awareness does not take effect
- MySQL Advanced Series: Locks - Locks in InnoDB
- Istio FAQ: failed to resolve after enabling smart DNS
- 企业安全攻击面分析工具
- There are potential safety hazards Land Rover recalls some hybrid vehicles
- Some experiences of K project: global template highlights
- Kubernetes characteristic research: sidecar containers
- C. Three displays(动态规划)Codeforces Round #485 (Div. 2)
- Batch BOM Bapi test
猜你喜欢

几种常见的DoS攻击
![[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)](/img/21/503ed54a2fa14fbfd67f75a55ec286.png)
[cloud native | kubernetes chapter] Introduction to kubernetes Foundation (III)

B. Terry sequence (thinking + greed) codeforces round 665 (Div. 2)

Using oasis to develop a hop by hop (I) -- Scene Building

How to easily realize online karaoke room and sing "mountain sea" with Wang Xinling
![[C language questions -- leetcode 12 questions] take you off and fly into the garbage](/img/ca/a356a867f3b7ef2814080fb76b9bfb.png)
[C language questions -- leetcode 12 questions] take you off and fly into the garbage

My network relationship with "apifox"

Siggraph 2022 | truly restore the hand muscles. This time, the digital human hands have bones, muscles and skin

C. K-th not divisible by n (Mathematics + thinking) codeforces round 640 (Div. 4)

C. Three displays codeforces round 485 (Div. 2)
随机推荐
Understanding openstack network
Logging is not as simple as you think
B. Ternary Sequence(思维+贪心)Codeforces Round #665 (Div. 2)
Instruction document for online written examination assistance of smart side school recruitment
Go deep into the implementation principle of go language defer
Pageadmin CMS solution for redundant attachments in website construction
Nifi from introduction to practice (nanny level tutorial) - environment
2021-05-04: given a non negative integer C, you need to judge whether there are two integers a and B, so that a*a+b*b=c.
Global and Chinese markets of natural insect repellents 2022-2028: Research Report on technology, participants, trends, market size and share
构建Go命令行程序工具链
Global and Chinese market for commercial barbecue smokers 2022-2028: Research Report on technology, participants, trends, market size and share
April 26, 2021: the length of the integer array arr is n (3 < = n < = 10^4), and each number is
【prometheus】1. Monitoring overview
Istio FAQ: return 426 status code
ZOJ - 4104 sequence in the pocket
Transpose convolution learning notes
Solution of intelligent all in one machine in expressway service area
I just came back from the Ali software test. I worked for Alibaba P7 in 3+1, with an annual salary of 28*15
Global and Chinese markets of Leyte coin exchange 2022-2028: Research Report on technology, participants, trends, market size and share
D. Solve the maze (thinking +bfs) codeforces round 648 (Div. 2)