Bug 503991 - Online Resources widget: no thumbnails?
Summary: Online Resources widget: no thumbnails?
Status: REPORTED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: git-master
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2025-05-10 07:35 UTC by Gabriel Gazzán
Modified: 2025-05-14 05:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Online Resources widget without thumbnails (65.12 KB, image/png)
2025-05-10 07:35 UTC, Gabriel Gazzán
Details
Search pending... (77.89 KB, image/png)
2025-05-12 02:54 UTC, Gabriel Gazzán
Details
Search failed HTTP (79.86 KB, image/png)
2025-05-12 02:55 UTC, Gabriel Gazzán
Details
Freesound importing problem (78.44 KB, image/png)
2025-05-12 15:18 UTC, Gabriel Gazzán
Details
Search Filters mockup (112.78 KB, image/png)
2025-05-14 05:35 UTC, Gabriel Gazzán
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Gazzán 2025-05-10 07:35:37 UTC
Created attachment 181125 [details]
Online Resources widget without thumbnails

I was just testing the "Online Resources" widget functionality (in daily build of 2025-05-10) and noticed there's no thumbnails (as seen in attached image) shown, as opposed to what is in the manual:
https://docs.kdenlive.org/en/project_and_asset_management/project_bin/online_resources.html

For sure, not being able to see thumbnails of images/videos prior to download them is not a good situation.


BTW, I also noticed that previews of videos load much faster than previews of audios
(Pexels/Pixabay videos: 1 or 2 secs. vs. Freesound audios: 15 secs.)
Perhaps is something related to Freesound being slow?

Thanks for listening!
Comment 1 balooii 2025-05-10 10:24:01 UTC
I cannot reproduce. I see thumbnails for all resources. We're using free 3rd party APIs here so I wouldn't be too surprised if they throttle us or are not perfectly reliable/slow at times of high load.

Thumbnail loading takes roughly the same time for each source I tested but overall pretty slow / laggy.  I can visually see each thumbnail loaded one by one so I suspect we don't load them in parallel. Will check the code, maybe we can speed this up.
Comment 2 Gabriel Gazzán 2025-05-10 18:09:28 UTC
Ohh... thanks for checking it out!

Maybe something in the Windows version of Kdenlive?
I checked it with another Windows user and he didn't see thumbnails either...
Comment 3 balooii 2025-05-11 18:40:16 UTC
Hmm, I don't see any platform-dependent differences. Maybe its related to your location. If you can, try using a different IP address. For example you could use a VPN, or connect from another WiFi or maybe open a hotspot on your phone.
Comment 4 Gabriel Gazzán 2025-05-12 02:54:07 UTC
Did anybody change something in the code?
Because I've just downloaded the latest daily (from 2025-05-11) and now thumbnails are working great on this side. :)

On the other hand, Freesound searches seem to be currently broken, though.
(attached images with returned messages during a search)

