VLC player не может воспроизвести сетевой поток из примера приложения vlcj StreamHttp - PullRequest
1 голос
/ 23 марта 2012

Когда я запускаю пример кода в JAVA, я получаю следующее сообщение:

Streaming 'F:\Video\Don.mp4' to ':sout=#rtp{sdp=rtsp://@127.0.0.1:5555/demo}'
       _       _
__   _| | ___ (_)
\ \ / / |/ __|| |
 \ V /| | (__ | |
  \_/ |_|\___|/ | 2.1.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:66)                           | INFO  | vlcj: 2.1.0

vlcj: (Info.java:67)                           | INFO  | java: 1.6.0_26 Sun Microsystems Inc.

vlcj: (Info.java:68)                           | INFO  | java home: C:\Program Files\Java\jre6

vlcj: (Info.java:69)                           | INFO  | os: Windows 7 6.1 x86

vlcj: (LibVlcFactory.java:143)                 | INFO  | vlc: 2.0.1 Twoflower, changeset 2.0.1-0-gf432547

vlcj: (LibVlcFactory.java:144)                 | INFO  | libvlc: C:\Program Files\VideoLAN\VLC\libvlc.dll

[18587ed0] stream_out_rtp stream out: Consider passing --rtsp-host=IP on the command line instead.

Что означает вышеприведенное утверждение - "stream_out_rtp stream out"? похожие ошибки я получаю при попытке потоковой передачи в http

1 Ответ

2 голосов
/ 29 мая 2012
 mediaPlayer.playMedia("dshow://", 
                    ":sout=#rtp{sdp=rtsp://@:5555/demo}",
                      ":no-sout-rtp-sap", 
                     ":no-sout-standard-sap", 
                      ":sout-all",
                      ":rtsp-caching=100",
                      ":sout-keep");

попробуйте это работает у меня ..

...