Score of 0
0 answers
397 views
avcodec_send_frame constantly returns -22
I am trying to write a WAV-to-AAC encoder using ffmpeg/libavcodec. Finding the encoder, setting up the context and feeding data into the frame all work, but once it's time to avcodec_send_frame() I ...
- reputation score 11
Score of 1
1 answer
110 views
AAC from HLS TS causes clicks when decoded to PCM per segment
I'm working on a custom HLS audio player for iOS. Each .ts segment contains AAC audio. I extract AAC from each TS file, decode it to PCM (using FFmpegKit), and schedule it using AVAudioEngine. ❗ ...
- reputation score 43
Score of 3
1 answer
242 views
[ffmpeg]How to use libfdk_aac to encode pcm to constant bitrate
I have tried both libfdk_aac and aac, but the encoded PCM audio always has a variable bit rate. Why is this happening? How can I make it encode with a constant bit rate The code is as follows: #...
- reputation score 73
Score of 1
0 answers
119 views
Read sample encrypted AAC with FFmpeg
I'm trying to open a sample encrypted AAC file (packed audio) using FFmpeg APIs. I can open an unencrypted AAC file using AVFormatContext* iContext = nullptr; avformat_open_input(&...
- reputation score 466
Score of 0
1 answer
78 views
How to encode audio AAC in HE-AAC V1 in new android API 33
android api 33 add new fields in android.media.MediaFormat links: https://developer.android.com/sdk/api_diff/33/changes/android.media.MediaFormat https://developer.android.com/reference/android/media/...
- reputation score 23
Score of 3
1 answer
89 views
Android AudioVideo Framework can not read metadata correctly
I've been trying to open *.mp4 media file on specific Android devices. Once I open it MediaFormat data has undefined language on audio tracks. If I then upload same app on different device, it decodes ...
- reputation score 101
Score of -2
1 answer
106 views
GStreamer tool mp4 aac streaming via rtp
I built an rtp sender that should transmit h264 video and aac audio, but it gives an error. No sink-element named "(null)" - omitting link gst-launch-1.0 -e -vv v4l2src device=/dev/video0 ! ...
- reputation score 1
Score of 2
1 answer
319 views
How to use Android MediaCodec to decode an aac audio file
I am using Android MediaCodec to decode an audio file formated in AAC.But the alway output a 0 bytes decodeFile. I have debuged my code, then i found outputBuffer?.remaining() ?: 0 always returns 0. ...
- reputation score 21
Score of -1
1 answer
320 views
Possible to copy PCR/PTS/DTS data between TS files?
I've 2 h264/aac stream TS files (say a.ts and b.ts) that have same duration and packet numbers. However PCR/PTS/DTS data of their audio/video stream packets are different. How do I copy PCR/PTS/DTS ...
- reputation score 175