Hello,
I use Debian Bullseye with a USB DVB tuner Realtek RTL2832. If I don't use VDR ("systemctl stop vdr") and use "VLC" or "mpv" I can see all HD TV channels, so I suppose that there is no hardware problem.
With VDR, the sound has not the good speed, too fast, sometimes not synchronized with the video. But always, the sound and the video freeze after few seconds and restart continuously. The same situation is produced with the commands "vdr-sxfe" or "xine xvdr://".
I've tried to change the parameters like "engine.buffers ..." in "~/.xine/config_xineliboutput" and directly (as "root") in "/var/lib/vdr/plugins/xineliboutput/config" (restart of the service done) without succes for "vdr-sxfe". The file "~/.xine/config_xineliboutput" is re-written at each time after living 'vdr-sxfe'. The parameters with "Xine" are persistent.
I don't understand why "~/.xine/config_xineliboutput" is re-written after "vdr-sxfe" and loose the values that I set.
The replay works perfectly even if there is some freezes.
I hope that someone could help me
Best regards.
Lyx
The VDR packages installed :
libxine2-bin/stable,now 1.2.10-4+b1 amd64 [installed,automatic]
libxine2-doc/stable,now 1.2.10-4 all [installed,automatic]
libxine2-plugins/stable,now 1.2.10-4 all [installed,automatic]
libxine2-vdr/stable,now 1.2.10-4+b1 amd64 [installed,automatic]
libxine2-xvdr/stable,now 2.1.0+git20191101-1.1 amd64 [installed,automatic]
libxine2/stable,now 1.2.10-4+b1 amd64 [installed]
vdr-plugin-epgsearch/stable,now 2.4.0+git20191101-1 amd64 [installed]
vdr-plugin-femon/stable,now 2.4.0-3 amd64 [installed]
vdr-plugin-xine/stable,now 0.9.4-17 amd64 [installed]
vdr-plugin-xineliboutput/stable,now 2.1.0+git20191101-1.1 amd64 [installed]
vdr/stable,now 2.4.1-4.1 amd64 [installed]
vdradmin-am/stable,now 3.6.10-4.1 all [installed]
xine-console/stable,now 0.99.9-2 amd64 [installed]
xine-ui/stable,now 0.99.9-2 amd64 [installed]
xineliboutput-sxfe/stable,now 2.1.0+git20191101-1.1 amd64 [installed]
The USB DVB Tuner :
~$ lsdvb
lsdvb: Simple utility to list PCI/PCIe DVB devices
Version: 0.0.4
Copyright (C) Manu Abraham
usb (0:0 0:0) on PCI Domain:2 Bus:0 Device:14 Function:-2147483648
DEVICE:0 ADAPTER:0 FRONTEND:0 (Realtek RTL2832 (DVB-T))
FE_OFDM Fmin=174MHz Fmax=862MHz
The loading of the DVB's driver :
root@black:~# dmesg -Hw | grep -i dvb
[ +0.009687] usb 1-3.4: dvb_usb_v2: found a 'Realtek RTL2832U reference design' in warm state
[ +0.014295] usb 1-3.4: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[ +0.000005] dvbdev: DVB: registering new adapter (Realtek RTL2832U reference design)
[ +0.000175] dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
[ +0.000007] usb 1-3.4: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
[ +0.000003] dvbdev: dvb_create_media_entity: media entity 'Realtek RTL2832 (DVB-T)' registered.
[ +0.000094] rc rc0: lirc_dev: driver dvb_usb_rtl28xxu registered at minor = 0, raw IR receiver, no transmitter
[ +0.000459] usb 1-3.4: dvb_usb_v2: schedule remote query interval to 200 msecs
[ +0.009105] usb 1-3.4: dvb_usb_v2: 'Realtek RTL2832U reference design' successfully initialized and connected
[ +0.000092] usbcore: registered new interface driver dvb_usb_rtl28xxu
The video card with the output of some tools :
~$ inxi -G
Graphics:
Device-1: Intel HD Graphics 630 driver: i915 v: kernel
Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting
unloaded: fbdev,vesa resolution: 1680x1050~60Hz
OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 20.3.5
# lshw -c display
*-display
description: VGA compatible controller
product: HD Graphics 630
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:131 memory:f6000000-f6ffffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
# lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04) (prog-if 00 [VGA controller])
DeviceName: Onboard IGD
Subsystem: Gigabyte Technology Co., Ltd HD Graphics 630
Flags: bus master, fast devsel, latency 0, IRQ 131, IOMMU group 1
Memory at f6000000 (64-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915
# intel_gpu_frequency
cur: 350 MHz
min: 350 MHz
RP1: 350 MHz
max: 1150 MHz
The packages for the video card :
i965-va-driver-shaders/stable,now 2.4.1-1 amd64 [installed]
xserver-xorg-video-intel/stable,now 2:2.99.917+git20200714-1+b1 amd64 [installed,automatic]
The audio :
~# lshw -c sound
*-multimedia
description: Audio device
product: 200 Series PCH HD Audio
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=snd_hda_intel latency=32
resources: irq:133 memory:f7140000-f7143fff memory:f7120000-f712ffff
~# lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
The loaded modules :
root@black:~# lsmod | egrep -i -e '2832|audio'
rtl2832_sdr 40960 0
videobuf2_vmalloc 20480 1 rtl2832_sdr
videobuf2_v4l2 36864 1 rtl2832_sdr
videobuf2_common 65536 2 rtl2832_sdr,videobuf2_v4l2
videodev 286720 3 rtl2832_sdr,videobuf2_v4l2,videobuf2_common
rtl2832 28672 1
i2c_mux 16384 1 rtl2832
dvb_core 155648 2 dvb_usb_v2,rtl2832
ledtrig_audio 16384 1 snd_hda_codec_generic
usbcore 323584 8 rtl2832_sdr,xhci_hcd,dvb_usb_v2,usbhid,dvb_usb_rtl28xxu,usb_storage,xhci_pci,uas
The ' ~/.xine/config_xineliboutput' used by 'vdr-sxfe' :
~/.xine$ grep -v '#' config_xineliboutput| grep [a-z]
.version:2
audio.synchronization.av_sync_method:resample
video.processing.ffmpeg_thread_count:4
effects.goom.fps:25
effects.goom.height:576
effects.goom.width:720
engine.buffers.video_num_buffers:250
engine.performance.memcpy_method:libc
The '~/.xine/config' used by 'xine xvdr:://'
~/.xine$ grep -v '#' config | grep [a-z]
.version:2
gui.eventer_x:1178
gui.eventer_y:641
gui.experience_level:Expert
gui.panel_x:658
gui.panel_y:641
gui.playlist_x:435
gui.playlist_y:696
gui.setup_x:882
gui.setup_y:149
audio.synchronization.av_sync_method:resample
video.driver:opengl2
video.processing.ffmpeg_pp_quality:2
video.processing.ffmpeg_thread_count:4
media.files.origin_path:/home/vdr/Le_dictateur_(VM)/2021-12-30.22.49.7-0.rec
engine.buffers.audio_num_buffers:20000
engine.buffers.video_num_buffers:20000
engine.buffers.video_num_frames:20000
engine.performance.memcpy_method:kernel
engine.performance.warn_discarded_threshold:20
engine.performance.warn_skipped_threshold:20
Display More
The command "intel-gpu-top" with the VDR service stopped :
# intel-gpu-top
intel-gpu-top - 150/ 150 MHz; 78% RC6; 0.20 Watts; 451 irqs/s
IMC reads: 982 MiB/s
IMC writes: 289 MiB/s
ENGINE BUSY MI_SEMA MI_WAIT
ENGINE BUSY MI_SEMA MI_WAIT
Render/3D/0 9.04% |███ | 0% 0%
Blitter/0 0.00% | | 0% 0%
Video/0 0.00% | | 0% 0%
VideoEnhance/0 0.00% | | 0% 0%
The command "intel-gpu-top" with only "mpv" without the VDR service running :
intel-gpu-top - 293/ 293 MHz; 34% RC6; 0.59 Watts; 633 irqs/s
IMC reads: 2005 MiB/s
IMC writes: 785 MiB/s
ENGINE BUSY MI_SEMA MI_WAIT
Render/3D/0 52.03% |██████████████████▏ | 0% 0%
Blitter/0 0.00% | | 0% 0%
Video/0 0.00% | | 0% 0%
VideoEnhance/0 0.00% | | 0% 0%
With the VDR service running and 'vdr-sxfe' running on Arte when audio video are, roughly, synchronized :
intel-gpu-top - 702/ 702 MHz; 54% RC6; 2.39 Watts; 846 irqs/s
IMC reads: 2218 MiB/s
IMC writes: 956 MiB/s
ENGINE BUSY MI_SEMA MI_WAIT
Render/3D/0 25.40% |████████▉ | 0% 0%
Blitter/0 0.00% | | 0% 0%
Video/0 0.00% | | 0% 0%
VideoEnhance/0 0.00% | | 0% 0%
But when the audio and video freeze the display is :
intel-gpu-top - 142/ 141 MHz; 79% RC6; 0.19 Watts; 442 irqs/s
IMC reads: 1043 MiB/s
IMC writes: 248 MiB/s
ENGINE BUSY MI_SEMA MI_WAIT
Render/3D/0 8.36% |██▉ | 0% 0%
Blitter/0 0.00% | | 0% 0%
Video/0 0.00% | | 0% 0%
VideoEnhance/0 0.00% | | 0% 0%
If if use "xine xvdr://" the display is identical even if the software configuration of Xine is not the same.