So:
the general formula is:
avconv -i "INPUT FILE" -map 0:1 -c:a copy "OUTPUT FILE"
For multiple files:for mp4:
for i in *.mp4; do avconv -i "${i}" -map 0:1 -c:a copy "${i%.mp4}.m4a"; done
For flv: for i in *.flv; do avconv -i "${i}" -map 0:1 -c:a copy "${i%.flv}.m4a"; done
Avi videos usually contain mp3:
for i in *.avi; do avconv -i "${i}" -map 0:1 -c:a copy "${i%.avi}.mp3"; done
(source)
The disadvantage is that they cannot be added in Thunar custom actions. A command that can be added and also works for all selected files (but should be limited to videos that contain `aac` files or to `aac` files as such) is:
gnome-terminal -e "parallel avconv -i '{}' -map 0:1 -c:a copy '{}.m4a' -- %F"
To limit Thunar custom actions applications to `aac` and video containing this, make these settings:
(see here)
Replace accordingly for other input/output.
To see audio of the input video, use exiftools, avprobe or MediaInfo. More here.

