Skip to content

Audio transcoding

To transcode audio from AC-3 to AAC while keeping the video stream unchanged, you can use the ffmpeg profile “Transcode audio to AAC”:
https://github.com/cesbo/senta-streamer-profiles/blob/master/profiles/audio-to-acc.profile

First, you need to add a profile for audio transcoding.

  1. Go to the Profiles tab.
  2. Click Add Profile.
  3. In the window that appears, paste the following command and save:
Terminal window
ffmpeg -re -i ${i} \
-c:v copy \
-map 0:a -c:a aac -b:a 128k \
-f mpegts ${o}

Where:

  • ${i} - input stream/file
  • ${o} - output stream/file
  • -c:v copy - copy video without re-encoding
  • -map 0:a - map all audio tracks
  • -c:a aac - transcode audio to AAC codec
  • -b:a 128k - set audio bitrate to 128 kbps
  1. Go to the Streams section.
  2. Click the Add Stream button.
  3. Set the input and output stream variables.
  4. Save and start the stream.