Changeset View
Changeset View
Standalone View
Standalone View
plugins/impex/video/video_saver.cpp
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Line(s) | |||||
212 | KisImageBuilder_Result VideoSaver::encode(const QString &filename, KisPropertiesConfigurationSP configuration) | 212 | KisImageBuilder_Result VideoSaver::encode(const QString &filename, KisPropertiesConfigurationSP configuration) | ||
213 | { | 213 | { | ||
214 | 214 | | |||
215 | qDebug() << "ffmpeg" << m_ffmpegPath << "filename" << filename << "configuration" << configuration->toXML(); | 215 | qDebug() << "ffmpeg" << m_ffmpegPath << "filename" << filename << "configuration" << configuration->toXML(); | ||
216 | 216 | | |||
217 | if (m_ffmpegPath.isEmpty()) { | 217 | if (m_ffmpegPath.isEmpty()) { | ||
218 | m_ffmpegPath = configuration->getString("ffmpeg_path"); | 218 | m_ffmpegPath = configuration->getString("ffmpeg_path"); | ||
219 | if (!QFileInfo(m_ffmpegPath).exists()) { | 219 | if (!QFileInfo(m_ffmpegPath).exists()) { | ||
220 | m_doc->setErrorMessage(i18n("ffmpeg could not be found at %1", m_ffmpegPath)); | ||||
220 | return KisImageBuilder_RESULT_FAILURE; | 221 | return KisImageBuilder_RESULT_FAILURE; | ||
221 | } | 222 | } | ||
222 | } | 223 | } | ||
223 | 224 | | |||
224 | KisImageBuilder_Result result = KisImageBuilder_RESULT_OK; | 225 | KisImageBuilder_Result result = KisImageBuilder_RESULT_OK; | ||
225 | 226 | | |||
226 | KIS_SAFE_ASSERT_RECOVER_NOOP(configuration->hasProperty("first_frame")); | 227 | KIS_SAFE_ASSERT_RECOVER_NOOP(configuration->hasProperty("first_frame")); | ||
227 | KIS_SAFE_ASSERT_RECOVER_NOOP(configuration->hasProperty("last_frame")); | 228 | KIS_SAFE_ASSERT_RECOVER_NOOP(configuration->hasProperty("last_frame")); | ||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |