-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no issue but how exactly i can use this lab. #560
Comments
https://github.com/PHP-FFMpeg/PHP-FFMpeg#manipulate-media I would have expected that you, at least, read the current docs. |
this error occurs: ( ! ) Fatal error: Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutableNotFoundException' with message 'Executable not found, proposed : avprobe, ffprobe' in C:\wamp64\www\test\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Driver\FFProbeDriver.php on line 501 | 0.0016 | 241096 | {main}( ) | ...\index.php:0 1 | 0.0016 | 241096 | {main}( ) | ...\index.php:0 |
what does it means |
i have installed lab using composer |
You need to install |
ok. but how ? |
i have installed ffmpeg using cli.but same issue occurs. |
is it in your PATH? |
yes |
what happens when you execute |
i m able to execute ffmpeg any where in my pc using cli but if i want to execute this using php so error ouccers |
Can you ensure PHP has proper permission and may open new processes? |
which permission can you plz explain? |
now after some changes i am now able to take snaps of video but this error happning Fatal error: Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutionFailureException' with message 'ffmpeg failed to execute command C:\wamp64\www\imgcomptest\ffmpeg\bin\ffmpeg.EXE -y -i rj.mp4 -vcodec libx264 -acodec libfaac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 256k -ac 2 -pass 1 -passlogfile "C:\WINDOWS\TEMP\ffmpeg-passes5b6962c4bdaf07tcpp/pass-5b6962c4be2a8" video.mp4' in C:\wamp64\www\test\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php on line 106 Time Memory Function Location1 0.0016 240968 {main}( ) ...\index.php:0 Time Memory Function Location1 0.0016 240968 {main}( ) ...\index.php:0 |
`<?php require 'vendor/autoload.php'; $ffmpeg = FFMpeg\FFMpeg::create();
$format->on('progress', function ($video, $format, $percentage) { $format $video->save($format, 'video.mp4'); |
` $currentPath = $_FILES['video']['tmp_name'];
if(exec("ffmpeg -i tareaditi.mp4 -b 1500k -minrate 1000k -maxrate 1100k -bufsize 1835k aa112.mp4"))
{
echo "success";
}
else{
echo "fail";
}
} in this way its working |
Could you send us the output of this command? |
|
You need to run the full command. |
|
Try using This issue will be resolved with 1.0. |
ok i will try.thanks for response |
thanks its working... |
That's something you need to try out yourself ;) Please make sure that your hosting provider allows video encoding on shared-hosting machines ;) |
okkkk.Thanks you help me lots on this. |
to get rid of PATH issue insert FFMPEG , PHP, NGINX, APACHE,WAMP bin path into PATH list so no issue will return but after insert path into env you have to restart cmd to apply new changes xD |
can you plz tell me how to reduce framerate? |
as i found that reducing video size is not only thing i needed i also needed to reduce video framerate |
Please read the README. Although the documentation is rather bad, it is there and describes exactly what you need! It is not possible for me to provide 1:1 support. Thanks! |
i got this code but how to implement this ? $video i m stucked here plz help me out there? |
Please learn some basic PHP. lol. |
ok..,thanks |
hi
how to use this lab. as i want to reduce video bit rate so the video uploaded by user will to loaded fastly.
The text was updated successfully, but these errors were encountered: