Discussion:
[MPlayer-dvb] DVB Playback Issues
Derek Ivey
2011-12-14 00:44:15 UTC
Permalink
Hi guys,

I successfully got mplayer working with vdpau and playing TV channels, however I notice a few issues occasionally.
Sometimes when I tune to a channel, I get no audio and the video appears to be laggy. Sometimes when this happens I just get blocks near the top (see pic: Loading Image...).

Here is the command I am running: mplayer -vo vdpau -vc ffmpeg12vdpau -ao alsa dvb://WGAL-DT

When it plays back properly, the mplayer command line output looks like this:

MPlayer SVN-r34413-snapshot-4.5.2 (C) 2000-2011 MPlayer Team

Playing dvb://WGAL-DT.
dvb_tune Freq: 423000000
TS file format detected.
VIDEO MPEG2(pid=2176) AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 0
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38799.2 kbps (4849.9 kbyte/s)
Xlib: extension "XFree86-VidModeExtension" missing on display ":0".
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 MPEG2 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:87209.4 V:87210.9 A-V: -1.476 ct: 0.000 4/ 4 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame sync error
A:87209.4 V:87211.0 A-V: -1.507 ct: -0.003 5/ 5 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
A:87209.6 V:87211.0 A-V: -1.357 ct: -0.007 6/ 6 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame sync error
[AO_ALSA] alsa-lib: pcm.c:6553:(snd_pcm_mmap_commit) commit offset (2346) doesn't match with appl_ptr (22752) % buf_size (4096)
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A:87209.6 V:87211.0 A-V: -1.395 ct: -0.010 7/ 7 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
A:87209.8 V:87211.1 A-V: -1.302 ct: -0.013 8/ 8 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame sync error
A:87209.8 V:87211.1 A-V: -1.285 ct: -0.017 9/ 9 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame CRC mismatch
A:87209.8 V:87211.1 A-V: -1.290 ct: -0.020 10/ 10 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame sync error
A:87209.9 V:87211.2 A-V: -1.273 ct: -0.023 11/ 11 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
A:87209.9 V:87211.2 A-V: -1.248 ct: -0.027 12/ 12 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame sync error
A:87210.0 V:87211.2 A-V: -1.243 ct: -0.030 13/ 13 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
A:87210.1 V:87211.3 A-V: -1.117 ct: -0.033 14/ 14 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame sync error
A:87210.2 V:87211.3 A-V: -1.080 ct: -0.037 15/ 15 ??% ??% ??,?% 0 0 $<50>
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
A:87210.3 V:87211.3 A-V: -1.010 ct: -0.040 16/ 16 112% 27% 0.3% 0 0 $<50>
[ac3 @ 0x8accee0]frame sync error
A:87210.3 V:87211.4 A-V: -1.005 ct: -0.043 17/ 17 105% 25% 0.3% 0 0 $<50>
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]frame sync error
A:87217.2 V:87217.5 A-V: -0.298 ct: -0.661 202/202 8% 2% 1.0% 0 0 $<50>



When it doesn't play back properly, the mplayer command line output looks like this:

MPlayer SVN-r34413-snapshot-4.5.2 (C) 2000-2011 MPlayer Team

Playing dvb://WGAL-DT.
dvb_tune Freq: 423000000
TS file format detected.
VIDEO MPEG2(pid=2176) AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 0
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38799.2 kbps (4849.9 kbyte/s)
Xlib: extension "XFree86-VidModeExtension" missing on display ":0".
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]get_buffer() failed
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]get_buffer() failed
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]get_buffer() failed
[ac3 @ 0x8accee0]frame sync error
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [a52] (afm=liba52) not available.
Enable it at compilation.
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 384000 bps, 48000 Hz

AUDIO: 48000 Hz, 2 ch, ac3be, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] Format ac3be is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch ac3le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 MPEG2 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:86937.3 V:86939.0 A-V: -1.703 ct: -0.043 20/ 17 59% 3% 1596.4% 16 0 $<50>

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
A:86937.3 V:86939.3 A-V: -1.984 ct: -0.068 27/ 23 41% 2% 1566.8% 22 0 $<50>
[mpegvideo_vdpau @ 0x8accee0]slice below image (172 >= 68)
Error while decoding frame!
A:86937.3 V:86939.6 A-V: -2.299 ct: -0.097 34/ 30 31% 1% 1672.8% 29 0 $<50>
AO: [alsa] 44100Hz 2ch ac3le (2 bytes per sample)
A:86937.3 V:86939.7 A-V: -2.335 ct: -0.101 35/ 31 30% 1% 1616.8% 30 0 $<50>
AO: [alsa] 48000Hz 2ch ac3le (2 bytes per sample)
A:86937.3 V:86940.2 A-V: -2.857 ct: -0.147 46/ 42 22% 5% 1397.3% 41 0 $<50>

