Kalva

Video Apps

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Available as/for: -
Description:

Kalva is a Lightweight Video Application

Kalva is a simple to use and easy to setup videorecorder for the K Desktop
Environment. It is using the console tool MEncoder from the MPlayer package
to do the real work. Kalva's main goal is to be quite simple to setup and easy to use. But apart from that it provides quite some useful features.

You can schedule a movierecording by choosing the date
from a calender (will be passed to at) and a serial recording by choosing the
days of the week (feeds your crontab). You can manage your scheduled
recordings.

You can store the neccessary MEncoder Options in hardware- and quality
profiles. You can easily share your profiles and your channellist via New
Stuff (take a look at www.kde-files.org for channellists, hardware profiles
and quality profiles).

Kalva can import channellists from e.g. xawtv or xawtv4 and generate a knew
one using scantv. You can edit and store that list. You might as well
download a channellist from www.kde-files.org (KHotNewStuff).

Kalva has a DCOP interface. This is meant as a convinient way to support
recording for external EPG apps like xmltv browsers (f.i. KTvSchedule) that You can optionally launch with a (configurable) toolbar button. If You
want to use the DCOP interface You can push Kalva into KDE's systemtray
(works just like with JuK or amaroK).

You can manage Your videocollection with the build in file browser and Play the selected video files with MPlayer or call a (configurable) video editor on the active directory.


If you want to follow the active developement process, the bleeding edge of
Kalva's sources can be found in kde-svn
(trunc/playground/multimedia/kalva).
Last changelog:

13 years ago

binaries v0.8.90 (testing)
--------------------------
This release brings IVTV support. As I do not owe a PVR card I can not test this. I am looking forward for Your profiles that may show up on kdefiles.org ;-)
* SUSE 10.0 i586 with kde from stock (Sun Dec. 31 2007).
+ deb for kubuntu (Sat Jan. 05 2008)

binaries v0.8.81 (stable)
-------------------------
* Fedora core 5 i386 (thanks to Martin Gansser, new since january 7th 2007)
* ArchLinux-Buildfile
* deb for Kubuntu dapper drake (thanks to Joí£o Pinto)
* deb for Kubuntu breezy badger
* SUSE 10.0 i586 with kde from stock. This time even linux user authors shouldn't be able to crash Kalva ;-)

* Wed 4th of october 2006 - ml@andreas-silberstorff.de
- the rectangle for previewing the crop area when watching tv can now be turned off
- improved the dcop iface for better use with tvbrowser
- fixes a bug concerning tv options on the experts page of the quality profiles

binaries v0.8.78 (stable)
-------------------------
Fedora core 5 i386 (thanks to Martin Gansser)
SUSE 10.0 i586 with kde 3.5.3 from smart/apt (Use with care! If You do not have a decent KDE I have to advice You to wait for the offical apt RPM from suser-scorot to upgrade which will hopefully be available in the first week of july)

* Sun 18th of june 2006 - ml@andreas-silberstorff.de
- fixes a bug that prevented the use of the aumix-functionality and raised also some other minor issues.
- fixes some bugs concerning special chars in filmtitles or in the station names (better support for UTF8)

binaries v0.8.76 (stable)
-------------------------
Debian package for SID (thanks to Harry Auschner)

* Fri Apr 14 2006
- fixed some compiler issues, compiles now on Fedora Core 5
- fixed a bug concerning the device combo for aumix
- restarts running MPlayer (preview) when choosing profiles

