[MPlayer-dev-eng] Re: Detect format

Tobias Diedrich ranma at gmx.at
Sat Dec 6 04:08:35 CET 2003


digitaldreams at virgilio.it wrote:

> what is the lib which can  detect type, bitrate and size from any file?
> I must write an program which detect that and exit (on linux).
> Can you help me?

Have a look at TOOLS/midentify and mplayers -identify switch.

-- 
/* Tobias */     int main(int a,char **b)    /* PGP: http://9ac7e0bc.2ya.com */
{char i,j,t,*r=*++b;srand(getpid());for(;*r;){for(;*r&&!isalpha(*r);r++);for(i=
1;isalpha(r[i+1]);i++){j=rand()%i;t=r[i];r[i]=r[++j];r[j]=t;}r+=i+1;}puts(*b);}
np: azumangadaiou: kyarakuta^CDshiri^zu Vol.8 kaorin 02 - TeaRosedenemurimashou []



More information about the MPlayer-dev-eng mailing list