Fix loading WEBM with transparency
This commit is contained in:
parent
66d085821e
commit
00ea6f7fb9
1 changed files with 5 additions and 0 deletions
|
@ -474,6 +474,11 @@ void Ffmpeg::getFramesFromMovie(int frame) {
|
|||
// frameArgs << "-accurate_seek";
|
||||
// frameArgs << "-ss";
|
||||
// frameArgs << "0" + QString::number(frameIndex / m_info->m_frameRate);
|
||||
if (m_path.getType() == "webm") {
|
||||
// To load in webm transparency
|
||||
preIFrameArgs << "-vcodec";
|
||||
preIFrameArgs << "libvpx";
|
||||
}
|
||||
preIFrameArgs << "-i";
|
||||
preIFrameArgs << m_path.getQString();
|
||||
postIFrameArgs << "-y";
|
||||
|
|
Loading…
Reference in a new issue