You are not logged in.

#1 2023-01-15 10:03:39

ezacaria
Member
Registered: 2007-12-10
Posts: 107

TBS-5580: kaffeine can record but not show channels

I have a TBS-5580 USB card with 2 frontends (one for DVB-S and DVB-S2, the rest for DBV-T/C /2).

Thanks to swearchnik's updates, the AUR package tbs-linux_media-git can now be built with kernel 6.1.6-arch1-1.

Now I have the modules loading and the firmware seemingly OK.

And kaffeine seems to grab the EPG without problems. It also scans OK.

If I hit instant record on kaffeine, then it generates a valid m2t file with the current channel's program. I can even watch it with mpv while it records.
However, I can't get kaffeine to play the channels on its window. This happens for both DVB-S and DVB-S2 free to air channels.

QT_LOGGING_RULES=kaffeine.vlc.debug=true kaffeine
15-01-23 10:40:05.511 [Warning ] QCommandLineParser: already having an option named "h"
15-01-23 10:40:05.511 [Warning ] QCommandLineParser: already having an option named "help-all"
15-01-23 10:40:05.511 [Warning ] QCommandLineParser: already having an option named "v"
15-01-23 10:40:05.534 [Debug   ] kaffeine.vlc: Using libVLC with args: --no-video-title-show
15-01-23 10:40:05.634 [Info    ] kaffeine.dvb: Using built-in dvb device manager
15-01-23 10:40:05.722 [Info    ] kaffeine.dev: Found dvb device : TBS 5580 CI USB2.0 DVB-T/T2/C/C2/ISDB-T
15-01-23 10:40:05.976 [Warning ] kaffeine.dev: Unsupported transmission type: 4
15-01-23 10:40:05.976 [Info    ] kaffeine.dev: Found dvb device : TBS 5580 CI USB2.0 DVB-S/S2/S2X
15-01-23 10:40:05.976 [Warning ] kaffeine.cam: Cannot open CA device node /dev/dvb/adapter0/ca0
15-01-23 10:40:10.538 [Debug   ] kaffeine.vlc: Got subtitle id#0: Track 1
15-01-23 10:40:10.558 [Debug   ] kaffeine.vlc: Got subtitle id#0: Track 1
15-01-23 10:40:10.568 [Debug   ] kaffeine.vlc: Got subtitle id#0: Track 1
15-01-23 10:40:11.070 [Debug   ] kaffeine.vlc: Got subtitle id#0: Track 1
15-01-23 10:40:11.070 [Debug   ] kaffeine.vlc: Got subtitle id#0: Track 1
15-01-23 10:40:11.072 [Debug   ] kaffeine.vlc: Got subtitle id#0: Track 1
[mpeg2video @ 0x7fbcd8005180] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7fbcd8005180] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7fbcd8005180] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7fbcd8005180] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7fbcd8005180] Invalid frame dimensions 0x0.

On the other hand, I followed some of the advice in the DVB-S wiki page. When using szap-s2 with frontend 1 and an HD channel (scanning file created with w_scan_cpp):

szap-s2 -H -f 1 -c ~/astra_19_2.conf -r 'ZDF HD;ZDFvision' -l ENHANCED
reading channels from file 'astra_19_2.conf'
zapping to 378 'ZDF HD;ZDFvision':
delivery DVB-S2, modulation 8PSK
sat 0, frequency 11362 MHz H, symbolrate 22000000, coderate 2/3, rolloff 0.35 stream_id 0
vpid 0x17de, apid 0x17e8, sid 0x17f2
using '/dev/dvb/adapter0/frontend1' and '/dev/dvb/adapter0/demux0'
status 00 | signal  57% | snr   0% | ber 1 | unc 0 | 
status 1f | signal  57% | snr  65% | ber 0 | unc 0 | FE_HAS_LOCK
status 1f | signal  56% | snr  65% | ber 0 | unc 0 | FE_HAS_LOCK
status 1f | signal  57% | snr  65% | ber 0 | unc 0 | FE_HAS_LOCK
status 1f | signal  57% | snr  65% | ber 0 | unc 0 | FE_HAS_LOCK
status 1f | signal  57% | snr  65% | ber 0 | unc 0 | FE_HAS_LOCK
...

