I recently received my Media TV Pro stick and got it work to watch analog TV via cable (Gremany) and FM radio..
First I tried to watch with 'tvtime' but that results in frequently lost frames with short stuttering during playback. 'xawtv' however works fine. I am using the latest driver dd Aug. 20th on Debian-Wheezy-amd64, CPU and graphics card is Ivy-Bridge i5-3570K with Intel HD4000 graphics.
I tried to record using the OSD-menu of 'xawtv', but this results in an error messages and says:
xawtv -c /dev/video0
This is xawtv-3.102, running on Linux/x86_64 (3.2.0-3-amd64)
xinerama 0: 1920x1080+0+0
Alsa devices: cap: (null) (/dev/video0), out: default
v4l2: ioctl(fildes = 5 { sa_family = PF_UNIX } => { sa_family = PF_UNIX, sun_path = "" }, request = VIDIOC_DQBUF, struct v4l2_buffer *data = { index = 0, type = 0, memory = 0 }): success
oss: open /dev/dsp: Datei oder Verzeichnis nicht gefunden
The Sundtek driver however creates /dev/dsp0. I tried to create a symlik 'ln -s dsp0 dsp', but that doesn't work either.
Then I tried to record usig 'mencoder' from the command line:
mencoder -tv norm=PAL-BG:device=/dev/video0:fps=25:buffersize=64:adevice=/dev/dsp0:amode=1:audiorate=48000:input=1 -af format=s16le -ovc lavc -lavcopts vcodec=mjpeg -oac pcm -o test.avi tv://
MEncoder 1.1-4.7 (C) 2000-2012 MPlayer Team
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Sundtek MediaTV
Tuner cap: STEREO
Tuner rxs:
Capabilities: video capture tuner audio streaming
supported norms: 0 = PAL-BG; 1 = PAL-DK; 2 = PAL-I; 3 = PAL-M; 4 = NTSC-M; 5 = Secam-L; 6 = Secam-LC; 7 = Secam-K;
inputs: 0 = Television; 1 = Composite; 2 = S-Video;
Current input: 1
Current format: YUYV
v4l2: current audio mode is : STEREO
unsupported format
Audio block size too low, setting to 16384!
[V] filefmt:9 fourcc:0x32595559 size:640x480 fps:25.000 ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
libavcodec version 54.23.100 (internal)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xf3cc20]using unscaled yuyv422 -> yuv420p special converter
videocodec: libavcodec (640x480 fourcc=47504a4d [MJPG])
[mjpeg @ 0xe73020]Specified pix_fmt is not supported
Could not open codec.
FATAL: Cannot initialize video driver.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffrawyuy2] vfm: ffmpeg (RAW YUY2)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (640x480 fourcc=47504a4d [MJPG])
[mjpeg @ 0xe73020]Specified pix_fmt is not supported
Could not open codec.
FATAL: Cannot initialize video driver.
Exiting...
I am quite sure the proper codecs are installed, also I can watch smoothly on the screen.
The driver itself reports:
/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
[SERIAL]:
ID: U120820070038
[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
and /var/log/messages says:
cat /var/log/messages | grep -i -A 1 -B3 sundtek
usb 1-1.3: New USB device found, idVendor=eb1a, idProduct=51b2
usb 1-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber=2
usb 1-1.3: Product: MediaTV Pro
usb 1-1.3: Manufacturer: Sundtek
usb 1-1.3: SerialNumber: U120820070038
....
input: Sundtek Ltd. Remote Control as /devices/virtual/input/input11
Any hints how I can manage to record analog-tv?
With best regards,
Ingo