Skip to content

Commit

Permalink
Merge branch 'master' of gitlab.com:mattbas/glaxnimate
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Jan 21, 2022
2 parents 009a92f + 2610b3d commit 859ab5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
* Fixed parsing SVG paths
* Added support for loading basic animated SVG paths
* Fixed importing solid layers from lottie
* Fixed importing mattes affecting precomps
* Fixed importing mattes affecting precomp
* Added transparency support when exporting to WebM
* UI:
* Added simplified Chinese translation
* Added British English translation
Expand Down
7 changes: 5 additions & 2 deletions src/core/io/video/video_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,10 @@ class Video
if ( ost.codec->pix_fmts == nullptr )
throw av::Error(QObject::tr("Could not determine pixel format"));
// get_format() for some reason returns an invalid value
ost.codec_context->pix_fmt = ost.codec->pix_fmts[0];
if (ost.codec->id == AV_CODEC_ID_VP9 || ost.codec->id == AV_CODEC_ID_VP8)
ost.codec_context->pix_fmt = AV_PIX_FMT_YUVA420P;
else
ost.codec_context->pix_fmt = ost.codec->pix_fmts[0];

// just for testing, we also add B-frames
if ( ost.codec_context->codec_id == AV_CODEC_ID_MPEG2VIDEO )
Expand Down Expand Up @@ -813,7 +816,7 @@ std::unique_ptr<app::settings::SettingsGroup> glaxnimate::io::video::VideoFormat
return std::make_unique<app::settings::SettingsGroup>(app::settings::SettingList{
// slug label description default min max
app::settings::Setting{"bit_rate", tr("Bitrate"), tr("Video bit rate"), 5000, 0, 10000},
app::settings::Setting{"background", tr("Background"), tr("Background color"), QColor{}},
app::settings::Setting{"background", tr("Background"), tr("Background color"), QColor(0, 0, 0, 0)},
app::settings::Setting{"width", tr("Width"), tr("If not 0, it will overwrite the size"), document->main()->width.get(), 0, 10000},
app::settings::Setting{"height", tr("Height"), tr("If not 0, it will overwrite the size"), document->main()->height.get(),0, 10000},
app::settings::Setting{"verbose", tr("Verbose"), tr("Show verbose information on the conversion"), false},
Expand Down

0 comments on commit 859ab5e

Please sign in to comment.