HOME

≪Ⅱ≫VLC

ストリーミングサーバDSSを使用してストリーミングし、動画表示をVLCで行った時のメモです。

<バージョン(サーバー)>

 VLCバージョン:1.0.6

 mozilla-vlcバージョン:1.0.6

<バージョン(クライアント)>

 VLCバージョン:1.1.4



1.VLC(サーバー)

(1)VLC(サーバー)インストール

  VLC(サーバー)をダウンロード、インストールする。

  詳細は 「<Ⅰ>FFmepg-streamer ≪Ⅳ≫VLC」 を参照。

(2)ストリーミング起動

  DSSにライブストリーミングするVLCを起動する。

[thonma@honma ~]$ vlc -vvv v4l2:///dev/video0:input=1:width=128:height=96:adev=hw.1,0:samplerate=32000 --sout '#transcode{venc=ffmpeg{keyint=1},vcodec=mp4v,vb=100k,acodec=mp4a,fps=10,ab=8k,channels=1,samplerate=16000}:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,name=CHANNEL,sdp=file:///usr/local/movies/channel.sdp}' ← VLC起動
VLC media player 1.0.6 Goldeneye
[0x90938e0] main libvlc debug: VLC media player - version 1.0.6 Goldeneye - (c) 1996-2010 the VideoLAN team
[0x90938e0] main libvlc debug: libvlc was configured with ./configure  '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--enable-release' '--with-binary-version=1.0.6-1.fc12' '--with-tuning=no' '--enable-switcher' '--enable-lua' '--enable-live555' '--enable-dv' '--enable-opencv' '--enable-pvr' '--enable-gnomevfs' '--enable-cddax' '--enable-wma-fixed' '--enable-shine' '--enable-faad' '--enable-twolame' '--enable-real' '--enable-realrtsp' '--enable-flac' '--enable-tremor' '--enable-speex' '--enable-tarkin' '--enable-theora' '--enable-dirac' '--enable-libass' '--enable-shout' '--enable-xcb' '--enable-svg' '--enable-snapshot' '--enable-svgalib' '--enable-xvmc' '--enable-directfb' '--enable-aa' '--enable-caca' '--enable-jack' '--enable-portaudio' '--enable-pulse' '--enable-ncurses' '--enable-xosd' '--enable-fbosd' '--enable-galaktos' '--enable-lirc' '--enable-loader' '--enable-mozilla' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'target_alias=i686-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig'
[0x90938e0] main libvlc debug: translation test: code is "ja"
[0x90938e0] main libvlc debug: checking plugin modules
[0x90938e0] main libvlc debug: loading plugins cache file /home/thonma/.cache/vlc/plugins-04041e.dat
[0x90938e0] main libvlc debug: recursively browsing `/usr/lib/vlc'
[0x90938e0] main libvlc debug: module bank initialized (407 modules)
[0x90938e0] main libvlc debug: opening config file (/home/thonma/.config/vlc/vlcrc)
[0x90938e0] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU 
[0x90938e0] main libvlc debug: looking for memcpy module: 3 candidates
[0x90938e0] main libvlc debug: using memcpy module "memcpymmxext"
[0x915b3d0] main input debug: Creating an input for 'メディアライブラリー'
[0x915b3d0] main input debug: Input is a meta file: disabling unneeded options
[0x915b3d0] main input debug: using timeshift granularity of 50 MBytes
[0x915b3d0] main input debug: using timeshift path '/tmp'
[0x915b3d0] main input debug: `file/xspf-open:///home/thonma/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/thonma/.local/share/vlc/ml.xspf'
[0x915b3d0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/thonma/.local/share/vlc/ml.xspf'
[0x9161200] main demux debug: looking for access_demux module: 1 candidate
[0x9161200] main demux warning: no access_demux module matching "file" could be loaded
[0x9161200] main demux debug: TIMER module_need() : 36.080 ms - Total 36.080 ms / 1 intvls (Avg 36.080 ms)
[0x915b3d0] main input debug: creating access 'file' path='/home/thonma/.local/share/vlc/ml.xspf'
[0x9163388] main access debug: looking for access module: 3 candidates
[0x9163388] access_file access debug: opening file `/home/thonma/.local/share/vlc/ml.xspf'
[0x9163388] main access debug: using access module "access_file"
[0x9163388] main access debug: TIMER module_need() : 15.370 ms - Total 15.370 ms / 1 intvls (Avg 15.370 ms)
[0x9163df8] main stream debug: Using AStream*Stream
[0x9163df8] main stream debug: pre buffering
[0x9163df8] main stream debug: received first data after 18 ms
[0x9163df8] main stream debug: pre-buffering done 313 bytes in 0s - 16 kbytes/s
[0x91644c8] main stream debug: looking for stream_filter module: 5 candidates
[0x91644c8] main stream debug: TIMER module_need() : 39.310 ms - Total 39.310 ms / 1 intvls (Avg 39.310 ms)
[0x9166a58] main stream debug: looking for stream_filter module: 1 candidate
[0x9166a58] main stream debug: using stream_filter module "stream_filter_record"
[0x9166a58] main stream debug: TIMER module_need() : 0.643 ms - Total 0.643 ms / 1 intvls (Avg 0.643 ms)
[0x915b3d0] main input debug: creating demux: access='file' demux='xspf-open' path='/home/thonma/.local/share/vlc/ml.xspf'
[0x9167cf8] main demux debug: looking for demux module: 1 candidate
[0x9167cf8] playlist demux debug: using XSPF playlist reader
[0x9167cf8] main demux debug: using demux module "playlist"
[0x9167cf8] main demux debug: TIMER module_need() : 16.260 ms - Total 16.260 ms / 1 intvls (Avg 16.260 ms)
[0x915b3d0] main input debug: `file/xspf-open:///home/thonma/.local/share/vlc/ml.xspf' successfully opened
[0x917e8b8] main xml debug: looking for xml module: 2 candidates
[0x917e8b8] main xml debug: using xml module "xml"
[0x917e8b8] main xml debug: TIMER module_need() : 1.119 ms - Total 1.119 ms / 1 intvls (Avg 1.119 ms)
[0x9167cf8] playlist demux debug: parsed 0 tracks successfully
[0x917e8b8] main xml debug: removing module "xml"
[0x915b3d0] main input debug: EOF reached
[0x9167cf8] main demux debug: removing module "playlist"
  ~

(3)VLC(サーバー)動画表示

  アプリケーション」クリック⇒「サウンドとビデオ」クリック⇒「VLCメディアプレイヤー」クリックすると、「VLCメディアプレイヤー」画面が表示されます。

  「VLCメディアプレイヤー」画面で、「メディア(M)」クリック⇒「ネットワークストリームを開く(M)」クリックすると、「メディアを開く」画面の「ネットワーク(N)」が表示されます。

  「メディアを開く」画面」の「ネットワーク(N)」で、「プロトコル」に「RTSP」を入力し、「アドレス」にchannel.sdpのURL「localhost/channel.sdp」を入力し、

  「再生(P)」ボタン押下すると、ストリーミングの動画が表示されます。

  <「VLCメディアプレイヤー」画面>

  <「メディアを開く」画面>



2.VLC(クライアント)

(1)VLC(クライアント)インストール

  VLC(クライアント)をダウンロード、インストールする。

  詳細は 「<Ⅰ>FFmepg-streamer ≪Ⅳ≫VLC」 を参照。

(2)VLC(クライアント)動画表示

    VLCを起動すると、「VLCメディアプレイヤー」画面が表示されます。

    「VLCメディアプレイヤー」画面で、「メディア(M)」クリック⇒「ネットワークストリームを開く(M)」クリックすると、「メディアを開く」画面の「ネットワーク(N)」が表示されます。

    「メディアを開く」画面」の「ネットワーク(N)」で、channel.sdpのURL「http://サーバーのIPアドレス/channel.sdp」を入力し、

    「再生(P)」ボタン押下すると、ストリーミングの動画が表示されます。

  <「VLCメディアプレイヤー」画面>

  <「メディアを開く」画面>





  Copyright© 2007 Honma Internet Technology Laboratory, All rights reserved.
  このサイトに関するご意見・ご要望、誤字・脱字などはこちらまでお寄せください。