Results 1 to 3 of 3

Thread: All In Wonder 9600XT and TV capture

  1. #1
    Join Date
    Sep 2006
    Beans
    6

    All In Wonder 9600XT and TV capture

    Hi!!

    Finally, I found a way to make my All In Wonder 9600XT work under K/Ubuntu Dapper Drake 6.06 (and Gentoo 2006.1)!!

    After a lot of trial, here's how I did it!

    The All In Wonder 9600XT is based on ATI's Theatre 200 video capture and encoding chip ... check here and here
    to know more about this multimedia card!!

    First, download (with Synaptic or Adept) everything in relation with xserver-xorg-...., X11-..., X11proto...etc and particularly xserver-xorg-ATI.

    Go into your motherboard BIOS ("Advanced Menu" "Chip Configuration") and set those following options this way::

    AGP Performance Control Enabled (optional)
    AGP Disk Write Control Enabled
    Video Memory Cache Mode [USWC] (optional)(Activating this option causes fuzzy horizontal lines on my screen! Check if your Graphic Card support it!)

    The most important option to enable is AGP Disk Write Control ..... otherwise your screen will freeze when you'll start AVView!


    More about these options here and here



    And now here's the most important part to make TV Capture work!
    Your All In Wonder must be already installed under Windows!
    Go to your Windows partition and copy this file " ativmc20.cod"

    (this module will necessary to capture TV Channels)... (and it still doen't exist under Linux)
    It should be located here :::
    C:\WINDOWS\system32\drivers\ativmc20.cod

    copy it to your K/Ubuntu partition in
    /usr/lib/xorg/modules/multimedia/
    and rename it rt2_pmem.bin
    $ cd /usr/lib/xorg/modules/multimedia
    $ sudo mv ativmc20.cod rt2_pmem.bin
    $ dir /
    $ dir /usr/lib/xorg/modules/multimedia
    bt829_drv.so rt2_pmem.bin tda9885_drv.so theatre_drv.so
    fi1236_drv.so tda8425_drv.so theatre200_drv.so uda1380_drv.so
    msp3430_drv.so tda9850_drv.so theatre_detect_drv.so

    Your graphic card driver must be Radeon ATI (Xorg modular 7.0 or 7.1) and not ATI fglrx!!
    Now edit your /etc/X11/xorg.conf file and add the following option "AGPFastWrite" in the Section "Device"

    $ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup_dateoftheday
    $ sudo nano -w /etc/X11/xorg.conf
    Section "Device.............
    ......
    ....
    Option "AGPFastWrite" "1"
    ......
    ......
    EndSection

    For exemple, here's my copy of xorg.conf file::
    # /etc/X11/xorg.conf (xorg X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    #
    # Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
    # (Type "man /etc/X11/xorg.conf" at the shell prompt.)
    #
    # This file is automatically updated on xserver-xorg package upgrades *only*
    # if it has not been modified since the last upgrade of the xserver-xorg
    # package.
    #
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    # sudo dpkg-reconfigure -phigh xserver-xorg

    Section "Files"
    FontPath "/usr/share/X11/fonts/misc"
    FontPath "/usr/share/X11/fonts/cyrillic"
    FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath "/usr/share/X11/fonts/Type1"
    FontPath "/usr/share/X11/fonts/100dpi"
    FontPath "/usr/share/X11/fonts/75dpi"
    # path to defoma fonts
    FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    EndSection

    Section "Module"
    Load "bitmap"
    Load "ddc"
    Load "dri"
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "int10"
    Load "type1"
    Load "vbe"
    EndSection

    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "es"
    Option "XkbVariant" "es"
    EndSection

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "ExplorerPS/2"
    Option "ZAxisMapping" "4 5"
    EndSection

    Section "InputDevice"
    Driver "wacom"
    Identifier "stylus"
    Option "Device" "/dev/wacom" # Change to
    # /dev/input/event
    # for USB
    Option "Type" "stylus"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection

    Section "InputDevice"
    Driver "wacom"
    Identifier "eraser"
    Option "Device" "/dev/wacom" # Change to
    # /dev/input/event
    # for USB
    Option "Type" "eraser"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection

    Section "InputDevice"
    Driver "wacom"
    Identifier "cursor"
    Option "Device" "/dev/wacom" # Change to
    # /dev/input/event
    # for USB
    Option "Type" "cursor"
    Option "ForceDevice" "ISDV4" # Tablet PC ONLY
    EndSection

    Section "Device"
    #Option "VideoKey" # <i>
    #Option "RageTheatreCrystal" # <i>
    #Option "RageTheatreTunerPort" # <i>
    #Option "RageTheatreCompositePort" # <i>
    #Option "RageTheatreSVideoPort" # <i>
    #Option "TunerType" # <i>
    #Option "RageTheatreMicrocPath" # <str>
    #Option "RageTheatreMicrocType" # <str>
    #Option "RenderAccel" # [<bool>]
    Option "AGPFastWrite" "1"
    Identifier "ATI Technologies, Inc. RV350 AR [Radeon 9600 XT]"
    Driver "ati"
    BusID "PCI:1:0:0"
    Option "UseFBDev" "true"
    EndSection

    Section "Monitor"
    Identifier "S/M 950p"
    Option "DPMS"
    HorizSync 30-96
    VertRefresh 50-160
    EndSection

    Section "Screen"
    Identifier "Default Screen"
    Device "ATI Technologies, Inc. RV350 AR [Radeon 9600 XT]"
    Monitor "S/M 950p"
    DefaultDepth 24
    SubSection "Display"
    Depth 1
    Modes "1280x1024" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 4
    Modes "1280x1024" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 8
    Modes "1280x1024" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1280x1024" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1280x1024" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1280x1024" "640x480"
    EndSubSection
    EndSection

    Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen"
    InputDevice "Generic Keyboard"
    InputDevice "Configured Mouse"
    InputDevice "stylus" "SendCoreEvents"
    InputDevice "cursor" "SendCoreEvents"
    InputDevice "eraser" "SendCoreEvents"
    EndSection

    Section "DRI"
    Mode 0666
    EndSection

    Reboot your system!
    and check if everything loaded fine!
    $ cat /var/log/Xorg.0.log
    .........
    ........
    .......
    (II) RADEON(0): Tuner is on port 0
    (II) RADEON(0): Composite connector is port 2
    (II) RADEON(0): SVideo connector is port 6
    (II) RADEON(0): Rage Theatre: Connectors (detected): tuner=0, composite=2, svideo=6
    (II) RADEON(0): RageTheatre: Connectors (using): tuner=0, composite=2, svideo=6
    (II) RADEON(0): video decoder type used: 0x0006
    (II) RADEON(0): Going to load the corresponding theatre module
    (II) Loading sub module "theatre200"
    (II) LoadModule: "theatre200"
    (II) Loading /usr/lib/xorg/modules/multimedia/theatre200_drv.so
    (II) Module theatre200: vendor="X.Org Foundation"
    compiled for 7.0.0, module version = 1.0.0
    ABI class: X.Org Video Driver, version 0.8
    (II) RADEON(0): Microcode: Use default microcode path: /usr/lib/xorg/modules/multimedia/rt2_pmem.bin
    (II) RADEON(0): Microcode: Use default microcode type: BINARY
    (II) RADEON(0): Microcode: device_id: 4d4a
    (II) RADEON(0): Microcode: vendor_id: 1002
    (II) RADEON(0): Microcode: rev_id: 1b
    (II) RADEON(0): Microcode: num_seg: 4
    (II) RADEON(0): Microcode: dsp_init OK
    (II) RADEON(0): Microcode: dsp_download OK
    (II) RADEON(0): VIP_GPIO_CNTL: 600001
    (II) RADEON(0): VIP_GPIO_INOUT: 600000
    (II) RADEON(0): VIP_GPIO_CNTL: 600011
    (II) RADEON(0): VIP_GPIO_INOUT: 710010
    (II) RADEON(0): Rage Theatre setting standard 0x0000
    (II) RADEON(0): Microcode: Use microcode path: /usr/lib/xorg/modules/multimedia/rt2_pmem.bin
    (II) RADEON(0): Microcode: Use microcode type: BINARY
    (II) RADEON(0): Microcode: device_id: 4d4a
    (II) RADEON(0): Microcode: vendor_id: 1002
    (II) RADEON(0): Microcode: rev_id: 1b
    (II) RADEON(0): Microcode: num_seg: 4
    (II) RADEON(0): Microcode: dsp_init OK
    (II) RADEON(0): Microcode: dsp_download OK
    (**) RADEON(0): RADEONScreenInit finished
    ........
    .........
    ......
    check if any errors appears:
    $ cat /var/log/Xorg.0.log | grep EE






    Now download and compile AVView and ffmpeg! (it is not necessary to install it)

    Download ffmeg-0.4.8 :
    $ cd $HOME
    $ mkdir Downloads
    $ cd Downloads
    Download ffmpeg-0.4.8 from http://www.escomposlinux.org/lfs-es/...ia/ffmpeg.html
    $ wget http://switch.dl.sourceforge.net/sou...g-0.4.8.tar.gz
    $ tar -zxvf ffmpeg-0.4.8.tar.gz
    $ cd ffmpeg-0.4.8
    ffmpeg is tricky to configure! you will have to adjust the make and cflags options according to your own hardware (CPU)!
    I have an AMD Athlon XP 1800+
    Also I have not figured out how to configure mingw32 and faad options (just don't include them)

    Check here ::: http://gentoo-wiki.com/CFLAGS and http://gentoo-wiki.com/Safe_Cflags
    (I tested ffmpeg under Gentoo ... but it also compile fine under K/Ubuntu) (Take note that ffmpeg doesn't compile with gcc-4.0... so use gcc-3.4)

    $ ./configure --cc=gcc-3.4 --cpu=athlon-xp --extra-cflags=-O2 -march=athlon-xp -pipe --enable-mp3lame --enable-vorbis --enable-a52 --enable-pp --enable-shared-pp --enable-shared

    or more safely
    ./configure --cc=gcc-3.4 --cpu=athlon-xp --extra-cflags=-O2 -march=athlon-xp -pipe --enable-mp3lame --enable-vorbis

    $ make


    Download AVView here http://sourceforge.net/project/showf...group_id=12629

    $ cd $HOME/Downloads
    $ wget http://switch.dl.sourceforge.net/sou...-0.80.7.tar.gz
    $ tar -zxvf avview-0.80.7.tar.gz
    $ cd avview-0.80.7
    the --cc= option doesn't exist in avview so I will use gcc-3.4 this way:::
    $ export CC=/usr/bin/gcc-3.4

    $ ./configure --with-ffmpeg=$HOME/Downloads/ffmpeg-0.4.8
    user@user-desktop:~/Downloads/avview-0.80.7$ ./configure --with-ffmpeg=$HOME/Downloads/ffmpeg-0.4.8
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for gcc... /usr/bin/gcc-3.4
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether /usr/bin/gcc-3.4 accepts -g... yes
    checking for /usr/bin/gcc-3.4 option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of /usr/bin/gcc-3.4... gcc3
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking for _LARGE_FILES value needed for large files... no
    checking whether byte ordering is bigendian... no
    checking how to run the C preprocessor... /usr/bin/gcc-3.4 -E
    checking for X... libraries /usr/X11R6/lib, headers in standard search path
    checking for gethostbyname... yes
    checking for connect... yes
    checking for remove... yes
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for unistd.h... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking whether /usr/bin/gcc-3.4 needs -traditional... no
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking types of arguments for select... int,fd_set *,struct timeval *
    checking for gettimeofday... yes
    checking for memmove... yes
    checking for memset... yes
    checking for rint... no
    checking for select... yes
    checking for strcasecmp... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for dlopen in -ldl... yes
    checking for uncompress in -lz... yes
    checking for sin in -lm... yes
    checking for pthread_create in -lpthread... yes
    checking for vbi_capture_v4l_new in -lzvbi... yes
    checking for snd_card_get_name in -lasound... yes
    checking for lirc_init in -llirc_client... yes
    The libraries mp3lame, ogg, vorbis and vorbisenc might be required by ffmpeg
    checking for lame_encode_buffer in -lmp3lame... yes
    checking for oggpack_write in -logg... yes
    checking for vorbis_book_init_encode in -lvorbis... yes
    checking for vorbis_encode_init in -lvorbisenc... yes
    checking linux/videodev.h usability... yes
    checking linux/videodev.h presence... yes
    checking for linux/videodev.h... yes
    checking libzvbi.h usability... yes
    checking libzvbi.h presence... yes
    checking for libzvbi.h... yes
    checking for X11/extensions/Xinerama.h... yes
    checking for XCreateSimpleWindow in -lX11... yes
    checking for XInitExtension in -lXext... yes
    checking for XvPutVideo in -lXv... yes
    checking for XineramaIsActive in -lXinerama... yes
    checking for Tcl configuration... found /usr/lib/tcl8.4/tclConfig.sh
    checking for Tk configuration... found /usr/lib/tk8.4/tkConfig.sh
    checking for existence of /usr/lib/tcl8.4/tclConfig.sh... loading
    checking for existence of /usr/lib/tk8.4/tkConfig.sh... loading
    checking ffmpeg version... ok
    checking for ANSI C header files... (cached) yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking for fcntl.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for sys/ioctl.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for an ANSI C-conforming const... (cached) yes
    checking whether /usr/bin/gcc-3.4 needs -traditional... (cached) no
    checking for memset... (cached) yes
    checking for strdup... (cached) yes
    checking for strerror... (cached) yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating start_avview.no_install
    config.status: creating config.h
    config.status: executing depfiles commands

    ------------------- Configuration -------------------

    X11 libraries -L/usr/X11R6/lib
    X11 cflags
    TCL location /usr
    TCL version 8.4.12
    TK location /usr
    TCL version 8.4.12
    ALSA support yes
    Movie recording enabled
    Path to compiled ffmeg source /home/user_name/Downloads/ffmpeg-0.4.8

    Binaries will be installed in ${exec_prefix}/bin
    Script files will be installed in ${prefix}/share/AVview
    $ make

    ./start_avview.no_install

    (under Gentoo I have to start it twice before it works)
    ---------------------------------------------------------
    (optional)
    If you want to install it
    just do: (you must be root)
    $ sudo make install
    and to uninstall
    $ sudo make uninstall

    ---------------------------------------------------------

    To start it from your desktop just add this command with an icon!

    The AVView window will appear
    Select Control Window in the menu
    Encoding must read NTSC-tuner (for local capture)(with an antenna)
    Select Alsa Mixer and choose your sound card ... do the adjustment
    Sound will be located in LINE

    Now my television work fine ....but I can't record anything!!! ..... yet!!!

    When I'am clicking on RECORD it tells me::::

    "Looking for km device that corresponds to PCI:01:00.0"

    The program search for KM module (GATOS)!! (which we are not using)

    and I just don't know where is located my tuner in /dev ?
    Someone have any idea about it?????


    Also I still have not figured out how to make the FM tuner work! (I don't know where is my tuner in /dev)
    Last edited by gilbert27; October 30th, 2006 at 12:50 AM.

  2. #2
    Join Date
    May 2006
    Location
    Nebraska
    Beans
    480
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: All In Wonder 9600XT and TV capture

    I haven't tried this yet, but I plan to soon. My card is not an XT, but other than that everything is the same.

    For the benefit of anyone else who wants to give this a go but doesn't have Windows installed, I have located the file ativmc20.cod on the ATI installation and software CD:
    (cd drive)/install/WDM/WDM_2k/ativmc20.cod
    (cd drive)/install/WDM/WDM_9x/ativmc20.cod
    (cd drive)/install/WDM/WDM_XP/ativmc20.cod

    Not sure if it matters which one is used.

    Gilbert27- Thanks for moving this here. I would recommend that you edit your post to use code tags rather than quote tags, just so it's easier to scroll through. Also, the thread should have more specific tags, such as ati, capture, etc. to make it easier to find for those who have similar issues.

  3. #3
    Join Date
    May 2006
    Beans
    35

    Re: All In Wonder 9600XT and TV capture

    Just some notes on this. I got it working, but the compile of avview needed some extra libraries.

    So I searched via synaptic and loaded most devs. here is my hisory of what i installed to get avview to compile.

    libzvbi-dev (0.2.22-1)
    tcl8.4-dev (8.4.12-1.1)
    tk8.4-dev (8.4.12-1)
    x-dev (7.0.7-1)
    libxmuu-dev (2:1.0.2-1ubuntu1)
    libxpm-dev (1:3.5.5-1)
    libxtrap-dev (2:1.0.0-3build1)
    libxtst-dev (2:1.0.1-3build1)
    libxv-dev (2:1.0.1-3ubuntu1)
    x11proto-record-dev (1.13.2-3ubuntu1)
    x11proto-trap-dev (3.4.3-3ubuntu1)
    x11proto-video-dev (2.2.2-3ubuntu1)
    xlibs-dev (1:7.1.1ubuntu6)
    xvattr (1.3-0.3)
    libdmx-dev (1:1.0.2-1)
    libfontenc-dev (1:1.0.2-1)
    libfs-dev (2:1.0.0-3build1)
    libxaw-headers (2:1.0.2-0ubuntu1)
    libxaw7-dev (2:1.0.2-0ubuntu1)
    libxevie-dev (1:1.0.1-0ubuntu1)
    libxfont-dev (1:1.2.0-0ubuntu3)
    libxkbfile-dev (1:1.0.3-0ubuntu1)
    libxkbui-dev (1:1.0.2-0ubuntu1)
    libxkbui1 (1:1.0.2-0ubuntu1)
    libxres-dev (2:1.0.1-0ubuntu1)
    libxss-dev (1:1.0.1-4ubuntu1)
    libxv1-dbg (2:1.0.1-3ubuntu1)
    libxvmc-dev (2:1.0.2-0ubuntu2)
    libxxf86dga-dev (2:1.0.1-0ubuntu1)
    libxxf86misc-dev (1:1.0.1-0ubuntu1)
    libxxf86vm-dev (1:1.0.1-0ubuntu1)
    x11proto-bigreqs-dev (1:1.0.2-0ubuntu3)
    x11proto-dmx-dev (1:2.2.2-3ubuntu2)
    x11proto-evie-dev (1:1.0.2-3ubuntu1)
    x11proto-fontcache-dev (0.1.2-3ubuntu1)
    x11proto-fonts-dev (2.0.2-3)
    x11proto-resource-dev (1.0.2-3ubuntu1)
    x11proto-scrnsaver-dev (1.1.0-1)
    x11proto-xcmisc-dev (1.1.2-3ubuntu1)
    x11proto-xf86bigfont-dev (1.1.2-3ubuntu1)
    x11proto-xf86dga-dev (2.0.2-3ubuntu1)
    x11proto-xf86dri-dev (2.0.3-3ubuntu1)
    x11proto-xf86misc-dev (0.9.2-3ubuntu1)
    x11proto-xf86vidmode-dev (2.2.2-3ubuntu1)
    xorg-dev (1:7.1.1ubuntu6)
    xserver-xorg-dev (1:1.1.1-0ubuntu12)
    xvfb (1:1.1.1-0ubuntu12)

    I also dont run windows, or have it installed so I found the Catalyst drive at Ati's site

    https://a248.e.akamai.net/f/674/9206..._enu_37616.exe

    I ran the exe with wine and it extracted to my home dir. I then searched around and used the .cod file from the XP dir.

    The S-video in works and so does the composite, but the cable doesnt really work. Kind of a big headache for this. I think I will just go get a Hauppauge PVR-150. Atleast we know that works.

    Also xawtv works, and I didnt put the options in the xorg conf, they locked up my comp.
    Last edited by pedalwrench; December 3rd, 2006 at 05:21 AM. Reason: added some more notes

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •