Comments (11)
Didn't find any libvlc option for it, and didn't find any QML effect, but it's still doable by modify shader a little bit at https://github.com/RSATom/QmlVlc/blob/master/SGVlcVideoNode.cpp#L76
from webchimera.
Ah great thank you!
from webchimera.
we are having some trouble compiling the source fron the current HEAD of master. vs2013 is giving the error mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in Chimera.obj. Any suggestions? We have some custom QML files so we need to compile from source.
from webchimera.
Try delete build folder and rerun prep script
from webchimera.
I've found how to solve this task solely on QML level:
VlcVideoSurface {
id: s1;
source: vlcPlayer;
anchors.fill: parent;
}
ShaderEffect {
property variant source: ShaderEffectSource { sourceItem: s1; hideSource: true }
anchors.fill: parent
fragmentShader: "
varying highp vec2 qt_TexCoord0;
uniform sampler2D source;
void main(void)
{
lowp vec4 tex = texture2D( source, qt_TexCoord0 );
gl_FragColor = vec4( 1. - tex.r, 1. - tex.g, 1. - tex.b, tex.a );
}
"
}
Btw, maybe it will be interesting to you, I've released proof-of-concept of desktop WebChimera
: https://github.com/RSATom/WebChimera-desktop/releases
from webchimera.
The invert filter worked great. How can I hide it at runtime? I tried setting visible: false, but it hides the VlcVideoSurface as well. I also tried opacity: 0. I've got my javascript functions hooked up with emitJsMessage on WebChimeraPlayer. and in Functions.qml.
from webchimera.
I think you should try set hideSource = false
first. If it will not help - I'll try find solution. I think it should be something simple.
from webchimera.
Just tried hideSource = false, no effect? Let me know if you find another solution, thanks!
from webchimera.
following works for me:
VlcPlayer {
id: vlcPlayer;
mrl: "http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_stereo.avi";
}
VlcVideoSurface {
id: s1
source: vlcPlayer;
anchors.centerIn: parent;
width: parent.width / 2;
height: parent.height / 2;
}
ShaderEffectSource {
id: shaderSource;
sourceItem: s1;
hideSource: true;
}
ShaderEffect {
id: shaderEffect;
anchors.centerIn: parent;
width: parent.width / 2;
height: parent.height / 2;
property variant source: shaderSource;
fragmentShader: "
varying highp vec2 qt_TexCoord0;
uniform sampler2D source;
void main(void)
{
lowp vec4 tex = texture2D( source, qt_TexCoord0 );
gl_FragColor = vec4( 1. - tex.r, 1. - tex.g, 1. - tex.b, tex.a );
}
"
}
MouseArea {
anchors.fill: parent
onClicked: { shaderSource.hideSource = !shaderSource.hideSource; shaderEffect.visible = shaderSource.hideSource; }
}
from webchimera.
You're the man. That worked perfect, thanks!
from webchimera.
I'm glad to see you happy :)
from webchimera.
Related Issues (20)
- Option to move or show player on another screen HOT 39
- How to change default asceptratio to 16:9 : HOT 4
- Setup nightly builds on http://launchpad.net
- Linux: plugin don't get keyboard events
- playlist item's .setting HOT 1
- Feature Request - nw.js 64-bit support HOT 4
- Crash In Browser HOT 9
- Image frozzen on Firefox with high resolution HOT 8
- MediaPlayerStateChanged should fire only on real state change HOT 11
- Taking snapshots with WebChimera Plugin HOT 112
- accelerated windowsless mode on Windows HOT 23
- Passing custom VLC arguments? HOT 4
- 'application/x-fb-vlc' mode doesn't support autoloop HOT 1
- Plugin crashes at the end of .m3u8 files HOT 3
- Packaging with VLC 3.0 does not work HOT 8
- Filter - Hue Support HOT 8
- Error: The specified module could not be found. HOT 2
- How do you play local video files HOT 2
- Video not showing when using vlc 2.1.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webchimera.