ktv

TV & Streaming

Source (required if based on other people's work): Add the source-code for this project on git.opendesktop.org

1
Score 68%
Description:

ktv is a GUI fronted for mplayer and mencoder for playing and recording analog tv.

It provides basic options to view and switch channels, but also allows recording and timeshifting the currently recorded video, supports scheduling, and can show tvguides which are offered by xmltv grabbers.

To run, execute ./run.sh
Last changelog:

9 years ago

0.2b
[li]add a scheduler, which allows recording (and stopping of the recording) at various conditions[/li]
[li]GUI created using (mostly) QDevelop[/li]
[li]clean up source code, to make ktv more reliable[/li]

0.3b
[li]choose an XMLTV grabber, and let the guide show all programs. If channels are named the same by the grabber, and in ktv, then records can be easily scheduled[/li]

softhacker

8 months ago

Hi, I`ve Kworld Ub-490- Analog stick TV tuner, but did not have any drivers. Wolud it work with this software?

Report

C

jerous

1 month ago

This software makes use of mplayer, thus if it you can make it work with mplayer, it should also work with ktv.

Report

joaopa

8 years ago

Ok, it works now. great job

Thanks

still testing to find more bugs :D

Report

joaopa

9 years ago

Indeed, the channel scan works .....

An other feature that would be cool to have:

My tv card is a USB Pinnacle stick. THe device that I must choose depends on the order when I plug it: after or before plugging the webcam.

So, I need t to play with the mplayer.conf file.

Would it possible to add a tablet to choose the device: /dev/video0 /dev/video1 etc.

In the same way, I need to force the audio input.
Would it possible to add a tablet to chose the audio input

Here is my player.conf file

# uncomment this for tv support
tv=driver=v4l2:device=/dev/video0:input=0:alsa=1:adevice=hw.0:audiorate=48000:forceaudio=1:immediatemode=0:amode=0:norm=secam:chanlist=europe-west:channels=49-Tvnui,52-Tempo,E6-telepolynesie

Thanks for your help

Report

C

jerous

9 years ago

jaopa,

I've added some settings allowing you to change audio and video. Just check the MPlayer tab in the settings window.
I haven't been able to test it however, so let me know if it doesn't detect video or audio sources.

Report

joaopa

8 years ago

Thanks for your job.
In the tablet for sound, I can choose the device.
Unfortunately, for the video device, no one is available in the tablet. Nothing appears.

Report

C

jerous

8 years ago

Currently, devices found in /dev/video* are added to the list of video devices.
Maybe yours are in a different location? If so, give them to me, and I'll update ktv. If not, then you should give me some more information (I'll upload then some debug version).

jerous

Report

joaopa

8 years ago

My devices are really in /dev folder: /dev/video*

What kind of debug output do you want?

Report

C

jerous

8 years ago

I received a patch fixing this problem, so I assume if you try to run the latest version, it should work for you too.

Report

joaopa

8 years ago

First, the good news: I can now choose my video device. Great!!

Second, the bad news: I can not choose the norm anymore. Nothing appears in the tablet norm.
I am stuck in the default behaviour, that is Pal norm.

I think what happens is the following:

Ktv waits for a video device.
I choose my video device, but then ktv does not ask to the device what norms are available. So, nothing can be choosen.

Thats my guess on the behaviour of Ktv.

Report

C

jerous

8 years ago

The list of norms is parsed from v4l-info's output, so make sure the v4l-info binary is installed.
(but I also made a minor change, so also try a pull&compile again :))

Report

joaopa

8 years ago

v4l-info is installed. I did more testing. And I conclude that the tablet norm works (that is:there are available norms in the tablet) when my tv-card is on /dev/video0 and does not work when it is on /dev/video1.

Report

C

jerous

8 years ago

I see, stupid mistake from me. :) I guess there are more to follow, since it's hard to test with only video device. Update's waiting for you in HEAD.

Report

joaopa

9 years ago

Hello, with ktv, I obtain a black and white picture. I guess thats because it uses non french standard tv (SECAM)
How can one modify the standard?

Thanks for any answer.

[Great job, man :) ]

Report

C

jerous

9 years ago

Hi jaopa,

thanks for reporting this!
It seems ktv doesn't support changing the standard yet.

I'll try to add the functionality one of the days, and upload it to the public repository.

If you want to be able to use ktv in the meantime, and are comfortable with compiling it yourself, then you can grab the latest source, and replace in file src/mplayer_tv.cpp:14
the line
<< "-tv"<<"driver=v4l2"
with
<< "-tv"<<"driver=v4l2:norm=SECAM"
and then I think it should work.

Report

C

jerous

9 years ago

In HEAD of the repository, you can find a new version allowing on-the-fly change of the used norm.

Report

joaopa

9 years ago

Thanks for your quick answer. Unfortunaltely, when I try to cimpile ktv I obtain the following error message:
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Ibuild -Ibuild -o build/main.o src/main.cpp
make: *** [build/channel.o] Erreur 1
make: *** Attente des tâches non terminées....

Any idea for the reason?

Report

C

jerous

9 years ago

It builds just fine here.
Maybe you can try
qmake && make clean && make

Let me know if that works.

Report

joaopa

9 years ago

Nope, still not working:

qmake&&make clean&&make
rm -f build/moc_channel.cpp build/moc_ktv.cpp build/moc_mplayer.cpp build/moc_scheduler.cpp build/moc_scheduler_condition.cpp build/moc_guide.cpp build/moc_settings.cpp
rm -f qrc_ktv.cpp
rm -f build/ui_ktv.h build/ui_channel.h build/ui_scheduler.h build/ui_settings.h build/ui_guide.h
rm -f build/channel.o build/ktv.o build/main.o build/mplayer.o build/scheduler.o build/scheduler_condition.o build/misc.o build/guide.o build/settings.o build/moc_channel.o build/moc_ktv.o build/moc_mplayer.o build/moc_scheduler.o build/moc_scheduler_condition.o build/moc_guide.o build/moc_settings.o build/qrc_ktv.o
rm -f *~ core *.core
/usr/bin/uic-qt4 ui/ktv.ui -o build/ui_ktv.h
/usr/bin/uic-qt4 ui/channel.ui -o build/ui_channel.h
/usr/bin/uic-qt4 ui/scheduler.ui -o build/ui_scheduler.h
/usr/bin/uic-qt4 ui/settings.ui -o build/ui_settings.h
/usr/bin/uic-qt4 ui/guide.ui -o build/ui_guide.h
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Ibuild -Ibuild -o build/channel.o src/channel.cpp
Dans le fichier inclus à partir de src/channel.cpp:5:
src/channel_channels.cpp:9:31: erreur: ui_channelsImport.h : Aucun fichier ou dossier de ce type
make: *** [build/channel.o] Erreur 1

I tried to find the file ui_channelsImport.h in the tree with kfind, and I did not find it. Thats the culprit.

Maybe you forgot to add it in the archive tarball. Thats my two cents :D

Report

C

jerous

9 years ago

Aha! A file which wasn't removed by make clean, yet was still included in the source code causing that compilation error.

It should be fixed now!

Report

joaopa

9 years ago

Indeed, it works now.
Good job.

Waiting for the channel scanning now :D :D

Report

C

jerous

9 years ago

Channel scan is already available. Just go to settings, tab "Import Channels", and then press "Scan for channels", which allows you to scan, and modify all found channels, and then import them.

Report

dglent

9 years ago

How we can search for availiable channels ?

Report

C

jerous

9 years ago

There is no option to manually search for channels.

Currently, the only option to fetch them, is to import from a xawtv configuration.
I'll upload a version which can probe for channels.

(Currently xawtv is used, because it extracts channel information, while mplayer doesn't)

Report

C

jerous

9 years ago

Ok, HEAD of the repository allows one to search for channels using mplayer!

Report

9 years ago

0.2b
[li]add a scheduler, which allows recording (and stopping of the recording) at various conditions[/li]
[li]GUI created using (mostly) QDevelop[/li]
[li]clean up source code, to make ktv more reliable[/li]

0.3b
[li]choose an XMLTV grabber, and let the guide show all programs. If channels are named the same by the grabber, and in ktv, then records can be easily scheduled[/li]

product-maker 6 19

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.3b
updated Sep 06 2009
added Aug 11 2009
downloads today
0
page views today 0
System Tags app software