Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently i am using gxine for playing VCD .dat files.

For that i have to use a command gxine vcd://Track Number

I havnt found any useful GUI tool for playing vcd dat file on double click.

My OS is Ubuntu 9.10.

share|improve this question
up vote 2 down vote accepted

As Wil has mentioned, your chances of playing a VCD .dat file by double clicking on it seems pretty low, unless you change the default behaviour of your GUI file manager.

Here's a few random suggestions …

Suggestion 1 - Have you considered creating a desktop shortcut to gxine (or VLC) and then dropping the VCD .dat onto the shortcut?

Suggestion 2 - Assuming that the VCD track to play is always track 1 (which may or may not be true), create a shell script (make sure the script executable) with your gxine command

gxine vcd://1

Create a desktop shortcut to your shell script. Double click on the shell script to start gxine. Of course, this will only work if the VCD track is always track 1.

Suggestion 2a - In response to cdb's comment, here's a suggestion for a bash shell script which will extract the track number from the VCD .dat filename and then invoke gxine. This script as a whole is untested, but the perl regular expression has had superficial testing.


if [ "${VCD_FILENAME}" == "" ]
    echo "${0}: missing input VCD filename"
    exit 1

TRACK_NUMBER=`echo ${VCD_FILENAME} | perl -ne 'print $1 if m/AVSEQ(\d+)\.DAT$/;'`
if [ "${TRACK_NUMBER}" == "" ]
    echo "${0}: cannot extract track number from input filename"
    exit 2

gxine vcd://${TRACK_NUMBER}
exit $?

You'd probably want to improve the error checking to make the script much more robust. I'd expect that there are alternatives to using perl to extract the track number from the VCD .dat filename.

Suggestion 3 - You could convert your VCD to another format and then use your favourite video player. HandBrake, mplayer/mencoder and/or VLC may be able to do the conversion for you. You'll need to confirm.

I must admit that I do not understand your reluctance to use the command line. The command line is the most powerful tool that you'll ever use on your Linux machine.

share|improve this answer
yes i like command line.But still i would like to have such a feature. The chances of track number being 1 is very rare.But the tack number to be played can be found from the filename itself. For eg: AVSEQ1.DAT, AVSEQ2.DAT like that. So to play using script we have to extract the number from the file name and play using gxine. For that i need an idea for extracting number from filename on double click through script and then play using gxine vcd://[extracted number from filename]. Any way thank u for your answer. – cdb Jan 15 '10 at 8:16
@cdb - I've added Suggestion 2a for you. It shows one way of extracting the track number from the VCD .dat filename. – Convict Jan 15 '10 at 13:45
its working.Many many thanks..... – cdb Jan 18 '10 at 8:41

Have you tried VLC Player?

The only problem is, .DAT file is an extention used by quite a few items so setting anything as the default may cause problems in the future.

However, VLC can play VCD files just fine.

share|improve this answer
To open .dat files with VLC: 1. In the file explorer (Nautilus) select a .dat file. 2. Choose File ▸ Open with Other Application. 3. Choose VLC. You can change it so it opens on a double click through File > Properties > Open With. – Iain Jan 9 '10 at 8:11
i tried that but didnt work. – cdb Jan 11 '10 at 9:43
VLC plays .dat file from a VCD 100%. They are simply renamed MPEG1 files. If VLC cannot play them, there is something wrong with the VCD file even though another program may be able to play them. Xine may just be more fault tolerant. – Juice Jan 12 '10 at 14:34
@Luminose you may be right..gxine may be more fault tolerant. But even in that i have to use terminal to play the file. – cdb Jan 13 '10 at 7:02
i have seen VLC have issues with MPEG1 files; seems to vary slightly between different versions. of course this could be due to improper files. – quack quixote Jan 14 '10 at 19:33

I think VLC can play the DAT files as well. I found some of the workarounds to play *.DAT files on Ubuntu. By Using Mplayer,

mplayer avseq01.dat

Or By Renaming *.dat to *.mpg

share|improve this answer
i couldnt copy the files,since it is protected.Otherwise i think the mpg extension will work. – cdb Jan 13 '10 at 7:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .