[FFmpeg-devel] ffmpeg audio data for ploting wave form

Lou Logan lou at lrcd.com
Sat Apr 2 20:27:28 CEST 2016


On Sat, Apr 2, 2016, at 01:42 AM, Haris PP wrote:
> Hi,
> 
> I need to plot wave form of audio as explained here
> http://stackoverflow.com/questions/16509906/ffmpeg-can-i-draw-an-audio-channel-as-an-image,
> I found that some command line option for plotting to image, but my
> requirement is do from c++ code and draw live waveform on UI. I am able
> to
> decode the audio data successfully, but no idea how the data is stored in
> `AVFrame` `extended_data` pointer. The audio can be either stereo or
> mono.
> 
>     AVFrame *frame=av_frame_alloc();
>     while(av_read_frame(container,&packet)>=0)
>      {
> 
>         int len=avcodec_decode_audio4(ctx,frame,&frameFinished,&packet);
>         frame->extended_data //how data stored inside the pointer
>         ........................
>     }

Wrong mailing list. ffmpeg-devel is only for patch submissions and
discussions related to the development of FFmpeg. Questions involving
the usage of the FFmpeg libraries should be asked at libav-user.

See http://ffmpeg.org/contact.html


More information about the ffmpeg-devel mailing list