AA.
Hi, Dear, I am new in php . I am currently working on ffmpeg project.
I Have make encode and watermark videos and they are working fine.I use the code:
<?php
$ffmpegpath="ffmpeg\\ffmpeg";
$input_file="b.avi";
$output_file="dewanfg.flv";
$font_path="Fonts\\arial.ttf/20";
$x_axis="W*(-0.20+1.0*tan(N/100))+w/100";
$y_axis="H*(0.8+0*cos(N/1*PI))";
$output_width = "320";
$output_height = "240";
$ab = "32";
$r = "23";
$b="50000";
$ar="22050";
$water="Muhammadasimdewan";
$color_r="210";
$color_g="155";
$color_b="200";
$space=" asim";
$font_family="arial.ttf/20";
$text_to_show="Pakistanto";
$vhook_path='"'."vhook\\imlib2.dll -R ".$color_r." -G ".$color_g." -B ".$color_b." -F ".$font_path." -x ".$x_axis." -y ".$y_axis." -t ".$text_to_show.'"';
// ENCODING
exec($ffmpegpath." -i ".$input_file." -r ".$r." -ab ".$ab." -ar ".$ar." -b ".$b." -f flv -s ".$output_width."x".$output_height." ".$output_file);
// WORKING WATERMARK COMMAND FOR FLV TO FLV AND MPEG TO FLV watermark text:
exec($ffmpegpath." -i ".$input_file." -vhook ".$vhook_path." ".$output_file);
?>
Encoding and watermarking is done very well as i wants.
But I want to get the file informatoin(file size,bitrate,time,video bitrate, audio bitrate...) of the .avi files using ffmpeg and exec().
I am not sure either ffmpeg is properly installed on my computer or not.
I am using windows XP, php5, WAMP2.0a
Plz guide me through this problem.
Thnx a lot in advance.
KH.
[ Mod Edit - bpat1434 ] Please don't scream (using all caps). Also use [php] tags when posting php code.