Page 1 of 1

I want record the DVB-T signal

Posted: Thu Dec 10, 2015 1:14 pm
by Want2Play
Hi everyone,

This is my first post !

I want make the same thing, I want a PVR/VDR/DVR with a Raspberry. I want record the DVB-T signal and analog or composite signal to convert old VHS tapes.

I bought a Sundtek MediaTV Pro III (DVB-C/T/T2, FM-Radio, AnalogTV) http://sundtek.com/shop/Nach-Marke/Hers ... logTV.html.

The specs :
* DVB-C
* DVB-T
* DVB-T2
* FM Radio/RDS (stereo)
* Analog TV (stereo,weltweite TV Standards)
* Composite
* S-Video
* HDTV Ready

Why this device ? I've an article where this USB tuner is used with a Raspberry and the Sundtek device and I can use it with composite and S-Video to grab my old video tapes. On the Sundtek's forum, a raspberry is used : http://support.sundtek.com/index.php/topic,686.30.html.

My main problem is that I don't understand the German... :( so it's not very easy for me because the "english" section is outdated.

I've tested the Sundtek-MediaTV-Pro-III on x86_64 computer with Debian : the device is seen. I've some troubles with Tvheadend, maybe because my signal is too low - I use the small antenna sold with the MediaTV-Pro.

I must install Raspbian on my Raspberry and test Tvheadend.

I will be happy to work on this subject with someone else.

Re: Pi in DVR

Posted: Fri Dec 11, 2015 12:23 pm
by Want2Play
Hi,
I've tested the Sundtek's driver with Raspbian "Wheezy", the tuner USB is recognized :)

I must install "Jessie" and TVheadend.

Re: I want record the DVB-T signal

Posted: Wed Dec 16, 2015 9:30 pm
by Want2Play
Hi,
Installation of VDR with Sundtek MediaPro III done, but I'm not happy with the keyboard or the remote command of DVD-T stick : problem to setup the files.
First, don't install 'tvtime' with 'vdr', there is a conflit with '...xine...'.

Code: Select all

 apt-get install dvb-apps w-scan apt-transport-https
 apt-get install xineliboutput-sxfe vdr vim-gtk  vdr-sxfe  xineliboutput-sxfe   vdr-plugin-xineliboutput vdr-plugin-femon
Get the frequencies for VDR 2.0.3 :

Code: Select all

w_scan -f t -c <country ID> -o 2 | channels.conf
cp channels.conf /var/lib/vdr
Make a directory for the records :

Code: Select all

mkdir /mnt/vdr; chown vdr:vdr /mnt/vdr
Setup '/etc/default/vdr' :
/etc/default/vdr
#
# See also /usr/share/doc/vdr/README.Debian.gz
#

# Change to 1 to enable vdr's init-script
ENABLED=1

# Change this to 1 if you want vdr to be able to shutdown the
# computer
ENABLE_SHUTDOWN=0

# Options that will be passed to vdr's commandline
# for example: OPTIONS="-w 15"
OPTIONS="-w 60 -v /mnt/vdr --lirc
Start or stop the service :

Code: Select all

service vdr start; service vdr stop
Set the configuration of the tuner at boot time with '/etc/rc.local', add this :
# Sundtek
/opt/bin/mediaclient --setdtvmode=DVBT
Start the display in a terminal or menu :
vdr-sxfe
I've tested the pause, the recording function with success.

The LIRC is actived, but I don't know how to configure correctly to manage de keyboard and the remote command. Other problem, the order of channels is not good. Modifing the order of lines in '/var/lib/vdr/channels.conf' has no effect.

Re: I want record the DVB-T signal

Posted: Tue Dec 29, 2015 9:01 pm
by sundtek
instead of doing /opt/bin/mediaclient -DDVBT

create a config file
/etc/sundtek.conf
initial_dvb_mode=DVBT

the sundtek support forum is actively maintained so you can just post any question you want there.

Re: I want record the DVB-T signal

Posted: Wed Dec 30, 2015 4:49 pm
by Want2Play
Hello Sundtek, thanks for your reply. But your forum is mainly speaking german, for me it's difficult and Google Translate is not accurate :-(

The actual situation now.
VDR works with Raspbian but de mapping of the keyboard is not clear for me, but I've some big troubles with an HD channel : M6HD (France). Impossible to see the records. The CPU is always near of 100 % even with the key for hardware codec.

I've tested OSMC with TVheadend, very pleasant but M6HD make freeze the system sometimes.

Last try, Openelec with VDR available as plugin. I've some little troubles after a 10 hours roughly, when the VDR plugin VNSI try to get the EPG datas (I suppose), it's necessary to logon and make a reboot. All channels are good and no problem with M6HD.
Edit : a link http://openelec.tv/forum/103-infared-re ... g?start=15

But the remote (last model, the "3") of the Sundtek MediaPro III is inactiv. I can go up and down with the cursors, but not change the channel.

