You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sofa/Component/Mass/src/sofa/component/mass/DiagonalMass.h
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,6 @@ public :
54
54
* @class DiagonalMass
55
55
* @brief This component computes the integral of this mass density over the volume of the object geometry but it supposes that the Mass matrix is diagonal.
56
56
* @remark Similar to MeshMatrixMass but it does not simplify the Mass Matrix as diagonal.
* @tparam DataTypes type of the state associated with this mass
59
58
* @tparam GeometricalTypes type of the geometry, i.e type of the state associated with the topology (if the topology and the mass relates to the same state, this will be the same as DataTypes)
* @tparam DataTypes type of the state associated to this mass
62
61
* @tparam GeometricalTypes type of the geometry, i.e type of the state associated with the topology (if the topology and the mass relates to the same state, this will be the same as DataTypes)
Copy file name to clipboardExpand all lines: Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/HexahedronFEMForceField.inl
// Fallback to a relative FFMPEG (may be in system or exposed in PATH)
102
-
m_ffmpegExecPath = "ffmpeg" + extension;
103
-
}
98
+
}
99
+
if(!FileSystem::isFile(m_ffmpegExecPath, true))
100
+
{
101
+
msg_warning("VideoRecorderFFMPEG")<< "ffmpeg hasn't been found automatically. Falling back to simply calling ffmpeg"<< extension <<" and hope that the OS finds it on its own. " ;
102
+
// Fallback to a relative FFMPEG (may be in system or exposed in PATH)
103
+
m_ffmpegExecPath = "ffmpeg" + extension;
104
104
}
105
105
106
+
106
107
std::stringstream ss;
107
108
ss << m_ffmpegExecPath
108
109
<< " -r " << m_framerate
@@ -122,6 +123,7 @@ bool VideoRecorderFFMPEG::init(const std::string& ffmpeg_exec_filepath, const st
122
123
#else
123
124
m_ffmpeg = popen(command_line.c_str(), "w");
124
125
#endif
126
+
125
127
if (m_ffmpeg == nullptr) {
126
128
msg_error("VideoRecorderFFMPEG") << "ffmpeg process failed to open (error " << errno << "). Command line : " << command_line;
if ((viewport[2] != m_viewportWidth) || (viewport[3] != m_viewportHeight))
143
145
{
144
146
std::cout << "WARNING viewport changed during video capture from " << m_viewportWidth << "x" << m_viewportHeight << " to " << viewport[2] << "x" << viewport[3] << std::endl;
0 commit comments