我正在尝试播放视频文件..但出现的错误很少,
不知道如何解决这些错误,有人可以帮我吗,谢谢
`Streaming 'C:\Desktop\movie.mp4' to ':sout=#duplicate{dst=std{access=http,mux=ts,dst=127.0.0.1:5555}}'
_ _
__ _| | ___ (_)
\ \ / / |/ __|| |
\ V /| | (__ | |
\_/ |_|\___|/ | 2.2.0
|__/ www.capricasoftware.co.uk
VLCJ is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
VLCJ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with VLCJ. If not, see <http://www.gnu.org/licenses/>.
Copyright 2009, 2010, 2011, 2012 Caprica Software Limited.
vlcj: (Info.java:103) | INFO | vlcj: <version not available>
vlcj: (Info.java:104) | INFO | java: 1.6.0_23 Sun Microsystems Inc.
vlcj: (Info.java:105) | INFO | java home: C:\Program Files\Java\jre6
vlcj: (Info.java:106) | INFO | os: Windows 7 6.1 x86
vlcj: (LibVlcFactory.java:164) | INFO | vlc: 2.0.1 Twoflower, changeset 2.0.1-0-gf432547
vlcj: (LibVlcFactory.java:165) | INFO | libvlc: libvlc.dll
[04451750] access_output_http access out: Consider passing --http-host=IP on the command line instead.
[002c9648] main input error: ES_OUT_RESET_PCR called
[04430e28] main mux error: cannot add this stream
[04424528] main decoder error: cannot create packetizer output (theo)
[04430e28] main mux error: cannot add this stream
[056d0c80] main decoder error: cannot create packetizer output (vorb)
`
最佳答案
我已经将字符串更改为此并且可以正常工作........
String[] options = {" :dshow-vdev=ip Camera :dshow-adev= :dshow-caching=200", ":sout = #transcode{vcodec=theo,vb=800,scale=0.25,acodec=vorb,ab=128,channels=2,samplerate=44100}:display :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep"};