【发布时间】:2021-12-12 14:36:43
【问题描述】:
想知道是否可以使用 AAC 编码到 mp4 容器中
我尝试过使用以下
gst-launch-1.0 alsasrc device="hw:0,0" ! "audio/x-raw,rate=48000,channels=2,depth=16" ! queue ! audioconvert ! avenc_aac ! qtmux ! filesink location=audio.mp4
程序运行正常,但是当我检查文件内容时,它给了我一个空内容
但是,当我使用 avimux 运行时,文件内容会给出编码和音频长度等细节
gst-launch-1.0 alsasrc device="hw:0,0" ! "audio/x-raw,rate=48000,channels=2,depth=16" ! queue ! audioconvert ! avenc_aac ! avimux ! filesink location=audio.mp4
看看有什么问题,因为我需要 AAC 编码(用于以后的 rtsp 流)并且需要使用 mp4 作为容器和 qtmux
谢谢
【问题讨论】: