I need to keep Video High quality when uploading to phpfox

0 votes
Hello friends,

I enabled video upload in phpfox, but I got this issue: Video is low quality and grainy.

I think that is on FFmpeg settings or Mencoder settings.
Do you know how to configure ffmpeg for best quality?

Thank you!
asked May 31, 2015 by vinhvinh (570 points)

1 Answer

+1 vote
Best answer

Yes, the quality depends on how FFMpeg has been configured and which codecs they are using.

We recommend these configurations for Video settings:

Requires FFMPEG, Mencoder, FLVTool2.

Params for FFMPEG:
-qscale 3 -i {source} -vcodec h264 -b 4000k -s {width}x{height} -ar 44100 {destination}

Params for Mencoder:
{source} -o {destination} -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale={width}:{height}

Fallback Params for Mencoder:
{source} -o {destination} -of lavf -oac pcm -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf scale={width}:{height}

It work for all file formats: mp4, mov, mkv, 3gp...

If you need more help on your server or phpfox configurations, You can purchase our Web Customize service

answered May 31, 2015 by super (900 points)
selected Aug 7, 2015 by super