Giter VIP home page Giter VIP logo

processing-video's Introduction

Processing Video

Repository of the video library for Processing.

This library comprises classes for movie playback and video capture. It is based on the gstreamer multimedia framework, and uses the gst1-java-core bindings to interface gstreamer from Java.

The version in master currently uses GStreamer 1.x, thanks to the amazing work by Gottfried Haider

Please submit all your bug reports and pull requests related to the video library here. Your contribution is really important to keep the Processing project moving forward!

The video library developers

6 January 2018

processing-video's People

Contributors

anadroid avatar benfry avatar codeanticode avatar danielaromi97 avatar e7mac avatar einraum-design avatar gohai avatar hamoid avatar hx2a avatar micuat avatar reas avatar shiffman avatar stammit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

processing-video's Issues

Surface is the wrong size: Can’t find surface

I have a problem that I think is due to the video library.
I keep getting this error:
2016-04-12 13:35:41.560 java[13582:1313660] Surface is the wrong size: Can’t find surface
2016-04-12 13:35:41.560 java[13582:1313660] Surface is the wrong size: 1280 720 vs 320.000000 240.000000

I have a question in the processing forums here that clarifies the entire problem (with code):
https://forum.processing.org/two/discussion/16013/video-library-not-picking-up-correct-resolution-from-camtwist-studio#latest

and a thread with the developer of CamTwist Studio here:
http://camtwiststudio.com/ctforums/viewtopic.php?f=4&t=1344

with entire error log here: http://pastebin.com/58AbAvmb

I'm not sure if my assumption is correct. Some help would be appreciated to help put me on the right path to solving this problem, thanks.

Please add support for Intel 2400

Trying to run Processing on an HP Stream 8 Tablet (Windows 8.1 32 bit), the basic graphics functionality seems OK. The video stream, which is provided by an Intel 2400 fails, however while running the video library example "GettingStartedCapture":
Processing 1.5: reports the front and back cameras as Intel 2400, but hangs with an empty video window
Processing 2.2.1 says nothing and just hangs
Processing 3.0b3 beta crashes on startup. A partial stack dump from a very tiny window is attached.

processing 3 0b3 on hp stream

Reverse only works from end of video when first played?

Issue by processing-bugs
Sunday Feb 10, 2013 at 17:43 GMT
Originally opened as processing/processing#1505


Original author: [email protected] (December 11, 2012 20:49:58)

Using the example "Reverse" I adjusted it to set the movie to play in reverse when the mouse is pressed. This didn't work, however, I know this movie will play in reverse since the original example works.

I tried pausing, stopping, etc. but didn't have any luck.

See attached.

Original issue: http://code.google.com/p/processing/issues/detail?id=1467

sketch hangs when playing many videos

Issue by processing-bugs
Sunday Feb 10, 2013 at 17:35 GMT
Originally opened as processing/processing#1375


Original author: [email protected] (October 23, 2012 16:25:27)

I've done a lot of tests with various configurations but can't seem to get more than 15 videos to play without the sketch hanging. The more times I call loop() of a Movie object the slower the next call to loop seems to be.

Original issue: http://code.google.com/p/processing/issues/detail?id=1337

Delay on play()

I have a sketch that plays several movies in succession; when one is finished, another is loaded and played. When a new movie is played, Processing's entire graphics pipeline appears to hang for a half-second or so. I'm doing other things when the movie starts, so this delay is obvious and pretty ugly.

This modification of the "Loop" example (you'll need transit.mov or your own movie file) reproduces the behavior; just keep moving the mouse over the window and you'll see the delay when the movie is stop()ed and play()ed every 2 seconds.

I'm using a fresh install of Processing 2.2.1, downloaded yesterday, on my Macbook Pro running 10.9.5.

import processing.video.*;

Movie movie;

void setup() {
  size(640, 360);
  background(0);
  // Load and play the video
  movie = new Movie(this, "transit.mov");
  movie.play();
}

void movieEvent(Movie m) {
  m.read();
}

void draw() {
  image(movie, 0, 0, width, height);

  fill(0, 0, 255);
  // Delay is noticeable while trying to draw this following the mouse
  ellipse(mouseX, mouseY, 100, 100);

  if (movie.time() >= 2) {
    // Replacing the lines below with this causes no delay
    //movie.jump(0);

    // This also causes some delay, but not as much as below
    //movie.pause();
    //movie.jump(0);
    //movie.play();

    // This action chokes the pipeline for a half-second
    movie.stop();
    movie.play();
  }
}

Capture.start() fails without default renderer

When using some webcams in P2D/P3D modes, the call of Capture#start() never returns. Works fine with the default renderer. Have tested this on multiple machines with the same camera. Capture.list() never returns either.

Processing 2.1
OSX 10.8
Creative GestureCam (Intel/Creative Labs Gesture Recognition Camera).

Sample code to reproduce:

import processing.video.*;

Capture video;

void setup() {
  size(640, 680, P3D); // without the renderer argument, works fine.
  video = new Capture(this, 640, 480, 30);
  video.start(); // this function never returns
  println("Capture#start() returned.");
}

void draw() {
  background(33);
  if (video.available()) video.read();
  image(video, 0, 0);
}

(copied from processing/processing#2247)

non-ASCII characters in path to video file causes errors

Issue by processing-bugs
Sunday Feb 10, 2013 at 17:39 GMT
Originally opened as processing/processing#1439


Original author: [email protected] (November 19, 2012 22:01:29)

Description:
When a sketch folder is place inside a folder with a name containing a special character video files don't render and processing don't output any error.

What steps will reproduce the problem?

  1. place the attached sketch in a path where there is a special character in one of the folder name.

ex: /Users/username/Documents/Etudiants/école/Loop/Loop.pde

  1. run sketch

NOTE: you can reproduce this behavior with any sketch using video file and the core video library

What is the expected output?
The video should play.

What do you see instead?
No error and no video playing. In this example, only the background color.

What version of the product are you using?
2.0b6

On what operating system?
MacOsX 10.8.2

Additionnal informations:
It look like a trivial problem but french speaking people will have issue with this since OSs accept filename with some special character.
Most frequent characters are: é, è, à, ç, ô.

Original issue: http://code.google.com/p/processing/issues/detail?id=1401

The image is mirrored

Hi! I have a Macbook pro retina from 2013 with OS x El Capitan. The code works for me, but the image is mirrored and it doesn't film straight forward but to the side. What can i do?

Focus of webcam?

Is it possible to set/change the focus of a erratic webcam (windows, uvc)?

video library not working. p5 3.0.1 ARMv6hf, RPI 2 B.

Hello,

Running Mirror example.

when using newest video library 1.0.1 via Contrubution Manager the error is

No such Gstreamer factory: v4l2src

when rolling back to 1.0 https://github.com/processing/processing-video/releases/tag/1 the error is

NoClassDefFoundError: Could not initialize class com.sun.jna.Native

Happens both on RASPBIAN JESSIE and RASPBIAN WHEEZY on Raspberry Pi 2 B.

Installed processing both via curl https://processing.org/download/install-arm.sh | sudo sh and manually.

Tried also multiple cameras that are known to work with Raspberry Pi (and are used on everyday basis).

The OSes are vanilla, no components installed only p5.

Related #35

Video not availabe on P2D or P3D

Apparently, the video playback is not available for P2D or P3D renderers on the Raspberry Pi 2.
This is particularly sad since that would enable the whole world to use the keystone library of processing for elegant projection mapping, e.g. on architecture. Instead, video has to be rendered /after/ the exact transformation of the projectors is known. (which is too late normally.)

  • What exact dev steps are necessary to make gstreamer's framebuffers available for the OpenGL hardware acceleration?

Export video doesn't work nice

OS 10.9.4 / iMac 2012 / Processing 221 and 302.
I found a very weird thing the last day when I try to export video.

When I write simply code, the exportation don't work, but when copy-paste the code in a new sketch the exportation work. Same when I zip the sketch and I unzip open in Processing and export the exportation work.
it's weird isn't it ?

the simply code

import processing.video.*;
Capture video;

void setup() {
  size(640,480) ;
  video = new Capture(this, width, height);
  video.start() ;
}

void draw() {
    if (video.available()) { 
    // Reads the new frame
    video.read(); 
  } 
  image(video, 0, 0); 
}

add movie.isPlaying() or method to determine when a movie has completed playback

Issue by processing-bugs
Sunday Feb 10, 2013 at 17:32 GMT
Originally opened as processing/processing#1327


Original author: [email protected] (October 04, 2012 06:47:32)

For a recent project I needed to check when a video was done playing. I did so using movie.time() >= movie.duration(). However, for some movies this doesn't work, because time will never reach duration.

What is the expected output? What do you see instead?

time() should either always reach duration or, and I think this would be easier, an isPlaying() method should be exposed. From what I saw, the Movie class uses a playing instance variable internally that could be used for this.

What version of the product are you using? On what operating system?

Processing 2.0b3 on OS X 10.8.2

Original issue: http://code.google.com/p/processing/issues/detail?id=1289

Get source frame rate or number of frames

I need to be able to step frame by frame through a video. Can you provide an interface that either lets me get the source frame rate (so I can convert from seconds to frames and back), or a method that provides the total number of frames, so that I can calculate the frame rate. I'd actually prefer the latter, plus a jump method that could take a frame number, but either approach will let me switch between frames and seconds. Thanks!

using processing for 3D image mapping

hi All
first of all I'm so sorry to open ticket for my question but I really appreciated if you could direct me to correct links or track
actually I'm Arduino Neopixel fan and tried to run the spherical POV. For run POV, each image should be converted to the number of lines which is used in each revolution , I think convert the planner POV must not be so hard for processing to pixelizid in lines but I don't now how to map an image on spherical and then converted to image lines
thanks

error in video library 1.0.1--com.sun.jna.native

the update to Video 1.0.1 The Processing Foundation GStreamer-based video library for Processing 3 for windows throws the same error when i try to run any of the examples, "noclassdeffounderror:could not initialize class com.sun.jna.native". i updated my java, uninstalled and reinstalled the library and restarted the os, win 7, 3 times and still the error. i will now revert to version 1.0.0 until this is fixed.

How to call maven with this project? => [ERROR] The goal you specified requires a project to execute but there is no POM in this directory

Hi guys,
I'd like to extend this code but I'm trying to $ mvn clean and this is the output ....

tangrammers-MacBook-Pro:processing-video tangrammer$ mvn clean -X
Listening for transport dt_socket at address: 8008
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
Maven home: /usr/local/Cellar/maven/3.2.5/libexec
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/local/Cellar/maven/3.2.5/libexec/conf/settings.xml
[DEBUG] Reading user settings from /Users/tangrammer/.m2/settings.xml
[DEBUG] Using local repository at /Users/tangrammer/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /Users/tangrammer/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project org.apache.maven:standalone-pom:pom:1: (none)
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[plexus.core, parent: null]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.125 s
[INFO] Finished at: 2016-09-23T13:46:47+02:00
[INFO] Final Memory: 5M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/tangrammer/git/funicular/processing-video). Please verify you invoked Maven from the correct directory. -> [Help 1]
org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/Users/tangrammer/git/funicular/processing-video). Please verify you invoked Maven from the correct directory.
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:80)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
tangrammers-MacBook-Pro:processing-video tangrammer$ 


BTW: I've cloned processing/processing also and edited the build.properties to match my directories

thanks!
Juan

Video Issues, OPENGL Issues pages on wiki

Issue by processing-bugs
Sunday Feb 10, 2013 at 17:00 GMT
Originally opened as processing/processing#866


Original author: [email protected] (September 02, 2011 18:30:19)

http://wiki.processing.org/w/Video_Issues
http://wiki.processing.org/w/OpenGL_Issues

These pages need to be reviewed and altered for the 2.0 release. The video page is linked from the reference pages on the main site, which I have updated in the source, but not yet on the site.

http://processing.org/reference/libraries/video/index.html

Original issue: http://code.google.com/p/processing/issues/detail?id=828

Building for Processing 3 / OSX

I am trying to build processing-video for Processing 3 on OSX.

Having downloaded Processing 3 from the processing.org site rather than building from the git repo, it's unclear what the build.properties paths should be - or if it's even possible to add the library in this way.

Any assistance gratefully received.

Webcam not reporting a captured frame?

I have an old bloggie duo use as a webcam to work on the use of the unwrapped 360 degree lens as a visual collision detector for my robotics experiments (http://www.keepad.com/products/sony/Cameras/Bloggie/MHSFS2KP/).

Now the camera comes up in my windows driver list as a webcam. I have used the free webcam software MyCam to view the Bloggie working as a webcam.

If I use the example code from Processing site for Capture (https://processing.org/reference/libraries/video/Capture.html)

The bloggie turns up in the Available list of cameras. Although, confusingly it turns up as a number of cameras of alternate resolutions. No matter, Capture appears to "see" the bloggie.

However, the cam.available() never returns true suggesting a video frame is never available.

I have tried using various index values into cameras to, pick up alternate instances of the bloggie resolution instances, no no avail. I have tried hard coding resolutions, frame rates, camera names etc. to no avail.

MyCam reports the bloggie at a specific resolution and framerate so assuming that is the default I have made a special point of setting those parameters, to no avail.

Regardless, cam.available() never returns true.

I wrapped the capture calls in try blocks and no exceptions appear to get raised.

If I print the cam pointer it comes up with: processing.video.Capture@2d5e7ba3
So, the Capture instance appears to have been created.

So, there is no exception or other means to "explain" why the camera can be "seen" by Capture.list() but fails to return a frame.

Any ideas please?

Running on windows 7.

Cheers,
A

GStreamer Critical

Issue by aschenbrennerin
Friday Feb 14, 2014 at 15:48 GMT
Originally opened as processing/processing#2360


Hey,

I'm using Processing 2.1.1 64 bit with a simple webcam viewer example:

import processing.video.*;

Capture video;

void setup() {
  size(1300,900);
  // available is name=Microsoft LifeCam Studio,size=1280x720,fps=30
  video = new Capture(this,1280,720,30);
  video.start();
}

void draw() {
  if (video.available()) {
    video.read();
  }
 image(video,0,0);
}

I've now encountered a problem with high resolution camera pictures: they aren't displayed and I get the following error message after a while. Camera stream with a lower resolution (or even with a lower framerate) are displayed properly.

(javaw.exe:6520): GStreamer-CRITICAL **:
Trying to dispose element rgb, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

Ubuntu: IllegalArgumentException: No such Gstreamer factory: v4l2src

I'm using Ubuntu 15.10 and I can't use the library anymore. When I run a Sketch with Capture, the following error appears:
IllegalArgumentException: No such Gstreamer factory: v4l2src

I tried installing gstreamer0.1-ffmpeg as stated here, however the error message still appears.

I also tried to install @gohai library as stated in #23, also without success. (Maybe it was not clear for me how to install it)

I can't remember when was the last time I could use the library. I have no idea what else I can do.

(I'm about to upgrade to 16.04 but I don't think that will help)
The update didn't work. Any ideas of what can be done?

Playing movie backwards with loop()

A movie will play backwards (if the codec supports) it. However, if you call loop() it will not return to the end and continue to play backwards but throws the following error:

(Processing core video:9242): GStreamer-WARNING **: wrong STREAM_LOCK count 0

This was discovered when checking out #16.

No pipelines and no compatible with Processing 3

I have to add the processing lib GSVideo to use the pipelines, but it is no more under maintenance and also I can't use it anymore with Processing 3 because it is no more compatible with the core.

processingerror2
processingerror

nullpointer : com.jogamp.common.util.awt.AWTEDTExecutor.invoke

Issue by h2oop
Wednesday Jan 08, 2014 at 12:07 GMT
Originally opened as processing/processing#2302


Hi,

after a few months trying to find this error i only can assume this has to be a bug. Could somebody point me in a direction how to locate this nullpointer to be more concrete...

the sketch is to big to send. (plays movies, displays rss-feeds and twitters, etc...)
using P3D as renderer. (Syphon in and out)
on mac mini 2013 - OSX 10.8.5 - processing 2.1
on macbook Pro - OSX 10.9 - processing 2.1

The null pointer appears only after a few days running the sketch. The sketch is programmed to do stuff every half hour.... so no Nullpointer for lets say 99 times...and then suddenly ... bang ! ?

java.lang.RuntimeException: java.lang.NullPointerException
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
at javax.media.opengl.Threading.invoke(Threading.java:191)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:528)
at processing.opengl.PJOGL.requestDraw(PJOGL.java:637)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1597)
at processing.core.PApplet.run(PApplet.java:2177)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException
at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1160)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1153)
at processing.core.PApplet.handleMethods(PApplet.java:1347)
at processing.core.PApplet.handleDraw(PApplet.java:2345)
at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:810)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:649)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:633)
at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1271)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1103)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:978)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1282)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

