I am trying to transcode an audio of video. I have a live stream(video-h264, audio-mp2). I need to convert an audio to aac codec and stream it. I don't want to waste a lot of resource for video processing. How can I do it with ffmpeg? (I have already tried with copy option.)


This is what I use to convert mkv's so that they work on my Chromecast with AAC audio:

ffmpeg -i $1 -vcodec copy -c:a aac -strict experimental output-transcoded.mkv
  • 1
    You don't need -strict experimental to use the encoder aac unless your ffmpeg is outdated. – llogan May 27 '17 at 3:45
  • OK. Cheers. I will remove that part and see if it still works. I actually copied it from another post somewhere a while ago. – bitofagoob May 27 '17 at 5:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.