回答編集履歴

1

回答追記

2017/01/26 08:58

投稿

Y.H.
Y.H.

スコア7914

test CHANGED
@@ -3,3 +3,39 @@
3
3
  [http://stackoverflow.com/questions/38474590/#answer-38494527](http://stackoverflow.com/questions/38474590/#answer-38494527)
4
4
 
5
5
  このJitender Kumarさんの回答にある```private static void GetVideoDuration()```がそのまま使用できると思うのですが・・・
6
+
7
+
8
+
9
+ 「そのまま使用できる」は語弊がありますね。
10
+
11
+ msを削除しているので削除内容にすると、```duration```に文字列でms含めた時間が入っていると思います。
12
+
13
+
14
+
15
+ ```
16
+
17
+ string duration = proc.StandardOutput.ReadToEnd().Replace("\r\n", "");
18
+
19
+ // not Remove the milliseconds
20
+
21
+ // duration = duration.Substring(0, duration.LastIndexOf("."));
22
+
23
+ ```
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+ ```
32
+
33
+ string duration = proc.StandardOutput.ReadToEnd().Replace("\r\n", "");
34
+
35
+ // not Remove the milliseconds
36
+
37
+ // duration = duration.Substring(0, duration.LastIndexOf("."));
38
+
39
+ ```
40
+
41
+