List of Supported Codecs?

Just getting into video with Processing 3.0

I am curious as to what codecs are supported with this library?

I am looking to playback Apple ProRes (Apple ProRes 422 Proxy specifically). However, I have only gotten H.264 to work.

Is there any extra code necessary? A list I could consult? or perhaps other video libraries that are suggested for different codecs?

I am on a Mac Pro Retina OSX 10.10

Thanks for all the great work in the meantime!

Unable to use the self built video library

I first applied this commit - #21
And after this the library is building but I'm getting the following error while using Capture class inside the code. Probably those two jar files don't have same signature or what ?

java.lang.SecurityException: class "org.eclipse.jdt.core.compiler.IScanner"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:895)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:665)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:758)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteFormatter.formatString(ASTRewriteFormatter.java:246)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteFormatter.formatNode(ASTRewriteFormatter.java:376)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteFormatter.getFormattedResult(ASTRewriteFormatter.java:187)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doTextInsert(ASTRewriteAnalyzer.java:1339)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer$ListRewriter.rewriteList(ASTRewriteAnalyzer.java:631)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer$ListRewriter.rewriteList(ASTRewriteAnalyzer.java:550)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.rewriteModifiers2(ASTRewriteAnalyzer.java:1539)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.visit(ASTRewriteAnalyzer.java:1992)
    at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:611)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisit(ASTRewriteAnalyzer.java:405)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisitList(ASTRewriteAnalyzer.java:443)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisit(ASTRewriteAnalyzer.java:437)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisitUnchangedChildren(ASTRewriteAnalyzer.java:450)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.visit(ASTRewriteAnalyzer.java:1675)
    at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:453)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisit(ASTRewriteAnalyzer.java:405)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisitList(ASTRewriteAnalyzer.java:443)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisit(ASTRewriteAnalyzer.java:437)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisitUnchangedChildren(ASTRewriteAnalyzer.java:450)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.visit(ASTRewriteAnalyzer.java:1655)
    at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:207)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
    at org.eclipse.jdt.core.dom.InternalASTRewrite.rewriteAST(InternalASTRewrite.java:101)
    at org.eclipse.jdt.core.dom.AST.rewrite(AST.java:3077)
    at org.eclipse.jdt.core.dom.CompilationUnit.rewrite(CompilationUnit.java:929)
    at processing.mode.java.pdex.XQPreprocessor.doYourThing(XQPreprocessor.java:96)
    at processing.mode.java.pdex.ErrorCheckerService.checkCode(ErrorCheckerService.java:510)
    at processing.mode.java.pdex.ErrorCheckerService.run(ErrorCheckerService.java:366)
    at java.lang.Thread.run(Thread.java:745)

