Mediatomb and UPnP
Puppy linux and Mediatomb Media Server for DLNA and UPnPThe following is for Mediatomb Version 12
I usually create .pets for easy removal if unwanted
autoconf > 2.6 is required
http://ftp.gnu.org/gnu/autoconf/
untar
./configure
make
make install DESTDIR=/root/test/autoconf-2.65
Download Mediatomb:
svn co http://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb mediatomb
cd to mediatomb directory and:
autoreconf -i
./configure
make
make install DESTDIR=/root/test/mediatomb
Install mediatomb.pet
make sure /root/.mediatomb/config.xml points to /usr/local/share/mediashare not /usr/share/mediatomb
in console:
mediatomb
it should tell you which port it's running on.
access with localhost:[port]/ in your browser
For great trancoding tips, see: http://mediatomb.cc/dokuwiki/transcoding:transcoding
mp3's are playing, video is choppy
Category: mediatomb - Visits: 333
2 Comments - Edit - Delete
webcam screenshots
Using ffmpeg with webcamtake 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
Category: ffmpeg - Visits: 186
No 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
Category: email - Visits: 136
No Comments - Edit - Delete
finding what ports are used
Use the following to find out what ports are being used on linux computernetstat -anp --ip
Category: netstat - Visits: 132
1 Comments - Edit - Delete
Convert .ogg to .mp3
for x in *.ogg; do ffmpeg -i "$x" -ab 128 "`basename "$x" .ogg`.mp3"; doneThis 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.
Category: ffmpeg - Visits: 120
No Comments - Edit - Delete