Autor Thema: recording (analog) tv on synology  (Gelesen 7716 mal)

kobbejager

  • Newbie
  • *
  • Beiträge: 1
    • Profil anzeigen
recording (analog) tv on synology
« am: April 07, 2013, 11:20:05 Nachmittag »
Hi,

I'm trying to record tv using my MediaTV Pro device connected to my Synology DS212j.  I'm currently trying to record analog tv on the NAS, but it doesn't seem to work.

# export LD_PRELOAD=/opt/lib/libmediaclient.so
# /opt/bin/mediaclient --start
# /opt/bin/mediaclient -e                                         
**** List of Media Hardware Devices ****
device 0: [Sundtek MediaTV Pro (USB 2.0)]  DVB-C, DVB-T, ANALOG-TV, FM-RADIO, REMOTE-CONTROL, OSS-AUDIO, RDS
  [BUS]:
     ID: 1-1.1
  [SERIAL]:
     ID: 0110315021323
  [DVB-C]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [DVB-T]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [ANALOG-TV]:
     VIDEO0: /dev/video0
     VBI0: /dev/vbi0
  [FM-RADIO]:
     RADIO0: /dev/radio0
     RDS: /dev/rds0
  [REMOTECONTROL]:
     INPUT0: /dev/mediainput0
  [OSS]:
     OSS0: /dev/dsp0

# /opt/bin/mediaclient -m ATV -f 133250000 -d /dev/video0 -v PAL-BG
Using device: /dev/video0
Tuning in ATV Channel...
Tuning to: PAL-BG, Freq: 133250000
setting standard... done
Checking for (analog) lock:
. [LOCKED]
# cat /dev/video0  > test.mpg
cat: can't open '/dev/video0': No such device or address
# ls -la /dev/video0
crwxrwxrwx    1 root     root       81,   1 Apr  7 22:17 /dev/video0

What am I doing wrong? Has it anything to do with missing ffmpeg plugins (http://sundtek.de/support/buildffmpeg.sh)?  If so, how do I install those on my NAS, since that script needs git (and probably gcc?) to build these plugins?

My next job is to record digital tv (dvb-t and -c) using the command line on the NAS.  Would command would I then need to use?  I suppose I can't use "cat" in that case?  (I want to avoid using tvheadend, since it keeps the TV-stick from sleeping (and it's running quite hot, probably reducing its working life), switching between the modes (analog, dvb-t and -c) requires restarting tvheadend, and I guess tvheadend is quite demanding for my NAS.)

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:recording (analog) tv on synology
« Antwort #1 am: April 08, 2013, 10:20:34 Vormittag »
You should try tvheadend on Synology.

I don't think that the NAS will be powerful enough for analog TV recording.

When installing tvheadend please note that you have to install the driver after tvheadend.
If you installed the driver first it's no problem, just install it again when tvheadend is installed.
Failure is a good thing! I'll fix it