Category Archives: Sh*ts

exec() not executing – command in two diferent lines

f*ck!

i’v been struggling with avconv, exec, chown and all that sh*ts this last two days!
’cause i was trying to preform a  exec to avconv to create some screencaps and the command was  in two lines…

echo $avconScreenScroll = 'avconv -i '.$destFolder.'/' . $dataVideos['videos'][$key]['videoFilename'] . '
 -vsync 1 -s 150x100 -qscale 1 -r 1 -an -y ' . $screencapsDir . '/scroll/img%03d.jpg';
 exec($avconScreenScroll);

 

Minimize the CPU usage of a process?

To limit CPU usage of the process called avconv to 70%, enter:

cpulimit -e avconv -l 30

To limit CPU usage of the process to 70% by using its PID, enter:

cpulimit -p 6969 -l 70

If the process isn’t running cpulimit will wait for it.

Process using 100% of the CPU

3028 pjrfiguei 20 0 131M 13948 4404 R 100. 1.4 0:27.49 avconv -i video.wmv -vsync 1 -s 300x200 -qscale 1 -r 2 -an -y img%05d.jpg -benchmark

Process using 30% of the CPU

3028 pjrfiguei 20 0 131M 13948 4404 T 30.0 1.4 2:24.25 avconv -i video.wmv -vsync 1 -s 300x200 -qscale 1 -r 2 -an -y img%05d.jpg -benchmark

nginx

 

Nginx

Nginx  develops and maintains NGINX open source distribution, and offers commercial subscriptions and professional services for NGINX. NGINX supports more than 95 mln of web-sites ll over the world.NGINX project started in 2002 and grew dynamically over the past 10 years thanks to the vision of Igor Sysoev, and the enthusiasm and support of its loyal community of users and developers. It is now the second most popular open source web server worldwide, according to the latest Netcraft survey.

NGINX is used by over 20% of the top 100,000 busiest sites, including Netflix, Facebook, Zappos, Groupon, LivingSocial, Hulu, TechCrunch, Dropbox and WordPress, as well as by almost 13% of the entire Internet web sites population

Development environments made easy.

 

CONFIGURE

Create a single file for your project to describe the type of machine you want, the software that needs to be installed, and the way you want to access the machine. Store this file with your project code.

WORK

Run a single command — “vagrant up” — and sit back as Vagrant puts together your complete development environment. Say goodbye to the “works on my machine” excuse as Vagrant creates identical development environments for everyone on your team.

http://www.vagrantup.com/

Some clients of vagrantup or hashicorp

customer_bbccustomer_disquscustomer_edgecastcustomer_expediacustomer_expediacustomer_edgecastcustomer_disquscustomer_bbc

Your own dropbox or similar?

Does your team, company, family want your own dropbox, mega.co.uk, meocloud.pt or similar running on your own infrastructure? afraid of NSA, CIA or KGB spying your data?

 

ownCloud gives you universal access to your files through a web interface or WebDAV. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Installation has minimal server requirements, doesn’t need special permissions and is quick. ownCloud is extendable via a simple but powerful API for applications and plugins.
http://owncloud.org/

 

SparkleShare creates a special folder on your computer. You can add remotely hosted folders (or “projects”) to this folder. These projects will be automatically kept in sync with both the host and all of your peers when someone adds, removes or edits a file.
http://sparkleshare.org/

 

Unknown encoder ‘libx264’

On my stack, on digitalocean, i have Ubuntu (13, and i’m deploying a small work that need avconv (former ffmpeg).

I need to convert from WMV to MP4 files and i was getting Unknown encoder ‘libx264’ error.

This is how i’v added video encoder libx264 to my avcodec.

apt-get update
apt-get install libavcodec-extra-53

Tested on
Ubuntu 13.04 (GNU/Linux 3.8.0-19-generic x86_64)
Ubuntu 12.04.3 LTS (GNU/Linux 3.8.0-29-generic x86_64)

Tried to share it!
http://stackoverflow.com/questions/11234662/how-to-compile-avconv-with-libx264-on-ubuntu-12-04/18835133#18835133

ssd-virtual-servers-banner-2-728x90