Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add thumbnail to the audio only clip #3249

Merged
merged 2 commits into from
Feb 29, 2020
Merged

Conversation

SuslikV
Copy link
Contributor

@SuslikV SuslikV commented Feb 25, 2020

The audio only files has thumbnail rendered as black rectangle in the Timeline (v2.5.0).
Screenshot is here: #3248

If image is not present in audio file the thumbnail is still needed,
otherwise it will be rendered as black rectangle in the Timeline.
@SuslikV
Copy link
Contributor Author

SuslikV commented Feb 25, 2020

Github working strange for me... Probably, I have missed semicolon at the end of the return line but not sure if I'm able to fix this right now.

@SuslikV
Copy link
Contributor Author

SuslikV commented Feb 26, 2020

Such a perfect error in CI logs:

... AttributeError: module 'openshot' has no attribute 'OPENSHOT_VERSION_FULL'

it was mentioned couple of times for linux PPA builds (for example, #3235 (comment) )

@ferdnyc
Copy link
Contributor

ferdnyc commented Feb 26, 2020

Such a perfect error in CI logs:

... AttributeError: module 'openshot' has no attribute 'OPENSHOT_VERSION_FULL'

it was mentioned couple of times for linux PPA builds (for example, #3235 (comment) )

That happens when building (or running) newer code with an outdated libopenshot.so — in this case, Travis seems to have decided to install the following versions:

Selecting previously unselected package libopenshot-audio6:amd64.
Preparing to unpack .../078-libopenshot-audio6_0.1.5+dfsg1-1_amd64.deb ...
Unpacking libopenshot-audio6:amd64 (0.1.5+dfsg1-1) ...
Selecting previously unselected package libopenshot14:amd64.
Preparing to unpack .../084-libopenshot14_0.1.9+dfsg1-3build1_amd64.deb ...
Unpacking libopenshot14:amd64 (0.1.9+dfsg1-3build1) ...
Setting up libopenshot-audio6:amd64 (0.1.5+dfsg1-1) ...
Setting up libopenshot14:amd64 (0.1.9+dfsg1-3build1) ...

...Which, since we're currently up to libopenshot-audio7 / 0.1.9 and libopenshot18 / 0.2.4, worked out about as well as you'd expect.

Travis gets screwy sometimes. I'll restart the build, and it'll no doubt go through without incident. (Unless the PPA has actually gotten broken somehow.)

@ferdnyc
Copy link
Contributor

ferdnyc commented Feb 26, 2020

Yup, as predicted, the restarted job flew right through with no issues.

@SuslikV
Copy link
Contributor Author

SuslikV commented Feb 26, 2020

Strange that it happens.

Copy link
Contributor

@ferdnyc ferdnyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I meant to review this after restarting the build, then it slipped my mind.

Makes total sense to me. There's a tiny part of me that thinks we should let libopenshot handle the thumbnailing (even if it's just a matter of returning a static icon image), so we have the option to display embedded cover art as the thumbnail once that support is sorted out... but it's easy enough to make those changes in the future, if necessary. Cross that bridge when we come to it.

For now, an icon > a black rectangle, so that's pretty much a no-brainer.

@ferdnyc
Copy link
Contributor

ferdnyc commented Feb 29, 2020

Tested the PR branch, works nicely! Merging, thanks @SuslikV .

@ferdnyc ferdnyc merged commit d28befd into OpenShot:develop Feb 29, 2020
@SuslikV SuslikV deleted the patch-12 branch March 2, 2020 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants