Pipe for ffmpeg
| Line 29: | Line 29: | ||
* Input video streams are RGB or YUV, 8 or 10 bits, 4:2:0, 4:2:2 or 4:4:4 color spaces: | * Input video streams are RGB or YUV, 8 or 10 bits, 4:2:0, 4:2:2 or 4:4:4 color spaces: | ||
| − | MEDIATYPE_Video, FORMAT_VideoInfo or FORMAT_VideoInfo2 | + | MEDIATYPE_Video, FORMAT_VideoInfo or FORMAT_VideoInfo2 |
| − | 8 bit color spaces: NV12, YV12, I420, YUY2, UYVY, YVYU, Y422, ARGB32, RGB32, RGB24 | + | 8 bit color spaces: NV12, YV12, I420, YUY2, UYVY, YVYU, Y422, ARGB32, RGB32, RGB24 |
| − | 10 bit color spaces: v210, r210 | + | 10 bit color spaces: v210, r210 |
| − | * Input audio streams are PCM or IEEE_FLOAT, up to 32 channels | + | |
| + | * Input audio streams are PCM or IEEE_FLOAT: | ||
| + | MEDIASUBTYPE_PCM (8 -:- 32 bits, up to 32 channels) | ||
| + | MEDIASUBTYPE_IEEE_FLOAT (32 bits, up to 32 channels) | ||
==Possible filter extensions== | ==Possible filter extensions== | ||
Revision as of 16:49, 24 October 2025
This page is a copy of the original page on the AVObjects' web site and can also be viewed here.
DirectShow filter-pipe for encoding video and audio streams and writing them to files using ffmpeg.exe
Overview
Pipe for ffmpeg uses the ffmpeg.exe external module to encode video and audio streams and write them to files. The encoding and file types depend on the ffmpeg.exe used. You can download it from https://www.ffmpeg.org/download.html.
Features
The path to the external ffmpeg module to be used must be specified.
The following encoders and file types were tested:
- video: mpeg2video, mpeg4, libxvid, libx264, libx265
- audio: copy, aac, ac3, mp2, libmp3lame, libopus, flac
- files: mp4, mov, avi, mkv, mpg
Additional parameters (bitrate and other encoding characteristics) can also be specified, please see Pipe for ffmpeg: Settings
The tests used "FFmpeg 64-bit static Windows build from www.gyan.dev" (Version: 2024-10-24-git-153a6dc8fa-full_build-www.gyan.dev).
Specifications and description of user interfaces can be found in the .idl file in the \Idl folder of the filter installation directory.
Supported Formats
- Input video streams are RGB or YUV, 8 or 10 bits, 4:2:0, 4:2:2 or 4:4:4 color spaces:
MEDIATYPE_Video, FORMAT_VideoInfo or FORMAT_VideoInfo2 8 bit color spaces: NV12, YV12, I420, YUY2, UYVY, YVYU, Y422, ARGB32, RGB32, RGB24 10 bit color spaces: v210, r210
- Input audio streams are PCM or IEEE_FLOAT:
MEDIASUBTYPE_PCM (8 -:- 32 bits, up to 32 channels) MEDIASUBTYPE_IEEE_FLOAT (32 bits, up to 32 channels)
Possible filter extensions
- Adding output pins to further pass input streams (with removed timestamps) to renderers or other filters for monitoring.
- Adding the ability to start/stop capturing at any time while the graph is running. This can be used to capture specific fragments of input streams into one or more files.
If you are interested in these extensions or have any other additional requests, please contact us at support@avobjects.com
See Also
You Might Also Need
The PipeFFTest samples use the following filters:
- Video Generator - DirectShow filter for generating a video stream with the necessary parameters, for creating video frames for checking chroma key, for outputting an audio stream synchronized with video, and much more.
- Wave Generator - DirectShow filter to generate a multichannel sine wave with the required bit depth, amplitude, frequency, etc.
Action Items
Prices
| Single Application License | 950 EUR
|
| Single Developer License | 1650 EUR
|
| Team License | 2400 EUR |