Completed

VBS to launch application and modify xml configuration RePos

I am using Adobe Flash Media Live Encoder to stream video. Every time we start the software the FMS url and the stream name changes. The application has a configuration file in xml format where it stores the FMS url and the stream name. Now for the VBS part that I need your help:

I need a vbs script to do the following:

-check if the application is running and if it is close it;

-ask the user to input the FMS url and the stream name;

-modify in the xml file the FMS url and the stream name with the ones provided by user and save the changes (//url, //stream);

-launch the application.

The xml part looks like this:

<?xml version="1.0" encoding="UTF-16"?>

<flashmedialiveencoder_profile>

<preset>

<name>Custom</name>

<description></description>

</preset>

<capture>

<video>

<device>tv tuner</device>

<crossbar_input>0</crossbar_input>

<frame_rate>15.00</frame_rate>

<size>

<width>640</width>

<height>480</height>

</size>

</video>

<audio>

<device>SoundMAX HD Audio I</device>

<crossbar_input>0</crossbar_input>

<sample_rate>22050</sample_rate>

<channels>1</channels>

<input_volume>75</input_volume>

</audio>

</capture>

<process>

<video>

<preserve_aspect></preserve_aspect>

<deinterlace></deinterlace>

</video>

</process>

<encode>

<video>

<format>H.264</format>

<datarate>650;</datarate>

<outputsize>640x480;</outputsize>

<advanced>

<profile>Baseline</profile>

<level>3.0</level>

<keyframe_frequency>5 Seconds</keyframe_frequency>

</advanced>

<autoadjust>

<enable>true</enable>

<maxbuffersize>1</maxbuffersize>

<dropframes>

<enable>true</enable>

</dropframes>

<degradequality>

<enable>false</enable>

<minvideobitrate></minvideobitrate>

<preservepfq>false</preservepfq>

</degradequality>

</autoadjust>

</video>

<audio>

<format>MP3</format>

<datarate>48</datarate>

</audio>

</encode>

<restartinterval>

<days></days>

<hours></hours>

<minutes></minutes>

</restartinterval>

<reconnectinterval>

<attempts></attempts>

<interval></interval>

</reconnectinterval>

<output>

<rtmp>

<url>rtmp://129.152.231.2/user/live1</url>

<backup_url></backup_url>

<stream>o/225678/user_18352175</stream>

</rtmp>

</output>

<metadata>

<entry>

<key>author</key>

<value></value>

</entry>

<entry>

<key>copyright</key>

<value></value>

</entry>

<entry>

<key>description</key>

<value></value>

</entry>

<entry>

<key>keywords</key>

<value></value>

</entry>

<entry>

<key>rating</key>

<value></value>

</entry>

<entry>

<key>title</key>

<value></value>

</entry>

</metadata>

<preview>

<video>

<output>

<zoom>100%</zoom>

</output>

</video>

</preview>

<log>

<level>100</level>

<directory>C:\Documents and Settings\user\My Documents\My Videos</directory>

</log>

</flashmedialiveencoder_profile>

Evner: Visual Basic, XML

Se mere: profile mp3, o log n, mp3 profile, hd video script, vbs script launch application, vbs xml save format, vbs launch application, value stores, Profile Title, key value stores, check for adobe flash, adobe flash check, adobe capture, 48 hours in minutes, video application, tv stream, stream rtmp, rtmp, modify c, live tv script

Om arbejdsgiveren:
( 6 bedømmelser ) constanta, Romania

Projekt ID: #604696

Tildelt til:

ShohagIFAS

please chose me!

$40 USD på 1 dag
(14 bedømmelser)
4.1