Просмотр телепередач
Просмотр телепередач
После установки драйвера под карточку ati напрочь отказывается работать tvtime (при запуске на долю секунды появляется окошко и все - как будто нарушение сегментации). KDEtv сканирует и прописывает в таблицу каналы, но не показывает ничего. xawtv кривейшим образом запускается и вешает систему.
Хотел бы попробовать протестировать через mplayer:
mplayer -tv driver=v4l2:width=640:height=480:outfmt=i420 -vc rawi420 tv://
Подскажите, пожалуйста, правильные опции для какого-нибудь канала, а то показывает серый переливающийся экран.
Хотел бы попробовать протестировать через mplayer:
mplayer -tv driver=v4l2:width=640:height=480:outfmt=i420 -vc rawi420 tv://
Подскажите, пожалуйста, правильные опции для какого-нибудь канала, а то показывает серый переливающийся экран.
mplayer - работает, каналы переключаются, но...Llama писал(а):попроюбй посмотреть тюнер с помощью mplayer и различный vo - предположу что ati порсто сломали что-то типа xvideo
Код: Выделить всё
mplayer -tv driver=v4l2:width=640:height=480:outfmt=i420 -vc rawi420 tv://
MPlayer 1.0rc2-4.1.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski>
comment: first try, more to come ;-)
Selected device: Avermedia AVerTV Studio 307
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = PAL-BG; 2 = PAL-I; 3 = PAL-DK; 4 = NTSC; 5 = SECAM; 6 = PAL-M; 7 = PAL-Nc; 8 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = Composite2; 3 = S-Video;
Current input: 0
Current format: BGR24
v4l2: current audio mode is : MONO
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
==========================================================================
Forced video codec: rawi420
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 640x480 => 640x480 Planar I420
[swscaler @ 0x880fb10]SwScaler: using unscaled yuv420p -> rgb32 special converter
Selected video codec: [rawi420] vfm: raw (RAW I420)
==========================================================================
Audio: no sound
Starting playback...
v4l2: 87 frames successfully processed, 0 frames dropped.
Exiting... (Quit)
Llama писал(а):что и требовалось доказать - сломано xv.
покажите xorg.conf
Код: Выделить всё
# File generated by XFdrake (rev 57713)
# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************
Section "ServerLayout"
Identifier "layout1"
Screen 0 "aticonfig-Screen[0]" 0 0
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
EndSection
Section "Files"
# font server independent of the X server to render fonts.
# minimal fonts to allow X to run without xfs
FontPath "unix/:-1"
FontPath "/usr/share/fonts/misc:unscaled"
EndSection
Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
Load "dri" # direct rendering
EndSection
Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
#DontZoom # disable <Crtl><Alt><KP_>/<KP_> (resolution switching)
# allows the server to start up even if the mouse does not work
Option "allowmouseopenfail"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru(winkeys)"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,compose:rwin"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
EndSection
Section "Monitor"
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "SyncMaster"
HorizSync 30.0 - 85.0
VertRefresh 50.0 - 160.0
ModeLine "768x576" 50.0 768 832 846 1000 576 590 595 630
ModeLine "768x576" 63.1 768 800 960 1024 576 578 590 616
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "device1"
Driver "ati"
VendorName "ATI Technologies Inc."
BoardName "ATI Radeon (fglrx)"
Option "DPMS"
Option "XaaNoOffscreenPixmaps" "1"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
EndSection
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite"
EndSection
Сделал. В xorg.config все прописалось.Llama писал(а):попробуйте сделать:
aticonfig --overlay-type=Xv
TVtime заработал сразу после смены сеанса. Звук отсутствует.
mplayer - тоже самое:
Код: Выделить всё
[alex@localhost ~]$ mplayer -tv driver=v4l2:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv tv://
*********************
v4l2: current audio mode is : STEREO
==========================================================================
Audio: no sound
Starting playback...
С драйвером mesa звук же работает.
Llama писал(а):Fright, а вы попробуйте попроще:
mplayer -v -tv driver=v4l2:norm=secam tv:// и покажите что получится. Это для начала и покажите что пишет.
Можно попытаться так же v4lctl volume mute off movie audio stereo
Код: Выделить всё
[alex@localhost ~]$ mplayer -v -tv driver=v4l2:norm=pal tv://
MPlayer 1.0rc2-4.1.1 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 2500+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/home/alex/.mplayer/codecs.conf'
Reading /home/alex/.mplayer/codecs.conf: Can't open '/home/alex/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-menu
CommandLine: '-v' '-tv' 'driver=v4l2:norm=pal' 'tv://'
init_freetype
get_path('font/font.desc') -> '/home/alex/.mplayer/font/font.desc'
font: can't open file: /home/alex/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/alex/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/alex/.mplayer/input.conf'
Can't open input config file /home/alex/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('.conf') -> '/home/alex/.mplayer/.conf'
Playing tv://.
get_path('sub/') -> '/home/alex/.mplayer/sub/'
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski>
comment: first try, more to come ;-)
Selected device: Avermedia AVerTV Studio 307
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO STEREO LANG1 LANG2
Capabilites: video capture video overlay VBI capture device tuner read/write streaming
supported norms: 0 = PAL; 1 = PAL-BG; 2 = PAL-I; 3 = PAL-DK; 4 = NTSC; 5 = SECAM; 6 = PAL-M; 7 = PAL-Nc; 8 = PAL-60;
inputs: 0 = Television; 1 = Composite1; 2 = Composite2; 3 = S-Video;
Current input: 0
Format GREY ( 8 bits, 8 bpp gray): Planar Y800
Format RGB555 (16 bits, 15 bpp RGB, le): BGR 15-bit
Format RGB555X (16 bits, 15 bpp RGB, be): Unknown 0x51424752
Format RGB565 (16 bits, 16 bpp RGB, le): BGR 16-bit
Format RGB565X (16 bits, 16 bpp RGB, be): Unknown 0x52424752
Format BGR24 (24 bits, 24 bpp RGB, le): BGR 24-bit
Format RGB24 (24 bits, 24 bpp RGB, be): RGB 24-bit
Format BGR32 (32 bits, 32 bpp RGB, le): BGRA
Format RGB32 (32 bits, 32 bpp RGB, be): RGBA
Format YUYV (16 bits, 4:2:2 packed, YUYV): Packed YUY2
Format UYVY (16 bits, 4:2:2 packed, UYVY): Packed UYVY
Format YUV422P (16 bits, 4:2:2 planar, Y-Cb-Cr): Planar 422P
Format YUV420 (12 bits, 4:2:0 planar, Y-Cb-Cr): Planar I420
Format YVU420 (12 bits, 4:2:0 planar, Y-Cb-Cr): Planar YV12
Current format: BGR24
v4l2: current audio mode is : STEREO
v4l2: set format: YVU420
v4l2: set input: 0
Selected norm : pal
v4l2: set norm: PAL
Selected channel list: europe-east (including 133 channels)
Current frequency: 1908 (119.250)
==> Found video stream: 0
v4l2: get format: YVU420
v4l2: get fps: 25.000000
v4l2: get width: 640
v4l2: get height: 480
Using a ring buffer for maximum 2 frames, 0 MB total size.
v4l2: set Brightness: 128 [0, 255]
v4l2: set Hue: 0 [-128, 127]
v4l2: set Saturation: 64 [0, 127]
v4l2: set Contrast: 68 [0, 127]
[V] filefmt:9 fourcc:0x32315659 size:640x480 fps:25.00 ftime:=0.0400
get_path('sub/') -> '/home/alex/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x00001e).
[xv common] Maximum source image dimensions: 2048x2048
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=0,'MPlayer',0x32315659)
VO: [xv] 640x480 => 640x480 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 132 for hw scaling
[xv] dx: 0 dy: 0 dw: 640 dh: 480
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
v4l2: going to capture
*** [vo] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
get_path('subfont.ttf') -> '/home/alex/.mplayer/subfont.ttf'
Unicode font: 1418 glyphs.
[xv] dx: 0 dy: 0 dw: 640 dh: 480
Uninit video: raw??% ??% ??,?% 0 0
v4l2: 80 frames successfully processed, 0 frames dropped.
v4l2: up to 1 video frames buffered.
Successfully enabled DPMS
vo: uninit ...
Exiting... (Quit)