loadPixels() with Capture failing on 3.0 and 3.0.1

I'm not sure if this is a Processing or processing-video bug, but I'll start here and then we can move it if necessary. The following code works perfectly with the default renderer, but crawls to a halt with P2D or P3D. Removing loadPixels() also makes it runs smoothly in P2D or P3D so that seems to be the source of the problem. Tested on Mac OS X, Processing 3.0 and 3.0.1.

import processing.video.*;

Capture cam;

void setup() {
  size(640, 480, P2D);
  String[] cameras = Capture.list();
  cam = new Capture(this, cameras[0]);
  cam.start();
}

void draw() {
  if (cam.available() == true) {
    cam.read();
  }
  image(cam, 0, 0, width, height);
  cam.loadPixels();
}

Setting speed() to values > 8x causes playback to stop.

Even in a program that only opens a video file (1280 x 720, roughly 700MB .mp4, stored locally) and adjusts speed() in response to a key press, playback fails at 16x (increments used are 2, 4, 6, 8, 16 etc.) 100% of the time, with no issues at lower speeds.

camera capture not working in MJPEG mode

Hello, I'm trying to work with Processing3 on Windows 10 and an USB camera which can be set to stream in YUV or MJPEG mode.
The YUV mode works nicely but MJPEG does not work at all: all camera modes and resolutions are listed in cameras[] array, but when I choose one of the MJPEG modes camera.available() is false and no image data is streaming.
This is a huge problem for me because YUV streams have very low frame rates and great latency, MJPEG streams instead can be set to work up to 120 fps and mostly unnoticeable latency.
The DirectShow preview utility works normally with all MJPEG streaming modes, the Windows 10 default camera application too, and also Adobe Air AS3 applications I developed in the past are able to get the MJPEG stream. Anyone knows how to solve this? Thank you in advance...

