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: 78693" data-attributes="member: 14215"><p>I got the C# -> Native DirectShow filter communication working. To get a better test platform i made a quick and dirty integration into MediaPortal as follows:</p><p></p><p>I added my AutoCrop filter as a post proc. filter , and added code in the Video player (i dont have any TV recordings on my development machine) to store the interface to the AutoCrop filter when it was added, and then added code to handle a crop action in fullscreen tv and fullscreen video, by showing a 'Cropping Black bars' message and requesting the crop from the AutoCrop filter. Finally i bound this action to the q key(the c key is taken <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> </p><p></p><p>I made a little screen capture video showing it in action(okay, so its not that interesting, but still <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p><a href="http://s16.quicksharing.com/v/7291108/1crop.mp4.html" target="_blank">http://s16.quicksharing.com/v/7291108/1crop.mp4.html</a></p><p></p><p>The video shows playback of an MPEG-2 video clip from a TV broadcast of 'Interview with the Vampire' in My Videos. ~12 seconds into the video(in a frame with the subtitles shown) i click 'q' on the keyboard and the video is cropped after a small delay of 20 sampled frames. The aspect ratio is set to 'stretch' so since the windows shown is 4:3 people get stretched <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>The white lines shown briefly is the cropping bounds found, and the green lines show what was sampled. The lines are of course only there for testing/debugging <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>Btw, the video is crappy and stuttering only because it was captured using a screen grabbing tool and then mutilated into a decent size MPEG-4 file, there is no stuttering or anything going on in the playback in MP(manual mode will have little to no effect on CPU usage, since its only copying a buffer except when asked to crop).</p><p></p><p>I wouldnt mind some input on how the controls should be in MP btw. I was thinking one key finds new bounds in manual mode, while another key switches between 'off', 'auto' and 'on-request'(ie manual) mode.</p></blockquote><p></p>
[QUOTE="ziphnor, post: 78693, member: 14215"] I got the C# -> Native DirectShow filter communication working. To get a better test platform i made a quick and dirty integration into MediaPortal as follows: I added my AutoCrop filter as a post proc. filter , and added code in the Video player (i dont have any TV recordings on my development machine) to store the interface to the AutoCrop filter when it was added, and then added code to handle a crop action in fullscreen tv and fullscreen video, by showing a 'Cropping Black bars' message and requesting the crop from the AutoCrop filter. Finally i bound this action to the q key(the c key is taken ;) I made a little screen capture video showing it in action(okay, so its not that interesting, but still ;) [url]http://s16.quicksharing.com/v/7291108/1crop.mp4.html[/url] The video shows playback of an MPEG-2 video clip from a TV broadcast of 'Interview with the Vampire' in My Videos. ~12 seconds into the video(in a frame with the subtitles shown) i click 'q' on the keyboard and the video is cropped after a small delay of 20 sampled frames. The aspect ratio is set to 'stretch' so since the windows shown is 4:3 people get stretched :) The white lines shown briefly is the cropping bounds found, and the green lines show what was sampled. The lines are of course only there for testing/debugging ;) Btw, the video is crappy and stuttering only because it was captured using a screen grabbing tool and then mutilated into a decent size MPEG-4 file, there is no stuttering or anything going on in the playback in MP(manual mode will have little to no effect on CPU usage, since its only copying a buffer except when asked to crop). I wouldnt mind some input on how the controls should be in MP btw. I was thinking one key finds new bounds in manual mode, while another key switches between 'off', 'auto' and 'on-request'(ie manual) mode. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
AutoCropper plugin
Contact us
RSS
Top
Bottom