5

script to automate video conversion for Rockboxed player

view full story
linux-howto

http://crunchbanglinux.org – I'd like to write a script that can be called from a right-click action in Thunar (or whatever file manager) that would do the following:1. Detect if the media player is connected and mounted by checking for the existence of /media/iPodClassic/ and aborting with a notify-osd message if it is not.2. If right-click is on a mp3 or video file, copy the mp3 to /media/iPodClassic/music/ or convert the video to mpeg2 and save the converted video to /media/iPodClassic/videos/.3. If right-click is on a directory, copy most files directly to /media/iPodClassic/[directory]/, but convert videos with (HowTos)