[Ffmpeg-devel] [PATCH] Probe for mp3 files and streams

François Revol revol
Wed Jul 27 18:11:50 CEST 2005

> On Wednesday 27 July 2005 10:14, Raymond Biggs wrote:
> > Hey All,
> >
> > Just a small patch to add a probe for mp3 files and streams. Useful 
> > when
> > given a url to a SHOUTcast stream (often without .mp3 extension). 
> > The
> > algorithm doesn't detect free format mp3 but should work for all 
> > others.
> rejected, this almost duplicates decode_header() from mpegaudiodec.c
> printfs() also need to be replaced with av_log()
> not to mention that probe _must_ detect all files not just some, 
> false 
> positives are one thing false negatives are just not acceptable

The correct way is to implement mime type sniffing.
Shoutcast servers do give the mime type.


More information about the ffmpeg-devel mailing list