[Libav-user] av_read_frame() returns error while streaming mp3

Alex Cohn alexcohn at netvision.net.il
Thu Dec 15 08:33:30 CET 2011


On Wed, Dec 14, 2011 at 07:58, Brad Larson <bklarson at gmail.com> wrote:
> Hi! I'm trying to build a simple Android streamer using ffmpeg.
> Everything is working well, except that for some mp3 streams
> av_read_frame() returns an error (-541478725) after playing for 1-2
> minutes.  The same problem happens when using ffplay in Linux (0.8.6)
>
> The stream plays fine with Chrome.  Also I can download the mp3 and
> then it plays fine with ffplay.
>
> One example bad stream is
> http://www.stationcaster.com/clicktrack/index.mp3?media=%2Fstations%2Fwhb%2Fmedia%2Fmp3%2FDoug_Farrar-1323805825.mp3&usecat=373&subscribed=true&title=Doug+Farrar&ext=.mp3
>
> Any ideas on how to debug this or where I can go from here?  Any help
> is greatly appreciated!
>
> Thanks!!
>
> Brad

FWIW, your sample stream seems (sounds) to stream fine for me, with Windows 7.

ffplay version N-35295-gb55dd10, Copyright (c) 2003-2011 the FFmpeg
developers built on Nov 30 2011 00:58:17 with gcc 4.6.2

command line:
\ffmpeg\bin\ffplay -codec mp3 -v debug
"http://www.stationcaster.com/clicktrack/index.mp3?media=%2Fstations%2Fwhb%2Fmedia%2Fmp3%2FDoug_Farrar-1323805825.mp3&usecat=373&subscribed=true&title=Doug+Farrar&ext=.mp3"

BR,
Alex Cohn


More information about the Libav-user mailing list