I try to make an assembly video of the WIP of a project, to detect the hook up issue and it works fine when there is no audio. I do an intermediate conversion because there are some elements (such as the status of the shot and the frame count, that I want to add to ..
I implemented a network video player (like VLC) using ffmpeg. But it can not decode AAC audio stream received from a Bosch IP camera. It can decode other audio sterams like G711, G726 etc. I set the codec ID as AV_CODEC_ID_AAC and I set channels and sample rate of AvCodecContext. But avcodec_decode_audio4 fails with an ..
here’s a question. When my code goes to ret = avcodec_send_frame(enc_ctx, tmpFrame), sometimes it returns AVERROR(EINVAL). Many people say that the reason is the format of tmpFrame is AV_SAMPLE_FMT_S16, but encoder needs AV_SAMPLE_FMT_FLTP. However, my log shows that tmpFrame->format: 8, tmpFrame->channels: 1, tmpFrame->channel_layout: 4, tmpFrame->sample_rate: 32000, tmpFrame->nb_samples: 1024. Here 8 is the value of AV_SAMPLE_FMT_FLTP. ..
I’m trying to decode an AAC audio stream in an ADTS container, which is streamed from an external hardware H264 encoder. I’ve parsed out the ADTS and it tells me I’ve got a 2 channel, 44100 AAC Main profile frame. I setup the extra data bytes for the ffmpeg decoder and decode the frame successfully? ..