[FFmpeg-devel] How to upsample and then encode audio

Leo Izen leo.izen at gmail.com
Thu Jun 2 16:41:16 EEST 2022


On 6/2/22 06:29, Большой Человек wrote:
>   Basically after transcoding pcm_alaw 8khz to mp3 44.1khz, I can hear only
> some brief or even swift sound in first 1-2 seconds, unrecognizable sound.
> So something is wrong with pts/dts, packed to planar convertion, or
> upsampling.
> 
>   My application does transcoding rtsp camera stream to file. Video and
> audio. Video works fine and audio remuxing as well. Now I have pcm_alaw
> 8khz audio stream and want to transcode it to mp4 file along with video.
> 
>    Code is quite cumbersome to construct reproducible part, so firstly I
> want to know if my logic is right. Here is my draft process (assume all
> error are checked and handled):
> 
This email list is for working on FFmpeg itself. For user questions, 
including clients of the libraries, see mailto:ffmpeg-user at ffmpeg.org

- Leo Izen (thebombzen)



More information about the ffmpeg-devel mailing list