<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : C# ile Videonun Süresini Bulmak</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : C# &amp; ASP.NET : C# ile Videonun Süresini Bulmak</description>
  <pubDate>Fri, 01 May 2026 09:48:07 +0000</pubDate>
  <lastBuildDate>Fri, 09 Jul 2010 12:19:23 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=1944</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>C# ile Videonun Süresini Bulmak : Hatta kodunuz &#351;u &#351;ekilde de&#287;i&#351;tirin protected...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4235#4235</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 1944<br /><strong>Gönderim Zamanı:</strong> 09.Temmuz.2010 Saat 12:19<br /><br />Hatta&nbsp; kodunuz şu şekilde değiştirin<FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>protected</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> GetVideoDuration(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> FilePath)</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> VideoDuration=</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>""</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>using</FONT></FONT><FONT size=2> (TagLib.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>File</FONT></FONT><FONT size=2> file = TagLib.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>File</FONT></FONT><FONT size=2>.Create(FilePath))</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> Hour = file.Properties.Duration.Hours.ToString();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> Minute = file.Properties.Duration.Minutes.ToString();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> Second = file.Properties.Duration.Seconds.ToString();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (Hour.Length &lt; 2)</P><P>{</P><P>Hour = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"0"</FONT></FONT><FONT size=2> + Hour;</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (Minute.Length &lt; 2)</P><P>{</P><P>Minute = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"0"</FONT></FONT><FONT size=2> + Minute;</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (Second.Length &lt; 2)</P><P>{</P><P>Second = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"0"</FONT></FONT><FONT size=2> + Second;</P><P>}</P><P>VideoDuration = Hour + </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>":"</FONT></FONT><FONT size=2> + Minute + </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>":"</FONT></FONT><FONT size=2> + Second;</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> VideoDuration;</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>Bu kodu kullanmazsanız şu şekilde alıyor.</P><DIV></DIV>00:04:32 sürelik bir videonun süresini 00:4:32 şeklinde alıyor.<DIV>00:04:32 bu şekilde almak için yukarıdaki kontrolleri yaptırız.<BR>Kolay gelsin</DIV></FONT>]]>
   </description>
   <pubDate>Fri, 09 Jul 2010 12:19:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4235#4235</guid>
  </item> 
  <item>
   <title>C# ile Videonun Süresini Bulmak : Murat abi bi kere daha te&#351;ekk&#252;r...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4232#4232</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 1944<br /><strong>Gönderim Zamanı:</strong> 09.Temmuz.2010 Saat 10:31<br /><br />Murat abi bi kere daha teşekkür ederim.Büyüksün.<DIV>Arkadaşlar ben bunu web uygulamasında kullanacaktım.Test ettim çalıştı.<BR></DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>protected</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> GetVideoDuration(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> FilePath){</P><DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> VideoDuration=</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>""</FONT></FONT><FONT size=2>;</DIV><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>using</FONT></FONT><FONT size=2> (TagLib.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>File</FONT></FONT><FONT size=2> file = TagLib.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>File</FONT></FONT><FONT size=2>.Create(FilePath))</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> Hour = file.Properties.Duration.Hours.ToString();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> Minute = file.Properties.Duration.Minutes.ToString();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> Second = file.Properties.Duration.Seconds.ToString();</P><P>VideoDuration = Hour + </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>":"</FONT></FONT><FONT size=2> + Minute + </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>":"</FONT></FONT><FONT size=2> + Second;</P><P>}</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> VideoDuration;</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>Kullanımı <FONT size=2></P><P>GetVideoDuration(Server.MapPath(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"video.wmv"</FONT></FONT><FONT size=2>).ToString());</P><DIV></DIV>Dosya upload ettirdikten hemen sonra,videoyu attırdğınız konumdaki yolunu verin.</FONT></FONT>]]>
   </description>
   <pubDate>Fri, 09 Jul 2010 10:31:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4232#4232</guid>
  </item> 
  <item>
   <title>C# ile Videonun Süresini Bulmak : taglib k&#252;t&#252;phanesi: http://ci...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4226#4226</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 1944<br /><strong>Gönderim Zamanı:</strong> 08.Temmuz.2010 Saat 18:30<br /><br />taglib kütüphanesi:<DIV><a href="http://cid-1c0c6885c58227af.office.live.com/self.aspx/Tools/taglib-sharp-2.0.3.7.rar" target="_blank">http://cid-1c0c6885c58227af.office.live.com/self.aspx/Tools/taglib-sharp-2.0.3.7.rar</A></DIV>]]>
   </description>
   <pubDate>Thu, 08 Jul 2010 18:30:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4226#4226</guid>
  </item> 
  <item>
   <title>C# ile Videonun Süresini Bulmak : taglib-sharp-2.0.3.7 k&#252;t&#252;phamesini...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4225#4225</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 1944<br /><strong>Gönderim Zamanı:</strong> 08.Temmuz.2010 Saat 18:27<br /><br />taglib-sharp-2.0.3.7&nbsp; kütüphamesini indirip içrisindeki "taglib-sharp.dll" dosyasını projeye refere et.<DIV><SPAN style="FONT-FAMILY: Tahoma; COLOR: #008000; FONT-WEIGHT: bold"></SPAN>&nbsp;</DIV><DIV><SPAN style="FONT-FAMILY: Tahoma; COLOR: #008000; FONT-WEIGHT: bold">using </SPAN><SPAN style="FONT-FAMILY: Tahoma; COLOR: #008000; FONT-WEIGHT: bold">(TagLib.File file = TagLib.File.Create("H:/test.wmv")) { </SPAN></DIV><DIV><SPAN style="FONT-FAMILY: Tahoma; COLOR: #008000; FONT-WEIGHT: bold">&nbsp; int mnt = file.Properties.Duration.Minutes; </SPAN></DIV><DIV><SPAN style="FONT-FAMILY: Tahoma; COLOR: #008000; FONT-WEIGHT: bold">&nbsp; int scn = file.Properties.Duration.Seconds; </SPAN></DIV><DIV><SPAN style="FONT-FAMILY: Tahoma; COLOR: #008000; FONT-WEIGHT: bold">}</SPAN></DIV>]]>
   </description>
   <pubDate>Thu, 08 Jul 2010 18:27:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4225#4225</guid>
  </item> 
  <item>
   <title>C# ile Videonun Süresini Bulmak : Merhaba; C# ile Videonun duration...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4224#4224</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 1944<br /><strong>Gönderim Zamanı:</strong> 07.Temmuz.2010 Saat 13:46<br /><br />Merhaba;<DIV>C# ile Videonun duration yani süresini nasıl öğrenebilirim.Veya bunun bi hesap yoluyla nasıl yapabilirm.</DIV><DIV>Elde etmek istediğim şey aşağıdaki resimdeki seçilen değeri almak;</DIV><DIV><a href="http://img580.imageshack.us/img580/3025/summary.jpg" target="_blank">http://img580.imageshack.us/img580/3025/summary.jpg</A></DIV><DIV>Gugılın altına üstüne,üstüne altına çevirdim ama hep şaçma sapan örnekler var.</DIV><DIV>Elde etmek istediğim süre&nbsp; wmv uzantılı bir videonun süresi.Bunu hesap yoluyla bulunacağını pek sanmıyorum.Nitekim Kendim doğru orantıdan bi hesap yaptım.Oda yanlış çıktı<img src="http://forum.datakent.com/smileys/smiley4.gif" height="17" width="17" border="0" alt="Big smile" title="Big smile" /></DIV><DIV>bu konuda yardımcı olursanız pek makbule geçecek;</DIV><DIV>&nbsp;</DIV><DIV>Saygılar</DIV>]]>
   </description>
   <pubDate>Wed, 07 Jul 2010 13:46:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1944&amp;PID=4224#4224</guid>
  </item> 
 </channel>
</rss>