AWS Thinkbox Discussion Forums

Encoding Audio formats

What audio formats/codecs does Draft support? I’d like to encode a H.264 with AAC audio. Is this possible? If so what other audio parameters can be set?

Dave.

Currently, Draft does not do any audio encoding. Instead, it simply copies the audio stream from an audio or video file. You can specify the audio source file by using Draft.VideoEncoder’s audioFilename parameter. Also, you can use the audioDelay parameter to apply a delay to the audio (measured in frames).

An .aac audio file should work fine in a .mov container, for example: encoder = Draft.VideoEncoder( "//path/to/video/save.mov", audioFilename='//path/to/audio/load.aac' )

Will audio encoding be included at some point? It’s be a really nice feature as we always have to include a scratch audio track with the encodes we make.

Dave.

What format do you use for your audio file now? Would it be possible for you to use it directly? You can, for example, specify a .wav file using the audioFilename parameter.

I need to encode the audio to AAC with a specific bitrate. As you can’t encode a WAV file with the AAC codec (that I’m aware of) how would I do this? Can Draft accept other audio file formats like m4a? This might work.

The final file I need to encode is a H.264 at a specific bitrate with AAC audio at a specific bitarte.

I haven’t played with the audio feature yet, but, given Paul’s answer above, I suspect that it will work.

Specifying a pre-encoded audio file is fine and that would work, but can I specify an AAC audio file? The docs only specify a WAV and AIF audio file. An M4A would be nice. I’ll try it on Tuesday to see.

I’ll check with Paul on Monday.

Yes, you should be able to specify an M4A AAC audio file. Please let us know if you encounter any problems.

OK, I just tried it and that seems to work well. Problem solved!!

Cheers,
Dave.

Great, thank you for letting us know!

Privacy | Site terms | Cookie preferences