Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative path for videos stored locally ? #4

Closed
hype opened this issue Nov 28, 2023 · 4 comments
Closed

relative path for videos stored locally ? #4

hype opened this issue Nov 28, 2023 · 4 comments

Comments

@hype
Copy link

hype commented Nov 28, 2023

can you not use relative paths to videos stored locally on your computer ?

video.openAndPlay("data/video.mp4");

@linux-man
Copy link
Owner

linux-man commented Dec 2, 2023

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.

@hype
Copy link
Author

hype commented Dec 3, 2023

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 ?

@linux-man
Copy link
Owner

linux-man commented Dec 3, 2023

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

@hype
Copy link
Author

hype commented Dec 3, 2023

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.

@hype hype closed this as completed Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants