Thunar custom actions can be used to convert media files by adding a simple command like
avconv -i %f %f.mp3
I would like a command to extract aac sound from mp4 and flv files with a Thunar custom action, just extract the aac eventually in a m4a container, without conversion, similar to this solution (which I do not know how to adapt for Thunar custom actions):
for i in *.mp4; do avconv -i "${i}" -map 0:1 -c:a copy "${i%.mp4}.aac"; done