

NOTE (just in case this is relevant): This is currently being run on a Windows host using the ffmpeg executable, but we will soon be moving to a Linux host.

However, even though the processing completed without error, I still got no audio when played in the HTML5 player. The only codec that didn't give me some sort of error was 'libvo_aacenc'. With this I got the following error: "Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height". I tried the "Native AAC" codec by simply using the following options:įfmpeg2 -i "inputfile" -vcodec libx264 -profile:v baseline -level 3 -acodec aac "outputfile" 2>&1' Further reading led me to find that 'libfaac' was no longer included with ffmpeg builds. I tried 'libfaac' as many online posts suggested, but this resulted in an 'unknown codec' error. I realized this means I have to force re-encoding of the audio stream, so I tried a few things but had no success with any. Since only some of the files didn't play audio while some did, this led me to believe that the audio track was being copied directly during the processing and if the original file didn't have audio supported by HTML5, then it output file would have the same result.

I double-checked my ffmpeg command line and realized I didn't specify any audio options:įfmpeg2 -i "inputfile" -vcodec libx264 -profile:v baseline -level 3 "outputfile" 2>&1'

I've downloaded and checked the processed files and they both still have sound, so the issue seems to be related to the HTML5 player rather than loss of audio during processing. I have recently discovered that some videos that I upload do not play any sound when using the HTML5 player in Firefox/Chrome, but do have sound when using the fallback Flash player in IE. After upload, they are converted to MP4 using ffmpeg and then ffmpeg2theora converts that to OGV. I have a media site where I can upload video files.
