613 questions
1
vote
0
answers
33
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
40
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
119
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
45
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 ...
0
votes
0
answers
20
views
How do I decode AAC-ELD audio data to PCM data with AudioToolbox?
I can decode AAC_LC audio data but can't do it for AAC_ELD, the following is the code to create the converter, but I get an error "1724924917868" for AAC_ELD that means format not supported.
...
-2
votes
1
answer
54
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 ! ...
0
votes
1
answer
501
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
173
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
158
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 ...
0
votes
1
answer
475
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
203
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 ...
0
votes
0
answers
163
views
What are some correct settings to encode an audio byte stream (from mic) into AAC in an android app
My son is trying to write an android app (in kotlin) that reads the microphone and saves the result into an AAC file. He succeeded for a single piece of sound recorded in one shot. Now he needs to ...
0
votes
0
answers
149
views
How to convert or play AAC-LC file in windows forms, with C#?
I am using OpenAIs Text to speech API endpoint and I generate an AAC file like that.
When I save the file normally, I can play it with Windows media player, so the file itself is fine.
For the past ...
1
vote
0
answers
180
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
111
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 ...
0
votes
1
answer
412
views
How can I convert an aac encoded octet-stream into a wav in swift
I'm attempting to convert a playable aac encoded octet-stream (recording.aac) that I recorded from an aac encoded livestream (https://archives.kdvs.org/stream) into a wav file. I'm not sure where to ...
0
votes
2
answers
410
views
ExtAudioFileOpenURL & AVAudioFile unable to read .aac file
I'm currently making a swift app that records an aac file from an audiostream and uses shazamKit to identify the song. The stream itself plays back audio in the aac format which is why I download it ...
1
vote
1
answer
669
views
Encode and stream raw audio over RTP/RTSP using FDK-AAC
EDITS ADDED AT END***
I am looking for the 'simplest' way to configure an aac encoder (FDK-AAC library), sdp header, and RTP headers so that the minimum viable RTP audio stream can be played. (To ...
5
votes
1
answer
13k
views
ERROR "Application provided invalid, non monotonically increasing dts to muxer in stream 1: 6874 >= 6874" while writing encoded output to an mp4 file
I have a running RTSP stream, streaming video on a loop using the following FFMPEG command:
ffmpeg -re -stream_loop -1 -i ./ffmpeg_c_test/small_bunny_1080p_60fps.mp4 -ac 2 -f rtsp -rtsp_transport tcp ...
1
vote
1
answer
837
views
Some Queries on HLS Independent Segments and AAC codec?
According to Apple HLS spec, #EXT-X-INDEPENDENT-SEGMENTS tag indicates that the segments are independent and can be decoded indepedently of each other. This tag can be specified either in master ...
0
votes
0
answers
183
views
Add audio track to MKV
I have several MKV files in several folders. I wanted to be able to add a Video track & Audio track that is supported by my TV.
It's ALL MKV files (but in multiple different folders)
Obviously I ...
0
votes
0
answers
1k
views
FFMPEG map 7.1 surround to 5.1 during transcode
I have a ProRes MOV whose audio contains 8 channels of audio in a 7.1 surround layout (L R C LFE Ls Rs Lt RT).
I am preparing an H.264 MP4 for a media player that only supports AAC, and does not ...
1
vote
1
answer
525
views
How is the AAC encoder priming delay handled in HLS?
As per Apple, in AAC encoding 2112 priming samples are added at the beginning of audio. When creating HLS stream with AAC audio, will these priming samples be added to the beginning of each HLS ...
1
vote
0
answers
200
views
How to convert short video clips to TS without sound "gaps" between the segments?
I am trying to convert a sequence of short video files from MP4 to TS using ffmpeg.
I get valid TS files, but when playing them in any HLS player, there is a noticeable short gap in the sound between ...
0
votes
0
answers
322
views
Decoding AAC to PCM with ffmpeg results in noise
I have a .mp4 file generated with ffmpeg as follows.
ffmpeg -y -i video_extended.mp4 -itsoffset 00:00:04.00 -i output5-1.wav -map 0:0 -map 1:0 -c:v copy -c:a aac -ac 6 -ar 48000 -b:a 128k -async 1 ...
1
vote
0
answers
101
views
Android MediaExtractor fails to add track for a valid AAC file
Using MediaExtractor with AAC-LC file obtained from MediaRecorder :
`val mediaExtractor = MediaExtractor()
mediaExtractor.setDataSource(filePath)
val trackCount = mediaExtractor....
2
votes
2
answers
1k
views
ffmpeg - output 5.1 AAC without lowpass on the LFE channel
I'm trying to encode 6 arbitrary mono audio streams into a single AAC 5.1 track in an mp4 container (here with test streams):
ffmpeg -f lavfi -i testsrc=duration=10:size=100x100:rate=30 -f lavfi -i ...
0
votes
1
answer
597
views
How can I produce a 9 channel audio file encoded using AAC from 9 (mono) input files?
I'd like to create an AAC encoded audio file with an MP4 container that has a large number of channels, ideally up to 64.
I'm running something like this (but with 9 files and a larger list at the ...
0
votes
1
answer
123
views
Audioworks from powershell:
I am using the audioworks module for powershell, and believe I am using it per the docs.
When I open the aac file in vlc, I see it is aac in Media properties.
But Audioworks gags on the file:
PS C:\...
0
votes
1
answer
221
views
Write a PCM encoded sounds with silence gaps using MediaCodec and MediaMuxer
I'm trying to make a simple "click track"-to-file renderer on Android. I have a PCM encoded data for a sound and some finite gap sequence as an input (represented as ClickTrack class). I ...
0
votes
1
answer
1k
views
Is the chromecast default receiver able to play HLS audio only streams?
I've been having a terrible time trying to play a HLS AAC audio only stream to a chromecast device. Supposedly the default receiver application handles HLS, and it seems to sort of do so, but the ...
1
vote
0
answers
323
views
Decode AAC from WebRTC stream in Firefox
Mozilla Firefox dose not support AAC audio decode (It relies on OS or External library). Is there any library to decode AAC from WebRTC stream? I am using Kinesis JS SDK.
1
vote
1
answer
635
views
Convert PCM to AAC while streaming
I'm looking to use Python to convert audio that's in PCM (G.711U to be specific) to AAC so it can be streamed using HLS. What options are there for doing this conversion in memory so the streaming can ...
0
votes
0
answers
1k
views
How to convert MP4 video to MPEG format including AAC audio?
I am trying to convert MP4 video to MPEG video that includes AAC audio.
ffmpeg -i Kung.Fu.Panda.mp4 -y -acodec aac -vcodec libx264 -f mpeg -movflags +faststart -max_muxing_queue_size 9999 -pix_fmt ...
3
votes
0
answers
662
views
Browser JS: How to extract aac audio data from a mp4 file?
Using browser JavaScript, I need to load mp4-files containing AAC audio data, and extract this audio data for later use.
There is an mdat block in the mp4 file that (to my understanding) holds the ...
0
votes
1
answer
2k
views
GStreamer claims avdec_aac is missing
I'm having trouble creating a gstreamer pipeline that can decode aac streams. I'm using decodebin as the decoder element to keep things as simple as possible. When I push in an aac stream I get the ...
-1
votes
1
answer
622
views
FFMpeg encoding using AAC gives 1509 bitrate
FFMpeg using the native AAC codec is always creating files with a 1509 kb/s bitrate.
If I use the switch -c:a aac the FFMpeg readout says it is encoding at the default 128, but when I analyse the ...
-1
votes
1
answer
469
views
Strange problem with reencoding AUDIO with FFMPEG from UDP Multicast MPEG TS stream
I want to re-encode the audio streams from mp2 to aac from one udp multicast MPEG TS Stream top another.
I have an udp multicast mpeg ts streram with 1 video, 3 audio, and 1 subtitles streams inside. ...
1
vote
0
answers
553
views
ffmpeg encode stereo AAC
I'm trying to compress raw stereo audio into AAC with the following command:
ffmpeg -f pulse
-ac 2
-b:a 128k
-acodec aac
-joint_stereo 1
-filter_complex ebur128=peak=true
-f flv rtmp:...
0
votes
0
answers
252
views
Read metadata in mp3 / aac using JS
I was looking for a way to read metadata from audio, but couldn't find anything (old links).
I would like to read the content of metadata from aac or, alternatively, from mp3, which is in the <...
0
votes
2
answers
206
views
Bash script for re-encode file if re-encoded file does not already exist for all in directory
I have a bash script that takes 1 argument (a file) and runs an ffmpeg command to create a duplicate of the file encoded with a different codec.
#!/bin/bash
ffmpeg -i "$1" -vn -acodec aac &...
0
votes
1
answer
545
views
IMFTransfomer::ProcessInput() and MF_E_TRANSFORM_NEED_MORE_INPUT
I have code that decodes AAC-encoded audio using IMFTransform. It works well for various test inputs. But I observed that in some cases IMFTransform::ProcessOutput() returns ...
1
vote
1
answer
2k
views
How to decode AAC network audio stream using ffmpeg
I implemented a network video player (like VLC) using ffmpeg. But it can not decode AAC audio stream received from a IP camera. It can decode other audio sterams like G711, G726 etc. I set the codec ...
1
vote
1
answer
990
views
Android - BufferOverflowException while encoding aac audio using mediacodec
I am trying to encode some audio streams with aac codec using Mediacodec. For this I'm using this implementation google cts ExtractDecodeEncodeMusTest.
For some aac files it throws ...
1
vote
1
answer
761
views
Android audio encoding fails
The following code is an attempt to use AAC on Android to encode a floating point sine tone signal into an mp4 file. However, it fails. Either I get a distorted tone or nothing at all. The length of ...
0
votes
1
answer
258
views
An issue with Apple devices playing mp4 containers that have HE-AAC audio coding
I'm not a pro in how to use codecs compared to other people I've seen, but I'm good enough to be able to compress videos decently.
I use HandBrake for the video but since HandBrake isn't very good ...
0
votes
1
answer
1k
views
ffmpeg, stereo + 5.1 surround, and YouTube's "Recommended upload encoding settings"
I'm trying to make sense of something YouTube has listed on their recommended upload encoding settings for the best possible quality. Here's the link: https://support.google.com/youtube/answer/1722171#...
0
votes
1
answer
4k
views
Flutter Audio Recorder Plugin records M4A as WAV file
When trying to extract a section of audio using FFMPEG I discovered that the .M4A file I thought was recorded by Flutter Audio Recorder was actually being recorded as a WAV file. Here's what FFMPEG ...
0
votes
1
answer
858
views
Why does FFMPEG incorrectly guess .M4A to be a WAV pcm_s16le file?
I'm trying to extract a section of audio with this command;
ffmpeg -ss 00:00:01 -i input.m4a -t 00:00:03 -c:a copy output.m4a
But FFMPEG incorrectly guesses the .M4A to be a WAV pcm_s16le file so ...
2
votes
1
answer
1k
views
"At least one output file must be specified" error when using concat protocol
I've been attempting to concatenate all the .aac files in a directory to make one output .aac. Here is the command I'm using:
ffmpeg -i concat:1.aac|2.aac|3.aac -c copy output.aac
When I try to ...