613 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
88
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 ...
1
vote
1
answer
79
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.
❗ ...
3
votes
1
answer
180
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:
#...
1
vote
0
answers
77
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(&...
0
votes
1
answer
67
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/...
0
votes
2
answers
230
views
In iOS 18, using AudioUnit for audio recording, converting PCM format to AAC crashes the application
AudioBufferList* convertPCMToAAC (XDXRecorder *recoder) {
UInt32 maxPacketSize = 0;
UInt32 size = sizeof(maxPacketSize);
OSStatus status;
status = AudioConverterGetProperty(...
3
votes
1
answer
72
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 ...
-2
votes
1
answer
97
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 ! ...
1
vote
1
answer
1k
views
FFmpeg C demo generates "Could not update timestamps for skipped samples" warning
When I run my demo code I get these warnings when testing it on a webm video:
[opus @ 0x5ec0fc1b4580] Could not update timestamps for skipped samples.
[opus @ 0x5ec0fc1b4580] Could not update ...
2
votes
1
answer
293
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.
...
-1
votes
1
answer
281
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 ...
1
vote
1
answer
1k
views
How to re-encode an audio to match another one, to avoid re-encoding the whole audio
I have an audio editor in the browser using ffmpeg (WebAssembly), and I want to insert new audio into the existing audio without having to re-encode everything. Re-encoding everything takes a long ...
2
votes
2
answers
329
views
moviepy introducing weird audio artifacts at end of audio files, when creating videos via Python. Why?
These are not present in the original audio files. They get added to the end during the video creation process somehow. See this screenshot for a before and after comparison of the waveforms:
What's ...
1
vote
0
answers
282
views
iOS AudioConverter exceeds maximum packet size (2048) for input format
I'm trying to decode aac to pcm data, my goal is to decode the acc data received by tcp into pcm data. Currently I want to convert local aac files to pcm data first, and I encounter a problem:
[...
1
vote
0
answers
150
views
.aac audio doesn't continue playing in mediasource
I am attempting to stream an .acc audio file using the MediaSource API in JavaScript. The problem I'm encountering is that after loading the first partial audio chunk into the media source buffer, the ...