gpsgraphic filter is not showing anything, and background image is distorted #1109
Replies: 16 comments 1 reply
-
|
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? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your quick reply. Much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
That was quick! Thank you very much! I will show this to the Kdenlive dev so that he can look into it more. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
@shadowfax65 did you push this into kdenlive yet? |
Beta Was this translation helpful? Give feedback.
-
|
Yes! Thank you for your support. |
Beta Was this translation helpful? Give feedback.
-
|
@dany123, sorry to bother you again but I am wondering whether the trim parameters are animated. That would allow to actually draw the line of the path. |
Beta Was this translation helpful? Give feedback.
-
|
Can you explain what exactly are you trying to do? From your description the filter should already be able do it without having to use trim. If you want to quickly draw the path you can increase the speed to something like 100 and it will be drawn in a few seconds, you can further tweak this to hide the now_dot so you only see the path and you can set the first color (while using the two color "past/future" style) to something fully transparent so there will be a "continuous" drawing of the path. |
Beta Was this translation helpful? Give feedback.
-
|
I use the filter on an 8-second clip (satellite image of the route). The trip took several hours to do. The speed multiplier is capped at 30 but I cranked that up to 1000 or even higher. Assuming that the path is always drawn completely from the first frame, the |
Beta Was this translation helpful? Give feedback.
-
|
Here's the result of an ~8h gps track at 3600x (so 1 hour = 1 second) using the 2 things I mentioned before: hide the now_dot, and set one of the colors (the 2nd color in my case) to full transparent (so alpha=0 in the color picker dialog): 2025.07.test.gpsgraph.8h.mp4If nothing changes on your filter even at 10.000x I have to assume that your "GPS offset" is not correct (it's a filter property that has to be set to some value depending on the file created date). It's probably set in the future so the "track" has already been finished, change it to something negative and test it out. There's a helper filter property that you can set so the graph starts exactly at the begining of your image: open your project file in notepad and look for the property named "auto_gps_offset_start": Then reopen your project in kdenlive and hit play, there should be some movement immediately. |
Beta Was this translation helpful? Give feedback.
-
|
Regarding animating trim_end, that could also work but I have no idea how kdenlive does keyframing/animation so I can't help there. |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for the late reply. I got it to work with a Speed Multiplier of about 1,800. The Now Dot is moving along the track nicely. I also fiddled with the Graph Color Style and got the path to draw. However, if I set Graph Color Style to, say, Color by Speed or by Altitude, the path stays fixed. This is where an animated Trim End parameter would fit nicely ;-) |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions