Код: Выделить всё
options cx88xx card=66 tuner=71 alsa=1 index=2
options snd-hda-intel index=0
options cx88_alsa index=1
картинка появилась, но без звука. Теперь надо чтобы великий немой заговорил. В общем, драйвер cx88 категорически отказывается давать в mplayer звук чере альзу... "Audio: no sound" (то же самое и tvtime, который молчит даже при имеющемся /dev/mixer):
или, если уточнить:
Код: Выделить всё
$ mplayer tv://R-2 -tv device=/dev/video0:normid=13:alsa:forceaudio:chanlist=russia
MPlayer SVN-r36265-4.8.2 (C) 2000-2013 MPlayer Team
203 audio & 423 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://R-2.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Prolink Pixelview MPEG 8000GT
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO
Capabilities: video capture VBI capture device tuner read/write streaming
supported norms: 0 = NTSC-M; 1 = NTSC-M-JP; 2 = NTSC-443; 3 = PAL-BG; 4 = PAL-I; 5 = PAL-DK; 6 = PAL-M; 7 = PAL-N; 8 = PAL-Nc; 9 = PAL-60; 10 = SECAM-B; 11 = SECAM-G; 12 = SECAM-H; 13 = SECAM-DK; 14 = SECAM-L;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 0
Current format: UYVY
v4l2: current audio mode is : MONO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
TV channel names detected.
Selected channel: 2 - ch1 (freq: 59.250)
Could not find a UTF-8 locale, some keys will not be handled.
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed UYVY
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==========================================================================
Audio: no sound
FPS forced to be 25.000 (ftime: 0.040).
Starting playback...
V: 0.0 44/ 44 0% 1% 0.0% 0 0
v4l2: 45 frames successfully processed, 0 frames dropped.
Exiting... (Quit)
Ну вот а если в mplayer скормить такое уточнение: $ mplayer tv://R-2 -tv device=/dev/video0:normid=3:alsa:forceaudio:chanlist=russia
То можно бонусом получить такую информацию:
Код: Выделить всё
v4l2: current audio mode is : MONO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
TV channel names detected.
Selected channel: 2 - ch1 (freq: 59.250)
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM /dev/audio1
Error opening audio: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM /dev/audio1
Error opening audio: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM /dev/audio1
Error opening audio: No such file or directory
v4l2: 0 frames successfully processed, 0 frames dropped.
cat .mplayer/config
Код: Выделить всё
Write your default config options here!
tv=driver=v4l2:normid=13:adevice=/dev/audio1:channels=2-ch1,4-ch2,SK1-ch3,SK2-ch4,SK3-ch5,SK4-ch6,SK5-ch7,SK6-ch8,SK7-ch9,6-ch10,7-ch11,10-ch13,12-ch14
# tv=adevice=/dev/audio1:immediatemode=0
Помогает опция "immediatemode=0" но она дает такой вот артефактик "новый кадр в старом" при переключении каналов:
Жуткий рассинхрон и mpv вываливает такое предупреждение:
Код: Выделить всё
mpv tv://
Playing: tv://
Audio block size too low, setting to 7990!
Detected file format: TV card demuxer
[stream] Video (+) --vid=1 (rawvideo)
[stream] Audio (+) --aid=1 (mp-pcm)
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
X11 error: GLXBadFBConfig
[vo/opengl] Could not create GL3 context. Retrying with legacy context.
Selected video codec: raw video [lavc:rawvideo]
Selected audio codec: Raw PCM [lavc:mp-pcm]
AO: [alsa] 48000Hz stereo 2ch s16le
VO: [opengl] 640x480 => 640x480 420p
AV: 00:00:01 / 00:00:00 (0%) A-V: 1.352 Late: 50
*************************************************
**** Audio/Video desynchronisation detected! ****
*************************************************
This means either the audio or the video is played too slowly.
Possible reasons, problems, workarounds:
- Your system is simply too slow for this file.
Transcode it to a lower bitrate file with tools like HandBrake.
- Broken/buggy _audio_ driver.
Experiment with different values for --autosync, 30 is a good start.
If you have PulseAudio, try --ao=alsa .
- Slow video output.
Try a different -vo driver (-vo help for a list) or try -framedrop!
- Playing a video file with --vo=opengl with higher FPS than the monitor.
This is due to vsync limiting the framerate.
- Playing from a slow network source.
Download the file instead.
- Try to find out whether audio or video is causing this by experimenting
with --no-video and --no-audio.
- If you swiched audio or video tracks, try seeking to force synchronization.
If none of this helps you, file a bug report.
AV: 00:00:57 / 00:00:00 (0%) A-V: 84.834 Late: 3512
libv4l2: error dequeuing buf: Invalid argument
cat .mpv/config
Код: Выделить всё
$ cat .mpv/config
# Write your default config options here!
tv-device=/dev/video0
tv-adevice=/dev/dsp1
tv-immediatemode=0
# tv-norm=SECAM_DK
tv-normid=13
tv-buffersize=1024
tv-width=640
tv-height=480
tv-fps=25
tv-quality=0
tv-forcechan=2
msglevel-tv=2
autosync=1
tv-decimation=1
# tv-input=0
tv-channels=R2-ch1,R4-ch2,R6-ch3,R7-ch4,R9-ch5,R10-ch6,R12-ch7,SR1-ch8,SR2-ch9,SR3-ch10,SR4-ch11,SR5-ch12,SR6-ch13,SR7-ch14,SR11-ch15,SR12-ch16,SR13-ch17,SR14-ch18,E6-ch19,E12-ch20
[composite]
tv-device=/dev/video0
tv-adevice=/dev/audio1
tv-immediatemode=0
tv-normid=13
tv-input=0
Хэлп, что делать ???
P.S: Да, и актуальный lsmod (включил все что можно было):
Код: Выделить всё
lsmod
Module Size Used by
snd_pcm_oss 38927 0
snd_mixer_oss 14586 1 snd_pcm_oss
fuse 74768 6
rc_pixelview_new 1138 0
tuner_xc2028 20060 1
tuner 16522 1
coretemp 6334 0
kvm_intel 131191 0
cx8800 30114 0
kvm 389125 1 kvm_intel
cx88_alsa 9557 1
cx88xx 73565 2 cx88_alsa,cx8800
snd_hda_codec_via 19726 1
snd_hda_intel 36904 1
snd_hda_codec 149953 2 snd_hda_codec_via,snd_hda_intel
snd_hwdep 6340 1 snd_hda_codec
btcx_risc 3315 3 cx88_alsa,cx8800,cx88xx
snd_pcm 77709 4 snd_pcm_oss,cx88_alsa,snd_hda_codec,snd_hda_intel
tveeprom 14361 1 cx88xx
videobuf_dma_sg 8072 3 cx88_alsa,cx8800,cx88xx
microcode 15216 0
videobuf_core 15855 3 videobuf_dma_sg,cx8800,cx88xx
rc_core 16611 3 rc_pixelview_new,cx88xx
v4l2_common 4803 3 tuner,cx8800,cx88xx
videodev 111172 5 tuner,cx88_alsa,cx8800,cx88xx,v4l2_common
i915 657302 2
video 11228 1 i915
drm_kms_helper 36286 1 i915
atl1c 36906 0
gpio_ich 4536 0
iTCO_wdt 5407 0
iTCO_vendor_support 1937 1 iTCO_wdt
drm 238206 3 i915,drm_kms_helper
media 11751 1 videodev
ppdev 7126 0
snd_page_alloc 7242 2 snd_pcm,snd_hda_intel
i2c_algo_bit 5399 2 i915,cx88xx
psmouse 85428 0
snd_timer 18726 1 snd_pcm
evdev 11085 7
i2c_i801 11277 0
i2c_core 24164 12 drm,i915,i2c_i801,tuner,drm_kms_helper,i2c_algo_bit,cx8800,cx88xx,v4l2_common,tv
eeprom,tuner_xc2028,videodev
snd 59173 13 snd_pcm_oss,cx88_alsa,snd_hwdep,snd_timer,snd_hda_codec_via,snd_pcm,snd_hda_code
c,snd_hda_intel,snd_mixer_oss
soundcore 5450 1 snd
pcspkr 2035 0
shpchp 25465 0
lpc_ich 13376 0
serio_raw 5049 0
intel_agp 10880 1 i915
intel_gtt 12664 3 i915,intel_agp
parport_pc 19543 0
parport 30549 2 ppdev,parport_pc
button 4677 1 i915
acpi_cpufreq 10779 0
processor 24935 1 acpi_cpufreq
sg 25657 0
ext4 474251 1
crc16 1367 1 ext4
mbcache 6082 1 ext4
jbd2 83504 1 ext4
usb_storage 48007 0
sd_mod 30789 4
sr_mod 14898 0
cdrom 34848 1 sr_mod
ata_generic 3410 0
pata_acpi 3395 0
ata_piix 25088 3
libata 170856 3 pata_acpi,ata_generic,ata_piix
scsi_mod 130669 5 sg,usb_storage,libata,sd_mod,sr_mod
ehci_pci 4000 0
uhci_hcd 24795 0
ehci_hcd 59220 1 ehci_pci
usbcore 180136 4 uhci_hcd,usb_storage,ehci_hcd,ehci_pci
usb_common 1656 1 usbcore
Код: Выделить всё
v4l2-ctl --list-devices
Prolink Pixelview MPEG 8000GT (PCI:0000:03:02.0):
/dev/video0
/dev/radio0
/dev/vbi0
Интересно, где шляется /dev/audio1 ???