Results 1 to 2 of 2

Thread: Unable to record audio on tvcard plugged in line-in

  1. #1
    Join Date
    Aug 2005
    Beans
    115

    Unable to record audio on tvcard plugged in line-in

    Hi,

    I am tring to use SOX to forward alsa hw.0,1 to /dev/dsp1 so I can use mythTV to record video using my tv-card. The card work just fine and the audio cable is plugged into line-in on my sound card.

    I can record tv with sound using:
    mencoder -tv driver=v4l2:input=2:width=640:height=480:norm=ntsc :chanlist=us-cable:alsa:adevice=hw.0,0 tv://37 -oac copy -ovc copy -o test.avi

    All solutions in forums are outdated and don't work anymore, even if they worked with previous Ubuntu version (last time I tried to use sox was with 7.10). What is the right command line?

    *Ubuntu 9.10 fresh install
    **Pulseaudio is removed as it cause me nightmares.

    EDIT: this does not work
    Code:
    sudo sox -s -r 32000 -c 2 -t alsa hw:0,0 -s -r 32000 -c 2 -t ossdsp /dev/dsp1
    sox soxio: Can't open output file `/dev/dsp1': Unable to reset OSS driver.  Possibly accessing an invalid file/device
    /dev/dsp1 does not exist so it may be normal
    Last edited by Elv13; November 19th, 2009 at 05:10 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    Peru, South America
    Beans
    1,486
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Unable to record audio on tvcard plugged in line-in

    You may have to change your mencoder line like this:
    Code:
    alsa:adevice=hw.1,0:amode=1:audiorate=32000: -oac pcm
    Notice the hw.# is different than 0, also amode=1 and audiorate, you can set that to what you want, and then the -oac pcm. It has been a very long time so I don't remember exactly where or why I used those options, but it seems to work for me.

    Shane

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
  •