18#ifndef AGXOSG_VIDEOFFMPEGPIPECAPTURE_H
19#define AGXOSG_VIDEOFFMPEGPIPECAPTURE_H
141 virtual void writeImage(osg::Image *image,
agx::Index index);
151 bool m_enableLossless;
#define AGX_DECLARE_POINTER_TYPES(type)
bool stopProcess()
Stops the ffmpeg process and finalizes the video file, allowing a new video capture to be started usi...
void setVideoFPS(agx::Real videoFPS)
Set the FPS of the video.
bool getEnableLossless() const
Get true/false if lossless encoding should be enabled. This will produce videos not supported by olde...
virtual ~VideoFFMPEGPipeCapture()
VideoFFMPEGPipeCapture(agx::UInt width, agx::UInt height, agx::Real fps, agxSDK::Simulation *sim=nullptr)
Constructor.
agx::Real getImageCaptureFPS()
Get the image capture FPS. Synchronize this with video FPS to control the real time factor....
agx::String getFilename() const
Gets the video filename, including the extension.
OutputCodec getOutputCodec() const
Get the video codec for the output. Available codecs are given in OutPutCodecs.
void setImageCaptureFPS(agx::Real imageFPS)
Set the image capture FPS. Synchronize this with video FPS to control the real time factor....
bool hasActiveVideo() const
Returns true if we have active video that is being created.
agx::String generatePipeName() const
static CodecStringConversionMap OutputCodecStrings
agx::String getPipeName() const
void setFilenameExtension(const agx::String &extension)
Sets the video file extension (without the .)
void setEnableLossless(bool enable)
Set true/false if lossless encoding should be enabled. This will produce videos not supported by olde...
void startExternalFFMPEGProcess()
agx::UInt getVideoCRF() const
get the CRF of the video
void closeExternalFFMPEGProcess()
void setVideoCRF(agx::UInt crf)
Set the CRF of the video.
OutputCodec
Enum describing the different types of codecs that are available.
agx::String getFFMPEGBinaryPath() const
agx::String getFilenameExtension() const
Gets the file extension (without the .)
void setOutputVideoCodec(OutputCodec codec)
Set the video codec for the output. Available codecs are given in OutPutCodecs.
agx::HashTable< OutputCodec, agx::String, CodecHash > CodecStringConversionMap
Map for storing codec string conversion for FFMPEG.
void setFilename(const agx::String &filename)
Sets the filename for the video, including the file extension.
void init()
Initializes the FFMPEG process and the named pipes.
agx::Real getVideoFPS() const
Get the current FPS of the video.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Inheritance with partial specialization due to bug with ref_ptr containers.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
agx::UInt32 operator()(T t) const