[linux-dvb] scan is reporting 0 as audio PID for some HD channels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I recently replaced two Twinhan cards with both a plus and lite version 
of the DVico FusionHDTV cards.  The cards work pretty well (about 3x the 
signal strength of the VisionPlus cards), but audio is missing on some 
HD channels in mplayer.  Here is the output from one of the channels 
that drops audio:

MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2088 MHz (Family: 
6, Steppi
ng: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with 
--disable-runtime-cpudetection.
Reading config file /usr/local/etc/mplayer/mplayer.confReading config 
file /home
/mythtv/.mplayer/config
Reading /home/mythtv/.mplayer/codecs.conf: Reading 
/usr/local/etc/mplayer/codecs
.conf: Using built-in default codecs.conf.
font: can't open file: /home/mythtv/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Setting up LIRC support...

Playing dvb://0@ABC HDTV.
code taken from dvbstream for mplayer v0.4pre1 - (C) Dave Chapman 2001
Released under the GPL.
Latest version available from http://www.linuxstb.org/
dvb_tune Freq: 662500000
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=2314)...NO AUDIO!  NO SUBS (yet)!  PROGRAM N. 0
Opened TS demuxer, audio: ffffffff(pid -1), video: 10000002(pid 
2314)...POS=3139
6
VIDEO:  MPEG2  720x576  (aspect 3)  50.000 fps  8500.0 kbps (1062.5 
kbyte/s)
vo: X11 running at 800x600 with depth 16 and 16 bpp (":0.0" => local 
display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12
V:74517.2  195  13% 10%  0.0% 0 0 0%
Exiting... (Quit)

On a channel that doesn't drop audio, the output looks like:

MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2088 MHz (Family: 
6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with 
--disable-runtime-cpudetection.
Reading config file /usr/local/etc/mplayer/mplayer.confReading config 
file /home/mythtv/.mplayer/c
onfig
Reading /home/mythtv/.mplayer/codecs.conf: Reading 
/usr/local/etc/mplayer/codecs.conf: Using built
-in default codecs.conf.
font: can't open file: /home/mythtv/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Setting up LIRC support...

Playing dvb://0@7 HD Digital.
code taken from dvbstream for mplayer v0.4pre1 - (C) Dave Chapman 2001
Released under the GPL.
Latest version available from http://www.linuxstb.org/
dvb_tune Freq: 620500000
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=833)...AUDIO MPA(pid=834) NO SUBS (yet)!  PROGRAM N. 0
Opened TS demuxer, audio: 50(pid 834), video: 10000002(pid 833)...POS=30080
VIDEO:  MPEG2  720x576  (aspect 3)  50.000 fps  9000.0 kbps (1125.0 
kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 32000->192000 (256.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 800x600 with depth 16 and 16 bpp (":0.0" => local 
display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12
A:13537.1 V:13537.7 A-V: -0.621 ct: -0.412  207/207  16% 10% 12.1% 0 0 0%%
Exiting... (Quit)


The difference is obviously the PID for the audio.  If I grep HD on my 
channels.conf file, I get:

ABC 
HDTV:662500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2314:0:560 

7 HD 
Digital:620500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:833:834:1332 

Nine Digital 
HD:641500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:512:0:1073 

TEN 
HD:711500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:514:0:1592 

SBS 
HD:683500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_2_3:FEC_NONE:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:HIERARCHY_NONE:102:103:78 


As you can see, the PID reported from scan for ABC HDTV, Nine Digital HD 
and TEN HD are all 0 and mplayer barfs over that.  Now, when I do "scan 
-o pids", and grep those results for HD I get:

ABC HDTV                 (0x0230) 01: PCR 0x0903 V 0x090a TT 0x090c AC3 
0x090b
7 HD Digital             (0x0534) 01: PCR == V   V 0x0341 A 0x0342       
TT 0x0304 AC3 0x0343
Nine Digital HD          (0x0431) 01: PCR 0x0080 V 0x0200 TT 0x0240 AC3 
0x028a
TEN HD                   (0x0638) 01: PCR 0x0082 V 0x0202 AC3 0x02a0
SBS HD                   (0x0310) 01: PCR == V   V 0x0066 A 0x006

As you can see, the channels that don't have audio in mplayer are ones 
that don't transmit a standard audio channel, but transmit AC3.  
Unfortunately, scan doesn't appear to report a valid audio PID for 
mplayer to read.  I tried changing the Audio PID in channels.conf to the 
ac3 PID.  That gave me audio, but after a few seconds the vidoe slows 
down or the audio stops and I get output like:

MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2088 MHz (Family: 
6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with 
--disable-runtime-cpudetection.
Reading config file /usr/local/etc/mplayer/mplayer.confReading config 
file /home/mythtv/.mplayer/c
onfig
Reading /home/mythtv/.mplayer/codecs.conf: Reading 
/usr/local/etc/mplayer/codecs.conf: Using built
-in default codecs.conf.
font: can't open file: /home/mythtv/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Setting up LIRC support...

Playing dvb://0@Nine Digital HD.
code taken from dvbstream for mplayer v0.4pre1 - (C) Dave Chapman 2001
Released under the GPL.
Latest version available from http://www.linuxstb.org/
dvb_tune Freq: 641500000
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=512)...AUDIO A52(pid=650) NO SUBS (yet)!  PROGRAM N. 0
Opened TS demuxer, audio: 2000(pid 650), video: 10000002(pid 
512)...POS=350996
VIDEO:  MPEG2  1440x1088  (aspect 3)  25.000 fps  12600.0 kbps (1575.0 
kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
AC3: 2.0 (dolby)  48000 Hz  384.0 kbit/s
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
vo: X11 running at 800x600 with depth 16 and 16 bpp (":0.0" => local 
display)
Disabling DPMS
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1440 x 1088 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 1440 x 1088 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1440x1088 => 1934x1088 Planar YV12
A:77522.2 V:   0.0 A-V:77522.152 ct:  0.000    1/  1   0%  0%  0.0% 0 0 
0%^MA:77522.2 V:   0.1 A-V:77522.102 ct:  0.004    2/  2   0%  0%  0.0% 
0 0 0%^MA:77522.2 V:   0.1 A-V:77522.046 ct:  0.008    3/  3   0%  0%  
0.0% 0 0 0%^MA:77522.2 V:77522.5 A-V: -0.345 ct:  0.004    4/  4   0%  
0%  0.0% 0 0 0%^MA:77522.2 V:77522.6 A-V: -0.369 ct:  0.000    5/  5   
0%  0%  0.0% 0 0 0%^MA:77522.3 V:77522.6 A-V: -0.297 ct: -0.004    6/  
6   0%  0%  0.0% 0 0 0%^MA:77522.3 V:77522.7 A-V: -0.323 ct: -0.008    
7/  7   0%  0%  0.0% 0 0 0%^MA:77522.3 V:77522.7 A-V: -0.352 ct: 
-0.012    8/  8   0%  0%  0.0% 0 0 0%^MA:77522.4 V:77522.7 A-V: -0.287 
ct: -0.016    9/  9   0%  0%  0.0% 0 0 0%^MA:77522.5 V:77522.8 A-V: 
-0.313 ct: -0.020   10/ 10   0%  0%  0.0% 0 0 0%^MA:77522.5 V:77522.8 
A-V: -0.339 ct: -0.024   11/ 11   0%  0%  0.0% 0 0 0%^MA:77522.6 
V:77522.9 A-V: -0.239 ct: -0.028   12/ 12   0%  0%  0.0% 0 0 
0%^MA:77522.7 V:77522.9 A-V: -0.222 ct: -0.032   13/ 13   0%  0%  0.0% 0 
0 0%^MA:77522.7 V:77522.9 A-V: -0.257 ct: -0.036   14/ 14  41% 10%  1.6% 
0 0 0%^MA:77522.7 V:77523.0 A-V: -0.287 ct: -0.040   15/ 15  41% 10%  
1.5% 0 0 0%^MA:77522.7 V:77523.0 A-V: -0.328 ct: -0.044   16/ 16  40% 
10%  1.5% 0 0 0%^MA:77522.8 V:77523.1 A-V: -0.229 ct: -0.048   17/ 17  
40% 10%  1.5% 0 0 0%^MA:77522.8 V:77523.1 A-V: -0.289 ct: -0.052   18/ 
18  39% 10%  1.5% 0 0 0%^MA:77522.8 V:77523.1 A-V: -0.315 ct: -0.056   
19/ 19  39% 10%  1.5% 0 0 0%^MA:77522.9 V:77523.2 A-V: -0.250 ct: 
-0.060   20/ 20  39% 10%  1.6% 0 0 0%^MA:77522.9 V:77523.2 A-V: -0.279 
ct: -0.064   21/ 21  39% 10%  1.6% 0 0 0%^MA:77523.1 V:77523.3 A-V: 
-0.202 ct: -0.068   22/ 22  38% 10%  1.7% 0 0 0%^MA:77523.1 V:77523.3 
A-V: -0.232 ct: -0.072   23/ 23  38% 10%  1.7% 0 0 0%^MA:77523.1 
V:77523.3 A-V: -0.249 ct: -0.076   24/ 24  38% 10%  1.7% 0 0 
0%^MA:77523.2 V:77523.4 A-V: -0.193 ct: -0.080   25/ 25  38% 10%  1.7% 0 
0 0%^MA:77523.2 V:77523.4 A-V: -0.219 ct: -0.084   26/ 26  38% 10%  1.6% 
0 0 0%^MA:77523.2 V:77523.5 A-V: -0.244 ct: -0.088   27/ 27  38% 10%  
1.6% 0 0 0%^MA:77523.3 V:77523.5 A-V: -0.210 ct: -0.092   28/ 28  38% 
10%  1.6% 0 0 0%^MA:77523.3 V:77523.5 A-V: -0.240 ct: -0.096   29/ 29  
38% 10%  1.6% 0 0 0%^MA:77523.3 V:77523.6 A-V: -0.265 ct: -0.100   30/ 
30  37% 10%  1.6% 0 0 0%^MA:77523.4 V:77523.6 A-V: -0.200 ct: -0.104   
31/ 31  37% 10%  1.6% 0 0 0%^MA:77523.4 V:77523.7 A-V: -0.226 ct: 
-0.108   32/ 32  37% 10%  1.7% 0 0 0%^MA:77523.4 V:77523.7 A-V: -0.252 
ct: -0.112   33/ 33  37% 10%  1.7% 0 0 0%^MA:77523.5 V:77523.7 A-V: 
-0.187 ct: -0.116   34/ 34  37% 10%  1.7% 0 0 0%^MA:77523.6 V:77523.8 
A-V: -0.216 ct: -0.120   35/ 35  37% 10%  1.7% 0 0 0%^MA:77523.7 
V:77523.8 A-V: -0.139 ct: -0.124   36/ 36  37% 10%  1.7% 0 0 
0%^MA:77523.7 V:77523.9 A-V: -0.169 ct: -0.128   37/ 37  37% 10%  1.7% 0 
0 0%^MA:77523.7 V:77523.9 A-V: -0.220 ct: -0.132   38/ 38  37% 10%  1.7% 
0 0 0%^MA:77523.8 V:77523.9 A-V: -0.125 ct: -0.136   39/ 39  37% 10%  
1.7% 0 0 0%^MA:77523.8 V:77524.0 A-V: -0.166 ct: -0.140   40/ 40  37% 
11%  1.6% 0 0 0%^MA:77523.8 V:77524.0 A-V: -0.227 ct: -0.144   41/ 41  
37% 11%  1.7% 0 0 0%^MA:77523.9 V:77524.1 A-V: -0.127 ct: -0.148   42/ 
42  37% 11%  1.7% 0 0 0%^MA:77523.9 V:77524.1 A-V: -0.157 ct: -0.152   
43/ 43  37% 11%  1.7% 0 0 0%^MA:77524.0 V:77524.1 A-V: -0.111 ct: 
-0.156   44/ 44  37% 12%  1.7% 0 0 0%^MA:77524.0 V:77524.2 A-V: -0.140 
ct: -0.160   45/ 45  37% 12%  1.7% 0 0 0%^MA:77524.1 V:77524.2 A-V: 
-0.166 ct: -0.164   46/ 46  37% 12%  1.7% 0 0 0%^MA:77524.2 V:77524.3 
A-V: -0.102 ct: -0.168   47/ 47  37% 12%  1.7% 0 0 0%^MA:77524.1 
V:77524.3 A-V: -0.162 ct: -0.172   48/ 48  37% 13%  1.7% 0 0 
0%^MA:77524.1 V:77524.3 A-V: -0.187 ct: -0.176   49/ 49  37% 13%  1.7% 0 
0 0%^MA:77524.3 V:77524.4 A-V: -0.087 ct: -0.180   50/ 50  37% 13%  1.7% 
0 0 0%^MA:77524.3 V:77524.4 A-V: -0.148 ct: -0.184   51/ 51  37% 13%  
1.7% 0 0 0%^MA:77524.3 V:77524.5 A-V: -0.182 ct: -0.188   52/ 52  36% 
13%  1.7% 0 0 0%^MA:77524.4 V:77524.5 A-V: -0.078 ct: -0.192   53/ 53  
36% 13%  1.7% 0 0 0%^MA:77524.4 V:77524.5 A-V: -0.138 ct: -0.196   54/ 
54  36% 14%  1.7% 0 0 0%^MA:77524.4 V:77524.6 A-V: -0.164 ct: -0.200   
55/ 55  37% 14%  1.7% 0 0 0%^MA:77524.6 V:77524.6 A-V: -0.064 ct: 
-0.204   56/ 56  37% 14%  1.7% 0 0 0%^MA:77524.5 V:77524.7 A-V: -0.125 
ct: -0.208   57/ 57  36% 14%  1.8% 0 0 0%^MA:77524.5 V:77524.7 A-V: 
-0.151 ct: -0.212   58/ 58  36% 14%  1.8% 0 0 0%^Ma52: CRC check failed!

The "a52: CRC check failed!" error repeats over and over.

So, how do I resolve this?  Should I set the audio PID to the SD audio 
channel one?  The only reservation I have of doing that is the 
possibility that some HD programming may NOT be simply simulcasts of the 
normal HD programming.

Craig...


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005




[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux