Quantcast
Viewing latest article 17
Browse Latest Browse All 41

VB 2010 Progress Bar.

I give up on the progress bar.  I have been searching for weeks, and I can not find anything that I could understand.  Now I just want to know, how to navigate through an xml.  I forgot that I need to specify a fps for the videos, so I am using MediaInfo to produce a xml that has all the information that I need to know.  But I don't know how to go to the correct tag and make that contents of that tag a variable.

This is just part of the xml.

<?xml version="1.0" encoding="UTF-8"?>
<Mediainfo version="0.7.34">
<File>
<track type="General">
<Complete_name>C:\Users\Metroidn1f\Downloads\Movies\Date Night\metis-datenight-720p.mkv</Complete_name>
<Format>Matroska</Format>
<File_size>4.36 GiB</File_size>
<Duration>1h 41mn</Duration>
<Overall_bit_rate>6 150 Kbps</Overall_bit_rate>
<Encoded_date>UTC 2010-07-03 01:38:03</Encoded_date>
<Writing_application>mkvmerge v3.2.0 ('Beginnings') built on Feb 12 2010 16:46:17</Writing_application>
<Writing_library>libebml v0.7.9 + libmatroska v0.8.1</Writing_library>
</track>

<track type="Video">
<ID>1</ID>
<Format>AVC</Format>
<Format_Info>Advanced Video Codec</Format_Info>
<Format_profile>High@L4.1</Format_profile>
<Format_settings__CABAC>Yes</Format_settings__CABAC>
<Format_settings__ReFrames>5 frames</Format_settings__ReFrames>
<Muxing_mode>Container profile=Unknown@4.1</Muxing_mode>
<Codec_ID>V_MPEG4/ISO/AVC</Codec_ID>
<Duration>1h 41mn</Duration>
<Bit_rate>4 648 Kbps</Bit_rate>
<Width>1 280 pixels</Width>
<Height>544 pixels</Height>
<Display_aspect_ratio>2.35:1</Display_aspect_ratio>
<Frame_rate>23.976 fps</Frame_rate>
<Color_space>YUV</Color_space>
<Chroma_subsampling>4:2:0</Chroma_subsampling>
<Bit_depth>8 bits</Bit_depth>
<Scan_type>Progressive</Scan_type>
<Bits__Pixel_Frame_>0.278</Bits__Pixel_Frame_>
<Stream_size>3.21 GiB (73%)</Stream_size>
<Writing_library>x264 core 98 r1649 20cbe10</Writing_library>
<Encoding_settings>cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=4648 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00</Encoding_settings>
<Language>English</Language>
</track>

<track type="Audio">
<ID>2</ID>

The parts that are in bold, are the information that I want.  So I want to make the contents of those tags into separate variables.

I got this thread to help me out a little bit.

http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/ecd7af20-1d67-4ecd-b12d-51810014b188

But I can not go through the Tags that hold the tags that I want, for example.  The first tag that I want is <ID>

It is in the contents of

<?xml version="1.0" encoding="UTF-8"?>
<Mediainfo version="0.7.34">
<File>

But I don't know how to go through those tags and get to the one I want.

Once I figure out how to do that, how am I going to go to the second Tag that says <Track> to get the audio ID.  If you look at the link, it might help you out on what I mean.


Viewing latest article 17
Browse Latest Browse All 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>