View Full Version : Do any video players feature fade-in and screen lock?
ExperimentalAnimations
30th December 2010, 05:13
Its for a point-of-sale demonstration of my work, where the user would select a video, then it would fade in and loop continually, even if the user clicks on the screen. Does anyone know of any players that feature this, or ones with plugins that can accomplish this?
JanWillem32
30th December 2010, 15:13
I can try to write a pixel shader for you. What kind of hardware do you use? How long is the video? (In MPC-HC the timer is reset every ten minutes.)
ExperimentalAnimations
30th December 2010, 20:53
Im going to be using either a sony,hp, or gateway AIO pc (win7). The videos will be about 30-60 seconds each, long enough to complete a loop. What would the pixel shader do? Would i be able to use it in any player?
JanWillem32
31st December 2010, 02:03
At the moment I know that MPC-HC, KMPlayer and PotPlayer can host pixel shaders. Pixel shaders are little pieces of code that order the video card to execute special effects. Fade in is an easy effect that will not require that much resources. Unfortunately, some manufacturers still sell PC's that are incapable of running shaders. See http://en.wikipedia.org/wiki/Pixel_shader at the PS 2.0 row for the minimum requirements as for video cards.
The host for the pixel shaders is a bit of a dummy, so it will restart the shader for each file. I don't know a direct solution to that, by the way.
For the second part of your question, I know that all three of those players can be configured to change the default key bindings. So that "pause" can be removed from the commands. I guess you will have to use a keyboard, a remote control or a background script to end playing.
ExperimentalAnimations
31st December 2010, 02:50
Well im using an offline site im designing as the front end for my movies, where theres a main menu with links to each movie, so ive not been able to find any information on how a player would respond when the user goes to another movie, like whether it would kill the previous movie before playing the next (like an online site) or switch to the next (like in a playlist) and or worst case just keep opening up movies.
As for restarting the shader for each file, that sounds like it would be a good thing, im wanting the video to fade-in once and then loop continuously until the user exits.
edit: i checked and the AIO's do feature gpu's with pixel shader 2.0
JanWillem32
31st December 2010, 07:24
Web browsers act like regular file managers on local files (only for opening, though). It sounds like an easy way to present a nice menu. Do you intend to make the video fullscreen, on a secondary screen or windowed?
The easiest thing to implement would be just to immediately start and loop the next video once it's clicked.
smok3
31st December 2010, 10:19
im wanting the video to fade-in once and then loop continuously until the user exits.
how does user exits if he/she can't click anywhere?
as for the fadein you could use an avisynth as a wrapper for first clip then append the same clip directly in a loop, so your tmp playlist would be a. clip1(in avisynth with fadein) -> b. clip1 loop 4ever.
http://avisynth.org/mediawiki/FadeIn
p.s. if you know some php, you can probably hack my fancy script for your purpose as well (fadeins will be hard, fullscreen would be no, no, but other than that... - http://kravca.69.mu/blog/2007/06/flvplayer-php/ )
ExperimentalAnimations
1st January 2011, 00:04
I'd like the video to be fullscreen with some html button's overlaid on it, but i havent gotten far enough into this project to determine if thats possible. If not, windowed would work too.
I like the avisynth idea, but my loops will need to be seamless so a playlist sounds like that might introduce a skip. Ill give it a try whenever i figure out this whole web player stuff.
smok3
1st January 2011, 14:02
flash video playlist will not be seamless, you'd have to prepare clips in advance (as 1 clip)
buttons over video are possible, but you will have to dig into flash probably, it is also possible to overlay html layer over the top of flash video as well (i think).
other option would be to use some html5 enabled browser and try to script something around <video> tag. html5 would get you certain amount of coolness factor as well.
p.s. my player doesnt have a concept of clientside playlist as you imagine, the option 'autoadvance' jumps from page to page, so thats not seamless in any case, but preserves unique urls for each clip.
ExperimentalAnimations
1st January 2011, 23:50
Thats what i figured, looping is the only way, so it would need to be something like a shader to do a fade in. Well if janwillem ever comes back maybe i can get some help with that.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.