- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在用 C# 开发一个应用程序,我正在使用 DirectShow.NET 库来呈现具有多个音轨的 .AVI 文件
如何在多个音轨之间切换?我正在使用 RenderFile 构建我的过滤器图,而不是手动构建它。
最佳答案
如果支持在音轨之间切换,管道中的过滤器之一(多路分解过滤器)将公开 IAMStreamSelect
界面,您可以使用它来切换轨道。
The
IAMStreamSelect
interface selects from the available streams on a parser filter. For example, a file might contain audio streams encoded in several languages, such as English, German, and French. The application could use this interface to select which language is played.
您可以使用ICaptureGraphBuilder2::FindInterface
方法在您的过滤图中快速定位接口(interface)。
关于c# - 如何使用 RenderFile 构建 Filtergraph 在多个音轨之间进行选择?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10530765/
编辑:最初的问题是在调用我的自定义过滤器时过滤器图停止了。我们通过在交付方法中设置样本的时间属性来解决这个问题。 我简化了图表 这适用于将视频从网络摄像头录制到文件中。 但是,如果我将过滤器放在两者之
这是导致永无止境转码的最小示例: ffmpeg -y -filter_complex movie=filename='./frames/image0.png':loop=0,trim=duration
我已经用谷歌搜索/StackOverflowing 好几天了,但无法弄明白。 我有一个 WPF 项目,我想在其中使用单独的音频系统同时在多个屏幕上播放视频。对于播放视频,我们使用 WPFMediaKi
我有一个基本的 directshow 图: Video Capture Source: SMI Grabber Dev (4ch usb dvr) > video Renderer 当我启动 Grap
我关注页面Create a mosaic out of several input videos合并视频。 当我使用 http://*.flv 视频作为输入时,它工作正常。 但是当我使用 rtmp:/
我正在用 C# 开发一个应用程序,我正在使用 DirectShow.NET 库来呈现具有多个音轨的 .AVI 文件 如何在多个音轨之间切换?我正在使用 RenderFile 构建我的过滤器图,而不是手
我正在尝试找出为什么会收到错误消息 Invalid file index 3 in filtergraph description从以下命令(忽略我为可读性而输入的换行符): ffmpeg -y -p
我正致力于在 C# dll 中实现 directshow 功能。我的工作基于 Microsoft 随 Windows Mobile 6 sdk 提供的基于 C++ 的“CameraCapture”示例
我正在开发一个严重依赖 FFMpeg 对音频文件执行各种转换的应用程序。我目前正在命令行上测试我的 FFMpeg 配置。 我正在尝试连接多个不同格式的音频文件(主要是 MP3、MP2 和 WAV)。我
我正在尝试将任意数量的视频与它们上面的一系列水印连接起来: ffmpeg -i segment0.mp4 -i segment1.mp4 -i ... segmentn.mp4 -i end.mp4
我正在使用的命令如下,使用该命令我得到 8 channel output.wav。 ffmpeg.exe -i one.wav -i two.wav -i three.wav -i four.w
我不明白为什么这不起作用..我试图获取带有 [0:v]/[0:1]/[0:v:0] 的视频流和带有 [0:a] 的音频流/[0:0]/[0:0:0]。 没有任何效果。 解释输入: 第 1.1 个输入流
我不明白为什么这不起作用..我试图获取带有 [0:v]/[0:1]/[0:v:0] 的视频流和带有 [0:a] 的音频流/[0:0]/[0:0:0]。 没有任何效果。 解释输入: 第 1.1 个输入流
我正在尝试将 django 中的两个音频文件与 连接起来ffmpeg 但收到此错误 filtergraph 描述 [0][1]concat=a=1:n=1:v=1[s0] 中的流说明符 '' 不匹配
我是一名优秀的程序员,十分优秀!