2
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.
EDIT:
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 – 2015-10-06T14:44:26.740
What is your ffmpeg command and complete console output? How are you playing the files? – llogan – 2015-10-06T20:46:48.130
Try adding
-movflags +faststartto the command in your question. – llogan – 2015-10-07T17:00:20.133@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 – 2015-10-08T05:32:35.253
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 – 2015-10-09T16:45:43.567