Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to stream video between two PCs with a WinTV card. I can stream video, but the stream contains no audio.

# lspci -v:
06:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
    Subsystem: Hauppauge computer works Inc. WinTV Series
    Flags: bus master, medium devsel, latency 32, IRQ 16
    Memory at fb9ff000 (32-bit, prefetchable) [size=4K]
    Capabilities: [44] Vital Product Data
    Capabilities: [4c] Power Management version 2
    Kernel driver in use: bttv

06:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
    Subsystem: Hauppauge computer works Inc. WinTV Series
    Flags: bus master, medium devsel, latency 32, IRQ 16
    Memory at fb9fe000 (32-bit, prefetchable) [size=4K]
    Capabilities: [44] Vital Product Data
    Capabilities: [4c] Power Management version 2
    Kernel driver in use: snd_bt87x

Video is working with those vlc lines:

server:
vlc v4l2:///dev/video0 --sout '#transcode{vcodec=mp4v,acodec=mp3,vb=400,ab=128}:standard{access=http,mux=ts,dst=192.168.1.1:8080}'

client:
vlc http://192.168.1.1:8080

Scanning the logs I can find the following message:

[0xb2607160] v4l2 demux debug: tuning required: tuner 0
[0xb2607160] v4l2 demux debug: tuner Television (0) is Analog TV
[0xb2607160] v4l2 demux debug:  ranges from 44000.0 kHz to 958000.0 kHz
[0xb2607160] v4l2 demux debug:  supports primary audio language
[0xb2607160] v4l2 demux debug:  supports secondary audio language or program
[0xb2607160] v4l2 demux debug:  supports stereo audio
[0xb2607160] v4l2 demux debug: tuner 0 audio mode 3 set
[0xb2607160] v4l2 demux debug: tuner not tuned
[0xb2607160] v4l2 demux debug: no audio input available

I can watch TV with this card using mplayer, so I suspect there must be a way to get sound output:

player tv:// -tv driver=v4l2:width=768:height=576:outfmt=rgb24:channel=e9:device=/dev/video0

What am I doing wrong? Do I somehow have to set an additional sound input? If so, how? Using lsof shows me that mplayer is just holding /dev/video0 as open file descriptor in /dev.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.