我從VLM telnet服務的一些數據:標籤轉換成文本Perl數據格式
show
media : (1 broadcast - 0 vod)
cam1
type : broadcast
enabled : yes
loop : no
inputs
1 : rtsp://xxx:[email protected]:xxx/xxxx/xxx.xxx
output : #transcode{vcodec="h264"}:standard{access=http,mux=ts,dst=xxx.xxx.xxx.xxx:6690/cam1}
options
instances
instance
name : default
state : playing
position : 0,000000
time : 0
length : -1
rate : 1,000000
title : 0
chapter : 0
can-seek : 0
playlistindex : 1
schedule
在這裏該數據轉換成XML或JSON或其他的Perl的方式支持的格式(哈希表等)?
哇!很棒。謝謝。 – arkhamvm 2012-07-22 23:01:25