LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-17-2005, 08:27 AM   #1
zainma
LQ Newbie
 
Registered: Nov 2005
Location: uae
Distribution: fedora 3
Posts: 4

Rep: Reputation: 0
Cant Play the DAT files using Mplayer


Hi ,

I've Installed the Mplayer with gui. when I try to open the dat file using I get the error message "SEEK FAILED". Can I play these files using Mplayer . if so please reply

bye

zain
 
Old 11-17-2005, 02:37 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
I don't think you can. Are you getting these from some P2P software? If so look and see if there is a preview or export option.
 
Old 11-17-2005, 10:52 PM   #3
sirkware
Member
 
Registered: Nov 2005
Location: Philippines
Distribution: Fedora Core 6 Test 1
Posts: 66

Rep: Reputation: 15
I think you're trying to watch a vcd movie (mpeg1), right? You should open the DAT file just like opening a vcd in mplayer.
 
Old 11-18-2005, 05:43 AM   #4
zainma
LQ Newbie
 
Registered: Nov 2005
Location: uae
Distribution: fedora 3
Posts: 4

Original Poster
Rep: Reputation: 0
I installed mplayer . I can play mp3 ,wav etc. but when I try to play the VCD (dat file) using gmplayer(gui version of mplayer) I get the message seek failed. If try to open the file using the command line option I get a message as below



