Rasperry Pi:cvlc"浮点异常"

时间:2016-05-02 14:55:40

标签: stream vlc rtsp raspbian

我尝试将rtsp流引导到flv流,以便能够使用vlc在浏览器中显示它。 我使用以下命令:

cvlc rtsp://xxx.xxx.xxx.xxx/xxx/xxx :sout='#transcode{vcodec=FLV1,scale=1,acodec=none,deinterlace}:http{mime=video/x-flv,mux=ffmpeg{mux=flv},dst=127.0.0.1:8090/device_1.flv}' :no-sout-standard-sap :ttl=5 :sout-keep :no-audio --video --no-sout-audio

使用后,会生成以下输出:

VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[0027f898] core interface error: no suitable interface module
[001e68f8] core libvlc error: interface "globalhotkeys,none" initialization failed
[0027f900] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0027f900] core interface error: no suitable interface module
[001e68f8] core libvlc error: interface "dbus,none" initialization failed
[0027f8d8] dummy interface: using the dummy interface module...
[6fc017e8] access_output_http access out: Consider passing --http-host=IP on the command line instead.
[6fb00508] core input error: ES_OUT_RESET_PCR called
[6fb00508] core input error: ES_OUT_RESET_PCR called
MultiFramedRTPSource::doGetNextFrame1(): The total received frame size exceeds the client's buffer size (100000).  53926 bytes of trailing data will be dropped!
[h264 @ 0x6f907600] corrupted macroblock 3 43 (total_coeff=-1)
[h264 @ 0x6f907600] error while decoding MB 3 43
Floating point exception

我没有vlc的经验,所以任何帮助都会受到赞赏

1 个答案:

答案 0 :(得分:0)

我最近遇到过同样的问题。以下解决方案并不完全解决vlc问题,但它允许我最终通过raspbian流式传输视频。

具有UV4L

的Raspi流
sudo vim /etc/apt/sources.list

将以下行添加到文件

# for uv4l library
deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ jessie main
# for old version libssl1.0.0 lib that is a dependency for uv4l-server
deb http://ftp.de.debian.org/debian jessie main 

更新包列表并安装依赖项

sudo apt-get update
sudo apt-get install uv4l uv4l-raspicam uv4l-raspicam-extras uv4l-webrtc

可选择编辑默认配置,即设置ssl或编码格式等...

sudo vim /etc/uv4l/uv4l-raspicam.conf

最后,启动将在raspberry pi上托管服务器的服务

sudo service uv4l_raspicam start # stop

导航至

http://raspberryAddress:8080/

你应该看到UI。