[MPlayer-users] mplayer and ffmpeg - cmd line params to play large .amr files
Martin
mplayer-users-at-mplayerhq.hu-1 at h.proberto.com
Fri Nov 2 13:06:27 CET 2012
hi. i've been figting for a few hours with supplying the right cmdline
params to mplayer to make it play a large .amr (a file which ffmpeg
accepts just fine, and from mplayer's man page I understood that mplayer
uses / can use ffmpeg / ffmpeg libraries to play stuff). searching
through web and mailing list gained nothing that worked.
the issue is with a cellphone-produced *large* (9mb) sound3223.amr file
(small sound3222.amr file plays fine).
how can I tell mplayer to play the large file without first having to
execute an ffmpeg command line? (see below)
background: MPlayer SVN-r34807-snapshot-4.6.2 , 183 audio & 398 video
codecs , ffmpeg version 0.10.2
thanks and kudos,
martin
________________________________________________________________________________________________________________
small file (0.5MB) plays OK:
# mplayer sound3222.amr
MPlayer SVN-r34807-snapshot-4.6.2 (C) 2000-2012 MPlayer Team
183 audio & 398 video codecs
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.
Playing sound3222.amr.
libavformat version 54.2.100 (internal)
libavformat file format detected.
[amr @ 0x8b69560]max_analyze_duration 5000000 reached at 5000000
[amr @ 0x8b69560]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (amrnb), -aid 0
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.10.100 (internal)
AUDIO: 8000 Hz, 1 ch, floatle, 12.8 kbit/5.00% (ratio: 1600->32000)
Selected audio codec: [ffamrnb] afm: ffmpeg (AMR Narrowband)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or
directory
AO: [alsa] 8000Hz 1ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A: 0.0 (00.0) of 372.6 (06:12.6) 0.4%
...
________________________________________________________________________________________________________________
# mplayer sound3223.amr
MPlayer SVN-r34807-snapshot-4.6.2 (C) 2000-2012 MPlayer Team
183 audio & 398 video codecs
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.
Playing recording46133.amr.
libavformat version 54.2.100 (internal)
MPEG-PES file format detected.
MPEG: No audio stream found -> no sound.
MPEG: FATAL: EOF while searching for sequence header.
Video: Cannot read properties.
No stream found.
Exiting... (End of file)
________________________________________________________________________________________________________________
The following produces mplayer-playable sound3223-ffmpeg.amr :
# ffmpeg -vn -i sound3223.amr -acodec libopencore_amrnb -f amr
sound3223-ffmpeg.amr
# mplayer sound3223-ffmpeg.amr
Playing sound3223-ffmpeg.amr.
libavformat version 54.2.100 (internal)
libavformat file format detected.
[amr @ 0x8b69560]max_analyze_duration 5000000 reached at 5000000
[amr @ 0x8b69560]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (amrnb), -aid 0
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.10.100 (internal)
AUDIO: 8000 Hz, 1 ch, floatle, 12.8 kbit/5.00% (ratio: 1600->32000)
Selected audio codec: [ffamrnb] afm: ffmpeg (AMR Narrowband)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or
directory
AO: [alsa] 8000Hz 1ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A: 0.0 (00.0) of 5968.6 ( 1:39:28.6) 0.2%
...
________________________________________________________________________________________________________________
here is the diff of hexdump -C of the first 1200 bytes of :
sound3223.amr and sound3223-ffmpeg.amr
2,3c2,3
< 00000010 e7 af f0 00 00 00 80 00 00 00 00 00 00 00 00 00
|................|
< 00000020 00 00 00 00 00 00 3c 48 77 24 96 66 79 e1 e0 01
|......<Hw$.fy...|
---
> 00000010 e7 af f0 44 00 00 80 00 48 30 00 00 00 00 00 00
|...D....H0......|
> 00000020 88 20 00 00 00 00 3c 48 77 24 96 66 79 e1 e0 01 |.
....<Hw$.fy...|
65,75c65,75
< 00000400 00 00 00 00 00 00 3c e0 9b 29 3a b7 69 e3 e8 80
|......<..):.i...|
< 00000410 4b d4 f7 27 25 76 40 00 06 9b 59 59 1f a0 00 04
|K..'%v at ...YY....|
< 00000420 14 1f 69 e8 10 c0 3c 34 f1 1f 8b ac 70 09 41 69
|..i...<4....p.Ai|
< 00000430 2b ff 39 a3 2a c3 94 a2 90 b0 c1 2e 61 48 22 a5
|+.9.*.......aH".|
< 00000440 a4 07 7d cf 7e 80 3c e7 a4 98 3b ff 48 9d 20 79
|..}.~.<...;.H. y|
< 00000450 a7 d1 cc 31 e1 94 a8 ec 43 3a 24 52 da 79 de 33
|...1....C:$R.y.3|
< 00000460 47 3a bb a5 de 20 3c 44 64 68 97 e7 7a 10 40 f1 |G:...
<Ddh..z. at .|
< 00000470 e2 8a 58 32 c0 d4 f4 54 5d 58 09 4b 72 4d 1e 1c
|..X2...T]X.KrM..|
< 00000480 7b 1a 63 35 b9 a0 3c 44 87 20 1b ed d8 11 c0 f1 |{.c5..<D.
......|
< 00000490 82 74 98 fa 12 23 30 4d d9 43 db eb 53 4d df 2a
|.t...#0M.C..SM.*|
< 000004a0 3e f7 d9 87 1a 20 3c 48 5f 24 af 71 21 80 61 e1 |>....
<H_$.q!.a.|
---
> 00000400 00 00 00 00 00 00 3c 14 ac 79 9c ee 79 c1 e4 41
|......<..y..y..A|
> 00000410 6d 0a e3 12 22 23 c0 00 00 00 10 4d c2 30 00 00
|m..."#.....M.0..|
> 00000420 00 02 d0 04 de 40 3c 21 16 94 47 46 3d 00 e0 a5
|.....@<!..GF=...|
> 00000430 bc 29 c8 a9 87 09 f9 28 89 59 66 45 c2 5d 85 9b
|.).....(.YfE.]..|
> 00000440 44 5f bf 7a eb 80 3c 52 87 17 39 56 54 81 01 c3
|D_.z..<R..9VT...|
> 00000450 82 04 63 1a 82 4d 64 61 5b e7 89 ab 48 5c e2 b5
|..c..Mda[...H\..|
> 00000460 9d 97 7e 8d 7b 60 3c 14 f9 66 8b 40 20 05 e0 d3
|..~.{`<..f.@ ...|
> 00000470 f0 aa 09 15 32 e6 e9 23 07 da b3 b2 12 95 b4 c6
|....2..#........|
> 00000480 44 08 ee 56 26 60 3c 42 a1 5d 31 f2 8a 01 c0 d2
|D..V&`<B.]1.....|
> 00000490 79 0a c9 f9 91 a8 21 4b 38 04 d2 c7 b5 6a e6 75
|y.....!K8....j.u|
> 000004a0 09 ea 69 0f b1 e0 3c 34 68 8b 3f f9 92 0a 41 c2
|..i...<4h.?...A.|
________________________________________________________________________________________________________________
here is the diff of hexdump -C of the first 1200 bytes of :
sound3222.amr (0.5mb) and sound3223.amr (9mb)
(meaning that in the first 1024 bytes there is no difference .... ?!)
65,75c65,75
< 00000400 00 00 00 00 00 00 3c e0 9b 29 3a b7 69 e3 e8 80
|......<..):.i...|
< 00000410 4b d4 f7 27 25 76 40 00 06 9b 59 59 1f a0 00 04
|K..'%v at ...YY....|
< 00000420 14 1f 69 e8 10 c0 3c 34 f1 1f 8b ac 70 09 41 69
|..i...<4....p.Ai|
< 00000430 2b ff 39 a3 2a c3 94 a2 90 b0 c1 2e 61 48 22 a5
|+.9.*.......aH".|
< 00000440 a4 07 7d cf 7e 80 3c e7 a4 98 3b ff 48 9d 20 79
|..}.~.<...;.H. y|
< 00000450 a7 d1 cc 31 e1 94 a8 ec 43 3a 24 52 da 79 de 33
|...1....C:$R.y.3|
< 00000460 47 3a bb a5 de 20 3c 44 64 68 97 e7 7a 10 40 f1 |G:...
<Ddh..z. at .|
< 00000470 e2 8a 58 32 c0 d4 f4 54 5d 58 09 4b 72 4d 1e 1c
|..X2...T]X.KrM..|
< 00000480 7b 1a 63 35 b9 a0 3c 44 87 20 1b ed d8 11 c0 f1 |{.c5..<D.
......|
< 00000490 82 74 98 fa 12 23 30 4d d9 43 db eb 53 4d df 2a
|.t...#0M.C..SM.*|
< 000004a0 3e f7 d9 87 1a 20 3c 48 5f 24 af 71 21 80 61 e1 |>....
<H_$.q!.a.|
---
> 00000400 00 00 00 00 00 00 3c 1a 54 29 32 b2 4b e3 e8 ce
|......<.T)2.K...|
> 00000410 4b f2 f7 22 60 24 40 00 14 e3 58 84 c9 f4 00 00
|K.."`$@...X.....|
> 00000420 81 e9 16 07 a2 30 3c 21 07 2f b4 3c 5a 14 a5 a3
|.....0<!./.<Z...|
> 00000430 c2 3a ff 57 ee 63 65 07 69 f7 94 be b8 f8 e5 02
|.:.W.ce.i.......|
> 00000440 9b a2 62 a6 a3 00 3c 1a 77 75 38 76 24 0d 27 99
|..b...<.wu8v$.'.|
> 00000450 34 a4 80 5c ae 76 8d fd aa 60 c1 2c 69 e9 e1 51
|4..\.v...`.,i..Q|
> 00000460 68 34 84 24 f1 20 3c 44 ec 75 92 67 04 26 07 99 |h4.$.
<D.u.g.&..|
> 00000470 93 b5 80 03 fc 76 be 8f b1 f8 27 08 ce fe 30 04
|.....v....'...0.|
> 00000480 77 76 d2 53 c2 70 3c 44 74 64 ba bd e8 07 9e 01
|wv.S.p<Dtd......|
> 00000490 b5 47 31 19 27 e4 67 07 6b 07 3c d1 8b cc d5 7a
|.G1.'.g.k.<....z|
> 000004a0 dd a1 53 69 79 d0 3c 8a 77 64 8f 73 2a 09 6f 15
|..Siy.<.wd.s*.o.|
More information about the MPlayer-users
mailing list