From: John Magolske on
I'm looking for a way to play *.3gp audio files from the command line.
Mplayer doesn't seem to work:

% Mplayer some-audio-file.3gp
[...]
Playing some-audio-file.3gp.
libavformat file format detected.
[lavf] Audio stream found, -aid 0
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Cannot find codec 'libamr_nb' in libavcodec...
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x726D6173.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Video: no video

Any suggestions for alternate approaches, pointers on how & what to
install in terms of a codec, or maybe a way to convert these files
(ideally without transcoding degradation)?

These audio files were created by the android app "Voice Recorder".

TIA for any help,

John


--
John Magolske
http://B79.net/contact


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100416190000.GA12338(a)s70206.gridserver.com
From: Camaleón on
On Fri, 16 Apr 2010 12:00:00 -0700, John Magolske wrote:

> I'm looking for a way to play *.3gp audio files from the command line.
> Mplayer doesn't seem to work:

(...)

> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> Cannot find codec 'libamr_nb' in libavcodec... ADecoder init failed

(...)

> Any suggestions for alternate approaches, pointers on how & what to
> install in terms of a codec, or maybe a way to convert these files
> (ideally without transcoding degradation)?

Mmmm, it seems you are missing a codec (AMR). In debian multimedia repo
there is one package that provides that codec:

***
floating-point Adaptive Multi-Rate (AMR) speech codec
http://debian-multimedia.org/dists/stable/main/binary-i386/package/amrnb.php
***

That is for lenny 32-bits. Not sure if this will solve the problem :-?

OTOH, there are online conversion tools that may also help:

http://www.zamzar.com/conversionTypes.php#videos

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.04.16.19.19.32(a)gmail.com
From: Ron Johnson on
On 2010-04-16 14:00, John Magolske wrote:
> I'm looking for a way to play *.3gp audio files from the command line.
> Mplayer doesn't seem to work:
>
> % Mplayer some-audio-file.3gp
> [...]
> Playing some-audio-file.3gp.
> libavformat file format detected.
> [lavf] Audio stream found, -aid 0
> ==========================================================================
> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> Cannot find codec 'libamr_nb' in libavcodec...
> ADecoder init failed :(
> ADecoder init failed :(
> Cannot find codec for audio format 0x726D6173.
> Read DOCS/HTML/en/codecs.html!
> Audio: no sound
> Video: no video
>
> Any suggestions for alternate approaches, pointers on how & what to
> install in terms of a codec, or maybe a way to convert these files
> (ideally without transcoding degradation)?
>
> These audio files were created by the android app "Voice Recorder".
>

Note that Debian hobbles some apps (like mplayer and ffmpeg) because
of freedom issues. That's why www.debian-multimedia.org exists.

Did you Google "linux play 3gp"? If the d-mm.org packages don't
work, then Google might.

$ apt-cache policy mplayer
mplayer:
Installed: 1:1.0.rc2svn20100407-0.0
Candidate: 1:1.0.rc2svn20100407-0.0
Version table:
*** 1:1.0.rc2svn20100407-0.0 0
500 http://www.debian-multimedia.org unstable/main Packages
100 /var/lib/dpkg/status
1.0~rc3+svn20090405-1+b2 0
500 ftp://ftp.us.debian.org unstable/main Packages
$
$
$ apt-cache policy ffmpeg
ffmpeg:
Installed: 5:0.5.1+svn20100411-0.0
Candidate: 5:0.5.1+svn20100411-0.0
Version table:
*** 5:0.5.1+svn20100411-0.0 0
500 http://www.debian-multimedia.org unstable/main Packages
100 /var/lib/dpkg/status
4:0.5.1-3 0
500 ftp://ftp.us.debian.org unstable/main Packages

--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BC8B8D4.8040603(a)cox.net
From: John Magolske on
> > looking for a way to play *.3gp audio files from the command
> > line. Mplayer doesn't seem to work:
>
> Mmmm, it seems you are missing a codec (AMR). In debian multimedia
> repo there is one package that provides that codec:
>
> floating-point Adaptive Multi-Rate (AMR) speech codec
> http://debian-multimedia.org/dists/stable/main/binary-i386/package/amrnb.php

I installed the amrnb package from the multimedia repo, but it didn't
help. I also installed the OpenCORE AMR libraries to /usr/local/lib as
recommended on the Mplayer site:

MPlayer can use the OpenCORE AMR libraries through FFmpeg.
Download the libraries for AMR-NB and AMR-WB from the
opencore-amr project and install them according to the
instructions on that page.
http://www.mplayerhq.hu/DOCS/HTML/en/codec-installation.html
http://sourceforge.net/projects/opencore-amr/

But that didn't help. Also built ffmpeg from source as suggested here:
http://ubuntuforums.org/showthread.php?t=178455
and did this:

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
./configure --enable-libopencore-amrnb --enable-version3
make
make install

That didn't help either, keep getting "Cannot find codec 'libamr_nb' in
libavcodec..." still searching around the www to see what I can find.

John


--
John Magolske
http://B79.net/contact


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/20100417175210.GA1483(a)s70206.gridserver.com
From: Camaleón on
On Sat, 17 Apr 2010 10:52:10 -0700, John Magolske wrote:

> I installed the amrnb package from the multimedia repo, but it didn't
> help.


Wow :-(


> I also installed the OpenCORE AMR libraries to /usr/local/lib as
> recommended on the Mplayer site:
>
> MPlayer can use the OpenCORE AMR libraries through FFmpeg. Download
> the libraries for AMR-NB and AMR-WB from the opencore-amr project
> and install them according to the instructions on that page.
> http://www.mplayerhq.hu/DOCS/HTML/en/codec-installation.html
> http://sourceforge.net/projects/opencore-amr/
>
> But that didn't help.


Ouch! :-(


> Also built ffmpeg from source as suggested here:
> http://ubuntuforums.org/showthread.php?t=178455 and did this:
>
> svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg ./configure
> --enable-libopencore-amrnb --enable-version3 make
> make install


Mmm, those instructions seems pretty old (2006-2007), maybe something has
changed since then.

> That didn't help either, keep getting "Cannot find codec 'libamr_nb' in
> libavcodec..." still searching around the www to see what I can find.

Two more hints:

1/ The error message you got was:

***
(...)
Cannot find codec for audio format 0x726D6173.
Read DOCS/HTML/en/codecs.html!
***

So follow their wise advice and take a look into that doc file.

2/ Dunno if you already installed the mpeg/ffmpeg versions from "debian-
multimedia" repo, as Ron already pointed out. That could be another thing
you can test.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/pan.2010.04.17.18.42.56(a)gmail.com
 |  Next  |  Last
Pages: 1 2
Prev: BIND9 Y DHCP3-SERVER
Next: router policy question