Hi,

I am trying to play videos on my TV using mplayer and the S-VIDEO output
of a PVR350.
I am using Ubuntu Feisty with ivtv 0.10.2 and latest svn mplayer
compiled with ivtv support.

Here is what I do :
ivtv module is automatically during the boot process.

Load ivtv-fb module and avoid video playing behind a black square :
modprobe ivtv-fb
ivtvfbctl -d /dev/fb0 -g on -l on -v 0

mplayer -vo ivtv -ao ivtv -ac hwmpa myfile.avi
Mplayer starts but freezes after a couple of seconds.
It is a sound problem because with "-ao null" instead of "-ao ivtv", it
works. But i do not know if it is a problem with ivtv or mplayer.

If I do the following :
mplayer -vo ivtv -ao alsa myfile.avi
It works ! Sound comes through my sound card and video is on the TV.
But the video is badly scaled and i do not know of to correct this.
My experiences with mplayer's video filters expand, scale and lavc were
not successful :-(

Has anybody succeeded in this setup and willing to share experiences ?

Regards,
Fred.


IVTV module loading :
[   31.252350] ivtv:  ==================== START INIT IVTV
====================
[   31.252356] ivtv:  version 0.10.2 (tagged release) loading
[   31.252358] ivtv:  Linux version: 2.6.20-15-generic SMP mod_unload
586 
[   31.252360] ivtv:  In case of problems please include the debug info
between
[   31.252363] ivtv:  the START INIT IVTV and END INIT IVTV lines, along
with
[   31.252365] ivtv:  any module options, when mailing the ivtv-users
mailinglist.
[   31.252874] ivtv0: Autodetected Hauppauge card (cx23415 based)
[   31.252924] ACPI: PCI Interrupt 0000:02:08.0[A] -> GSI 20 (level,
low) -> IRQ 20
[   31.252939] ivtv0: Unreasonably low latency timer, setting to 64 (was
32)
[   31.931569] ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
[   31.952602] ivtv0: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)
[   32.175528] ivtv0: Encoder revision: 0x02060039
[   32.183574] ivtv0: Decoder revision: 0x02020023
[   32.254169] tveeprom 0-0050: Hauppauge model 48139, rev J352, serial#
7114499
[   32.254174] tveeprom 0-0050: tuner model is Microtune 4049 FM5 (idx
52, type 45)
[   32.254178] tveeprom 0-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L')
PAL(D/D1/K) (eeprom 0x74)
[   32.254181] tveeprom 0-0050: audio processor is MSP4418 (idx 25)
[   32.254183] tveeprom 0-0050: decoder processor is SAA7115 (idx 19)
[   32.254186] tveeprom 0-0050: has radio, has IR receiver, has no IR
transmitter
[   32.254189] ivtv0: Autodetected Hauppauge WinTV PVR-350
[   32.278530] tuner 0-0043: chip found @ 0x86 (ivtv i2c driver #0)
[   32.278566] tda9887 0-0043: tda988[5/6/7] found @ 0x43 (tuner)
[   32.283087] tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
[   32.355164] saa7115 0-0021: saa7115 found (1f7115d0e100000) @ 0x42
(ivtv i2c driver #0)
[   32.598644] saa7127 0-0044: saa7127 found @ 0x88 (ivtv i2c driver #0)
[   32.627338] msp3400 0-0040: MSP4418G-A2 found @ 0x80 (ivtv i2c driver
#0)
[   32.627343] msp3400 0-0040: MSP4418G-A2 supports nicam and radio,
mode is autodetect and autoselect
[   32.627660] ivtv0: Registered device video0 for encoder MPEG (4 MB)
[   32.627891] ivtv0: Registered device video32 for encoder YUV (2 MB)
[   32.628125] ivtv0: Registered device vbi0 for encoder VBI (1 MB)
[   32.628215] ivtv0: Registered device video24 for encoder PCM audio (1
MB)
[   32.628516] ivtv0: Registered device radio0 for encoder radio
[   32.628577] ivtv0: Registered device video16 for decoder MPEG (1 MB)
[   32.628644] ivtv0: Registered device vbi8 for decoder VBI (1 MB)
[   32.629134] ivtv0: Registered device vbi16 for decoder VOUT
[   32.629169] ivtv0: Registered device video48 for decoder YUV (1 MB)
[   32.673791] ivtv0: loaded v4l-cx2341x-init.mpg firmware (155648
bytes)
[   32.782576] tuner 0-0061: type set to 45 (Microtune 4049 FM5)
[   33.204359] ivtv0: Initialized Hauppauge WinTV PVR-350, card #0
[   33.204381] ivtv:  ====================  END INIT IVTV
====================

==================================================
Result of modprobe ivtv-fb :
[  189.823796] ivtv0-fb: Framebuffer at 0xe5510000, mapped to
0xf9b10000, size 1665k
[  189.924587] ivtv0-fb: === Validated display mode  ===
[  189.924593] ivtv0-fb: Display size 640x480 (640x480 Virtual) @ 8bpp
[  189.924596] ivtv0-fb: Display position 41,49
[  189.924598] ivtv0-fb: Display filter : on
[  189.924600] ivtv0-fb: Color space : RGB
[  189.927918] Console: switching to colour frame buffer device 80x30
[  189.951720] ivtv0-fb: === Display mode change ===
[  189.951726] ivtv0-fb: Display size 640x480 (640x480 Virtual) @ 8bpp
[  189.951729] ivtv0-fb: Display position 41,49
[  189.951731] ivtv0-fb: Display filter : on
[  189.951733] ivtv0-fb: Color space : RGB
[  189.975546] ivtv0-fb: Framebuffer registered on ivtv card id 0

==================================================
output of cat /proc/fb
0 cx23415 TV out

==================================================
output of fbset

mode "640x480-50"
    # D: 23.720 MHz, H: 29.650 kHz, V: 50.001 Hz
    geometry 640 480 640 480 8
    timings 42158 41 95 49 62 24 2
    rgba 8/16,8/8,8/0,8/24
endmode

==================================================
Ouput of mplayer -vo ivtv -ao ivtv -ac hwmpa myfile.avi -v
MPlayer dev-SVN-r23385-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping:
7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
get_path('codecs.conf') -> '/home/fred/.mplayer/codecs.conf'
Reading /home/fred/.mplayer/codecs.conf: Can't open
'/home/fred/.mplayer/codecs.conf': No such file or directory
Reading /home/fred/bin/mplayer_cvs/etc/mplayer/codecs.conf: Can't open
'/home/fred/bin/mplayer_cvs/etc/mplayer/codecs.conf': No such file or
directory
Using built-in default codecs.conf.
Configuration: --prefix=/home/fred/bin/mplayer_cvs
CommandLine: '-vo' 'ivtv' '-ao' 'ivtv' '-ac' 'hwmpa' 'myfile.avi' '-v'
init_freetype
get_path('font/font.desc') -> '/home/fred/.mplayer/font/font.desc'
font: can't open file: /home/fred/.mplayer/font/font.desc
font: can't open
file: /home/fred/bin/mplayer_cvs/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/fred/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/fred/.mplayer/input.conf'
Can't open input config file /home/fred/.mplayer/input.conf: No such
file or directory
Can't open input config
file /home/fred/bin/mplayer_cvs/etc/mplayer/input.conf: No such file or
directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
get_path('myfile.avi.conf') -> '/home/fred/.mplayer/myfile.avi.conf'

Playing myfile.avi.
get_path('sub/') -> '/home/fred/.mplayer/sub/'
[file] File size is 365769708 bytes
STREAM: [file] myfile.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 60786   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  608 x 336
==========================
list_end=0xD4
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids   FCC: XVID (44495658)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 23976024/1000000 = 23.976
Start: 0   Len: 60786
Suggested BufferSize: 121680
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 608
  biHeight 336
  biPlanes 1
  biBitCount 24
  biCompression 1145656920='XVID'
  biSizeImage 612864
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x146
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0   Len: 105637
Suggested BufferSize: 0
Quality 0
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1152
bits/sample: 16
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x16A
hdr=Software  size=16
Software  : cant touch this
list_end=0x15A49274
Found movie at 0x800 - 0x15A49274
Reading INDEX block, 166423 chunks for 60786 frames (fpos=363106940).
AVI index offset: 0x0 (movi=0x800 idx0=0x800 idx1=0x10CE)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial  v_pts=0.000  a_pos=0 (0.000) 
AVI video size=323139051 (60786) audio size=38603832 (105637)
VIDEO:  [XVID]  608x336  24bpp  23.976 fps  1019.6 kbps (124.5 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:608x336  fps:23.98  ftime:=0.0417
Clip info:
 Software: cant touch this
get_path('sub/') -> '/home/fred/.mplayer/sub/'
VO: [ivtv] Available video outputs: '#0, S-Video + Composite' '#1,
Composite' '#2, S-Video' '#3, RGB' '#4, YUV C' '#5, YUV V' 
VO: [ivtv] using /dev/video16
VO: [ivtv] video output: S-Video + Composite
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Forced audio codec: hwmpa
Opening audio decoder: [hwmpa] MPEG audio pass-through (fake decoder)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
AC_HWMPA initialized, bitrate: 384 kb/s
AUDIO: 48000 Hz, 2 ch, mpeg2, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [hwmpa] afm: hwmpa (MPEG audio pass-through for
hardware MPEG decoders)
==========================================================================
Building audio filter chain for 48000Hz/2ch/mpeg2 -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/mpeg2
[dummy] Was reinitialized: 48000Hz/2ch/mpeg2
[AO MPEGPES] 48000 Hz not supported, try to resample.
AO: [ivtv] 48000Hz 2ch mpeg2 (1 bytes per sample)
AO: Description: IVTV MPEG Audio Decoder output
AO: Author: Benjamin Zores
Building audio filter chain for 48000Hz/2ch/mpeg2 ->
48000Hz/2ch/mpeg2...
[dummy] Was reinitialized: 48000Hz/2ch/mpeg2
[dummy] Was reinitialized: 48000Hz/2ch/mpeg2
Starting playback...
[ffmpeg] aspect_ratio: 1.809524
VDec: vo config request - 608 x 336 (preferred colorspace: Planar YV12)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
Opening video filter: [lavc]
Trying filter chain: lavc vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.81:1 - prescaling to correct movie aspect.
VO Config (608x336->608x336,flags=0,'MPlayer',0x32315659)
[mpeg1video @ 0x88f62e0]removing common factors from framerate
REQ: flags=0x103  req=0x0  
VO: [ivtv] 608x336 => 608x336 Mpeg PES 
VO: Description: IVTV MPEG Video Decoder TV-Out
VO: Author: Benjamin Zores
*** [lavc] Allocating mp_image_t, 608x336x12bpp YUV planar, 306432 bytes
*** [lavc] Allocating mp_image_t, 608x336x12bpp YUV planar, 306432 bytes
*** [vo] Exporting mp_image_t, 608x336x0bpp RGB packed, 0 bytes
*** [lavc] Allocating mp_image_t, 608x336x12bpp YUV planar, 306432 bytes
A:   4.1 V:   4.2 A-V: -0.085 ct:  0.000 101/101  4% 10%  0.0% 0 0 
MPlayer interrupted by signal 2 in module: flip_page
Uninit audio filters...
[libaf] Removing filter dummy 
Uninit audio: hwmpa
Uninit video: ffmpeg
MPlayer interrupted by signal 15 in module: uninit_vo
vo: x11 uninit called but X11 not inited..

==================================================
Output of mplayer -vo ivtv -ao alsa myfile.avi
 mplayer -vo ivtv -ao alsa myfile.avi
MPlayer dev-SVN-r23385-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping:
7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing myfile.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  608x336  24bpp  23.976 fps  1019.6 kbps (124.5 kbyte/s)
Clip info:
 Software: cant touch this
VO: [ivtv] Available video outputs: '#0, S-Video + Composite' '#1,
Composite' '#2, S-Video' '#3, RGB' '#4, YUV C' '#5, YUV V' 
VO: [ivtv] using /dev/video16
VO: [ivtv] video output: S-Video + Composite
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 608 x 336 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Opening video filter: [lavc]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.81:1 - prescaling to correct movie aspect.
[mpeg1video @ 0x88f62e0]removing common factors from framerate
VO: [ivtv] 608x336 => 608x336 Mpeg PES 
A:  16.6 V:  16.8 A-V: -0.173 ct: -0.000 404/404  5% 10%  1.0% 0 0 
Exiting... (Quit)


_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to