L.V.Gandhi's Pages

About Us
Linux
Other Links

Linux Multimedia Hints

Useful Sites
How to burn mp3 songs to audio CDs?
What are the linux TV applications?
Programs to burn VCDs
Ripping VCDs
Linux VCD Players
How to find X display info?
PC-to-PC phone call
How to record sound in Linux?
How to get time told to you by PC?
How to do Voice Chat over the Internet
Netmeeting In Linux
CD make info
write iso images to Hard disk and back to CD
To capture images from xine/xawtv
CD labelling
Flash player
Finding user of a device


Useful Sites

MPlayer
pluggies
mpegtv
Scanners
Video 4 Linux
Xmovie
videoconferencing
BTTV
ZZplayer
SoundTracker
http://tuxpower.f2g.net/mencoder.php which gives a good starter as to how mencoder works.
Large collection of hard to find codecs and the likes - for Win32 and OTHERS...(just to copy under /usr/lib/win32)
http://fileforum.betanews.com/detail.php3?fid=1030187433

Top

How to burn mp3 songs to audio CDs?

Install the xmms-diskwriter rpm and when you start xmms, choose it under 'Options | Preferences | Output plugin. Use 'Congfigure' to enter a directory to write the .wav's to. (Don't forget to switch back to a sound plugin when you're done.) Then when you run xmms, turn off 'shuffle' and 'repeat' under Preferences, load the directory where the mp3's are and select all, or just the ones you want, and hit , or click the play button. xmms will then convert them to .wav's and put 'em where you told it to. FWIW, I always send the .wav's to /wav in my home dir. I'd also suggest you equalize the 'wav's with normalize. ( normalize-0.7.3-1mdk ) Then in the dir where the 'wav's are 'normalize -m *' will process all the .wav's and equalize the volume levels. Then I load the /wav directory and burn them all to a CD using Gcombust.

I'd also strongly recommend you upgrade 'cdrecord' and 'mkisofs' which are the two binaries that all the above GUI's use to burn to CD. Keep in mind too that CD burning is still more of an art than a science. Your final results are gonna be very dependent on the quality of your hardware and the media (CD-r's) you use.

Adopted from Tom Brinkman in mandrake newbie list
To convert mp3 to wav, one can use the following command also.
# mpg123 -w

Top

What are the linux TV applications?

Xaw TV
Zapping

Top

Programs to burn VCDs

http://www.gnu.org/software/vcdimager/
http://www.pxh.de/fs/svcd/

Top

Ripping VCDs

Checkout http://vcdmaster.sourceforge.net/resources/ for available softwares for ripping VCD.

Top

Linux VCD Players

MPlayer
xine
xmms with smpeg-xmms : to play vcd in xmms, in open location menu type
vcd:/dev/cdrom:4 where 4 is track number

Top

How to find X display info?

use the command
xdpyinfo |less

Top

PC-to-PC phone call

Try Speak Freely http://www.fourmilab.ch/ now in Release 7.2 includes the tkspeakfree-0.1 Tcl/Tk GUI front-end

Top

How to record sound in Linux?

If you want to record through mic when /dev/dsp is not in use, you can use grecord.
But it will give error when you play a CD or watch TV. Saying device is busy. If you have installed sox package you can use rec command for recording. I have a script for recording as follows.
#!/bin/bash
rec -d /dev/dsp -c 2 -v 5 --format=s --size=w -r 44100 song$1.wav

I have named it songrec. When a song comes in xawtv I use
$songrec 1.
As soon song is over, I press ctrl+c. I get song1.wav. However it is better to see the recording port in a mixer whether it is mike or line. If mic is enabled, and if you speak during recording you will get your voice also.

Top

How to get time told to you by PC?

Get a program called saytime from any source like rpmfind.net or freashmeat and install. To get it told periodically say every 15 minutes use crontab
See How system can do time dependent repeat jobs for you? in system hints.
It gives info using crontab.

Top

How to do Voice Chat over the Internet

Speak Freely is a peer-to-peer voice transmission and receiving program for Linux/Unix and Windows. While Speak Freely has advanced features like answering machine, conference mode and busy signals, this document discusses only the basic voice chat functionality using a Linux system.
In order to use Speak Freely you need to do the following:
1. Test your sound hardware 2. Download the software 3. Test with an echo server 4. Chat with your friend/relative/business associate/etc.
1. Test your sound hardware
You already have your speakers going, don't you? If not, do that first. Now plug your mike into the appropriate socket on your sound card (usually the 3rd or the 4th socket on the card). Test your mike by giving the following commands:
rec junk.au
[say something into the mike and then press ^C]
play rec.au
You should hear a weird voice (yours :-) repeating what you'd said. If you don't, make sure that your speakers are on, the volume setting is high enough and that the mike is enabled as the input device (in a mixer like gmix, select the Rec button under the mike panel, and put the gain control slider up to maximum). Make sure that the Mute button under the mike is NOT checked.
2. Download and install the software
I downloaded Speak Freely source code from the URL given under for Speak Freely for Unix. I compiled it with the following commands:

tar zxof speak_freely-7.2.tar.gz
cd speak_freely-7.2
edit Makefile and change the following in the Linux section:
CCFLAGS = -DAUDIO_BLOCKING -DLINUX -DM_LITTLE_ENDIAN -DNEEDED_LINEAR
CC = gcc -O3 # for GNU's gcc compiler
LFLAGS = -lncurses -lm
make
make install
It may also be a good idea to download and install xspeakfree, the Tcl/Tk front-end to Speak Freely. I downloaded xspeakfree-0.8.2.tar.gz and installed it with:
sh install.sh /usr/local
This will install the software in /usr/local/{bin,lib}.
Installing the Windows version is trivial: download the installer executable from the URL given below and run it. I tried it in Wine and it ran first shot.
If you have problems with compiling or installing the software, I'll be glad to do it for you for a small fee. [The usual small fee is half your kingdom and your daughter's hand in marriage.]
3. Test with an echo server
Load up xspeakfree and right-click on echo.fourmilab.ch in the Host List. Select Connect to Host from the menu. Now select Push Button 2 To Talk from the microphone checkboxes on top.
The echo server should send anything you send it back after 10 seconds. First you can try sending the built-in ring file. Right-click on the echo server host name and select Send ring from the menu. You should get a ring sound back after 10 seconds. Now click the middle mouse button anywhere in the window and speak something into the microphone. That should play on your speaker too after 10 seconds.
4. Chat
Now that you have got your sound hardware going and installed and tested the software, this part is easy. Close any open connections and select New from the Connection menu in xspeakfree. Enter the IP address or domain name of the host your friend is on and press Enter -- voila! you are online with your friend.
Of couse, your friend also has to do the complementary operation at her end: connect to your computer. If you don't know your friends IP or if your friend is a Windows weenie and can't figure out her IP address, give her your IP address (ifconfig), let her connect to your computer and send some sound to you. Your session status window will then show you her IP/domain address, and you can connect to that.
Press Mouse-button-2 whenever you want to talk. Receiving is asynchronous.
Courtesy Raju Mathur site http://kandalaya.org/