Blackmagic HDMI capture devices don't show up in capture list

From reading online it seems people have had mixed results with this. I have no idea why it seems to work for some and not others but sharing my (unsuccessful) experiences trying to get HDMI video into Processing via Blackmagic capture devices. Any help getting this working (or a suggestion for alternate capture devices) much appreciated.

I was testing on OSX Yosemite, using a GoPro Hero 3+ at 720p60 (via HDMI)
Tested on Processing 3.0a5 also incase there were updates but no joy

Tested Blackmagic devices:

  • UltraStudio USB3
  • Intensity Extreme Thunderbolt
  • UltraStudio Mini Recorder Thunderbolt

No video, only sound

Hello,

I am running Debian Linux 8. I downloaded the 64-bit Linux archive (version 3.0.2) from the website and added the Video library using the Contribution Manager. I tried running the Loop example both with the default and my own h264-encoded video file, but I only get the sound from the video, not the picture - the window is just a black rectangle with a title bar.

Is there a library I need to install or am I missing something else?

video library can not be downloaded in processing 3

After click the Install, Downloading is going on, but in very slow speed. After several minutes, it fails. I've tried several different proxy configurations for better downloading performance which don't work all.

Please add support for the HAP codec

Taken form the HAP github page :
"[The new HAP video] codec is designed with the goal of playing back as many movies as possible on hardware with fast hard drives, particularly in situations where existing codecs reach the limits of the CPU to decode frames."

"The simplest way to add Hap support to your application is to use QuickTime with the Hap QuickTime codec installed, making a custom request to receive S3TC frames which you then process with OpenGL or DirectX. Discussion and sample code is available in the Hap QuickTime Playback Demo.

If you need to parse raw Hap frames yourself, source code and a specification document are available as part of this project."

It would be really awesome to be able to play this codec in processing as it would greatly improve the performances...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.