Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: "Lossless" AAC sample rate adjust? (Read 7159 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

"Lossless" AAC sample rate adjust?

I have a camera that takes videos at high FPS, and I can later use ffmpeg to slow them down for visual effect.  For the video portion, it is possible to losslessly alter the frame rate - no transcoding necessary.  Change one number from 120 to 24 and it plays exactly the same, but Slower.

Now, for audio.  What I want is to slow / down-pitch the sound at the same rate to match.  This is doable in .wav format (just tamper with the header).  The camera shoots in AAC though.  A transcode to WAV is technically "lossless", but it's also going to blow up the filesize.  I can also re-encode back to AAC, but at a quality loss.

So, my question: Is it possible to "globally" modify some AAC header and alter its playback rate, without re-encoding?  The plan would be to extract the AAC stream, twidle a couple bits to change the playback rate, and then re-embed it.  Multimedia.cx seems to indicate this is possible, but are there other considerations - e.g. tables that only work at some frequencies, or LZ compression that may refer back to this byte position, or whatever?