insufficient resources for HD video
blackend at freebsd.org
Thu Feb 22 11:08:02 UTC 2007
On Wed, Feb 21, 2007 at 09:02:43PM +0100, Erik Norgaard wrote:
> I recently posted asking about mpeg2-ts, I got a reference to a mpeg2-ts
> that plays fine. It appears that the problem is not playing ts but
> rather resolution, or something: With mplayer I get an error
> X Error of failed request: BadAlloc (insufficient resources for operation)
> Major opcode of failed request: 140 (XVideo)
> Minor opcode of failed request: 19 ()
> Serial number of failed request: 23
> Current serial number in output stream: 24
> (Full output below)
> How do I process HDV streams? I can't see if the problem is the screen
> is too small or there is not enough memory.
> One thing is to play, but I am thinking of buying a HDV cam so I also
> need to process/edit the stream.
> Thanks, Erik
> Some HDV clips I have tried are here:
> Which should be mpeg2-ts but in 1440x1080 -> 1920x1080. mplayer produces
> the following output:
> photon$ mplayer XLH1bikeseq24.m2t
> MPlayer 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
> CPU: Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13,
> Stepping: 8)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
> Playing XLH1bikeseq24.m2t.
> TS file format detected.
> VIDEO MPEG2(pid=2064) AUDIO MPA(pid=2068) NO SUBS (yet)! PROGRAM N. 100
> VIDEO: MPEG2 1440x1080 (aspect 3) 29.970 fps 25000.0 kbps (3125.0
> [VO_SDL] Using driver: x11.
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 1440 x 1080 (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))
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
> Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
> AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
> Starting playback...
> VDec: vo config request - 1440 x 1080 (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: [sdl] 1440x1080 => 1920x1080 Planar YV12
hmmm should be VO: [xv] ...
try mplayer -vo xv ...
I tried with whitedogpassingby.m2t, no problem with both mplayer and
Here, xvinfo | grep XvImage
maximum XvImage size: 2046 x 2046
Your problem sounds like a X11 config issue (card using shared memory?),
try to add
Option "LinearAlloc" "8192"
(or more instead of 8192) in your xorg.conf device section and restart
X. Well it concerns i915 and i810 chipsets, for other chipsets you
have to play with Videoram parameter (I'm not sure of the result in that
Increading kern.ipc.shmmax may also help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070222/0c3c0ee1/attachment.pgp
More information about the freebsd-questions