Jump to content

h264 code for video conversion script


nia1415

Recommended Posts

  • 1 month later...

Guys i want to put h264 code in my video conversion script help me to sort it out

Guys i need help on  this code

$cmd = "ffmpeg -i $fname_old -acodec libfaac -ab ".$abr."k -ar $afreq -s ".$sizeX."x".$sizeY." -vcodec x264 -b:v ".$vbr."k -flags +loop -subq 5 -trellis 1 -bf 1 -coder 1 -sc_threshold 40 -qcomp 0.6 -qmax 51 -qdiff 4 $fname_new";

 

        if ($ext == 'mp3') {

            $cmd = "ffmpeg -i $fname_old -vn -acodec libmp3lame $fname_new";

somehows this code is not working for me can anybody fix this for me

well my problem is i am using this code in ffmpeg conversion script for convert videos useing h264 codecs but the problem is that videos are not converting and the main problem is this command line which i posted here so i want your help to fix error in this command line so i can use it for converting videos

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.