0

I am trying to encode a file that is uploaded to our server using ffmpeg.

However, when we play the video through any flash based media player (FlowPlayer, JW Player) it plays the audio but no video. When we play it on a desktop application (VLC, QT, WMP) - it works fine.

Here is my encoding command:

/usr/local/bin/ffmpeg -y -i {$in} -vcodec libx264 -acodec libfaac -ab 128k -ac 2 -b 300 -threads 4 -flags +loop -cmp +chroma -partitions 0 -subq 1 -trellis 0 -refs 1 -coder 0 -bufsize 10M -qcomp 0.6 -qmax 22 -qdiff 4 -level 30 {$out}

{$in} is the input file, {$out} is the output file.

Our ffmpeg version is N-41485-g1321e6e-syslint

I am still somewhat new to the video encoding scene, can anyone see anything with my encode string that might be a giveaway?

Barry Chapman
  • 6,690
  • 3
  • 36
  • 64
  • What kind of container are you storing your file in? Also, what version of Flash are you using on your client? – boonezilla Aug 11 '12 at 02:46
  • MP4 is the container type. My flash version is 11.3 i believe. It happens on all computers we test it on though, its not my version of flash.. – Barry Chapman Aug 11 '12 at 02:47
  • It's been a while since I've dealt with this, but have you tried changing the extension of your mp4 to flv? – boonezilla Aug 11 '12 at 03:07

0 Answers0