Nginx and Codeigniter

tambahkan di
/etc/nginx/sites-enabled/default

location / {
try_files $uri $uri/ /index.php;
}

edit di
/system/application/config/config.php

$config['uri_protocol'] = "REQUEST_URI";

$config['index_page'] = "";

Iklan

Ubah Resolusi Video

Terkadang mengubah file dari “.mkv” menjadi “.avi” itu hasil filenya menjadi sangat besar. Maka dengan menggunakan ffmpeg kita dapat mengubah resolusi video tanpa mengurani kualitas dari video tersebut.

# apt-get install ffmpeg

# ffmpeg -i input.avi -ab 56 -ar 22050 -b 500 -r 20 -s 640×480 output.avi

=======
ffmpeg : call the program
-i : input file
-ab : sets audio bitrate of the output file, in kbit/s
-ar : sets audio sampling rate of the output file, in Hz
-r : sets frame rate of the output file, in Hz (this value will effect the final size the most, so play with it to get the best result for yourself)
-s : sets resolution with your video
bigfish1.avi : output file name