CodePudding user response:
Static void the probe (pd AVProbeData * and an int type, int p, int size){
Int I=0;
AVInputFormat * FMT=NULL;
While ((FMT=av_iformat_next (FMT))) {
If (FMT - & gt; Flags & amp; AVFMT_NOFILE)
continue;
If (FMT - & gt; Read_probe) {
Int score=FMT - & gt; Read_probe (pd);
If (score & gt; Score_array [I] & amp; & Score & gt; AVPROBE_SCORE_MAX/4) {
Score_array [I]=score;
Fprintf (stderr, "a Failure of % s probing code with score type==% d % d % p=X size=% d \ n",
FMT - & gt; Name, score, type, p, size);
Failures++;
}
}
i++;
}
}
Read a blog on the net, don't know how to do
CodePudding user response:
Does anyone replyCodePudding user response:
Real-time decoding is decoding while playing? I use Qt done real-time spectrum analysis, use two file pointer, a class is used to audio playback, another is used to read the file data, analysis of waveform, do PCM are only used for broadcasting, with a thread is enoughCodePudding user response:
Real-time decoding, interface came a voice and data stream or video you then need to decode as PCM voice flow, is if you open a file and then sending you via TCP data flow, you how to decodeCodePudding user response:
Don't need to play, it is a voice stream format decoding,