Thanks!!
Comment 5 Gabriel Gazzán 2025-05-12 02:54:43 UTC
Created attachment 181188 [details]
Search pending...
Comment 6 Gabriel Gazzán 2025-05-12 02:55:16 UTC
Created attachment 181189 [details]
Search failed HTTP
Comment 7 Gabriel Gazzán 2025-05-12 03:16:52 UTC
One thing I noticed is that, in a new project, when there is no element selected in the Project Bin, the downloaded resource is placed inside the "Sequences" folder.
Comment 8 Gabriel Gazzán 2025-05-12 04:15:56 UTC
"Internet Archive Movies" service doesn't display thumbnails, I haven't tried it before.
(I don't know if that service should have them or not, though)
Comment 9 Gabriel Gazzán 2025-05-12 04:51:21 UTC
Something I noticed, that perturbs the workflow, is that after importing a downloaded resource, the focus is placed in the Project Notes widget, instead of in the Project Bin. So, it's not immediately possible to hit Space to play the video, and go directly to mark some (I)n and (O)ut points, and insert(V)/overwrite(B) the resulting zone in the Timeline, for example.
Comment 10 Jean-Baptiste Mardelle 2025-05-12 05:35:53 UTC
Git commit 17b348c2d8dc2fdaafe85f26bd2bd09cbff3579c by Jean-Baptiste Mardelle.
Committed on 12/05/2025 at 05:35.
Pushed by mardelle into branch 'master'.

Resources widget: add abort button and don't add clips in sequences folder

M  +4    -1    src/bin/bin.cpp
M  +22   -11   src/onlineresources/resourcewidget.cpp
M  +4    -1    src/onlineresources/resourcewidget.hpp

https://invent.kde.org/multimedia/kdenlive/-/commit/17b348c2d8dc2fdaafe85f26bd2bd09cbff3579c
Comment 11 emohr 2025-05-12 06:45:50 UTC
I'm on Windows. I can see thumbnails in all three online resources.
@Gabriel. Could your firewall block the access?
Comment 12 Gabriel Gazzán 2025-05-12 14:43:31 UTC
(In reply to emohr from comment #11)
> I'm on Windows. I can see thumbnails in all three online resources.
> @Gabriel. Could your firewall block the access?

Thanks for trying it out.
But, no, it was not a firewall problem.
I'm, too, able to see thumbnails correctly now.
Comment 13 Gabriel Gazzán 2025-05-12 15:04:57 UTC
(In reply to Jean-Baptiste Mardelle from comment #10)
> Resources widget: add abort button and don't add clips in sequences folder

- Imported clip not added to Sequences folder anymore.
- Now, audio thumbnails are also shown.

Great job! :)
Comment 14 Gabriel Gazzán 2025-05-12 15:18:27 UTC
While trying to Import an audio file from Freesound service (being logged in the site), I just couldn't:
- I pressed Import button in Online Resources widget.
- it redirected me to the site.
- an error message appeared in the web page.

Here's the link, Kdenlive sent me to for that sound:

https://freesound.org/apiv2/oauth2/authorize/?client_id=fFo1lNyrTSJDp5PAGgKg&code_challenge=CwkZLQB0YBkK2ByzkYZTKWeDg8zcFoPAJrkV54Uqh-M&code_challenge_method=S256&redirect_uri=http://localhost:1337/&response_type=code&state=DClKBZ_7

(attached image)

P.S. Independently of the above mentioned problem. It'd be just great if in Kdenlive's config the user could enter login/pass for Freesound, so the whole operation could be completed from inside Kdenlive, like with the other services.
Comment 15 Gabriel Gazzán 2025-05-12 15:18:57 UTC
Created attachment 181215 [details]
Freesound importing problem
Comment 16 Gabriel Gazzán 2025-05-12 16:12:36 UTC
(In reply to Gabriel Gazzán from comment #8)
> "Internet Archive Movies" service doesn't display thumbnails, I haven't
> tried it before.
> (I don't know if that service should have them or not, though)

I couldn't manage to import anything from that service, either.
The "Import" button doesn't seem to start any action, nor does it present any error message.
Comment 17 emohr 2025-05-12 17:59:17 UTC
I can confirm (under Windows):

Freesound: download works only if you are login on the freesound page

Internet Archive Movies: doesn't display thumbnails and download doesn’t work. Some files are locked but even the unlocked files you cannot download by Kdenlive.
Comment 18 Gabriel Gazzán 2025-05-12 18:06:30 UTC
(In reply to emohr from comment #17)
> Freesound: download works only if you are login on the freesound page

How's your workflow for doing that from Kdenlive?
I'm logged in to Freesound, but just get to an error page, when pressing the Import button in Kdenlive.
Comment 19 emohr 2025-05-12 19:34:56 UTC
Same here. Login to Freesound -> choose a sound in Kdenlive -> click on import -> error message on the opened webpage.

When I click in Kdenlive on the sound link (top right) it opens the Freesound page and I can download the sound.
Comment 20 Gabriel Gazzán 2025-05-12 21:38:19 UTC
ah... ok.
thanks
Comment 21 Gabriel Gazzán 2025-05-14 05:34:23 UTC
I'd like to take the opportunity to list here some ideas for future improvements in the Online Resources widget (and its experience, in general) that I think could be welcome:

- A message: "Downloading thumbnails...", useful for slow-connection users (maybe it could be displayed after some seconds, if they are still downloading?) to let them know thumbnails are coming.

- When a resource is already being previewed in the Monitor, and a second click is performed on the "Preview" Button don't download the resource preview again (perhaps just replay it from the start? or do nothing at all).

- To have an "Online Resources default folder" setting in Config (much like the current Capture default folder), to streamline the download experience. 
So, by just pressing the "Import" button, the imported resource would be downloaded to the predefined folder and loaded in the Project Bin.

- To have some Filters, for narrowing down the results.
I've researched a bit and found that both Pexels and Pixabay, support the following filters while searching:
a. Orientation (landscape/portrait)
b. Size (large/medium/small  videos:4K/1080/720  images: 24MP/12MP/4MP)
c. Color (for images only), look for images with that predominant color

(I've attached a mockup of the widget with such filtering options)


...and some already posted above, added here for just convenience:
- Move focus to out of Project Notes after the import operation is concluded, to allow use of keyboard shortcuts.
- Improve Freesound previewing speed (currently at some 15~17 seconds after pressing Preview button.
- Allow importing resources from Freesound, by pressing Import button.
- "Internet Archive Movies" service; apparently not previewing nor importing is possible.
Comment 22 Gabriel Gazzán 2025-05-14 05:35:19 UTC
Created attachment 181269 [details]
Search Filters mockup