VLM telnet サービスからいくつかのデータがあります。
show
media : ( 1 broadcast - 0 vod )
cam1
type : broadcast
enabled : yes
loop : no
inputs
1 : rtsp://xxx:xxx@xxx.xxx.xxx.xxx: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 がサポートする形式 (ハッシュテーブルなど) に変換する方法はありますか?