relative path for videos stored locally ?
Closed this issue · 4 comments
can you not use relative paths to videos stored locally on your computer ?
video.openAndPlay("data/video.mp4");
Yes. Try:
println(sketchPath("video.mp4"));
video.openAndPlay(sketchPath("video.mp4"));
println(dataPath("video.mp4"));
video.openAndPlay(dataPath("video.mp4"));
Maybe you can use one of these.
You can also use absolute paths.
thanks for the quick reply...
println(sketchPath("video.mp4")); video.openAndPlay(sketchPath("video.mp4"));
worked great. but on exit I get...
[000000003d8bef80] main vout display error: Failed to set on top [000000004b4aaf20] main vout display error: Failed to set on top [000000004ba14dd0] main vout display error: Failed to set on top [000000004ba14dd0] main vout display error: Failed to set on top [00000000486a6520] main vout display error: Failed to set on top [00000000486a6520] main vout display error: Failed to set on top
or
[h264 @ 000000003dffc540] Invalid NAL unit size (289491 > 1301). [h264 @ 000000003dffc540] Error splitting the input into NAL units. [000000005bd4c500] main vout display error: Failed to set on top [0000000061efe850] main vout display error: Failed to set on top [0000000062015870] main vout display error: Failed to set on top [0000000062015870] main vout display error: Failed to set on top
have you ever encountered this ?
No. Not on Linux with Processing 4.3, not with the library examples.
The only reference I found about that error was this one: caprica/vlcj#17
cheers I should test on my linux build and see if I get the same results. this is happening on my win 11 builds... and yeah... it works... it's only on sketch exit... so... I just say thanks for the quick help and not give these exit errors much thought... lol. have a great day.