[mythtv-users] Video too slow on some mpeg2's
Ken Mandelberg
km at mathcs.emory.edu
Wed Feb 20 16:04:49 UTC 2008
I have a set of mpeg2's transferred from a directv tivo that are
unuseable with mythtv's internal player, but fine with mplayer, xine,
and vlc. The problem is the video is too slow and myth does massive
frame drops trying to stay in sync with audio.
I suspect the problem is the unusual res of these mpeg's which is 1280
by 1088. I've already put it through mythtranscode --mpeg2 with no
change in performance.
I'm including some of the diagnostic output, first from a successful
mplayer startup, and the the troubled mythtv internal player.
Any suggestion on how to adjust the internal player to handle these?
===mplayer==
Playing 1021_20080219094928.mpg.
MPEG-PS file format detected.
VIDEO: MPEG2 1280x1088 (aspect 3) 29.970 fps 65000.0 kbps (8125.0
kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1280 x 1088 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1280 x 1088 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x1088 => 1934x1088 Planar YV12
-----mythtv---
2008-02-20 10:39:50.204 AFD: Using ffmpeg for video decoding
2008-02-20 10:39:50.204 AFD: Looking for decoder for MPEG2VIDEO
2008-02-20 10:39:50.205 AFD: Opened codec 0x84deb00, id(MPEG2VIDEO)
type(Video)
2008-02-20 10:39:50.205 AFD: Stream #1, has id 0x128 codec id AC3, type
Audio, bitrate 384000 at 0x0x84de7f0
2008-02-20 10:39:50.205 AFD: codec AC3 has 6 channels
2008-02-20 10:39:50.205 AFD: Looking for decoder for AC3
2008-02-20 10:39:50.207 AFD: Opened codec 0x84dda10, id(AC3) type(Audio)
2008-02-20 10:39:50.207
RingBuf(myth://192.168.10.10:6543/1021_20080219094928.mpg):
CalcReadAheadThresh(3060730064 KB)
-> threshhold(64 KB) min read(0 KB) blk
size(32 KB)
2008-02-20 10:39:50.213 Opening audio device '/dev/dsp'. ch 2(2) sr 48000
2008-02-20 10:39:50.213 Opening OSS audio device '/dev/dsp'.
2008-02-20 10:39:50.224 Dec: Trying to select track (w/lang)
2008-02-20 10:39:50.224 Dec: Selecting first track
2008-02-20 10:39:50.224 Dec: Selected track #1 in the Unknown language(0)
2008-02-20 10:39:50.225 Resyncing position map. posmapStarted = 0
livetv(0) watchingRec(0)
2008-02-20 10:39:50.302 Position map filled from DB to: 94598
2008-02-20 10:39:50.303 SyncPositionMap prerecorded, from DB: 3251 entries
2008-02-20 10:39:50.303 SyncPositionMap, new totframes: 94598, new
length: 3156, posMap size: 3251
2008-02-20 10:39:50.303 Input #0, mpeg, from
'myth://192.168.10.10:6543/1021_20080219094928.mpg':
2008-02-20 10:39:50.303 Duration: 01:00:01.8, start: 0.178844,
bitrate: 13541 kb/s
2008-02-20 10:39:50.303 Stream #0.0[0x1e0], 1/90000: Video:
mpeg2video, yuv420p, 1280x1088 [PAR 68:45 DAR 16:9], 1001/30000, 65000
kb/s, 29.97 tb(r)
2008-02-20 10:39:50.304 Stream #0.1[0x80], 1/90000: Audio: ac3,
48000 Hz, stereo, 384 kb/s
2008-02-20 10:39:50.304 AFD: Position map found
2008-02-20 10:39:50.304 AFD: Successfully opened decoder for file:
"myth://192.168.10.10:6543/1021_20080219094928.mpg". novideo(0)
2008-02-20 10:39:50.318 VideoOutput: Allowed renderers: xv-blit,xshm,xlib
2008-02-20 10:39:50.318 VideoOutput: Allowed renderers (filt: ffmpeg):
xlib,xshm,xv-blit
2008-02-20 10:39:50.327 VDP: Accepting: cmp(> 0 0) dec(ffmpeg) cpus(0)
rend(xv-blit) osd(softblend) osdfade(enabled)
deint(bobdeint,linearblend) filt()
2008-02-20 10:39:50.327 VDP: Accepting: cmp(> 0 0) dec(ffmpeg) cpus(0)
rend(quartz-blit) osd(softblend) osdfade(enabled)
deint(linearblend,linearblend) filt()
2008-02-20 10:39:50.327 VDP: LoadBestPreferences(2048x2048, 0)
2008-02-20 10:39:50.327 VDP: LoadBestPreferences(2048x2048, 60)
2008-02-20 10:39:50.327 VDP: LoadBestPreferences(1280x1088, 60)
2008-02-20 10:39:50.327 VideoOutput: Preferred renderer: xv-blit
2008-02-20 10:39:50.327 VideoOutput: Trying video renderer: xv-blit
2008-02-20 10:39:50.339 VDP: Accepting: cmp(> 0 0) dec(ffmpeg) cpus(0)
rend(xv-blit) osd(softblend) osdfade(enabled)
deint(bobdeint,linearblend) filt()
2008-02-20 10:39:50.339 VDP: Accepting: cmp(> 0 0) dec(ffmpeg) cpus(0)
rend(quartz-blit) osd(softblend) osdfade(enabled)
deint(linearblend,linearblend) filt()
2008-02-20 10:39:50.339 VDP: LoadBestPreferences(2048x2048, 0)
2008-02-20 10:39:50.339 VDP: LoadBestPreferences(2048x2048, 60)
2008-02-20 10:39:50.395 VideoOutputXv: ctor
2008-02-20 10:39:50.395 XOff: 0, YOff: 0
2008-02-20 10:39:50.395 VDP: LoadBestPreferences(1280x1088, 60)
2008-02-20 10:39:50.396 Display Rect left: 0, top: 85, width: 1920,
height: 1029, aspect: 1.33333
2008-02-20 10:39:50.396 Video Rect left: 0, top: 0, width: 1280,
height: 1088, aspect: 1.55556
2008-02-20 10:39:50.396 VideoOutputXv: Pixel dimensions: Screen
1920x1200, window 1920x1200
2008-02-20 10:39:50.403 VideoOutputXv: Estimated display dimensions:
518x324 mm Aspect: 1.59877
2008-02-20 10:39:50.403 VideoOutputXv: Estimated window dimensions:
518x324 mm Aspect: 1.59877
2008-02-20 10:39:50.403 VideoOutputXv: InitSetupBuffers() render:
xv-blit, allowed: xv-blit,xshm,xlib
2008-02-20 10:39:50.409 VDP: Accepting: cmp(> 0 0) dec(ffmpeg) cpus(0)
rend(xv-blit) osd(softblend) osdfade(enabled)
deint(bobdeint,linearblend) filt()
2008-02-20 10:39:50.409 VDP: Accepting: cmp(> 0 0) dec(ffmpeg) cpus(0)
rend(quartz-blit) osd(softblend) osdfade(enabled)
deint(linearblend,linearblend) filt()
2008-02-20 10:39:50.409 VDP: LoadBestPreferences(2048x2048, 0)
2008-02-20 10:39:50.409 VDP: LoadBestPreferences(2048x2048, 60)
2008-02-20 10:39:50.409 VDP: LoadBestPreferences(1280x1088, 60)
2008-02-20 10:39:50.410 VideoOutputXv: @ j=0 Looking for flag[s]:
XvInputMask XvImageMask 10
2008-02-20 10:39:50.410 VideoOutputXv: Adaptor#0: Intel(R) Video Overlay
has flag[s]: XvInputMask XvImageMask
2008-02-20 10:39:50.411 VideoOutputXv: Has XVideo flags...
2008-02-20 10:39:50.411 VideoOutputXv: Has XV_BRIGHTNESS...
2008-02-20 10:39:50.411 VideoOutputXv: Here...
2008-02-20 10:39:50.411 VideoOutputXv: Grabbed xv port 732008-02-20
10:39:50.411 VideoOutputXv: XVideo surface found on port 73
2008-02-20 10:39:50.411 VideoOutputXv: XVideo Adaptor Name: 'Intel(R)
Video Overlay'
2008-02-20 10:39:50.412 VideoOutputXv: XVideo Format #0 is 'YUY2'
2008-02-20 10:39:50.412 VideoOutputXv: XVideo Format #1 is 'YV12'
2008-02-20 10:39:50.412 VideoOutputXv: XVideo Format #2 is 'I420'
2008-02-20 10:39:50.412 VideoOutputXv: XVideo Format #3 is 'UYVY'
2008-02-20 10:39:50.412 VideoOutputXv: Using XVideo Format 'YV12'
2008-02-20 10:39:50.412 VideoOutputXv: CreateShmImages(32): video_dim:
1280x1088
2008-02-20 10:39:50.561 VDP: SetVideoRenderer(xv-blit)
2008-02-20 10:39:50.562 VDP: SetVideoRender(xv-blit) == GetVideoRenderer()
2008-02-20 10:39:50.562 VideoOutputXv: PictureAttributes: Brightness,
Contrast, Colour
2008-02-20 10:39:50.595
unsupported attribute
2008-02-20 10:39:50.596 Display Rect left: 0, top: 0, width: 1920,
height: 1200, aspect: 1.59877
2008-02-20 10:39:50.596 Video Rect left: 0, top: 0, width: 1280,
height: 1088, aspect: 1.55556
2008-02-20 10:39:50.598 Over/underscan. V: 0.02, H: 0.01
2008-02-20 10:39:50.598 Display Rect left: 0, top: 0, width: 1920,
height: 1200, aspect: 1.59877
2008-02-20 10:39:50.598 Video Rect left: 13, top: 22, width: 1254,
height: 1044, aspect: 1.55556
2008-02-20 10:39:50.598 VDP: LoadBestPreferences(1280x1088, 29.97)
2008-02-20 10:39:50.599 NVP: LoadFilters(''..) -> 0
2008-02-20 10:39:50.601 OSD Theme Dimensions W: 640 H: 480
2008-02-20 10:39:50.900 TV: StartPlayer(): took 1420 ms to start player.
2008-02-20 10:39:50.900 NVP: ClearAfterSeek(1)
2008-02-20 10:39:50.901 VideoOutputXv: ClearAfterSeek()
2008-02-20 10:39:50.901 VideoOutputXv: DiscardFrames(0)
2008-02-20 10:39:50.901 VideoBuffers::DiscardFrames(0):
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
2008-02-20 10:39:50.901 VideoBuffers::DiscardFrames(0):
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -- done
2008-02-20 10:39:50.902 VideoOutputXv: DiscardFrames() 3:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -- done()
2008-02-20 10:39:50.902 Realtime priority would require SUID as root.
2008-02-20 10:39:50.903 TV: Changing from None to WatchingPreRecorded
2008-02-20 10:39:50.929 VDP: GetFilteredDeint() : xv-blit -> 'bobdeint'
2008-02-20 10:39:50.932 Using deinterlace method bobdeint
2008-02-20 10:39:51.198 nVidiaVideoSync: Could not open device
/dev/nvidia0, No such device or address
2008-02-20 10:39:51.212 Set video sync frame interval to 33366
2008-02-20 10:39:51.230 Using video as timebase
2008-02-20 10:39:51.230 Video timing method: DRM
2008-02-20 10:39:51.231 Refresh rate: 16680, frame interval: 33366
2008-02-20 10:39:51.288 NVP: Video is 30 frames behind audio (too slow),
dropping frame to catch up.
2008-02-20 10:39:51.299 NVP: Video is 30 frames behind audio (too slow),
dropping frame to catch up.
2008-02-20 10:39:51.309 NVP: Video is 30 frames behind audio (too slow),
dropping frame to catch up.
2008-02-20 10:39:51.318 NVP: Video is 30 frames behind audio (too slow),
dropping frame to catch up.
....
More information about the mythtv-users
mailing list