Easier than you might think.
1 |
mencoder -sub movie_subtitle.srt -ovc xvid -xvidencopts bitrate=-700000 -oac copy -o new.movie.name.avi movie.avi |
Easier than you might think.
1 |
mencoder -sub movie_subtitle.srt -ovc xvid -xvidencopts bitrate=-700000 -oac copy -o new.movie.name.avi movie.avi |
A oneliner with Perl does the trick:
1 |
perl -le 'print crypt("password", "salt")' |
The output you get should be placed in a file called htpasswd. The syntax is like so:
1 |
UserName:EncryptedPassword:YourComment |
Ever wondered how you can password protect a folder and the underlying content with nginx the same way Apache does? Pretty simple.
First create a htpass-file like so:
1 |
htpasswd -bc htpass NewUser NewPassword |
Edit your site’s configuration file by adding the following lines of code inside the server-block:
1 2 3 4 |
location ^~ /secret { auth_basic "Restricted"; auth_basic_user_file /etc/nginx/htpass; } |
And your folder should be password protected. :)
This is a oneliner to convert an avi-file to the correct dimensions of a Nokia E71. The screen is small, but sure beats to buy an iTouch if your cell already can play movies for you. :)
1 |
ffmpeg -y -i input.avi -acodec libfaac -ab 72k -s 320x176 -aspect 16:9 -vcodec libx264 -b 300k -qcomp 0.6 -r 25 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 7 -refs 6 -g 250 -keyint_min 25 -rc_eq 'blurCplx^(1-qComp)' -sc_threshold 40 -me_range 12 -i_qfactor 0.71 -directpred 3 output.mp4 |
First install the program called bchunk:
1 |
yum -y install bchunk |
Now we convert .bin/.cue to .iso:
1 |
bchunk foo.bin foo.cue foo.iso |
And there you go.