tracker-extract: gstreamer backend includes track titles in nie:title of video files
The tracker-extract gstreamer backend includes titles from the individual tracks in the resulting
nie:title. This is due to gstreamer not differentiating between global/container tags and track tags until https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1107 which introduced new API that does this by default. This probably should only be done for video files though, because of the problems reported for audio files when gstreamer tried ignoring track tags for those by default in the old API: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/759. Or maybe this only affects MP3 due to the lack of a proper container and those are handled by a different backend anyway?
An example file to reproduce this issue can be created using the method described here https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/827:
wget https://sample-videos.com/video123/mkv/240/big_buck_bunny_240p_1mb.mkv wget https://raw.githubusercontent.com/spektraldevelopment/spektralvideo/master/video/bigbuckbunny/bigbuckbunny.srt mkvmerge -o test.mkv big_buck_bunny_240p_1mb.mkv bigbuckbunny.srt mkvpropedit --edit info --set title=MYTITLE test.mkv mkvpropedit --edit track:a1 --set name=MYAUDIO test.mkv mkvpropedit --edit track:s1 --set name=MYSUBS test.mkv
/usr/libexec/tracker-extract-3 -f ./test.mkv | grep "nie:title" nie:title "MYTITLE, MYSUBS, MYAUDIO" ;
In cases where there is no title tag in the container, but some subtitle or audio track is tagged with the title "English", this would prevent the file name based fallback title in grilo and cause the video to show up as "English" in totem.