Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Jan Gruuthuse on July 23, 2012, 05:15:07 AM

Title: VDPAU cannot Initialize VDPAU
Post by: Jan Gruuthuse on July 23, 2012, 05:15:07 AM
with 03:45:00 hours of 720p video loading, each part 2.1 GB. Upon loading part 009, 10th,  pop up windows appear complaining:
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fwww.avidemux.org%2Fsmf%2Findex.php%3Faction%3Ddlattach%3Btopic%3D10815.0%3Battach%3D664%3Bimageimage&hash=3740ba1091a69231cbbc4cb3f772af9ca68f0783)
terminal output @ github gist: https://gist.github.com/3162038

Searching decoder in plugins
  [tryCreatingVideoDecoder]  No decoder found in plugin
  [ADM_getDecoder]  Searching decoder in vdpau (1280 x 720, extradataSize:0)...
  [ADM_getDecoder]  This is vdpau compatible
[lavc] Build: 3544932
[lavc] Decoder init: h264_vdpau video decoder initialized! (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration))
[decoderFFVDPAU]  [VDPAU] Decoder created
  [surfaceCreate]  ADM_coreVdpau::funcs.createSurface(ADM_coreVdpau::vdpDevice,VDP_CHROMA_TYPE_420,width,height,surface) call failed with error=The system does not have enough resources to complete the requested operation at this time.
  [decoderFFVDPAU]  Cannot create surface 17/50
  [refresh]  [Vdpau]Rrefresh
  [renderCompleteRedrawRequest]  RedrawRequest
  [paintGL]  Painting dummy openGl widget
  [refresh]  [Vdpau]Rrefresh
  [renderCompleteRedrawRequest]  RedrawRequest
  [paintGL]  Painting dummy openGl widget
^[OF  [~decoderFFVDPAU]  [VDPAU] Cleaning up
  [surfaceDestroy]  ADM_coreVdpau::funcs.destroySurface(surface) call failed with error=An invalid handle value was provided.
  [~decoderFFVDPAU]  Error destroying surface 17
  [~decoderFFVDPAU]  [VDPAU] Destroying decoder
[lavc] Destroyed


_____________________________________________
Avidemux v2.6.0 (r8085)
_____________________________________________
Compiler: GCC 4.6.3
cmake: 2.8.8
Build Target: Linux (x86-64)
User Interface: Qt (4.8.1)
_____________________________________________
Kernel: Linux 3.2.0-26-generic (x86_64)
Distribution: Linux Ubuntu 12.04 LTS (Precise Pangolin)
Desktop: Unity 2D 5.12.0
Display Server:  X Server 1.11.3
Display Driver: NVIDIA 302.17
Intel Core i5-2500K @ 3.30GHz (4 Cores) with 8 GB ram
Graphics: NVIDIA GeForce GT 520/PCIe/SSE2 1024MB (810/535MHz)
OpenGL render: 4.2.0 NVIDIA 302.17
_____________________________________________
Title: Re: VDPAU cannot Initialize VDPAU
Post by: Jan Gruuthuse on November 24, 2012, 02:35:37 PM
This issue still happening when loading 10th part (2GB/part)  this warning pops up.

In terminal output:
[Editor] Decoder FCC: H264 (34363248) [ADM_getDecoder] 
Searching decoder in plugins
  [tryCreatingVideoDecoder]  No decoder found in plugin
  [ADM_getDecoder]  Searching decoder in vdpau (1280 x 720, extradataSize:0)...
  [ADM_getDecoder]  This is vdpau compatible
[lavc] Build: 3554148
[lavc] Decoder init: h264_vdpau video decoder initialized! (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration))
[decoderFFVDPAU]  [VDPAU] Decoder created
  [surfaceCreate]  ADM_coreVdpau::funcs.createSurface(ADM_coreVdpau::vdpDevice,VDP_CHROMA_TYPE_420,width,height,surface) call failed with error=The system does not have enough resources to complete the requested operation at this time.
  [decoderFFVDPAU]  Cannot create surface 22/50
  [refresh]  [Vdpau]Rrefresh
  [renderCompleteRedrawRequest]  RedrawRequest

ONLY: when in Preferences [Video] [v] Decode video using VDPAU is marked

Weird is this worked for loading 9 x 2 GB parts in project, like if it can only create 9 decoder(s) instances? should not the same 1st created decoder be used?
Title: Re: VDPAU cannot Initialize VDPAU
Post by: mean on November 24, 2012, 08:14:27 PM
It's because each chunks is allocating its own codec and associated buffers
and it runs out of vdpau buffers
Title: Re: VDPAU cannot Initialize VDPAU
Post by: Jan Gruuthuse on November 24, 2012, 08:49:06 PM
Thanks for explaining.
Now that I know: Just tried this, once this message pops up you can set : Preferences [Video] [ ] Decode video using VDPAU. Then the message does not appear when loading following parts.
Title: Re: VDPAU cannot Initialize VDPAU
Post by: mean on November 25, 2012, 07:32:08 AM
Normally it should automatically revert to pure sw decoder
Title: Re: VDPAU cannot Initialize VDPAU
Post by: Jan Gruuthuse on November 25, 2012, 09:39:31 AM
It does. But It every time you load a next part that message pops up again. I do often load over 15 2 GB's parts/5 hours of recording)