Hi everybody,

I am still new to libavcodec and to a/v processing.

I have to process an audio stream from a movie source and encode it as AC3.
So far I have only the decoding and encoding (call it transcoding) without
processing, but with a problem: The output file has a lot of noise, that
wasn't there before.

This is how I do it in pseudo code:
make avformat contexts for input and output
make codec contexts for decoder and encoder
setup and open encoder
write headers to the output file

in a loop: read packets, and if they belong to the correct stream, decode
the audio, collect the samples, split them into channels*frame_size parts
and encode them as frames. Then send the encoded data as packet to the
output format context.

write trailer
close the output file and free everything

Did I forget something?

Best Regards
Benjamin
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to