Hello List,
I try to resample the 48kHz/Stereo MP2 audio stream of a
video to
16kHz/Mono by calling audio_resample() for each decoded
audio frame. I
initialized the resampler properly using
audio_resample_init().
I would expect the resampled signal to have *exactly* 1/3
(16k/48k)
times the length of the original signal. But surprisingly,
there are
sometimes (always for the first call to audio_resample()
after
audio_resample_injt(), but maybe also intermediate) fewer
samples
written to my output buffer (7-8 samples less than expexted
for what I
observed).
Can someone explain me what may be the reason for that and
how I can get
all the samples I expect?
An Expolanation I thought of: Are the missing samples due to
some
internal caching to avoid discontinuties between the frames
after
resampling? How then can I tell the system that no more
samples are
going to come and that I want all output now?
Thank you very much & best regards,
Thilo
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
|