我从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