문제

I'm learning to program with libavcodec. But I'm stuck. All the tutorials I'm using are on video files and I need an audio file. I'm using Ubuntu.

How should I read AVCodecContext from an audio stream?
By the way, does anybody know a good tutorial on libavcodec with audio? I couldn't find anything.

도움이 되었습니까?

해결책

From the ffmpeg doc:

http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/api-example_8c-source.html

Is has examples for audio encoding/decoding, and video encoding/decoding.

다른 팁

This tutorial shows a function that can turn any sound file into an array of double samples, with the sampling rate of your choice, using FFMPEG libraries.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top