[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 7cb80c38314bf940.jpg (29 KB, 619x453)
29 KB
29 KB JPG
I'm creating a website where u can upload videos.
Need to create the thumbnail of uploaded video.
So I installed ffmpeg on my Ubuntu server and tried different php tutorial scripts to create the thumb but none of them return any thumbnail file. It doesnt get generated no matter what kinda script I use. Here's one for instance:


>$ffmpeg = "usr/bin/ffmpeg";
>$img_name = "var/www/html/1.jpg";
> $file_tmp = "var/www/html//test.mp4";
>$img_size = "120x90";
> $getimgsec = 5;
>$cmd = "$ffmpeg -i $file_tmp -an -ss $getimgsec -s $img_size $img_name";
> if (shell_exec($cmd)) {
>echo "ok"; }
>>
OP here.

My folder wasnt 777 writtable

every. fucking .t ime



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.