【发布时间】:2019-11-24 15:58:53
【问题描述】:
我想重新编码音频文件的音频流。以下 gstreamer 管道运行良好:
gst-launch-1.0 filesrc location=input.flac ! decodebin ! audioconvert ! \
sbcenc ! sbcdec ! autoaudiosink
但是,当我将编码器/解码器切换到 libav aptx 时,出现以下错误:
gst-launch-1.0 filesrc location=input.flac ! decodebin ! audioconvert ! \
avenc_aptx ! avdec_aptx ! autoaudiosink
我收到以下错误:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Delayed linking failed.
Additional debug info:
../gstreamer/gst/parse/grammar.y(506): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
failed delayed linking some pad of GstDecodeBin named decodebin0 to some pad of GstAudioConvert named audioconvert0
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstFlacParse:flacparse0: Internal data stream error.
Additional debug info:
../gstreamer/libs/gst/base/gstbaseparse.c(3634): gst_base_parse_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstFlacParse:flacparse0:
streaming stopped, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
我的管道中缺少什么?如何使用 FFMPEG/libav 编解码器?
我是 gstreamer 新手,想使用 cli 工具将音频流重新编码为一堆不同的编解码器。 libav 似乎拥有所有需要的编解码器。
【问题讨论】:
-
aptx 肯定不是 AAC。
-
你是绝对正确的。这是一个错字,我马上改正了。感谢您指出。