我试图在VLC中流一个dvb流,但是将音频转换成aac格式,但是它找不到编码器。我怎么安装它?
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0x2535b58] main interface error: no suitable interface module
[0x2470118] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x2535b58] dbus interface error: Failed to connect to the D-Bus session daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x2535b58] main interface error: no suitable interface module
[0x2470118] main libvlc error: interface "dbus,none" initialization failed
[0x2470118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x2535b58] qt4 interface error: Could not connect to X server
[0x2535b58] skins2 interface error: cannot initialize OSFactory
[0x2535b58] [cli] lua interface: Listening on host "*console".
VLC media player 2.1.4 Rincewind
Command Line Interface initialized. Type `help' for help.
> [0x7f00c800bcf8] dtv access error: 514000 Hz carrier frequency is too low.
[0x7f00c800bcf8] dtv access: Assuming 514000000 Hz frequency instead.
[0x7f00c800bcf8] dtv access error: cannot enumerate frontend systems: Invalid argument
[0x7f00cc001138] avcodec encoder error: cannot open encoder
[0x7f00cc001138] main encoder error: Streaming / Transcoding failed
[0x7f00cc001138] main encoder error: VLC could not open the encoder.
[0x7f00c80097c8] stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc:mp4a). Take a look few lines earlier to see possible reason.
[0x7f00c80097c8] stream_out_transcode stream out error: cannot create audio chain
[0x7f00c80a5438] main decoder error: cannot create packetizer output (mpga)
[0x7f00c80105b8] ts demux error: libdvbpsi (misc PSI): Bad CRC_32 table 0x73 !!!
编辑以添加我正在运行的命令
cvlc --ttl 12 --ts-es-id-pid --program=8261 dvb:// --dvb-adapter=3 \
--dvb-frequency=514000 --dvb-bandwidth=8 --sout #transcode{width=720,vcodec=h264,
venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},
acodec=mp4a}:std{access=livehttp{seglen=10,delsegs=true,
numsegs=10,index=/web/main/streaming/mystream.m3u8,
index-url=http://192.168.1.2/streaming/mystream-########.ts},
mux=ts{use-key-frames},dst=/web/main/streaming/mystream-########.ts}'
该命令是通过HLS向DVB适配器流,将其转换为客户端接受的格式。该命令可以工作,但将生成由于缺少编码器而没有音频的ts文件。如果我将编码器转换为" MP3“,我会得到一个带有MP3音频的文件,但显然不是我想要的。
发布于 2014-08-21 18:06:35
如果症状看起来与问题相似,但编解码器的细节似乎不同,则可能是vlc
的配置混乱--这似乎有时会发生。
以下是你能做的事:
在我看来,关于编码器的错误就像其他错误一样--你为什么认为它是编码器的问题?
这可能是由于vlc
配置中断造成的。
要进行第一次测试,请尝试
vlc --ignore-config
您可以移开或移除配置目录:
mv -i ~/.config/vlc ~/dot-config-vlc-old
或者将配置重置为:
vlc --reset-config
发布于 2014-08-22 13:51:13
好的,最后我删除了所有的libavcodec*和libavutil*包(这个服务器已经升级了好几次,所以似乎有一些旧的)。
然后,我使用本指南构建libfdk-aac/ffmpeg/vlc http://ubuntuforums.org/showthread.php?t=2141949。
但是,我的命令不适用于vlc母版或2.2分支--没有编写.ts文件。所以我使用了vlc git的2.1分支。
https://askubuntu.com/questions/514313
复制相似问题