Top

Netmeeting In Linux

GnomeMeeting is a great looking video conferencing package that includes complete GUI configuration, and lots of personalization settings like auto-answering of incoming calls and a "Do Not Disturb" mode. GnomeMeeting home page is http://www.gnomemeeting.org/

Top

CD make info
one can get CD make info by
cdrecord -atip dev=x,y,z
where x,y,z is device info which can be obtained by cdrecord --scanbus
ATIP info from disk:
  Indicated writing power: 4
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type A, low Beta category (A-) (2)
  ATIP start of lead in:  -12508 (97:15/17)
  ATIP start of lead out: 359848 (79:59/73)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 22
Manufacturer: Ritek Co.
                       
Top

Write iso images to Hard disk and back to CD
mkisofs -o /path/abc.iso -J -R -A -V -v /mnt/cdrom
To write to blank cd back(use your settings for dev and speed)

If you want to test an ISO file before you burn it, you can mount it so you can navigate it and see how mkisofs worked out...
mount -t iso9660 -o loop /path/abc.iso /mnt/disk
and then navigate to /mnt/disk and see for yourself if the result is as expected.

cdrecord -v speed=8 dev=0,1,0 -pad -data -eject -ignsize abc.iso
one has to add -multi after -data for multiple session recording.
Now to do a add a session to that cd you need to get the
start and end sector of the previous session on the cd like this:

$ cdrecord dev=0,0,0 -msinfo

this will return something like 0,51635
this gives the start and end point of the previous session.

first create the iso image to append to cd like this:

$ mkisofs -o image2.iso -R -J -C 0,51635 -M 0,0,0 

with the -C switch you enter the numbers return by the -msinfo option of
cdrecord
the -M switch tells mkisofs to merge this image with the image found on dev
0,0,0

and then you ready to burn that image to the cd like this:

$ cdrecord -v dev=0,0,0 speed=4 -data -multi image2.iso
                                                       
Top

To capture images from xine/xawtv

To capture xine and xawtv images, one need to start those packages with xv disabled; from a console one need to type: Xine: xine -V xshm Xawtv: xawtv -noxv Then capture with "import" screenshots with xine and/or xawtv runing;

Top

CD labelling

Glabels is a pretty nice program, just about any label including CD labels. Look for in MDK contributions on any server.

Top

Flash player

http://www.macromedia.com/shockwave/download/alternates/

Top

Finding user of a device

/sbin/fuser /dev/dsp for finding user of /dev/dsp

Top