第一個問題 普通用戶不會使用 ffmpeg 嘗試將其介面化
ffmpeg -ss 00:01:30 -to 00:03:00 -i input.mp4 -c copy output.mp4
介面功能Slider 命名Name= 最小 Minimum 最大 Maximum
Value初始值
PreviewMouseLeftButtonUp 使用者按下滑桿前會觸發的事件
PreviewMouseLeftButtonDown 使用者放開滑桿後會觸發的事件
<Slider Name="ProgressSlider" Minimum="0" Maximum="100"
Value="0"
Margin="5"
PreviewMouseLeftButtonUp="ProgressSlider_PreviewMouseLeftButtonUp"
PreviewMouseLeftButtonDown="ProgressSlider_PreviewMouseLeftButtonDown"/>
介面功能 TextBlock 初始化文字Text= 背景顏色Foreground
介面功能 TextBlock 名稱定義Name= 背景顏色Foreground 間距 Margin=
<TextBlock Text="當前秒數: " Foreground="Black"/>
<TextBlock Name="CurrentTimeText" Foreground="Black" Margin="5,0"/>
間距用法跟HTML CSS類似
寫法 | 解釋 |
---|---|
Margin="10" |
四邊都是 10 |
Margin="10,5" |
左右 10、上下 5 |
Margin="10,5,15,8" |
左10、上5、右15、下8(完整格式) |