-
Notifications
You must be signed in to change notification settings - Fork 325
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
gpsgraphic filter is not showing anything, and background image is distorted #1050
Comments
The developer of this filter @dany123 primarily uses Shotcut and may not be able to debug it through Kdenlive. Not all GPX are the same as the X in XML means extensible, similar to how MLT XML differs between projects that use it. Can you provide a sample of the AllTrails GPX? |
Thanks for your quick reply. Much appreciated. |
As for the background, there's a little helpful hint in the shotcut's UI as the center of the background img has to match the center of the GPX track so there's a button that shows this info, then you need to manually scale to match it on the image. But other than this, it should properly load without any issue as long as the frontend sends the right path to it. |
That was quick! Thank you very much! I will show this to the Kdenlive dev so that he can look into it more. |
I've had a look in kdenlive and as far as I can tell the UI was automatically generated based on the available fields in the filter's description and some important fields - mainly the one that should point to the GPS file is wrong/not usable for me (but also a field that controls the time offset should be present and editable). I've manually edited the project file with notepad to add this line to the proper filter inside: And something showed up but it was only 1px in size. But I could then drag it with the mouse and the map (gps track) showed up. So the main functionality seems to be there, the issue is there's a lot of fields either missing, with bad defaults or not formatted/grouped nicely. This particular filter is quite complex so the automatic generation is just too basic for it to work. |
Thanks for looking into this even deeper, @dany123. I am trying to fix the issue you described by creating the XML file Kdenlive uses for the UI. I used the documentation available at https://www.mltframework.org/plugins/FilterGpsgraphic/. The only fields I did not include were the ones without a type specification but they appeared to be more informative. If you let me know how they are used I can include them. With the XML file, Kdenlive displays a proper UI, lets the user select the .gpx and a background file via the normal file selection UI. The only thing that might be an issue is the rectangle which I implemented as |
This looks way better and is functional. Just a few quick notes: -make sure to set the defaults for trim end, crop right, crop bottom at 100 (so the first time the gpx file is loaded it will actually show a map) As for the read-only fields you mention the only really important one would be: map_coords_hint. Without it it becomes a huge pain to put a correctly centered background image. |
I am using Kdenlive and am trying to get the gpsgraphic filter to work. Kdenlive version 24.08.3 with MLT Framework version 7.27.0
My example .gpx file is a download from alltrails.com of a hike I did this year. There is no output whatsover. The only thing that sort of works is adding a background image, but it is distorted and only displayed in the bottom left-hand corner of the rectangle for the filter.
The text was updated successfully, but these errors were encountered: