使用 VirtualDub 从 rgb avi 电影中提取只有 1 个颜色通道的图像序列
Extract image sequence with only 1 color chanel out of rgb avi movie with VirtualDub
我有一个未压缩的 RGB AVI 文件,其中包含 10 张灰度图像:https://drive.google.com/open?id=0B9wKP6yNcpyfY1JzdmJTcHhjTmM(10 张图像)
我想使用 VirtualDub 提取应该只有 1 个通道的图像。我尝试过的所有情况下图像总是有 3 个通道。
怎么办?
如果您需要经常这样做,您的选择是 "export via external encoder" 使用 VirtualDub FilterMod https://sourceforge.net/projects/vdfiltermod
(官方 VirtualDub 无法导出 rgb)
下面的预设将使用 ffmpeg 保存灰色 tiff 序列(下载 ffmpeg.exe 并替换它的路径)
{
"description": "VirtualDub external encoder profile collection",
"externalEncoders": {
"sets": {
"tiff_gray": {
"videoEncoder": "tiff_gray",
"audioEncoder": "",
"multiplexer": "",
"description": "",
"extension": "",
"processPartial": false,
"useOutputAsTemp": true
}
},
"profiles": {
"tiff_gray": {
"name": "tiff_gray",
"program": "E:\download\vd\ffmpeg\ffmpeg.exe",
"commandArguments": "-f rawvideo -pix_fmt %(pix_fmt) -s %(width)x%(height) -r %(fpsnum)/%(fpsden) -i - -pix_fmt gray8 %(tempvideofile)_%%04d.tif",
"outputFilename": "",
"type": 0,
"pixelFormat": "bgra",
"inputFormat": 0,
"checkReturnCode": true,
"logStdout": true,
"logStderr": true,
"bypassCompression": false,
"predeleteOutputFile": true
}
}
}
}
我有一个未压缩的 RGB AVI 文件,其中包含 10 张灰度图像:https://drive.google.com/open?id=0B9wKP6yNcpyfY1JzdmJTcHhjTmM(10 张图像)
我想使用 VirtualDub 提取应该只有 1 个通道的图像。我尝试过的所有情况下图像总是有 3 个通道。
怎么办?
如果您需要经常这样做,您的选择是 "export via external encoder" 使用 VirtualDub FilterMod https://sourceforge.net/projects/vdfiltermod (官方 VirtualDub 无法导出 rgb)
下面的预设将使用 ffmpeg 保存灰色 tiff 序列(下载 ffmpeg.exe 并替换它的路径)
{ "description": "VirtualDub external encoder profile collection", "externalEncoders": { "sets": { "tiff_gray": { "videoEncoder": "tiff_gray", "audioEncoder": "", "multiplexer": "", "description": "", "extension": "", "processPartial": false, "useOutputAsTemp": true } }, "profiles": { "tiff_gray": { "name": "tiff_gray", "program": "E:\download\vd\ffmpeg\ffmpeg.exe", "commandArguments": "-f rawvideo -pix_fmt %(pix_fmt) -s %(width)x%(height) -r %(fpsnum)/%(fpsden) -i - -pix_fmt gray8 %(tempvideofile)_%%04d.tif", "outputFilename": "", "type": 0, "pixelFormat": "bgra", "inputFormat": 0, "checkReturnCode": true, "logStdout": true, "logStderr": true, "bypassCompression": false, "predeleteOutputFile": true } } } }