Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Problem with #17

Open
axel-tanner opened this issue Jul 18, 2019 · 0 comments
Open

Problem with #17

axel-tanner opened this issue Jul 18, 2019 · 0 comments

Comments

@axel-tanner
Copy link

Not sure whether this is a Mac specific issue, but on my MacBook Pro running the slit-scan-001 tutorial via

./gradlew :slit-scan-001:run

results in

3.3.0 Cocoa NSGL dynamic
tracking verteBuffer org.openrndr.internal.gl3.VertexBufferGL3@31c88ec8
OpenGL vendor: ATI Technologies Inc.
OpenGL version: 4.1 ATI-2.9.26
looked for format: org.bytedeco.javacpp.avformat$AVInputFormat[address=0x13f282070,position=0,limit=0,capacity=0,deallocator=null] got avfoundation
[avfoundation @ 0x7fa6da0ab200] Selected framerate (29.970030) is not supported by the device
...
Exception in thread "main" org.openrndr.ffmpeg.adopted.FrameGrabber$Exception: avformat_open_input() error -5: Could not open input "0". (Has setFormat() been called?)
        at org.openrndr.ffmpeg.adopted.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:638)
        at org.openrndr.ffmpeg.adopted.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:567)
        at org.openrndr.ffmpeg.FFMPEGVideoPlayer.start(FFMPEGVideoPlayer.kt:101)
        at Example.setup(Example.kt:24)
        at org.openrndr.internal.gl3.ApplicationGLFWGL3.loop(ApplicationGLFWGL3.kt:510)
        at org.openrndr.Application$Companion.run(Application.kt:29)
        at ExampleKt.main(Example.kt:67)
Assertion failed: (_localEvalOnceCondition), function PropertiesChanged, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleUSBCamera/AppleUSBCamera-193.260.10/Sources/Extras/CoreMediaIO/DeviceAbstractionLayer/Devices/DP/Base/CMIO_DP_Object.cpp, line 582.

Including a specific framerate in https://github.com/openrndr/openrndr-tutorials/blob/master/slit-scan-001/src/main/kotlin/Example.kt, ie:

videoPlayer = FFMPEGVideoPlayer.fromDevice()

videoPlayer = FFMPEGVideoPlayer.fromDevice(framerate=30.0)

makes it work for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant