Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

[ error ] ofDirectShowPlayer: Cannot load video of this file type

$
0
0

@clankill3r wrote:

I have the following error while trying to play a video:

Error occured while playing or pausing or opening the file
[ error ] ofDirectShowPlayer: Cannot load video of this file type. Make sure you have codecs installed on your system. OF recommends the free K-Lite Codec pack.

I have the K-Lite Codec installed.
This is the information I get using MediaInfo (that is included with K-Lite).

General
Complete name : D:\downloads\VID_20160601_122232.mp4
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4 (isom/3gp4)
File size : 139 KiB
Duration : 2s 27ms
Overall bit rate : 560 Kbps
Encoded date : UTC 2016-06-01 10:22:35
Tagged date : UTC 2016-06-01 10:22:35

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L5.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1s 998ms
Source duration : 2s 17ms
Bit rate : 345 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Rotation : 270°
Frame rate mode : Variable
Frame rate : 23.298 fps
Minimum frame rate : 16.141 fps
Maximum frame rate : 24.155 fps
Original frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.016
Stream size : 85.0 KiB (61%)
Source stream size : 85.0 KiB (61%)
Title : VideoHandle
Language : English
Encoded date : UTC 2016-06-01 10:22:35
Tagged date : UTC 2016-06-01 10:22:35
mdhd_Duration : 1998

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2s 27ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Nominal bit rate : 96.0 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Frame rate : 46.875 fps (1024 spf)
Compression mode : Lossy
Stream size : 47.5 KiB (34%)
Title : SoundHandle
Language : English
Encoded date : UTC 2016-06-01 10:22:35
Tagged date : UTC 2016-06-01 10:22:35

My script is this:

void ofApp::setup(){

    movie.loadMovie("D:\downloads\VID_20160603_205751.mp4");
    movie.setLoopState(OF_LOOP_NONE);
    ofSetWindowShape(movie.getWidth(), movie.getHeight());

}

//--------------------------------------------------------------
void ofApp::update(){
    if (!movie.getIsMovieDone()) {
        movie.nextFrame();
        movie.update();
    }
    else {
        printf("done");
    }
}

//--------------------------------------------------------------
void ofApp::draw(){
    movie.draw(0, 0);
}

Here is a video in case it helps (1.6mb)

What could I do? And how can I know is OF is able to find K-Lite?
Changing the video format before loading them with OF is not an option.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles