Puppy Linux Blog

About





This Blog:
PRITLOG is an extremely simple, small and powerful blog system. 
Just drop Pritlog into your server and it starts running. No separate installation is required. The basic idea is derived from a similar app called PPLOG.

Stats

Users Online: 1
Hits: 115703

webcam screenshots

Using ffmpeg with webcam

take one image per second
-r 1
to take images for 3 seconds
-t 3

so this will give you 3 jpegs in your root directory at vga resolution
Code:

ffmpeg -y -r 1 -t 3 -f video4linux2 -s vga -i /dev/video0 ~/camshot%d.jpeg


similarly here is a cheap way to capture webcam video:

rxvt +sb -bg orange -geometry 80x2 -e ffmpeg -y -f oss -i /dev/audio -f video4linux2 -s qvga -i /dev/video0 ~/a.avi
---------------------------------------

Using mplayer with webcam

changing -frames to different values changes number of screenshots.

mplayer -fps 1 tv:// -tv driver=v4l2:device=/dev/video0:width=320:height=240:outfmt=rgb24 -frames 5 -vo jpeg



Author: admin -  Date: 18 Dec 2011 04:25
Category: ffmpeg -  Visits: 2208

4 Comments - Edit - Delete



Telnet and email

Open a connection from your computer to your mail server.
Code:
telnet mail.domain.ext 110

You should receive a reply like:
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
+OK ready

Then log in:
Code:
USER username

This should give you:
+OK Password required for userName.

Now give your password:
Code:
PASS password

Should yield:
+OK userName has ? visible messages (? hidden) in ????? octets.

To see a list of your emails awaiting collection use the LIST command, this will also show you the id number of your messages (e.g. 1 or 2 etc.)

To view the contents of an email type RETR + the id number of the message (e.g RETR 1).

To delete a message use DELE + the id number of the message (e.g DELE 1).

To leave your mailbox and close the connection use QUIT

Author: admin -  Date: 18 Dec 2011 04:21
Category: email -  Visits: 3187

2 Comments - Edit - Delete



finding what ports are used

Use the following to find out what ports are being used on linux computer

netstat -anp --ip

Author: admin -  Date: 18 Dec 2011 04:15
Category: netstat -  Visits: 1595

3 Comments - Edit - Delete



Convert .ogg to .mp3

for x in *.ogg; do ffmpeg -i "$x" -ab 128 "`basename "$x" .ogg`.mp3"; done

This does an entire dir at once. You must be inside the dir you want to convert. Substitute whatever you want your target bitrate to be up where 128 is.

Author: admin -  Date: 18 Dec 2011 04:13
Category: ffmpeg -  Visits: 1154

3 Comments - Edit - Delete



mplayer and recording

To record using mplayer, use the following format:

mplayer -dumpstream -dumpfile <filename> <url>

Author: admin -  Date: 18 Dec 2011 04:07
Category: mplayer -  Visits: 1247

2 Comments - Edit - Delete



Pages: [1] [2] [3]