LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dat file in mplayer - no sound on double click but command works OK (https://www.linuxquestions.org/questions/linux-newbie-8/dat-file-in-mplayer-no-sound-on-double-click-but-command-works-ok-4175490305/)

sumeet inani 01-06-2014 07:16 AM

dat file in mplayer - no sound on double click but command works OK
 
#THE SCRIPT THAT RUNS ON DOUBLE CLICKING FILE IN PCMANFM
Code:

#!/usr/local/bin/bash
pwd > /home/tc/log.txt
echo \'$1\' >> /home/tc/log.txt
mfoura=$(echo $1 | sed 's/\.[a-z0-9]\+$/.m4a/')
if [ -f "$mfoura" ] ;
then
        echo $mfoura exists >> /home/tc/log.txt
        /usr/local/bin/mplayer "$1" -audiofile "$mfoura" 2>&1 >> /home/tc/log.txt
else
        echo $mfoura does not exist >> /home/tc/log.txt
        mplayer "$1" 2>&1 >  /home/tc/log.txt
fi

/home/tc/log.txt generated
Quote:

#THE LOG FILE
'/mnt/sda3/video/movie/hindi/bhindi bazaar/1.DAT'
/mnt/sda3/video/movie/hindi/bhindi bazaar/1.DAT exists
MPlayer SVN-r33811-snapshot-4.4.3 (C) 2000-2011 MPlayer Team
Playing /mnt/sda3/video/movie/hindi/bhindi bazaar/1.DAT.
MPEG-PS file format detected.
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
Audio only file format detected.
VIDEO: MPEG1 352x288 (aspect 8) 25.000 fps 1150.0 kbps (143.8 kbyte/s)
Load subtitles in /mnt/sda3/video/movie/hindi/bhindi bazaar/
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
ADecoder init failed :(
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x896f220]BICUBIC scaler, from yuv420p to rgb24 using MMX2
VO: [x11] 352x288 => 384x288 Planar YV12 [fs] [zoom]
V: 0.2 2/ 2 ??% ??% ??,?% 0 0
V: 0.2 3/ 3 ??% ??% ??,?% 0 0
V: 0.3 4/ 4 ??% ??% ??,?% 0 0
V: 0.3 5/ 5 ??% ??% ??,?% 0 0
V: 0.4 6/ 6 ??% ??% ??,?% 0 0
V: 0.4 7/ 7 ??% ??% ??,?% 0 0
V: 0.4 8/ 8 ??% ??% ??,?% 0 0
V: 0.5 9/ 9 ??% ??% ??,?% 0 0
V: 0.5 10/ 10 ??% ??% ??,?% 0 0
V: 0.6 11/ 11 ??% ??% ??,?% 0 0
V: 0.6 12/ 12 ??% ??% ??,?% 0 0
V: 0.6 13/ 13 ??% ??% ??,?% 0 0
V: 0.7 14/ 14 27% 11% 0.0% 0 0
V: 0.7 15/ 15 26% 11% 0.0% 0 0
V: 0.8 16/ 16 25% 11% 0.0% 0 0
V: 0.8 17/ 17 24% 11% 0.0% 0 0
V: 0.8 18/ 18 24% 11% 0.0% 0 0
V: 0.9 19/ 19 23% 10% 0.0% 0 0
V: 61.5 21/ 21 ??% ??% ??,?% 0 0
V: 61.6 22/ 22 ??% ??% ??,?% 0 0
V: 61.6 23/ 23 ??% ??% ??,?% 0 0
V: 61.6 24/ 24 ??% ??% ??,?% 0 0
V: 61.7 25/ 25 ??% ??% ??,?% 0 0
V: 61.7 26/ 26 ??% ??% ??,?% 0 0
V: 61.8 27/ 27 ??% ??% ??,?% 0 0
V: 61.8 28/ 28 ??% ??% ??,?% 0 0
V: 61.8 29/ 29 ??% ??% ??,?% 0 0
V: 61.9 30/ 30 ??% ??% ??,?% 0 0
V: 61.9 31/ 31 ??% ??% ??,?% 0 0
V: 62.0 32/ 32 ??% ??% ??,?% 0 0
V: 62.0 33/ 33 16% 10% 0.0% 0 0
V: 122.4 37/ 37 ??% ??% ??,?% 0 0
V: 122.4 38/ 38 ??% ??% ??,?% 0 0
V: 122.5 39/ 39 ??% ??% ??,?% 0 0
V: 122.5 40/ 40 ??% ??% ??,?% 0 0
V: 122.6 41/ 41 ??% ??% ??,?% 0 0
V: 122.6 42/ 42 ??% ??% ??,?% 0 0
V: 122.6 43/ 43 ??% ??% ??,?% 0 0
V: 122.7 44/ 44 ??% ??% ??,?% 0 0
V: 122.7 45/ 45 ??% ??% ??,?% 0 0
V: 122.8 46/ 46 ??% ??% ??,?% 0 0
V: 122.8 47/ 47 11% 6% 0.0% 0 0
V: 122.8 48/ 48 11% 6% 0.0% 0 0
V: 122.9 49/ 49 11% 7% 0.0% 0 0

Exiting... (Quit)
On running in terminal I get
Quote:

MPlayer SVN-r33811-snapshot-4.4.3 (C) 2000-2011 MPlayer Team

Playing 1.DAT.
MPEG-PS file format detected.
VIDEO: MPEG1 352x288 (aspect 8) 25.000 fps 1150.0 kbps (143.8 kbyte/s)
Load subtitles in ./
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 224.0 kbit/7.94% (ratio: 28000->352800)
Selected audio codec: [ffmp2float] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x896f220]BICUBIC scaler, from yuv420p to rgb24 using MMX2
VO: [x11] 352x288 => 384x288 Planar YV12 [fs] [zoom]
A: 0.2 V: 0.2 A-V: 0.027 ct: 0.000 2/ 2 ??% ??% ??,?% 0 0
A: 0.2 V: 0.2 A-V: 0.009 ct: -0.002 3/ 3 ??% ??% ??,?% 0 0
A: 0.3 V: 0.3 A-V: -0.021 ct: -0.004 4/ 4 ??% ??% ??,?% 0 0
A: 0.3 V: 0.3 A-V: -0.006 ct: -0.004 5/ 5 ??% ??% ??,?% 0 0
A: 0.3 V: 0.4 A-V: -0.018 ct: -0.006 6/ 6 ??% ??% ??,?% 0 0
A: 0.4 V: 0.4 A-V: -0.018 ct: -0.008 7/ 7 ??% ??% ??,?% 0 0
A: 0.4 V: 0.4 A-V: -0.014 ct: -0.009 8/ 8 ??% ??% ??,?% 0 0
A: 0.5 V: 0.5 A-V: -0.015 ct: -0.011 9/ 9 ??% ??% ??,?% 0 0
A: 0.5 V: 0.5 A-V: -0.011 ct: -0.012 10/ 10 ??% ??% ??,?% 0 0
A: 0.6 V: 0.6 A-V: -0.010 ct: -0.013 11/ 11 ??% ??% ??,?% 0 0
A: 0.6 V: 0.6 A-V: -0.009 ct: -0.014 12/ 12 ??% ??% ??,?% 0 0
A: 0.6 V: 0.6 A-V: -0.008 ct: -0.015 13/ 13 ??% ??% ??,?% 0 0
A: 0.7 V: 0.7 A-V: -0.023 ct: -0.017 14/ 14 29% 9% 0.8% 0 0
A: 0.7 V: 0.7 A-V: -0.020 ct: -0.019 15/ 15 27% 9% 0.7% 0 0
A: 0.7 V: 0.8 A-V: -0.017 ct: -0.021 16/ 16 27% 9% 0.7% 0 0
A: 0.8 V: 0.8 A-V: -0.015 ct: -0.022 17/ 17 27% 9% 0.8% 0 0
A: 0.8 V: 0.8 A-V: -0.012 ct: -0.024 18/ 18 26% 9% 0.8% 0 0
A: 0.9 V: 0.9 A-V: 0.001 ct: -0.024 19/ 19 25% 9% 0.9% 0 0
A: 0.9 V: 0.9 A-V: -0.000 ct: -0.024 20/ 20 24% 9% 0.9% 0 0
A: 1.0 V: 1.0 A-V: 0.014 ct: -0.022 21/ 21 24% 9% 0.8% 0 0
A: 1.0 V: 1.0 A-V: -0.002 ct: -0.022 22/ 22 24% 9% 0.8% 0 0
A: 1.0 V: 1.0 A-V: 0.000 ct: -0.022 23/ 23 24% 9% 0.9% 0 0
A: 1.1 V: 1.1 A-V: -0.000 ct: -0.022 24/ 24 23% 9% 0.8% 0 0
A: 1.1 V: 1.1 A-V: -0.015 ct: -0.024 25/ 25 23% 9% 0.8% 0 0
A: 1.1 V: 1.2 A-V: -0.012 ct: -0.025 26/ 26 22% 9% 0.8% 0 0
A: 1.2 V: 1.2 A-V: 0.001 ct: -0.025 27/ 27 22% 8% 0.8% 0 0
A: 1.3 V: 1.2 A-V: 0.019 ct: -0.023 28/ 28 22% 8% 0.8% 0 0
A: 1.3 V: 1.3 A-V: 0.014 ct: -0.022 29/ 29 22% 8% 0.8% 0 0
A: 1.3 V: 1.3 A-V: -0.003 ct: -0.022 30/ 30 21% 8% 0.8% 0 0
A: 1.4 V: 1.4 A-V: -0.000 ct: -0.022 31/ 31 21% 8% 0.9% 0 0
A: 1.4 V: 1.4 A-V: -0.001 ct: -0.022 32/ 32 21% 8% 0.8% 0 0
A: 62.2 V: 62.1 A-V: 0.042 ct: 0.004 36/ 36 ??% ??% ??,?% 0 0
A: 62.2 V: 62.2 A-V: 0.079 ct: 0.008 37/ 37 ??% ??% ??,?% 0 0
A: 62.3 V: 62.2 A-V: 0.088 ct: 0.012 38/ 38 ??% ??% ??,?% 0 0
A: 62.3 V: 62.2 A-V: 0.085 ct: 0.016 39/ 39 ??% ??% ??,?% 0 0
A: 62.3 V: 62.3 A-V: 0.066 ct: 0.020 40/ 40 ??% ??% ??,?% 0 0
A: 62.4 V: 62.3 A-V: 0.076 ct: 0.024 41/ 41 ??% ??% ??,?% 0 0
A: 62.4 V: 62.4 A-V: 0.074 ct: 0.028 42/ 42 ??% ??% ??,?% 0 0
A: 62.5 V: 62.4 A-V: 0.053 ct: 0.032 43/ 43 ??% ??% ??,?% 0 0
A: 62.5 V: 62.4 A-V: 0.066 ct: 0.036 44/ 44 ??% ??% ??,?% 0 0
A: 62.6 V: 62.5 A-V: 0.075 ct: 0.040 45/ 45 ??% ??% ??,?% 0 0
A: 62.6 V: 62.5 A-V: 0.037 ct: 0.044 46/ 46 14% 6% 0.7% 0 0
A: 62.6 V: 62.6 A-V: 0.053 ct: 0.048 47/ 47 15% 6% 0.7% 0 0
A: 62.7 V: 62.6 A-V: 0.064 ct: 0.052 48/ 48 14% 6% 0.7% 0 0
A: 62.7 V: 62.6 A-V: 0.046 ct: 0.056 49/ 49 15% 6% 0.7% 0 0
A: 123.6 V: 123.6 A-V: 0.002 ct: 0.000 53/ 53 ??% ??% ??,?% 0 0
A: 123.7 V: 123.6 A-V: 0.058 ct: 0.004 54/ 54 ??% ??% ??,?% 0 0
A: 123.7 V: 123.7 A-V: 0.052 ct: 0.008 55/ 55 ??% ??% ??,?% 0 0
A: 123.8 V: 123.7 A-V: 0.050 ct: 0.012 56/ 56 ??% ??% ??,?% 0 0
A: 123.8 V: 123.8 A-V: 0.047 ct: 0.016 57/ 57 ??% ??% ??,?% 0 0
A: 123.8 V: 123.8 A-V: 0.046 ct: 0.020 58/ 58 ??% ??% ??,?% 0 0
A: 123.9 V: 123.8 A-V: 0.038 ct: 0.024 59/ 59 ??% ??% ??,?% 0 0
A: 123.9 V: 123.9 A-V: 0.034 ct: 0.027 60/ 60 ??% ??% ??,?% 0 0
A: 123.9 V: 123.9 A-V: 0.015 ct: 0.029 61/ 61 ??% ??% ??,?% 0 0
A: 124.0 V: 124.0 A-V: 0.035 ct: 0.032 62/ 62 ??% ??% ??,?% 0 0
A: 124.0 V: 124.0 A-V: 0.024 ct: 0.035 63/ 63 15% 8% 0.8% 0 0
A: 124.1 V: 124.0 A-V: 0.024 ct: 0.037 64/ 64 14% 8% 0.8% 0 0

