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)
|
|