I have several video and audio files on my server that I wish to stream. I have converted all video files to mp4 and audio files to aac.

Now I am streaming both type of files but it seems audio files are taking longer, much longer, to begin playing than videos. Sometimes I can see it buffering the entire file before it starts playing it.

I am not sure if it has any effect but for video files I use the -movflags faststart option and it gets the job done.

I was wondering if there is something similar to be done for audio files to make them start playing faster.


here is how I run the command to convert the files:

ffmpeg -i OriginalPath.wma -strict experimental -c:a aac -b:a 128k -n SomePath.m4a

And I use the HTML5 web player to play them from my server.

  • What actual files do you export your aac tracks to ? .aac files ? If so, I'd recommend .m4a (the same as mp4 but with a different name often associated with audio-only). – Ely Oct 6 '15 at 14:44
  • What is your ffmpeg command and complete console output? How are you playing the files? – llogan Oct 6 '15 at 20:46
  • Try adding -movflags +faststart to the command in your question. – llogan Oct 7 '15 at 17:00
  • @LordNeckbeard that seems to work. I was under the impression that this was only for video files. One question though, why the + sign before faststart? – Zaid Amir Oct 8 '15 at 5:32
  • The + should add it to any default flags (assuming if there are any). Without it I believe it will clear everything but faststart, but I haven't actually looked into this or tested it. – llogan Oct 9 '15 at 16:45

You can still use -movflags +faststart with MP4 & M4A outputs that just contain audio.

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.