Too many video packets in the buffer: (491 in 33583933 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A:86937.3 V:86943.2 A-V: -5.874 ct: -0.401 107/103 38% 22% 564.6% 41 0 $<50>
[mpegvideo_vdpau @ 0x8accee0]slice below image (126 >= 68)
Error while decoding frame!
A:86937.3 V:86947.0 A-V: -9.663 ct: -0.735 187/183 24% 16% 316.3% 41 0 $<50>

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
A:86937.3 V:86947.0 A-V: -9.695 ct: -0.739 188/184 24% 16% 314.6% 41 0 $<50>
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
A:86937.3 V:86947.8 A-V:-10.460 ct: -0.793 206/200 23% 15% 291.3% 41 0 $<50>

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
A:86937.3 V:86949.4 A-V:-12.046 ct: -0.922 238/231 20% 13% 251.0% 41 0 $<50>
[mpegvideo_vdpau @ 0x8accee0]slice below image (70 >= 68)
Error while decoding frame!



When I try forcing the audio codec to "-ac ffac3" (to match the working attempt), I still sometimes get no audio and when this occurs, the output looks like this:

MPlayer SVN-r34413-snapshot-4.5.2 (C) 2000-2011 MPlayer Team

Playing dvb://WGAL-DT.
dvb_tune Freq: 423000000
TS file format detected.
VIDEO MPEG2(pid=2176) AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 0
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38799.2 kbps (4849.9 kbyte/s)
Xlib: extension "XFree86-VidModeExtension" missing on display ":0".
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Forced audio codec: ffac3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]get_buffer() failed
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]get_buffer() failed
[ac3 @ 0x8accee0]frame sync error
[ac3 @ 0x8accee0]frame CRC mismatch
[ac3 @ 0x8accee0]get_buffer() failed
[ac3 @ 0x8accee0]frame sync error
Unknown/missing audio format -> no sound
ADecoder init failed :(
Cannot find codec for audio format 0x2000.
Audio: no sound
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 MPEG2 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
V:87386.0 9/ 9 ??% ??% ??,?% 0 0 $<50>
[mpegvideo_vdpau @ 0x8accee0]slice below image (71 >= 68)
Error while decoding frame!
V:87390.8 149/146 16% 5% 0.0% 0 0 $<50>

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
V:87392.1 184/180 12% 4% 0.0% 0 0 $<50>

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
V:87392.2 185/181 12% 4% 0.0% 0 0 $<50>
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
V:87396.9 327/318 7% 2% 0.0% 0 0 $<50>

I'm running this on a 32-bit Slackware 13.37 system (kernel version 2.6.38.4). The tuner is a Hauppauge WinTV-HVR 950Q.

Anyone have any ideas?

Thanks,
Derek
Bill Pringlemeir
2011-12-17 19:58:38 UTC
Permalink
Post by Derek Ivey
I successfully got mplayer working with vdpau and playing TV channels,
however I notice a few issues occasionally. Sometimes when I tune to
a channel, I get no audio and the video appears to be laggy. Sometimes
http://i.imgur.com/BvMhT.jpg).
You can try '-afm ffmpeg' instead of using '-ac'. Sometimes, channels
will change the sound encoding from show to show. One moment it is 2
channel, the next it is 5.1. Mplayer is trying to use the 'spdif' hwac
codec. This passes the audio from the 'air' directly out your audio
output without processing the audio at all. Anyways, you may have a
card (sound blaster, ICH5, etc) that supports SPDIF but there is no way
to know the cable is connected without configuration.

When you specify '-ac' it will only use that codec. However, the
particular codec might not be able to play the sound stream of the
moment. The benefit of '-afm' is that if a suitable codec is not found
in that family, mplayer will still search for others suitable to play
the stream. You might also try '-ac -hwac3' to prohibit the spif
pass-through 'decoder'. Also, you might need to install liba52 to get
the stream decoded. You have these lines,
Post by Derek Ivey
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [a52] (afm=liba52) not available.
Enable it at compilation.
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 384000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3be, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
I think the sound on the channel you are tuning to is switching between
2 channel PCM and 5.1 AC3 encode mp3-type sounds. You have to decode
this sound in software to downmix to whatever number of speakers you
have. If you have a TV, you can usually press an 'info' button and get
some information on the stream. You can also capture the stream when it
works and when it doesn't work and run 'midentify.sh' on it to see what
mplayer is seeing the sound as.

Software decoding of audio is probably not a problem for you as you have
hardware video decoding with vdpau. If you have hwac3 hooked up, the
signals would pass directly from the cable/antenna through to the video
card and audio out; the CPU would just setup the capture card demux the
stream and forward data to the other devices. You need an extra step
for the audio do 'decode' the stream before you can forward it to the
audio card. liba52 has this capability. I don't know if any other
codec do off the top of my head.

hth,
Bill Pringlemeir.
Derek Ivey
2011-12-19 20:37:23 UTC
Permalink
Hi Bill,

Thanks for taking the time to write that very thorough response. I tried your suggestions and I'm still having issues. I compiled liba52 and recompiled mplayer. I also noticed that I was missing my /etc/mplayer/codecs.conf file, so I copied it from the source.
Here are some of the commands I ran and their output.

No Sound:
***@slackware:~# DISPLAY=:0 /usr/bin/mplayer -fs -vo vdpau -vc ffmpeg12vdpau -ao alsa:device=hdmi -afm ffmpeg -ac -hwac3 dvb://WGAL-DT
MPlayer SVN-r34447-snapshot-4.5.2 (C) 2000-2011 MPlayer Team
182 audio & 386 video codecs

Playing dvb://WGAL-DT.
dvb_tune Freq: 423000000
TS file format detected.
VIDEO MPEG2(pid=2176) AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 0
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38799.2 kbps (4849.9 kbyte/s)
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Cannot find codec for audio format 0x2000.
Audio: no sound
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 MPEG2 VDPAU acceleration [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
V:18131.4 5225/5223 0% 0% 0.0% 0 0

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
V:18131.8 5236/5233 0% 0% 0.0% 0 0

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
V:18131.8 5237/5234 0% 0% 0.0% 0 0
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
V:18132.3 5251/5246 0% 0% 0.0% 0 0

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
V:18132.9 5267/5262 0% 0% 0.0% 0 0

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
V:18133.0 5268/5263 0% 0% 0.0% 0 0
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
V:18133.0 5271/5265 0% 0% 0.0% 0 0

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
V:18133.9 5294/5287 0% 0% 0.0% 0 0

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
V:18133.9 5295/5288 0% 0% 0.0% 0 0
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
V:18274.7 9513/9483 0% 0% 0.0% 0 0


Video starts blocky, sound stutters and cuts out:

***@slackware:~# DISPLAY=:0 /usr/bin/mplayer -fs -vo vdpau -vc ffmpeg12vdpau -ao alsa:device=hdmi -afm ffmpeg dvb://WGAL-DT
MPlayer SVN-r34447-snapshot-4.5.2 (C) 2000-2011 MPlayer Team
182 audio & 386 video codecs

Playing dvb://WGAL-DT.
dvb_tune Freq: 423000000
TS file format detected.
VIDEO MPEG2(pid=2176) AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 0
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38799.2 kbps (4849.9 kbyte/s)
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Trying to force audio codec driver family ffmpeg...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x8b68020]frame CRC mismatch
[ac3 @ 0x8b68020]get_buffer() failed
[ac3 @ 0x8b68020]frame sync error
[ac3 @ 0x8b68020]frame CRC mismatch
[ac3 @ 0x8b68020]get_buffer() failed
[ac3 @ 0x8b68020]frame sync error
[ac3 @ 0x8b68020]frame CRC mismatch
[ac3 @ 0x8b68020]get_buffer() failed
[ac3 @ 0x8b68020]frame sync error
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 MPEG2 VDPAU acceleration [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:18331.8 V:18332.5 A-V: -0.662 ct: 0.000 4/ 4 ??% ??% ??,?% 3 0
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:18331.8 V:18333.2 A-V: -1.403 ct: -0.047 18/ 18 50% 3% 852.5% 16 0
[mpegvideo_vdpau @ 0x8b68020]slice below image (146 >= 68)
Error while decoding frame!
A:18331.8 V:18335.3 A-V: -3.515 ct: -0.244 77/ 77 11% 0% 814.3% 75 0

Too many video packets in the buffer: (542 in 33603452 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A:18331.8 V:18336.0 A-V: -4.133 ct: -0.304 98/ 95 9% 0% 647.8% 75 0

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
A:18331.8 V:18337.4 A-V: -5.502 ct: -0.445 133/129 6% 0% 447.6% 75 0

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
A:18331.8 V:18337.4 A-V: -5.535 ct: -0.449 134/130 6% 0% 443.7% 75 0
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
A:18331.8 V:18354.0 A-V:-22.135 ct: -2.098 632/624 1% 0% 98.2% 75 0
a52: error at resampling
A:18331.7 V:18372.9 A-V:-41.145 ct: -2.118 640/630 1% 0% 115.8% 80 0

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
A:18331.8 V:18374.2 A-V:-42.391 ct: -2.255 673/663 1% 0% 147.1% 113 0

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
A:18331.7 V:18374.2 A-V:-42.447 ct: -2.259 674/664 1% 0% 148.0% 114 0
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
A:18331.7 V:18375.1 A-V:-43.350 ct: -2.350 701/691 1% 0% 171.7% 141 0

Too many video packets in the buffer: (547 in 33689084 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A:18331.8 V:18393.4 A-V:-61.557 ct: -4.182 1250/1240 1% 0% 97.3% 141 0
a52: error at resampling
A:18331.8 V:18393.5 A-V:-61.707 ct: -4.182 1251/1241 1% 0% 102.9% 141 0
a52: error at resampling
A:18331.7 V:18412.7 A-V:-81.015 ct: -4.288 1282/1272 0% 0% 121.7% 172 0
a52: error at resampling
A:18331.7 V:18413.6 A-V:-81.852 ct: -4.375 1308/1298 0% 0% 135.9% 198 0

Too many video packets in the buffer: (547 in 33579095 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A:18331.8 V:18431.9 A-V:-100.063 ct: -6.207 1857/1847 0% 0% 96.5% 198 0
a52: error at resampling
A:18331.7 V:18450.7 A-V:-118.940 ct: -6.267 1875/1865 0% 0% 112.3% 215 0


No Audio:
***@slackware:~# DISPLAY=:0 /usr/bin/mplayer -fs -vo vdpau -vc ffmpeg12vdpau -ao alsa:device=hdmi -ac -hwac3 dvb://WGAL-DT
MPlayer SVN-r34447-snapshot-4.5.2 (C) 2000-2011 MPlayer Team
182 audio & 386 video codecs

Playing dvb://WGAL-DT.
dvb_tune Freq: 423000000
TS file format detected.
VIDEO MPEG2(pid=2176) AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 0
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38799.2 kbps (4849.9 kbyte/s)
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Cannot find codec for audio format 0x2000.
Audio: no sound
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 MPEG2 VDPAU acceleration [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[mpegvideo_vdpau @ 0x8b68020]slice below image (84 >= 68)
Error while decoding frame!
V:18665.3 221/215 5% 1% 0.0% 0 0

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
V:18666.2 245/239 4% 1% 0.0% 0 0

demux_mpg: 30000/1001fps NTSC content detected, switching framerate.
V:18666.3 246/240 4% 1% 0.0% 0 0
Warning! FPS changed 23.976 -> 29.970 (-5.994005) [4]
V:18667.3 278/269 4% 1% 0.0% 0 0

demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
V:18670.0 343/334 3% 1% 0.0% 0 0

Do you have anymore ideas? You mentioned capturing the stream… what's the best way to go about doing this? I tried -dumpvideo but I can't tell if the issue is occurring when it dumps the video.

Thanks,
Derek
Post by Bill Pringlemeir
Post by Derek Ivey
I successfully got mplayer working with vdpau and playing TV channels,
however I notice a few issues occasionally. Sometimes when I tune to
a channel, I get no audio and the video appears to be laggy. Sometimes
http://i.imgur.com/BvMhT.jpg).
You can try '-afm ffmpeg' instead of using '-ac'. Sometimes, channels
will change the sound encoding from show to show. One moment it is 2
channel, the next it is 5.1. Mplayer is trying to use the 'spdif' hwac
codec. This passes the audio from the 'air' directly out your audio
output without processing the audio at all. Anyways, you may have a
card (sound blaster, ICH5, etc) that supports SPDIF but there is no way
to know the cable is connected without configuration.
When you specify '-ac' it will only use that codec. However, the
particular codec might not be able to play the sound stream of the
moment. The benefit of '-afm' is that if a suitable codec is not found
in that family, mplayer will still search for others suitable to play
the stream. You might also try '-ac -hwac3' to prohibit the spif
pass-through 'decoder'. Also, you might need to install liba52 to get
the stream decoded. You have these lines,
Post by Derek Ivey
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [a52] (afm=liba52) not available.
Enable it at compilation.
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
hwac3: switched to AC3, 384000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3be, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
I think the sound on the channel you are tuning to is switching between
2 channel PCM and 5.1 AC3 encode mp3-type sounds. You have to decode
this sound in software to downmix to whatever number of speakers you
have. If you have a TV, you can usually press an 'info' button and get
some information on the stream. You can also capture the stream when it
works and when it doesn't work and run 'midentify.sh' on it to see what
mplayer is seeing the sound as.
Software decoding of audio is probably not a problem for you as you have
hardware video decoding with vdpau. If you have hwac3 hooked up, the
signals would pass directly from the cable/antenna through to the video
card and audio out; the CPU would just setup the capture card demux the
stream and forward data to the other devices. You need an extra step
for the audio do 'decode' the stream before you can forward it to the
audio card. liba52 has this capability. I don't know if any other
codec do off the top of my head.
hth,
Bill Pringlemeir.
_______________________________________________
MPlayer-dvb mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dvb
Carl-Eugen Hoyos
2011-12-20 12:56:21 UTC
Permalink
Hi!
Post by Derek Ivey
Thanks for taking the time to write that very thorough response. I tried
your suggestions and I'm still having issues. I compiled liba52 and
recompiled mplayer. I also noticed that I was missing my
/etc/mplayer/codecs.conf file, so I copied it from the source.
Whereever you put codecs.conf, please remove it, it can only hurt.

Concerning your audio problems:
If you use "mplayer dvb://WGAL-DT -dumpstream", is your audio problem
reproducible with the resulting file stream.dump?
If yes, please provide such a sample.
Post by Derek Ivey
Here are some of the commands I ran and their output.
Do I understand correctly that your screen (or whatever is connected to
"hdmi") does not accept ac3 input?
If yes, this should be:
-ac -hwac3,-spdifac3,
(Note the "," at the end)
And you should put this in ~/.mplayer/config as "ac=-hwac2,-spdifac3,"

Note that you must not use "menu=yes" from Bill's suggestions together
with -vc ffmpeg12vdpau, VDPAU does not like the menu!

And of course: Please try -cache 10000 or pause&release or seek-back to
fix the issues. I often need one of those three for HD channels.

Carl Eugen
Derek Ivey
2011-12-20 16:20:06 UTC
Permalink
Hi Carl,

Ok, I deleted the codecs.conf file. I dumped the stream to a file, as you suggested. You can download the sample here: http://dl.dropbox.com/u/2058/stream.dump. The video seems to be messed up every time I try dumping the stream and there is also no audio each time. Any ideas why this is?

I'm actually not sure if my screens accept AC3 input. I tried two different screens… an Elo 4200L (http://www.elotouch.com/products/ids/4200L/default.asp) and a Dynex DX-24E150A11. I did not find any mention of AC3 for either of them and the audio settings don't reveal any useful information. I tried adding "-ac -hwac3,-spdifac3," and noticed that it seemed to help a little bit, but I still occasionally run into the issue where I get lots of "a52: error at resampling errors" and "Error while decoding frame!". When it works with these -ac parameters, I also notice that the audio and video are out of sync by a few seconds.

Here is the rest of the output when this happens:

DISPLAY=:0 /usr/bin/mplayer -fs -vo vdpau -vc ffmpeg12vdpau -ao alsa:device=hdmi -afm ffmpeg -ac -hwac3,-spdifac3, -cache 10000 dvb://WGAL-DT
MPlayer SVN-r34447-snapshot-4.5.2 (C) 2000-2011 MPlayer Team

Playing dvb://WGAL-DT.
dvb_tune Freq: 423000000
Cache fill: 18.80% (1925120 bytes)

TS file format detected.
VIDEO MPEG2(pid=2176) AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 2
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38799.2 kbps (4849.9 kbyte/s)
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Trying to force audio codec driver family ffmpeg...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x8b68020]frame CRC mismatch
[ac3 @ 0x8b68020]get_buffer() failed
[ac3 @ 0x8b68020]frame sync error
[ac3 @ 0x8b68020]frame CRC mismatch
[ac3 @ 0x8b68020]get_buffer() failed
[ac3 @ 0x8b68020]frame sync error
[ac3 @ 0x8b68020]frame CRC mismatch
[ac3 @ 0x8b68020]get_buffer() failed
[ac3 @ 0x8b68020]frame sync error
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
AUDIO: 48000 Hz, 2 ch, floatle, 384.0 kbit/12.50% (ratio: 48000->384000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 MPEG2 VDPAU acceleration [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:89689.9 V:89690.6 A-V: -0.685 ct: 0.000 4/ 4 ??% ??% ??,?% 0 0 19%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89690.6 A-V: -0.716 ct: -0.003 5/ 5 ??% ??% ??,?% 0 0 11%
a52: error at resampling
a52: error at resampling
A:89689.9 V:89690.7 A-V: -0.748 ct: -0.007 6/ 6 ??% ??% ??,?% 1 0 10%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89690.7 A-V: -0.818 ct: -0.010 7/ 7 ??% ??% ??,?% 2 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89690.8 A-V: -0.838 ct: -0.013 8/ 8 ??% ??% ??,?% 3 0 0%
a52: error at resampling
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
A:89689.9 V:89690.7 A-V: -0.771 ct: -0.017 9/ 9 ??% ??% ??,?% 4 0 0%
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
A:89689.9 V:89690.8 A-V: -0.903 ct: -0.020 10/ 10 ??% ??% ??,?% 5 0 0%
a52: error at resampling
A:89689.9 V:89690.9 A-V: -0.966 ct: -0.023 11/ 11 ??% ??% ??,?% 6 0 0%
a52: error at resampling
a52: error at resampling
A:89689.9 V:89690.9 A-V: -0.982 ct: -0.027 12/ 12 ??% ??% ??,?% 7 0 0%
a52: error at resampling
A:89689.9 V:89690.9 A-V: -1.013 ct: -0.030 13/ 13 ??% ??% ??,?% 8 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.0 A-V: -1.047 ct: -0.033 14/ 14 ??% ??% ??,?% 9 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.0 A-V: -1.073 ct: -0.037 15/ 15 ??% ??% ??,?% 10 0 0%
a52: error at resampling
A:89689.9 V:89691.0 A-V: -1.104 ct: -0.040 16/ 16 119% 3% 748.5% 11 0 0%
a52: error at resampling
A:89689.9 V:89691.1 A-V: -1.143 ct: -0.043 17/ 17 111% 3% 713.1% 12 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.1 A-V: -1.174 ct: -0.047 18/ 18 105% 3% 852.0% 13 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.1 A-V: -1.222 ct: -0.050 19/ 19 99% 3% 975.5% 14 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.2 A-V: -1.248 ct: -0.053 20/ 20 94% 3% 1105.1% 15 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.2 A-V: -1.271 ct: -0.057 21/ 21 89% 2% 1087.8% 16 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.2 A-V: -1.307 ct: -0.060 22/ 22 85% 2% 1192.4% 17 0 0%
a52: error at resampling
[mpegvideo_vdpau @ 0x8b68020]slice below image (80 >= 68)
Error while decoding frame!
A:89689.9 V:89691.3 A-V: -1.338 ct: -0.063 23/ 23 81% 2% 1158.9% 18 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.3 A-V: -1.370 ct: -0.067 24/ 24 77% 2% 1228.9% 19 0 0%
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.3 A-V: -1.419 ct: -0.070 25/ 25 74% 2% 1194.2% 20 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.4 A-V: -1.451 ct: -0.073 26/ 26 71% 2% 1215.8% 21 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.4 A-V: -1.513 ct: -0.077 27/ 27 68% 2% 1241.5% 22 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.4 A-V: -1.471 ct: -0.080 28/ 28 66% 2% 1305.9% 23 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.5 A-V: -1.604 ct: -0.083 29/ 29 64% 2% 1389.7% 24 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.6 A-V: -1.638 ct: -0.087 30/ 30 61% 2% 1378.4% 25 0 0%
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.6 A-V: -1.711 ct: -0.090 31/ 31 59% 2% 1351.7% 26 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.7 A-V: -1.737 ct: -0.093 32/ 32 57% 2% 1375.9% 27 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.6 A-V: -1.669 ct: -0.097 33/ 33 56% 1% 1359.5% 28 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.7 A-V: -1.829 ct: -0.100 34/ 34 54% 1% 1417.0% 29 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.8 A-V: -1.875 ct: -0.103 35/ 35 52% 1% 1437.9% 30 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.9 A-V: -1.940 ct: -0.107 36/ 36 51% 1% 1500.3% 31 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.9 A-V: -1.982 ct: -0.110 37/ 37 49% 1% 1592.2% 32 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89691.9 A-V: -2.005 ct: -0.113 38/ 38 48% 1% 1665.0% 33 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
A:89689.9 V:89692.0 A-V: -2.047 ct: -0.117 39/ 39 47% 1% 1659.6% 34 0 0%
a52: error at resampling
a52: error at resampling
A:89689.9 V:89692.0 A-V: -2.073 ct: -0.120 40/ 40 46% 1% 1628.9% 35 0 0%
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling
a52: error at resampling

Too many video packets in the buffer: (558 in 33611640 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
a52: error at resampling
A:89689.9 V:89693.1 A-V: -3.169 ct: -0.214 68/ 68 27% 1% 993.6% 35 0 14%
[mpegvideo_vdpau @ 0x8b68020]slice below image (143 >= 68)
Error while decoding frame!
A:89689.9 V:89694.6 A-V: -4.700 ct: -0.347 108/108 20% 5% 622.2% 35 0 33%
[mpegvideo_vdpau @ 0x8b68020]slice below image (173 >= 68)
Error while decoding frame!
A:89689.9 V:89696.5 A-V: -6.536 ct: -0.480 148/148 17% 6% 452.9% 35 0 49%
[mpegvideo_vdpau @ 0x8b68020]slice below image (141 >= 68)
Error while decoding frame!
A:89689.9 V:89696.7 A-V: -6.810 ct: -0.501 154/154 16% 6% 435.1% 35 0 49%
[mpegvideo_vdpau @ 0x8b68020]slice below image (165 >= 68)
Error while decoding frame!
A:89689.9 V:89703.6 A-V:-13.677 ct: -1.071 325/325 12% 10% 205.5% 35 0 49%
[mpegvideo_vdpau @ 0x8b68020]slice below image (78 >= 68)
Error while decoding frame!
A:89689.9 V:89703.8 A-V:-13.911 ct: -1.091 331/331 12% 10% 201.7% 35 0 49%
[mpegvideo_vdpau @ 0x8b68020]slice below image (84 >= 68)
Error while decoding frame!
A:89689.9 V:89706.3 A-V:-16.349 ct: -1.298 393/393 12% 9% 169.8% 35 0 49%

Thanks,
Derek
Post by Carl-Eugen Hoyos
Hi!
Post by Derek Ivey
Thanks for taking the time to write that very thorough response. I tried your suggestions and I'm still having issues. I compiled liba52 and recompiled mplayer. I also noticed that I was missing my /etc/mplayer/codecs.conf file, so I copied it from the source.
Whereever you put codecs.conf, please remove it, it can only hurt.
If you use "mplayer dvb://WGAL-DT -dumpstream", is your audio problem reproducible with the resulting file stream.dump?
If yes, please provide such a sample.
Post by Derek Ivey
Here are some of the commands I ran and their output.
Do I understand correctly that your screen (or whatever is connected to "hdmi") does not accept ac3 input?
-ac -hwac3,-spdifac3,
(Note the "," at the end)
And you should put this in ~/.mplayer/config as "ac=-hwac2,-spdifac3,"
Note that you must not use "menu=yes" from Bill's suggestions together with -vc ffmpeg12vdpau, VDPAU does not like the menu!
And of course: Please try -cache 10000 or pause&release or seek-back to fix the issues. I often need one of those three for HD channels.
Carl Eugen
_______________________________________________
MPlayer-dvb mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dvb
Bill Pringlemeir
2011-12-20 00:54:24 UTC
Permalink
Post by Derek Ivey
Thanks for taking the time to write that very thorough response. I tried
your
Post by Derek Ivey
suggestions and I'm still having issues. I compiled liba52 and
recompiled mplayer. I also noticed that I was missing my
/etc/mplayer/codecs.conf file, so I copied it from the source.
Here are some of the commands I ran and their output.
Some of the errors look familiar. I think I tried liba52 for some time
and then I was hinted to use '-ac ffac3'. Do you have that codec? I
have these entries in ~/.mplayer/config

# Drop frames to sync A/V
framedrop=yes

# Add a cache to smooth playback.
cache=4096
# start when 5% full.
#cache-min=10
cache-min=25

# No software scaling.
zoom=no

# Use alsa drivers.
ao=alsa
ac=ffac3,

# Don't change video out.
fixed-vo=yes

#Allow OSD menus
menu=yes

Here is mplayer playing a captured stream on my PC,

$ mplayer.wrapper sample.ts
MPlayer SVN-r34448-4.6.2 (C) 2000-2011 MPlayer Team

Playing sample.ts.
Cache fill: 0.00% (0 bytes)

TS file format detected.
VIDEO MPEG2(pid=33) AUDIO A52(pid=36) NO SUBS (yet)! PROGRAM N. 2
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 65000.0 kbps (8125.0
kbyte/s)
Load subtitles in ./
==========================================================================
Trying to force video codec driver family libmpeg2...
Opening video decoder: [libmpeg2] libmpeg2 MPEG 1/2 Video decoder
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: ffac3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1920x1080 => 1920x1080 Planar YV12 [fs]
A:48851.1 V:48851.5 A-V: -0.371 ct: -0.174 60/ 60 48% 5% 1.4% 8 0 50%

Note, the comma suggests 'ffac3'. Is it just this channel that has
strange sound or do you only get a few channels? Are you using an
antenna? Is the station farther away than other stations?

My system has an older Nvidia card and is a 2.4GHz Celeron. I can play
lots of different channels without any skipping. However, Nvidia didn't
port the 'vdpau' to my graphics card. I just use '-vo xv'. You might
try this to see if 'vdpau' is having some sort of issues.

I did have problems with video playback when my CPU fan was
malfunctioning and it was 'thermal throttling' without any kind of
notice. You might get 'lmsensors' package to verify that everything is
working perfectly with your system, but I think it is the audio codec in
your case.

Hth,
Bill Pringlemeir.
Derek Ivey
2011-12-20 02:12:11 UTC
Permalink
Hi Bill,

Yeah I do have ffac3, but it only works sometimes. When it doesn't work
I get those frame CRC mismatches and get_buffer() failed.
This problem seems to occur on all of my channels. They will work and
then if I CTRL C and try launching them again I usually have problems.

I tried your config and it didn't seem to help unfortunately. I noticed
that the video playback was slow and out of sync with the audio.

I am using cable TV (clear QAM). I believe the signals are fine because
my tuner has a indicator light that is green when the signal is strong
and orange when it is a weaker signal. The light was green. I agree that
this is probably an audio codec issue. If I run mplayer with -nosound
the video playback is perfect.

I'll keep searching for solutions. Thanks for your help so far!

Derek
Post by Bill Pringlemeir
Post by Derek Ivey
Thanks for taking the time to write that very thorough response. I tried
your
Post by Derek Ivey
suggestions and I'm still having issues. I compiled liba52 and
recompiled mplayer. I also noticed that I was missing my
/etc/mplayer/codecs.conf file, so I copied it from the source.
Here are some of the commands I ran and their output.
Some of the errors look familiar. I think I tried liba52 for some time
and then I was hinted to use '-ac ffac3'. Do you have that codec? I
have these entries in ~/.mplayer/config
# Drop frames to sync A/V
framedrop=yes
# Add a cache to smooth playback.
cache=4096
# start when 5% full.
#cache-min=10
cache-min=25
# No software scaling.
zoom=no
# Use alsa drivers.
ao=alsa
ac=ffac3,
# Don't change video out.
fixed-vo=yes
#Allow OSD menus
menu=yes
Here is mplayer playing a captured stream on my PC,
$ mplayer.wrapper sample.ts
MPlayer SVN-r34448-4.6.2 (C) 2000-2011 MPlayer Team
Playing sample.ts.
Cache fill: 0.00% (0 bytes)
TS file format detected.
VIDEO MPEG2(pid=33) AUDIO A52(pid=36) NO SUBS (yet)! PROGRAM N. 2
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 65000.0 kbps (8125.0
kbyte/s)
Load subtitles in ./
==========================================================================
Trying to force video codec driver family libmpeg2...
Opening video decoder: [libmpeg2] libmpeg2 MPEG 1/2 Video decoder
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: ffac3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1920x1080 => 1920x1080 Planar YV12 [fs]
A:48851.1 V:48851.5 A-V: -0.371 ct: -0.174 60/ 60 48% 5% 1.4% 8 0 50%
Note, the comma suggests 'ffac3'. Is it just this channel that has
strange sound or do you only get a few channels? Are you using an
antenna? Is the station farther away than other stations?
My system has an older Nvidia card and is a 2.4GHz Celeron. I can play
lots of different channels without any skipping. However, Nvidia didn't
port the 'vdpau' to my graphics card. I just use '-vo xv'. You might
try this to see if 'vdpau' is having some sort of issues.
I did have problems with video playback when my CPU fan was
malfunctioning and it was 'thermal throttling' without any kind of
notice. You might get 'lmsensors' package to verify that everything is
working perfectly with your system, but I think it is the audio codec in
your case.
Hth,
Bill Pringlemeir.
_______________________________________________
MPlayer-dvb mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dvb
Reimar Döffinger
2011-12-20 10:31:45 UTC
Permalink
Post by Derek Ivey
This problem seems to occur on all of my channels. They will work
and then if I CTRL C and try launching them again I usually have
problems.
If it happens (almost) only on the second try that sounds like your
driver (or even hardware) is broken and forgets to reset something.
But you could try adjusting -tsprobe.
Reimar Döffinger
2011-12-20 10:37:33 UTC
Permalink
Post by Derek Ivey
Unknown/missing audio format -> no sound
This large number of failures is the issue, I wonder why they happen,
even with normal playback you have a lot of errors.
I suspect that for some reason at the start you get a huge amount of
pure nonsense from the card.
You might avoid the "no sound" issue by incrementing the value 5 in this
line:
while (x <= 0 && tries++ < 5);
in libmpcodecs/ad_ffmpeg.c
However I suspect that something severely breaks the data in-between
antenna and audio/video decoder and this "no sound" is just a symptom of it.
It might be MPlayer, but in my experience good DVB drivers don't exist
so I am quick to blame them :-)
Loading...