which suggests that the signal and tuning is OK. But I cannot play the tuned channel. I kept szap-s2 running an tried to use mplayer /dev/dvb/adapter0/dvr0 (as in the wiki):

Playing /dev/dvb/adapter0/dvr0.
[file] File size is 0 bytes
STREAM: [file] /dev/dvb/adapter0/dvr0
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 59.27.100 (external)
LAVF_check: MPEG-TS (MPEG-2 Transport Stream)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /dev/dvb/adapter0/dvr0 ext: (null)
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 13236, FOUND 47, packet_size= 188, SEEMS A TS? 1
GOOD CC: 32, BAD CC: 0
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
Checking for MPEG-TS...
TRIED UP TO POSITION 13316, FOUND 47, packet_size= 188, SEEMS A TS? 1
GOOD CC: 32, BAD CC: 0
PROBING UP TO 0, PROG: 0
VIDEO MPEG2(pid=6110) AUDIO MPA(pid=6120) NO SUBS (yet)!  PROGRAM N. 0
==> Found video stream: 0

ADDED VIDEO PID 6110, type: 10000002 stream n. 0
==> Found audio stream: 0

ADDED AUDIO PID 6120, type: 50 stream n. 0
Opened TS demuxer, audio: 50(pid 0), video: 10000002(pid 0)...POS=36896, PROBE=0

demux_ts, switched to audio pid 6110, id: 0, sh: 0x55fa60523ca0

demux_ts, switched to audio pid 6120, id: 0, sh: 0x55fa605241c0
Searching for sequence header... 

dvbtraffic, on the other hand shows 6110 and 6120 (0x17de and 0x17e8, respectively) as having valid data rates

-PID--FREQ-----BANDWIDTH-BANDWIDTH-
0000     9 p/s     1 kb/s    14 kbit
0001     9 p/s     1 kb/s    14 kbit
0010     1 p/s     0 kb/s     2 kbit
0011    17 p/s     3 kb/s    26 kbit
0012   515 p/s    94 kb/s   774 kbit
0014     1 p/s     0 kb/s     2 kbit
17d4     9 p/s     1 kb/s    14 kbit
17de  9333 p/s  1713 kb/s 14038 kbit
17e8   175 p/s    32 kb/s   263 kbit
17e9   133 p/s    24 kb/s   201 kbit
17ea   306 p/s    56 kb/s   460 kbit
17eb   133 p/s    24 kb/s   201 kbit
17f2   203 p/s    37 kb/s   305 kbit
17f3     6 p/s     1 kb/s    10 kbit
17f4     1 p/s     0 kb/s     2 kbit
181a     6 p/s     1 kb/s    10 kbit
189c     9 p/s     1 kb/s    14 kbit
18a6  9333 p/s  1713 kb/s 14038 kbit
18b0   175 p/s    32 kb/s   263 kbit
18b1   133 p/s    24 kb/s   201 kbit
18b2   307 p/s    56 kb/s   461 kbit
18b3   132 p/s    24 kb/s   199 kbit
18ba   203 p/s    37 kb/s   305 kbit
18bb    10 p/s     1 kb/s    16 kbit
18e2     6 p/s     1 kb/s    10 kbit
1fff  8247 p/s  1514 kb/s 12404 kbit
2000 29431 p/s  5403 kb/s 44264 kbit

At this point, I am scratching my head. How does kaffeine manage to record but is not able to show the streams from the card?

And why are the streams shown to have valid stats by dvbtraffic, but mplayer cannot use them (neither can xine, for that matter)?

The card is working perfectly on windows (same machine, dual boot), and there was a brief period where kaffeine worked as expected, while I had kernel 6.0.10.
I also tried the LTS kernel, same results.

Offline

Board footer

Powered by FluxBB