Exiting... (Quit)


John VV 01-06-2014 01:52 PM

a ?? dat file ??
*.DAT are normally windows raw file for say a game


so what exactly is this "dat" file ?
mplayer thinks it is a mpeg compressed file ?
or is it some raw camera file

what produced this "dat" file

is it supposed to be a music audio file or a video file ?

sumeet inani 01-09-2014 09:39 AM

It is video file from a bought CD .
I will post its ffmpeg analysis ASAP.

John VV 01-09-2014 01:03 PM

so it is from a 700 meg video CD

i am betting someone used some DRM encryption schema on it to keep people from copying it

a guess here ....
it is a game cd and you are trying to pull parts of the video out of it
if so that "dat" file is likely in a proprietary format and you need to contact the game publisher

if you read the file using a hex editor you can read the text in the video header
ghex or ockular

sumeet inani 01-13-2014 05:44 AM

It is movie CD .
If it is DRM encrypted then the question arises - how does it get played by mplayer from command line but NOT from same binary when double clicked ?
Anyway here is its ffmpeg analysis
Code:

$ ffmpeg -i 1.DAT
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct 29 2012 11:48:37 with gcc 4.6.1 (GCC)
  configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-shared --enable-static --enable-small --disable-doc --enable-bzlib --enable-fontconfig --enable-gnutls --enable-libass --enable-libcdio --enable-libfaac --enable-libfreetype --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-zlib --enable-nonfree --enable-libdc1394 --enable-libmp3lame --enable-libv4l2 --enable-libvpx --enable-libxvid --enable-openal --enable-openssl --enable-libcelt --enable-vdpau --enable-libgsm --enable-libopencv --enable-libtwolame --enable-libx264
  libavutil      51. 73.101 / 51. 73.101
  libavcodec    54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter    3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample  0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0x8f746a0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '1.DAT':
  Duration: 00:56:54.44, start: 0.200267, bitrate: 1411 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163 DAR 1958:1467], 1150 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16, 224 kb/s
At least one output file must be specified



All times are GMT -5. The time now is 04:52 AM.