简体   繁体   English

Demux HLS TS流从视频拆分音频AAC

[英]Demux HLS TS stream Split Audio AAC From Video

Trying to split HLS TS Stream audio from video, audio is AAC format. 尝试从视频中拆分HLS TS流音频,音频为AAC格式。 The gole is to have some sort of AVAsset that I can later manipulate and then Mux back to the video. 关键是要拥有某种AVAset,我以后可以操纵它,然后将其复用回视频。 After searching for a while i cant find a solid lead, can someone give me a educated direction to take on this issue ? 经过一段时间的搜索后,我找不到可靠的线索,有人可以给我提供受过良好教育的指导以解决这个问题吗?

You can use the ffmpeg/libav library for demuxing the ts. 您可以使用ffmpeg / libav库对ts进行解胶。 To load the audio back as an AVAsset, it might be necessary to load it from a URL, either by writing temporarily to disk or serving with a local http server within your program. 要将音频作为AVAset重新加载,可能需要通过临时写入磁盘或在程序中与本地http服务器一起从URL加载音频。

I think you might run into some trouble in manipulating the audio stream, assuming you want to manipulate the raw audio data. 我想假设您要处理原始音频数据,在处理音频流时可能会遇到一些麻烦。 That will require decoding the AAC, modifying it, re-encoding, and re-muxing with the video. 这将需要对AAC进行解码,修改,重新编码以及与视频重新混合。 That's all possible with ffmpeg/libav, but it's not really that easy. 使用ffmpeg / libav可以实现所有功能,但这并不是那么容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM