Re: [Libav-user] C++ FFmpeg distorted sound when converting audio

2015-08-18 Thread Carl Eugen Hoyos
David Norgren david.norgren@... writes: My current code opens an audio file, decodes the content and converts it into the MP4 container This sentence sounds strange since you cannot convert audio into a container... audioFrameConverted-format = audioCodecContext-sample_fmt; I wonder if

[Libav-user] C++ FFmpeg distorted sound when converting audio

2015-08-18 Thread David Norgren
I'm trying to generate MP4 files containing audio from various files, such as MP3, WAV, OGG, but I'm having some troubles (I'm also putting video in there, but for simplicity's sake I'm omitting that for this question, since I've got that working). My current code opens an audio file, decodes