Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libfaac: Queue input is backward in time

I am using libav along with libfaac to encode audio into aac. following is the logic:

frames[n]
i = 0 ;
while (there are frames)
{ 
  cur_frame =  frames[i];
  av_encode_audio(frame, ...., &frame_finished);
  if( frame_finished )
  {
     i++;
  }
}

but I am getting this annoying warning for few frames "queue input is backward in time !"

like image 854
Harit Vishwakarma Avatar asked Jan 23 '26 14:01

Harit Vishwakarma


1 Answers

The answer is very simple, you are not supposed to pass the same frame again to the libfaac, so even if the frame_finished is not 1 you should still go to the next frame.

it should be as follows:

frames[n]
i = 0 ;
while (there are frames)
{ 
  cur_frame =  frames[i];
  av_encode_audio(frame, ...., &frame_finished);
  i++;
}
like image 114
Harit Vishwakarma Avatar answered Jan 25 '26 21:01

Harit Vishwakarma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!