Tomahawk Desktop 2.0 Beta1 FAQ
1. How to add a new user?
addnormaluser username "Full Name"
2. How to play audio?
1. Transfer your FLAC or Ogg or Wav files using an ftp client to the Tomahawk Desktop.
2. Run following to play:
gst-launch filesrc location=song.flac ! decodebin ! audioconvert ! audioresample ! \
volume volume=0.5 ! Osssink
NOTE: In Tomahawk Desktop, there are minimum two (2) volume controls:
1. The application level volume control (eg. GStreamer volume=0.5).
2. Second or precisely the final volume control is the hardware level volume control.
If you route your audio via Phonon, the KDE4 audio backend, then it is possible to have another volume control at the Phonon level.
Hardware level volume control is the volume control of the sound card which is controlled by the sound engine of the Tomahawk Desktop.
Tomahawk Desktop is shipped with hardware level volume control set to value 10. You may adjust it as follows:
ossmix vol NN
Eg: ossmix vol 20
3. How to encode video to Theora 1.1 "Thusnelda" release?
Tomahawk Desktop 2.0 Beta1 is released with Theora 1.1.1.
To encode video to Theora, you need to install ffmpeg and ffmpeg2theora.
Install ffmpeg
addpkguser ffmpeg "FFmpeg"
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
Get following patch files from FreeBSD port (/usr/ports/multimedia/ffmpeg-devel/files) or http://www.freebsd.org/cgi/cvsweb.cgi/ports/multimedia/ffmpeg-devel/files/ .
cd ffmpeg
patch -Np0 -i ../patch-libavdevice-bktr.c
patch -Np0 -i ../patch-libavdevice-oss_audio.c
patch -Np0 -i ../patch-libavformat-udp.c
Check after patching for any rejection:
find . -name "*.rej" -exec echo {} \;
./configure --prefix=/usr --enable-shared --disable-static \
--enable-libtheora --enable-libvorbis \
--enable-decoder=h264 --enable-decoder=h264_vdpau \
--enable-muxer=h264 --enable-demuxer=h264 --enable-parser=h264 \
--enable-postproc --enable-gpl
Use your required options to the configure, the above configure line is an example only.
gmake >& ffmpeg-make.log
gmake install >& ffmpeg-install.log
pkgregister -f -N "ffmpeg" -V 0.5 -D << "EOF"
ffmpeg-0.5
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.
For more info: http://ffmpeg.org/
EOF
exit
Install ffmpeg2theora
addpkguser ffmpeg2theora "ffmpeg2theora"
wget http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.25.tar.bz2
tar -xjf ffmpeg2theora-0.25.tar.bz2
cd ffmpeg2theora-0.25
sed -i.bak 's|PREFIX/man|PREFIX/share/man|' SConstruct
scons >& ffmpeg2theora-make.log
scons install prefix=/usr >& ffmpeg2theora-install.log
pkgregister -f -N "ffmpeg2theora" -V 0.25 -D << "EOF"
ffmpeg2theora-0.25
A simple converter to create Ogg Theora files.
For more info: http://v2v.cc/~j/ffmpeg2theora/
EOF
exit
Now encode your video
1. Encode to DVD size with full video quality
ffmpeg2theora -o movie-dvd.ogg -v 10 -A 192 \
-x 720 --aspect 16:9 --optimize -S 0 movie-1080p.mov
2. Encode for the web video quality
ffmpeg2theora -o movie-480.ogg --two-pass -A 128 -V 500 \
--optimize -S 0 -x 480 --aspect 16:9 movie-1080p.mov