Page 1 of 1

Telnet output format: XML or JSON or ..?

Posted: 19 Jul 2012 01:49
by arkham
Hi.
I start VLC telnet connection like this:

Code: Select all

cvlc --extraintf telnet --telnet-host xxx.xxx.xxx.xxx --telnet-port xxxx --telnet-password xxx
I set up streams and other staff via telnet, and at the end I use "show" to check result:

Code: Select all

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
It's ok, but i also want to transfer this information to Perl command script.
Is here a way to get this data like XML or JSON or other Perl supported format?
Thanks.