[FFmpeg-devel] Convert audio to DBFS
chaupv79 at hotmail.com
Thu Mar 2 05:50:12 EET 2017
I am doing audio converting and use ffmpeg.
I looked into a ffmpeg sample program demuxing_decoding.c
and inside decode_packet function
size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample((AVSampleFormat)frame->format);
fwrite(frame->extended_data, 1, unpadded_linesize, audio_dst_file);
I would like to convert audio packet to DBFS (Decibels full scale).
Could someone help me?
I will appreciate any suggestion from you.
Thank in advance.
More information about the ffmpeg-devel