使用ffmpeg压缩视频的特定帧

时间:2019-02-10 20:32:29

标签: ffmpeg

我正在尝试从视频压缩一定范围的帧,是否可以使用ffmpeg压缩?我的意思是,我想从100帧压缩到300帧。我使用此命令进行压缩。

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
        this.DispatcherUnhandledException += App_DispatcherUnhandledException;

        base.OnStartup(e);
    }

    private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
    {
        ((MainWindow)Application.Current.MainWindow).host.Close();
    }

    protected override void OnExit(ExitEventArgs e)
    {
        if (((MainWindow)Application.Current.MainWindow).host.State == System.ServiceModel.CommunicationState.Opened)
            ((MainWindow)Application.Current.MainWindow).host.Close();

        base.OnExit(e);
    }

0 个答案:

没有答案