@Sundtek, I'll go post to the english part of your forum - I'm waiting the validation of my new account. Thanks for your help.

Re: I want record the DVB-T signal

Posted: Wed Dec 30, 2015 4:54 pm
by Want2Play
Initializing the DVB-T mode under Rasbian and Osmc.

Copy the file /etc/init.d/skeleton to /etc/init.d/sundtek and make the modifcations :

Code: Select all

# Author: Want2Play <xxxx @ yyyy.zzz>
#
# Please remove the "Author" lines above and replace them
# with your own name if you copy and modify this script.

DESC="Sundtek driver MediaPro III Tuner"
DAEMON=/opt/bin/mediaclient
DAMEON_ARGS="--setdtvmode=DVBT"
After :

Code: Select all

update-rc sundtek defaults
A reboot is necessary to activate the driver.

Re: I want record the DVB-T signal

Posted: Thu Dec 31, 2015 12:30 am
by sundtek
Be sure your AC adapter has enough power otherwise it might cause random failures 5V 2A should be safe.

The other thing is to be sure that the scheduler doesn't enter a low frequency mode.
Check this by running "mediaclient --cpucheck" the easiest way is to set the scheduler to performance.

Re: I want record the DVB-T signal

Posted: Thu Dec 31, 2015 1:08 pm
by Want2Play
sundtek wrote:Be sure your AC adapter has enough power otherwise it might cause random failures 5V 2A should be safe.
I've plugged the tuner in a USB hub. So, the power comes from the hub.
sundtek wrote:The other thing is to be sure that the scheduler doesn't enter a low frequency mode.
Check this by running "mediaclient --cpucheck" the easiest way is to set the scheduler to performance.
Thanks, I've followed your advice :

Code: Select all

   echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
   echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
   echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
   echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

Re: I want record the DVB-T signal

Posted: Thu Dec 31, 2015 7:49 pm
by Want2Play
The setting is not permanent. It is lost at each reboot.

There is the script ./storage/.kodi/addons/driver.dvb.sundtek-mediatv/bin/sundtek-mediatv.start , but I'm not the that is good idea to modify this script.

What's the good solution ?

Re: I want record the DVB-T signal

Posted: Wed Jan 06, 2016 8:52 pm
by Want2Play
With Openelec, create the file "/storage/.config/autostart.sh"

Code: Select all

cd /storage/.config
touch autostart.sh
chmod a+x autostart.sh
vi autostart.sh
The file contains :

Code: Select all

(
  for gov in /sys/devices/system/cpu/cpu[0-9]*/cpufreq/scaling_governor
  do echo "performance" > $gov
  done
) &
For details :
* http://openelec.tv/forum/148-usage/7765 ... erformance
* http://wiki.openelec.tv/index.php?title=Autostart.sh

The power supply of my HUB is dead. I've directly connect du tuner on the Raspberry. It's seems to work, but I must continue the tests.

Re: I want record the DVB-T signal

Posted: Wed Jan 13, 2016 1:41 pm
by Want2Play
All problems solved with a new configuration, thanks to Sundek for the help :
* 3 A / 5V power supply for the Raspberry
* Tuner TV (DVB-T/C + analog input) Sundtek MediaPro III directly connected to the Raspberry
* Wifi dongle for Rii keyboard
* External hard drive with power supply
* Ethernet connexion
* Osmc version of November 2015
* Tvheadend
* without and with overcloking in "Turbo" mode defined in Osmc
* cpu working in "performance" mode

The possible origins for the previous problem : the power supply or VDR... A test of the old configuration with the new power supply could be done.

I want record the DVB-C signal

Posted: Thu Jan 14, 2016 12:55 pm
by Bruny
Want2Play wrote:I want make the same thing, I want a PVR/VDR/DVR with a Raspberry. I want record the DVB-T signal and analog or composite signal to convert old VHS tapes.

Why this device ? I've an article where this USB tuner is used with a Raspberry and the Sundtek device and I can use it with composite and S-Video to grab my old video tapes. On the Sundtek's forum, a raspberry is used : http://support.sundtek.com/index.php/topic,686.30.html.

My main problem is that I don't understand the German... :( so it's not very easy for me because the "english" section is outdated.
Maybe same device can be used with some USB smart card readers for encrypted cable :?: Here DVB-T(T2 also enc.) is SD only and I have around 150 days to find acceptable solution...

Re: I want record the DVB-T signal

Posted: Fri Jan 15, 2016 9:04 am
by Want2Play
Hi,
The English is not my first language, so I am in difficulties to understand clearly. So excuse me please.
Maybe same device can be used with some USB smart card readers for encrypted cable :?:
The DVB-C mode could be used for cable.
"USB smart card readers for encrypted cable" : I don-t know this type of device and how use it.
Here DVB-T(T2 also enc.) is SD only and I have around 150 days to find acceptable solution...
I use the Sundtek MediaPro III for HD channles.
Why "150 days" ?