[root@localhost mpegav]# mplayer -vo vesa /media/cdrom/mpegav/avseq01.dat
MPlayer 1.0pre7try2-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel (Family: 8, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Playing /media/cdrom/mpegav/avseq01.dat.
Seek failed


Exiting... (End of file)

------------ I FOUND THIS IN THE MPLAYER DOCUMENTATION

Under Linux you cannot copy or play such files (they contain garbage). Under Windows it is possible as its iso9660 driver emulates the raw reading of tracks in this file. To play a .DAT file you need the kernel driver which can be found in the Linux version of PowerDVD. It has a modified iso9660 filesystem
(vcdfs/isofs-2.4.X.o) driver, which is able to emulate the raw tracks through this shadow .DAT file.

-------------------------------------

If any one has played it your suggestions are welcome
 
Old 11-18-2005, 07:47 AM   #5
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Hi Zainma, you can very well play VCD's using mplayer. Give this a shot :
Code:
mplayer vcd://<track no.>
or simply type mplayer vcd:// (ommiting the track no.)
You cannot however copy these files just out of the window. They are in the form of tracks, in such a format that the VCD player can understand and play them. For your system they contain garbage as the documentation says. To copy them you'll have to rip the mpeg's off the VCD. For this you can use any VCD ripping software. Some popular ones are VCDIMAGER and GRIP (I forgot the exact name of this one).

Hope this helps!
 
Old 11-18-2005, 08:30 AM   #6
crashuniverse
LQ Newbie
 
Registered: Nov 2005
Location: Pune, India
Posts: 9

Rep: Reputation: 0
well if we have the option of copyin' them on our hard disk and then playing it,
then i'd say copying and renaming the extension from .dat to .mpg simply works gr8
its not difficult and doesnt need any other modifications as such

i m using currently te same thing and yah mplayer cant play the .dat tracks directly from vcd yet this solution can work out till we actually learn to stage doin' that modification which isnt' so easy for newbies.
 
Old 11-18-2005, 09:39 AM   #7
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Quote:
Originally posted by crashuniverse
well if we have the option of copyin' them on our hard disk and then playing it,
then i'd say copying and renaming the extension from .dat to .mpg simply works gr8
its not difficult and doesnt need any other modifications as such

i m using currently te same thing and yah mplayer cant play the .dat tracks directly from vcd yet this solution can work out till we actually learn to stage doin' that modification which isnt' so easy for newbies.
What you have on the hardisk are the mpegs. Linux does not care about filename extensions and neither does mplayer. So a .DAT on the hardisk is same as a .mpeg file or a .txt (as long as they are originally mpeg files). Try playing a .mpeg file with mplayer, then rename it to a .DAT file or a .txt file and play it again with mplayer. You won't have any problems. Mplayer would automatically detect the mpeg-file format (regardless of the filename-extension).
So renaming a .DAT to a .mpeg won't do any good. If you have it on the disk, it's most probably in the mpeg file format and you won't have any problems in playing it.
Simply copying a VCD won't work out of the box ... (read my earlier post).
Also mplayer can play a VCD quite easily. REMEMBER here that when working with a VCD we are not trying to play the individual files, we are trying to play individual tracks.
So something like mplayer /mnt/cdrom/AVSEQ01.DAT won't work. Heck! mplayer won't even recognize that file and either give you "seek failed" or "End of File" or "I/O Error" or something similar. You'll get similar errors when you try to right-click copy and right-click paste the individual AVSEQ??.DAT files from the VCD.
However something like mplayer vcd:// should work perfectly fine. (use mplayer vcd://<track no.> to play a particular track).
 
Old 11-19-2005, 01:13 PM   #8
zainma
LQ Newbie
 
Registered: Nov 2005
Location: uae
Distribution: fedora 3
Posts: 4

Original Poster
Rep: Reputation: 0
I tried using the mplayer vcd:// --cdrom-device /media/cdrom. then I got the message below.


[root@localhost mpegav]# mplayer vcd:// --cdrom-device /media/cdrom
MPlayer 1.0pre7try2-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel (Family: 8, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Playing vcd://.
CD-ROM Device '/dev/cdrom' not found.
Failed to open vcd://

Playing /media/cdrom.
Win32 LoadLibrary failed to load: avisynth.dll, /usr/local/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
Seek failed


Where Can I find this avisynth.dll. I downloaded all-20050412.tar.bz2, essential-20050412.tar.bz2 and
win32codecs-essential-20040703.tar.bz2 from the mplayer site. but this particular dll is missing.

I tried to copy the file from CD to hardisk using VCDGEAR
vcdgear -dat2mpg avdseq01.dat /u01/media/film.mpg.
but this command is hanging .

Waiting for some other tips
 
Old 11-19-2005, 02:04 PM   #9
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Hi, I don't know why this problem is occuring. I've been using the all-20050412.tar.bz2 codecs pack from the mplayer site and haven't had much problems. I can play avi, wmv, realmedia and a couple of other formats without any problems. Also there was no avisynth.dll in the all-20050412.tar.bz2 codecs pack that I have downloaded from the mplayer site.
But it seems that many people are having problems with this. Just google or search these forums for avisynth.dll.
Take a look at this and this . They discuss the same problem as you are facing.
You can download avisynth from here. Also you can visit the Avisynth HomePage I haven't tried it myself. The SourceForge.net page says :
Avisynth is a scripting language and a collection of filters for simple (and not so simple!) non-linear video editing tasks. It frameserves video to applications.. Maybe you'll have to search around for avisynth.dll from amongst the package you download.

As far as ripping the VCD is concerned, I have never used VCDGEAR. But I have used VCDIMAGER and it works fine. If you can, download VCDIMAGER and then try to rip the VCD. I think the command for that is vcdxrip (or something like that, I haven't used it for a long time now).

Hope this helps!

Last edited by koodoo; 11-19-2005 at 02:17 PM.
 
Old 11-20-2005, 01:03 PM   #10
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Hi Zainma, visit this thread. Read post #22.
Go to the SourceForge download page of AviSynth and from there select the package AviSynth 2.0. Then on the next page click on release 2.0.5 and select avisynth_205_dll.zip for download. Extract the downloaded zip file and you'll find avisynth.dll there. I myself tried the above and got the dll.
Hope this helps!

Last edited by koodoo; 11-20-2005 at 01:14 PM.
 
Old 11-21-2005, 10:57 AM   #11
zainma
LQ Newbie
 
Registered: Nov 2005
Location: uae
Distribution: fedora 3
Posts: 4

Original Poster
Rep: Reputation: 0
I downloaded AVISYNTH.DLL from the site. though I tried it before it was not the correct version I suppose. I put the avisynth.dll in the proper directory and tried to run the file . I got the message as below

root@localhost MPEGAV]# mplayer vcd://2 -cdrom-device /media/cdrom
MPlayer 1.0pre7try2-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel (Family: 8, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Playing vcd://2.
read CDROM toc header: Inappropriate ioctl for device
Failed to get cd toc
Failed to open vcd://2


Exiting... (End of file)



If tried on GMPLAYER i got seek failed error.

After this I tried to copy the DAT file ( I TRIED THE DAT FILE FROM DIFFERENT VCDS) using VCDGEAR

-----------------------------------------------------------------------------------------------------
[root@localhost MPEGAV]# vcdgear16_static -dat2mpg AVSEQ01.DAT /root/Desktop/avseq01.mpg

VCDGear v1.6e build 111301 coded by Dracore (vcdgear@hotmail.com)

VCD DAT source --> AVSEQ01.DAT
MPEG destination --> /root/Desktop/avseq01.mpg
Conversion method --> dat2mpg


WARNING: Specified DAT file has an invalid DAT signature.
------------------------------------------------------------------------------------------------------


AFTER THIS MESSGE ITS JUST HANGING.

thanx in advance for ur patience.
 
Old 11-23-2005, 05:03 PM   #12
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Quote:
Originally posted by zainma
Playing vcd://2.
read CDROM toc header: Inappropriate ioctl for device
Failed to get cd toc
Failed to open vcd://2

Exiting... (End of file)
Hi, seems like there is a problem either with the media or with the cd-rom itself or maybe it is referencing the wrong device. I haven't tried VCDGEAR. Also we've got examinations this entire week otherwise I could have downloaded VCDGEAR and tried it myself. Sorry, I can't be of more help as far as VCDGEAR is concerned. I'll again suggest using VCDIMAGER. You can find it here . Click on the plus sign against releases 1-rc1 or 1-rc0 or 1-beta12 of package xine-vcdx. The menu will expand and you'll find VCDIMAGER there. You can also go to the VCDIMAGER homepage and download it from there. Try using it and tell us if it works or not.

Last edited by koodoo; 11-23-2005 at 05:05 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i am not able to play .dat files in linux phanee Linux - Software 8 08-21-2005 11:54 PM
i cant play .dat format files phanee Linux - Software 5 08-06-2005 05:24 AM
how to play dat files in linux anvarma Linux - Newbie 2 09-17-2004 12:03 AM
Can't play DAT files corbis_demon Linux - Newbie 1 07-06-2004 07:23 AM
how to play *.dat files in Linux? JIV Linux - Software 8 06-19-2003 05:07 PM


All times are GMT -5. The time now is 05:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration