DVB Playback Issues
Derek Ivey <[email protected]> Tue, 13 Dec 2011 19:44:15 -0500
| Newsgroups | gmane.comp.video.mplayer.user.dvb |
|---|---|
| Message-ID | <[email protected]> |
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: http://i.imgur.com/BvMhT.jpg). 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