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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.