home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ziphnor" data-source="post: 93604" data-attributes="member: 14215"><p>Well, only slight progress. I now use the same crop settings as the static cropping system which is very nice. So to summarise : I now have an autocropper that works nicely in fullscreen if you dont bring up the OSD and you are in stretch zoom mode (because then the screenshot provides the info i need <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> </p><p></p><p>However, i have still failed to get a frame of video 'directly' <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>It seems the surface im looking for (which a surface of the same size as the original video handed from the VMR9 in renderless mode to MP) is first recieved in the (native) DirectShowHelper in PresentImage which in turn calls Paint which calls back to managed MP using the VMR9Callback interface ending up in PlaneScene.PresentSurface as the uint value of the native pointer.</p><p></p><p>I thought i could used managed DirectX to get a nice interface to this surface so i tried:</p><p></p><p>Surface s = new Surface( new IntPtr(pSurface) );</p><p></p><p>If i had managed that i could have gotten my bitmap using SurfaceLoader.SaveToStream. However if i attempt to use the above managed surface for anything MP crashes (hard) without a decent error message so im guessing that ive somehow abused the Surface constructor? Any help would be appreciated.</p><p></p><p>The alternative is to go for grabbing the bitmap on the native side in PresentImage/Paint but thats cumbersome compared to the 1-2 lines required with managed DirectX. I really hope someone can give me a pointer here. If i could just get my hand on that ¤#%¤ bitmap it would be a trivial exercise to finish the autocropper.</p></blockquote><p></p>
[QUOTE="ziphnor, post: 93604, member: 14215"] Well, only slight progress. I now use the same crop settings as the static cropping system which is very nice. So to summarise : I now have an autocropper that works nicely in fullscreen if you dont bring up the OSD and you are in stretch zoom mode (because then the screenshot provides the info i need :) However, i have still failed to get a frame of video 'directly' :( It seems the surface im looking for (which a surface of the same size as the original video handed from the VMR9 in renderless mode to MP) is first recieved in the (native) DirectShowHelper in PresentImage which in turn calls Paint which calls back to managed MP using the VMR9Callback interface ending up in PlaneScene.PresentSurface as the uint value of the native pointer. I thought i could used managed DirectX to get a nice interface to this surface so i tried: Surface s = new Surface( new IntPtr(pSurface) ); If i had managed that i could have gotten my bitmap using SurfaceLoader.SaveToStream. However if i attempt to use the above managed surface for anything MP crashes (hard) without a decent error message so im guessing that ive somehow abused the Surface constructor? Any help would be appreciated. The alternative is to go for grabbing the bitmap on the native side in PresentImage/Paint but thats cumbersome compared to the 1-2 lines required with managed DirectX. I really hope someone can give me a pointer here. If i could just get my hand on that ¤#%¤ bitmap it would be a trivial exercise to finish the autocropper. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
Top
Bottom