18 #ifndef AGXOSG_VIDEOFFMPEGPIPECAPTURE_H
19 #define AGXOSG_VIDEOFFMPEGPIPECAPTURE_H
143 virtual void writeImage(osg::Image *image,
agx::Index index);
154 bool m_enableLossless;
#define AGX_DECLARE_POINTER_TYPES(type)
void setVideoPostFix(const agx::String &postFix)
Sets the video postfix.
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...
agx::String getCompleteFileName() const
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, excluding the postfix.
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 setEnableLossless(bool enable)
Set true/false if lossless encoding should be enabled. This will produce videos not supported by olde...
void startExternalFFMPEGProcess()
agx::String getVideoPostFix() const
Gets the video postfix.
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
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, excluding the postfix.
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