@mattc wrote:
Hi.
I hope that someone can help me with this.Straight to the point: RPi 1B, minibian, OF0.9.0
ExamplevideoPlayerExample
works smooth. Replaced the fingers.mov with my own video and got a huge performance drop. Audio goes fine, but video is slow (about 10fps) or doesn't show at all (black rectangle). Sound ends much quicker then video. Removed all extra code so I'm left just with:void ofApp::setup(){ ofBackground(255,255,255); ofSetVerticalSync(true); fingerMovie.load("movies/s999_010.mov"); fingerMovie.setLoopState(OF_LOOP_NORMAL); fingerMovie.play(); } //-------------------------------------------------------------- void ofApp::update(){ fingerMovie.update(); } //-------------------------------------------------------------- void ofApp::draw(){ ofSetHexColor(0x000000); fingerMovie.draw(100,20); ofDrawBitmapString(ofToString(ofGetFrameRate())+"fps", 20, 20); }
Toggled the
ofSetVerticalSync()
with no difference.
AddedofDrawBitmapString(ofToString(ofGetFrameRate())+"fps", 20, 20);
to try troubleshoot it, but even with the failing video I get 59-60fps of the app at all time or even 110-140 withofSetVerticalSync(false)
.Video file details:
Type: MPEG Movie
File Size: 1,1 MB
Image Size: 720 x 576
Frame Rate: 25,00
Source Audio Format: 48000 Hz - compressed - Mono
Project Audio Format: 48000 Hz - 32 bit floating point - Mono
Total Duration: 00:00:07:15
Average Data Rate: 151 KB / second
Pixel Aspect Ratio: 1,0
Posts: 6
Participants: 4