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.)
1 Answer
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
-
1You don't need
-strict experimental
to use the encoderaac
unless yourffmpeg
is outdated.– lloganMay 27, 2017 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. May 27, 2017 at 5:57