![]() It is possible to make the transcoder console visible for debugging or control purpose. Additionally to this default DirectShow behavior, the "PAUSEWHENSTOP" feature allows to pause the process while the graph is stopped, and to resume it when the graph is ran again, allowing to build in real time a single audio/video clip from start/stop sequences separated in time. ![]() When the graph runs, the transcoder process starts in the background, and stops when the graph is stopped. To configure the filter, just invoke SetCommandLine and specify the desired command line, along with some reserved keywords for the filter control. You can look at the ffmpeg source code to see how it interprets the parameters you want to use, then adapt that logic to your own code. Then you can do whatever you want with the files. There is no binding or C++ linking between the filter and the transcoder, all the settings are passed by the command-line, and the audio/video stream is passed through the named pipe. It is the same library that ffmpeg uses internally (there is a separate library called libav, which is an off-shoot of the original ffmpeg libavcodec library). ![]() This named pipe is taken as input by the transcoder, that is invoked as a child process in a non-visible background process from the command line. ![]() The filter multiplexes the uncompressed DirectShow video and audio streams into an ASF transport stream and writes this transport stream to a named pipe. A LGPL build of FFmpeg named ffmpegLGPL.exe is included in the filter. DirectShow Multiplexer Sink/writer filter able to compress or encode audio/video streams by invoking in the background a command-line transcoder executable, if this executable supports a named pipe as input. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |