-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FFmpegFrameGrabber.load(myFile) .. start() crashes in Version 1.5.8 when using a filename with special characters #1945
Comments
There's nothing in JavaCPP or JavaCV that changed with regards to strings, but it's possible FFmpeg changed something. Could you try to see if you can open files with avformat_open_input() and a BytePointer using different encodings? It's possible they standardized on UTF-8 or something. |
Yes, it looks like they standardized on UTF-8: |
Thank you very much. Yes, the problem is the encoding. I use Oracle's JDK 8.202 java -Dfile.encoding=UTF-8 and and -Dsun.jnu.encoding=UTF-8 mySoftware.jar Now it works fine! |
…rs to assume that (issue bytedeco/javacv#1945)
I've pushed a fix for this in commit bytedeco/javacpp-presets@ae2a14e. With that, you shouldn't need to modify the encoding for the whole application. Please give it a try with the snapshots and let me know if you are still having any issues: http://bytedeco.org/builds/ |
Version 1.5.9 has been released with the fix! Thanks for reporting |
If i try to load a filename with special characters (excample: Mic Macs Raphael Beau 07 Ca déroule_44100_16_2.wav) my java program crashes without a comment.
In version 1.5.7 all is fine.
I use java 8.202 and I packaged the software with oracles's jpackager. When the software runs inside the IDE (Netbeans 8) everything works, but if I run the installed software on Windows 10 it crashes without a comment.
If I do the same but using javacv_platform-1.5.7 all works fine.
The crash occurs at the code sequence:
FFmpegFrameGrabber myGrabber = FFmpegFrameGrabber.load(Mic Macs Raphael Beau 07 Ca déroule_44100_16_2.wav);
myGrabber.start();
The text was updated successfully, but these errors were encountered: