Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作一个使用 mkv 格式同时显示更多视频流的视频播放器。
我构建了我的应用程序,以便当它解码 Mkv 视频时,它将集群中的所有帧放入内存中,根据我在读取只有一个视频流的视频时观察到的情况,除最后一个之外的每个集群都有相同数量的帧。
我想将两个 mkv 文件合并为一个,但同时,我希望视频中的每个集群都具有来自两个轨道的相同数量的帧。
使用 FFmpeg 或其他工具可以做到这一点吗?
使用-frames:v:
-frames:v
ffmpeg -i input0.mkv -i input1.mkv -map 0 -map 1 -c copy -frames:v 100 output.mkv
要验证查看Fetch frame count withffmpeg。
ffmpeg