cookie
July 2, 2023, 2:52pm
#1
I have set up a very basic project trying to play a video, but nothing is shown, there is only sound.
ofApp.h:
ofVideoPlayer videoPlayer;
float speed;
ofApp.cpp:
void ofApp::setup(){
ofBackground(255, 255, 255);
//load video and set speed
videoPlayer.load("dr-paxton.mov");
videoPlayer.play();
speed = 1.0;
}
void ofApp::update(){
videoPlayer.setSpeed(speed);
videoPlayer.update();
}
void ofApp::draw(){
ofSetColor(255, 255, 255);
videoPlayer.draw(0, 0);
}
What can be going wrong here?
it is helpful to know which platform you are working
and which codec the mov video is encoded
cookie
July 2, 2023, 3:08pm
#3
I am editing in Atom and using make in terminal to build. Codecs: Linear PCM, Timecode, Animation
I used to use Animation coded some years ago, it seems to be unsupported as today.
at least when I tried to open them in quicktime it immediatly transcoded to another format.
It is unfortunate as Animation used to work very well with few colors.
My suggestion is you can try transcoding this video or test with another video in another codec.
cookie
July 2, 2023, 7:03pm
#5
Sure I can just try another codec, I am rendering in After Effects so it’s easy to switch. The question is, which one should I choose?
1 Like
cookie
July 2, 2023, 7:21pm
#6
In case anyone has the same problem, Apple ProRes 4444 works for me! Thanks @dimitre
3 Likes