Opened 3 years ago

Last modified 2 years ago

#2915 new defect

mpeg2 vdpau hardware decoding does sometimes not work with libavformat mpeg2 demuxer, but always works with mplayer mpegps demuxer

Reported by: gjdfgh Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: vdpau
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Sample file:

http://www1.datafilehost.com/d/27de60ea

Working playback:

mplayer -vc ffmpeg12vdpau -vo vdpau -demuxer mpegps vdpau_pic_broken.vob

Broken playback (blocks all over the place):

mplayer -vc ffmpeg12vdpau -vo vdpau -demuxer lavf vdpau_pic_broken.vob

This also happens with various other mplayer forks. MPlayer or ffmpeg versions don't seem to matter. I tested above two test cases with "MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team" (debian package 3:1.1.1-dmo6 from http://www.deb-multimedia.org/), and could confirm the blocking with my own mplayer fork compiled against a very recent ffmpeg git checkout.

Console output:

$ mplayer1 -vc ffmpeg12vdpau -vo vdpau -demuxer mpegps vdpau_pic_broken.vob
Failed to read /etc/mplayer/mplayer.conf.local: No such file or directory
Warning unknown option include at line 177
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing vdpau_pic_broken.vob.
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 5200.0 kbps (650.0 kbyte/s)
Load subtitles in ./
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.23.100 (internal)
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x8ae1c80]frame sync error
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=1.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=2.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x576 => 768x576 MPEG2 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[mpegvideo_vdpau @ 0x8ae1c80]allocate dummy last picture for field based first keyframe
A: 906.8 V: 906.8 A-V: 0.000 ct: 0.024 89/179 7% 1% 0.3% 3 0

MPlayer interrupted by signal 2 in module: sleep_timer
A: 906.9 V: 906.9 A-V: 0.000 ct: 0.024 90/180 7% 1% 0.3% 3 0

Exiting... (Quit)

$ mplayer1 -vc ffmpeg12vdpau -vo vdpau -demuxer lavf vdpau_pic_broken.vob
Failed to read /etc/mplayer/mplayer.conf.local: No such file or directory
Warning unknown option include at line 177
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing vdpau_pic_broken.vob.
libavformat version 54.6.100 (internal)
libavformat file format detected.
[mpeg2video @ 0x8ae1c80]allocate dummy last picture for field based first keyframe
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward

[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward

[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]Adjusting PTS forward
[mpeg @ 0x8a6dec0]max_analyze_duration 5000000 reached at 5002667

[lavf] stream 0: video (mpeg2video), -vid 0
[lavf] stream 1: audio (dca), -aid 0
[lavf] stream 2: audio (ac3), -aid 1
VIDEO: [MPG2] 720x576 0bpp 25.000 fps 5200.0 kbps (634.8 kbyte/s)
Load subtitles in ./
==========================================================================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.23.100 (internal)
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, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=1.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=2.
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x576 => 768x576 MPEG2 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[mpegvideo_vdpau @ 0x8ae1c80]allocate dummy last picture for field based first keyframe
A: 904.6 V: 904.6 A-V: -0.000 ct: -0.010 0/ 0 9% 1% 1.4% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
A: 904.7 V: 904.7 A-V: -0.000 ct: -0.010 0/ 0 8% 1% 1.4% 0 0

Exiting... (Quit)

Change History (2)

comment:1 Changed 3 years ago by cehoyos

  • Keywords vdpau added
  • Version changed from unspecified to git-master

Looks related to ticket #254

comment:2 Changed 2 years ago by jyavenard

same issue with #3688.

Note: See TracTickets for help on using tickets.