Hello,
I continue to have this problem:
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
i already reinstall install_codecs.sh and install_dependencies.sh but nothing happen, any suggestion?
thanks in advance for the help
Hello,
I continue to have this problem:
[warning] ofGstVideoUtils: update(): ofGstVideoUtils not loaded
i already reinstall install_codecs.sh and install_dependencies.sh but nothing happen, any suggestion?
thanks in advance for the help
this is a very generic problem that means that something else is wrong can you post a little bit more about what you are doing? loading a video, using a camera? also if there’s any other output in the console?
It is a simple software to control two videos, follow the code:
[code] #include “ofApp.h”
int currentVideo = -1;
//--------------------------------------------------------------
void ofApp::setup(){
ofSetFrameRate(30);
videos[0].load("loop1.mp4");
videos[1].load("loop2.mp4");
ofBackground(255,255,255);
}
//--------------------------------------------------------------
void ofApp::update(){
videos[0].update();
videos[1].update();
std::stringstream strm;
strm<< "fps:" <<ofGetFrameRate();
ofSetWindowTitle(strm.str());
}
//--------------------------------------------------------------
void ofApp::draw(){
videos[0].draw(0,0);
videos[1].draw(0,0);
}
//--------------------------------------------------------------
void ofApp::keyPressed(int key){
if(currentVideo == key)
return;
currentVideo = key;
switch (key) {
case ‘k’:
videos[1].stop();
videos[1].close();
videos[0].load(“loop1.mp4”);
videos[0].play();
break;
case 'j':
videos[0].stop();
videos[0].close();
videos[1].load("loop2.mp4");
videos[1].play();
break;
default:
break;
}
} [/code]
Also i give one screenshot about the warning:
Thanks
does the video player example that comes with OF work?
So,
I try the videoplayer example and follow the result:
When i run and close:
My application resolution is 2560X1080, maybe is it the problem?
Maybe a mistake in ofApp?
[code]#pragma once
#include “ofMain.h”
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
ofVideoPlayer videos[2];
}; [/code]
Thanks
So, i modified the example and when i load my videos it give me again the “warning” also with a fullhd mp4.
I tried to use a mov in photojpeg, again the same warning but the video was more smooth.
The cpu run at max 60%. [the machine is zotac ci323 with 8gb Ram and SSD]
My videos are 2560X1080, Is there any kind of suggest about the codec (i tried .mp4 H264 and .mov Photo-Jpeg)
Also another problem is the audio part -> it is very low
Can i try to change the OS with a different version of ubuntu? Any suggestion are more than welcome
Thanks for your help