since v0.8.75 (stable)
-------------------------
* Fri Mar 31 2006 - ml@andreas-silberstorff.de
- the profiles and the channellist are configurable from the
main window, no need anymore to open prefs dialog for each
recording session if You want to use a special profileset
- bbugfix: no need for a channel to be set when recording
from composite (i.e. input = 1)
- fixed a bug in the movie manager when the daytime contains
the searched string (was a too aggressive filter regex)
- first code cleanups,
-> improved filehandling,
-> fixed some syntax issues (see
http://www.icefox.net/kde/tests/index.html#playground/multimedia/kalva)


Also known to distribute Kalva:
-------------------------------
Kalva-stable via klik
SuSE 9.2-10.0 i386 and IA64 via apt (suser-scorot)
Mandriva RPMs (cooker)
Slackware
PLD
Gentoo

-------------
for older history look at the homepage

C

taki

15 years ago

Dear Verdia.
You shouldn't appollogize. It is very nice of You to provide mandriva packages, I appreciate that a lot. I did not want to opress You to update that soon so short before the pending 0.7.0 release ;-)
I was rather interested in your experience with compiling and packaging for mandriva as I recieved some mails of people who didn't succeed even after the fixes with ansi c++ compliance. Same applies to PLD, so your knowledge might be worthfull for others too.

Another question is, would you mind me to incorporate a link to your site on the kalva web site for mandriva users?
Yours,
Andreas

Report

kraff2

15 years ago

with 0.6 version from sources:

make[3]: Entering directory `/mnt/extra/Utils/kalva-0.6/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../interfaces -I/usr/include/kde -I/usr/lib/qt/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -MT settings.o -MD -MP -MF ".deps/settings.Tpo" -c -o settings.o settings.cpp; \
then mv -f ".deps/settings.Tpo" ".deps/settings.Po"; else rm -f ".deps/settings.Tpo"; exit 1; fi
g++: settings.cpp: No such file or directory
g++: no input files
make[3]: *** [settings.o] Error 1
make[3]: Leaving directory `/mnt/extra/Utils/kalva-0.6/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/extra/Utils/kalva-0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/extra/Utils/kalva-0.6'
make: *** [all] Error 2

Report

C

taki

15 years ago

You can create the file settings.cpp yourself by running the following command in the source directory:

"kconfig_compiler -d . kalva.kcfg settings.kcfgc"

Then call "make" again.

Report

necromonga

15 years ago

thanx... will try that out

Report

C

taki

15 years ago

The temporary sourcefile settings.cpp has to be created from the metasources kalva.kcfg and settings.kcfgc by the konfig-compiler (a script from kde's build system) before the sources that reference that file are compiled.

Allthough the Makefile.am was created very carefully sometimes the buildsystem does the kcfgc-compilation too late. Normally you should get Kalva build without failures if you just call make again (but don't do "make clean" because then the settings.cpp will be erased and you will probably get the same error again).

Report

necromonga

15 years ago

the same problem here... any good idea?

Report

stefbon

15 years ago

Hello,

when compiling from source, I get the following error:

prefs.cpp:268: error: 'fmod' undeclared (first use this function)

Stef Bon

Report

C

taki

15 years ago

You should get kalva compiled when you prepend the namespace std before the functioncall (change fmod to std::fmod). Obviously the gcc that is shipped with SuSE does generally not test for the namespaces allthough it is recommended for ansi c++. Your distribution seems to depend on using the namespace std.

For later versions I will use the namespace std to avoid this mess.

By the way: I was lead into the wrong direction myself by the manpage of fmod ( man(3) fmod ) as it says the function resides in math.h. This is not so. It is in cmath (without h) and is available without an include line as being a standard c function for c++.

Sorry for my last misleading post.

Report

C

taki

15 years ago

fmod is part of the glibc and is defined in math.h. On my SuSE the header file /usr/include/math.h is in the package glibc-devel-2.3.4-23.4.

I hope that helps.

Report

C

taki

15 years ago

Apart from prepending the namespace std:: it is also recomended to include the standardheader ("#include ").

I have fixed the two sourcefiles that reference functions from cmath, prefs.cpp [1] and kalva_recorder.cpp [2]. You might get them from kdesvn via websvn.

[1] http://websvn.kde.org/*checkout*/trunk/playground/multimedia/kalva/prefs.cpp?rev=431673

[2] http://websvn.kde.org/*checkout*/trunk/playground/multimedia/kalva/kalva_recorder.cpp?rev=431672

Report

C

taki

15 years ago

oops, using lq and gq directly was not a good idea...

Too bad I really am not able to write the correct form in this forum... Hope You know what I mean with &lq; and &gp;

#include &lq;cmath&gq;
instead of just

#include

Report

mfernau

15 years ago

I've some problems with your app:

1. $HOME/.xawtvrc doesn't exists. Instead I've a $HOME/.xawtv
a link from .xawtv to .xawtvrc did the job

2. My channels from xawtv are imported into you app, but without any channel oder frequency information.

3. setting the channel manually won't work. I alway get that same channel with your program.

It semms, that '/usr/X11R6/bin/v4lctl setprogram E2 && /usr/bin/mencoder [...]' did't do the job for my tv-card?
Since I have my own vcr commandline tool working for my tv-card, I can say, that 'mencoder tv:// -tv driver=v4l2:channel=E2[...]' works for me. I don't know the difference... but maybe you know where the problem is.

Greetings

Report

C

taki

15 years ago

>1. $HOME/.xawtvrc doesn't exists.
Instead I've a $HOME/.xawtv
>a link from .xawtv to .xawtvrc did the job
>2. My channels from xawtv are imported into you app, but without any channel oder frequency information

I suppose You are using xawtv4. That is using a different format. At the moment ktvapp can only read the old format. That is for each station I need these lines (iterized Items should be replaced by the correct value)

[station]
channel=channel
freq=frequency

f.i. this is a valid entry for the station "ARD":
[ARD]
channel=E3
freq=210.500

In a (much) later version I will provide pluggable import filters for different fileformats containing channellists (f.i. xawtv4, kdetv).

>3. setting the channel manually won't work. I alway get that same channel with your program.

If the channellist doesn't contain the channel or the frequence ktvapp can't tune Your card. That is obvious.

If "use frequency" is checked, ktvapp passes the frequence to mencoder. If it is not checked, "v4lctl setchannel channel" is called before mencoder will be called. "v4lctl setchannel" doesn't function well on saa7134 cards, that is what "use frequency" is for.

>... "tv:// -tv driver=v4l2:channel=E2[...]'" works for me.

This means, I can completely abandon v4lctl and use mencoder also for setting the channel, nice. Have to reread the manpage, that eliminates another dependancy :-)

The thing with setting the channel via mencoder instead of v4lctl seems to be very easy so that will come soon.

I hope my comments might help a little.

Report

mfernau

15 years ago

great, thanks for you help!
In the meanwhile I'll manually write my own tvlist, no problem.

just good to know, that I could help you with a slighter integration of the channel switching too :)

keep up your good work!

Regards,
Martin

Report

vernr

15 years ago

Hi
your download link still seems to be pointing to version 0.00.8
Cheers

Report

C

taki

15 years ago

Thanks for pointing that out. Had some trouble to get this fixed, now the link points to the correct Version.

Sad for me to know that so many downloaded 0.00.8 that had this nasty bug with too many quotes for the filename in it :-(

Next things on my agenda

Binary for SuSE (9.3) will come as soon as I have managed to tell kdevelop to build a functioning builddir for RPM.
If s.o. magages to build binaries for other distributions let me know it. Give me a URL to link to or mail me the package and I will put it on the HP. If it's a RPM please also provide the specfile.
German i18n.
Code cleanups (it's my first c++ Project, there are definetly some optimizations possible like calls by reference where possible etc.).


More features will come later, I will feel more comfortable with ktvapp when I can consider it as stable AND clean.

Report

uteck

15 years ago

I compiled the source on Debian Sarge and I get an error when running the test.
/bin/bash: line 1: /usr/X11R6/bin/v4lctl: No such file or directory

I replaced it with /usr/bin/v4l-conf in the config file and that worked better, but it still crashed with this error.
v4l2: unable to open '/dev/video': No such file or directory

a quick 'ln -s /dev/video /dev/video0' fixed that than I got a full screen picture but no sound. I also don't have any channels listed, but I guess I need the scantv app that does that, but it errors out with;
vbi: open failed [/dev/vbi]
open /dev/vbi: No such file or directory
Not sure were to go from here? I tried using the channel list from kdetv, but that did not do much.

Report

mfernau

15 years ago

you can add the channels manually by pressing 'E' while xawtv is running. Then you can press the 'arrow-up/arrow-down' keys for switching over the cahnels while the 'channel-Field' is active (hover it with your mouse or click into it). Add one or two channels for testing purposes with the 'add' button after pointing a channel-name into the 'station-id' field.

The sound problem:
Maybe your mixer isn't set correctly? Some TV-Cards uses line-in of your TV-Card to handle the sound. you have to enable this mixer

Report

uteck

15 years ago

Made some progress. I had to link /dev/vbi to /dev/vbi0, then scantv would work, but I still have no sound. Tvtime works fine, but it does not record. I can only get xawtv to work if I add -c /dev/video0 which is the default, but it does not work without specifying it.

Report

uteck

15 years ago

Perhaps installing while half awake and with a headache is not the best. All is well now, now to try recording something.

Report

ris

15 years ago

Here's an idea.

This sort of functionality as a plugin to kontact.

So that in korganiser you could have an appointment - but rather than having a reminder, you could set it to 'record channel x'.

I say this because it occurs to me that a lot of your scheduling (& recurrence etc.) code is duplicated in korganiser.

And then people would be able to have one view of what their 'schedule' is. A program set to record is just another entry in their calendar.

This would probably only behave nicely once kde is gstreamer-ised and has a nice multimedia backend.

Report

C

taki

15 years ago

After rereading Your posting I must confess I find Your idea very cool.

At first glance I unterstood Your proposal the other way round: making ktvapp use korganizer to shedule the recording.

Did You mean scheduling the recording from inside korganizer? That is something totally different.

I will have to keep this in my mind. Maybe when the app is complete... One of my goals is to make reusable parts, so that parts of this app might be usefull in different contexts. So maybe a plugin for korganizer, why not?

Allthough if no one else takes up this idea it might not start to evolve before next year's gone.

Report

ris

15 years ago

I didn't really mean either of these to do with your app. Your app looks very useful for what it is - a simple standalone piece of software.

It's just this sparked a little idea in my head.

Report

C

taki

15 years ago

That would have a big disadvantage: The user has to have korganizer setup and korganizer's reminder has to be running.

I hopefully which that my app might as well be usefull for people not using kde (gnome or xfce or whatsoever). They still require kdelibs though.

I am already a bit unsatisfied that my app has so many external dependancies. On the other hand apart from making recording easier for me, this project is a very usefull option for learning about the fascinating framework kde is build on. A dependancy to korganizer would bloat it up very much for my taste.

atd and crond are standard on any unix mashine.

Using atd and crond for scheduling also makes it possible to schedule Your recording and log out of Your account.

Report

13 years ago

binaries v0.8.90 (testing)
--------------------------
This release brings IVTV support. As I do not owe a PVR card I can not test this. I am looking forward for Your profiles that may show up on kdefiles.org ;-)
* SUSE 10.0 i586 with kde from stock (Sun Dec. 31 2007).
+ deb for kubuntu (Sat Jan. 05 2008)

binaries v0.8.81 (stable)
-------------------------
* Fedora core 5 i386 (thanks to Martin Gansser, new since january 7th 2007)
* ArchLinux-Buildfile
* deb for Kubuntu dapper drake (thanks to Joí£o Pinto)
* deb for Kubuntu breezy badger
* SUSE 10.0 i586 with kde from stock. This time even linux user authors shouldn't be able to crash Kalva ;-)

* Wed 4th of october 2006 - ml@andreas-silberstorff.de
- the rectangle for previewing the crop area when watching tv can now be turned off
- improved the dcop iface for better use with tvbrowser
- fixes a bug concerning tv options on the experts page of the quality profiles

binaries v0.8.78 (stable)
-------------------------
Fedora core 5 i386 (thanks to Martin Gansser)
SUSE 10.0 i586 with kde 3.5.3 from smart/apt (Use with care! If You do not have a decent KDE I have to advice You to wait for the offical apt RPM from suser-scorot to upgrade which will hopefully be available in the first week of july)

* Sun 18th of june 2006 - ml@andreas-silberstorff.de
- fixes a bug that prevented the use of the aumix-functionality and raised also some other minor issues.
- fixes some bugs concerning special chars in filmtitles or in the station names (better support for UTF8)

binaries v0.8.76 (stable)
-------------------------
Debian package for SID (thanks to Harry Auschner)

* Fri Apr 14 2006
- fixed some compiler issues, compiles now on Fedora Core 5
- fixed a bug concerning the device combo for aumix
- restarts running MPlayer (preview) when choosing profiles

since v0.8.75 (stable)
-------------------------
* Fri Mar 31 2006 - ml@andreas-silberstorff.de
- the profiles and the channellist are configurable from the
main window, no need anymore to open prefs dialog for each
recording session if You want to use a special profileset
- bbugfix: no need for a channel to be set when recording
from composite (i.e. input = 1)
- fixed a bug in the movie manager when the daytime contains
the searched string (was a too aggressive filter regex)
- first code cleanups,
-> improved filehandling,
-> fixed some syntax issues (see
http://www.icefox.net/kde/tests/index.html#playground/multimedia/kalva)


Also known to distribute Kalva:
-------------------------------
Kalva-stable via klik
SuSE 9.2-10.0 i386 and IA64 via apt (suser-scorot)
Mandriva RPMs (cooker)
Slackware
PLD
Gentoo

-------------
for older history look at the homepage

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitectureRelease ChannelDevices Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.8.90
updated Dec 30 2007
added Apr 24 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 3
System Tags app software