[FFmpeg-user] Mp3 not supported

Yamusani Vinay yamusanivinay at gmail.com
Thu Oct 31 08:41:37 CET 2013


Hi  Gabri Shally,

    Here Iam attaching the following files:

1.Code I used to play mp3 song.(i.e music.c)
2.The error I got while playing mp3.(i.e log.txt)

the error is while decoding the length obtained  is negative.

Hi littlebat,

If i run the ffmpeg -codec i got below output:
 D A D  mace3           MACE (Macintosh Audio Compression/Expansion) 3:1
 D A D  mace6           MACE (Macintosh Audio Compression/Expansion) 6:1
 D V D  mdec            Sony PlayStation MDEC (Motion DECoder)
 D S    microdvd        MicroDVD subtitle
 D V D  mimic           Mimic
 DEV D  mjpeg           MJPEG (Motion JPEG)
 D V D  mjpegb          Apple MJPEG-B
 D A D  mlp             MLP (Meridian Lossless Packing)
 D V D  mmvideo         American Laser Games MM Video
 D V D  motionpixels    Motion Pixels video
 D A D  mp1             MP1 (MPEG audio layer 1)
 D A D  mp1float        MP1 (MPEG audio layer 1)
 DEA D  mp2             MP2 (MPEG audio layer 2)
 D A D  mp2float        MP2 (MPEG audio layer 2)
 D A D  mp3             MP3 (MPEG audio layer 3)
 D A D  mp3adu          ADU (Application Data Unit) MP3 (MPEG audio layer 3)
 D A D  mp3adufloat     ADU (Application Data Unit) MP3 (MPEG audio layer 3)
 D A D  mp3float        MP3 (MPEG audio layer 3)
 D A D  mp3on4          MP3onMP4
 D A D  mp3on4float     MP3onMP4
 D A D  mpc7            Musepack SV7
 D A D  mpc8            Musepack SV8
 DEVSDT mpeg1video      MPEG-1 video
 DEVSDT mpeg2video      MPEG-2 video
 DEVSDT mpeg4           MPEG-4 part 2
 D VSDT mpegvideo       MPEG-1 video
 DEVSD  msmpeg4         MPEG-4 part 2 Microsoft variant version 3
 D VSD  msmpeg4v1       MPEG-4 part 2 Microsoft variant version 1
 DEVSD  msmpeg4v2       MPEG-4 part 2 Microsoft variant version 2
 D V D  msrle           Microsoft RLE
 DEV D  msvideo1        Microsoft Video-1
 D V D  mszh            LCL (LossLess Codec Library) MSZH
 D V D  mxpeg           Mobotix MxPEG video


Thanks & Regards,
Vinay Yamusani.


On Thu, Oct 31, 2013 at 11:10 AM, littlebat <dashing.meng at gmail.com> wrote:

> On Thu, 31 Oct 2013 11:05:02 +0530
> Yamusani Vinay <yamusanivinay at gmail.com> wrote:
>
> > Hi All,
> >
> >    I am able to decode wav file and able to play the song.But by
> > using the same code I tried to play mp3 song then I am getting fatal
> > signal i.e length decoded is negative.So my question is whether mp3
> > decode is supported in ffmpeg or else we need to use other libraries
> > to decode it?
>
> Missing command line and console output detail.
>
> The command "ffmpeg -codecs" can show you all the codecs supported by
> ffmpeg.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
-------------- next part --------------
10-31 16:36:54.370: D/tag(23670): RAH28 Starting
10-31 16:36:54.512: D/tag(23670): RAH getting stream info
10-31 16:36:55.057: D/tag(23670): RAH getting audio stream
10-31 16:36:55.057: D/tag(23670): RAH audio stream found with result: [0]
10-31 16:36:55.057: D/tag(23670): RAH audio codec info loaded
10-31 16:36:55.057: D/tag(23670): RAH audio codec info [86017]
10-31 16:36:55.057: D/tag(23670): RAH audio codec info found
10-31 16:36:55.057: D/tag(23670): RAH audio codec loaded [6] [0]
10-31 16:36:55.057: D/tag(23670): RAH channels [2] sample rate [44100] sample format [6]
10-31 16:36:55.057: D/tag(23670): RAH frame read: [0] [0]
10-31 16:36:55.057: D/tag(23670): RAH audio ready
10-31 16:36:55.057: D/tag(23670): RAH packet size: [90828]
10-31 16:36:55.057: D/tag(23670): RAH decoding: [1] [0]
10-31 16:36:55.057: D/tag(23670): RAH 1 size [90828] len [-1094995529] data_size [0] out_size [0]
10-31 16:36:55.062: A/libc(23670): Fatal signal 11 (SIGSEGV) at 0x5c0b5000 (code=1), thread 23700 (Thread-3695)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: music.c
Type: text/x-csrc
Size: 3981 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20131031/b31968b0/attachment.bin>


More information about the ffmpeg-user mailing list