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

use realpath/readlink to load templates in gear360video.sh #59

Open
ftoledo opened this issue Jan 30, 2019 · 0 comments
Open

use realpath/readlink to load templates in gear360video.sh #59

ftoledo opened this issue Jan 30, 2019 · 0 comments

Comments

@ftoledo
Copy link

ftoledo commented Jan 30, 2019

when you run gear360video.sh from another path, it's cannot found the templates pto files and raise nona errors and flooding screen with notifications:

captura de pantalla_2019-01-30_12-09-37

toledones@gollum:/tmp$ ~/360/gear360pano/gear360video.sh -o out 360_0561.MP4 

partial log:

Processing panofile: /tmp/tmp.H34KhY62WY/image00611.jpg
Processing input images (nona)
WARN: 12:09:41.678878 (/build/hugin-JCCjou/hugin-2016.2.0+dfsg/src/hugin_base/panodata/Panorama.cpp:2054) readData(): Failed to read from dataInput.
error while parsing panos tool script: gear360video2560.pto
Error while running nona
Error while running /home/toledones/360/gear360pano/gear360pano.sh
Keeping temporary directories...
Frames temp directory: 
Output temp directory: 
Processing panofile: /tmp/tmp.H34KhY62WY/image00003.jpg
Processing input images (nona)
WARN: 12:09:41.719566 (/build/hugin-JCCjou/hugin-2016.2.0+dfsg/src/hugin_base/panodata/Panorama.cpp:2054) readData(): Failed to read from dataInput.
error while parsing panos tool script: gear360video2560.pto
Error while running nona
Error while running /home/toledones/360/gear360pano/gear360pano.sh
Keeping temporary directories...
Frames temp directory: 
Output temp directory: 
Processing panofile: /tmp/tmp.H34KhY62WY/image00367.jpg
Processing input images (nona)
WARN: 12:09:41.762503 (/build/hugin-JCCjou/hugin-2016.2.0+dfsg/src/hugin_base/panodata/Panorama.cpp:2054) readData(): Failed to read from dataInput.
error while parsing panos tool script: gear360video2560.pto
Error while running nona
Error while running /home/toledones/360/gear360pano/gear360pano.sh
Keeping temporary directories...
Frames temp directory: 
Output temp directory: 
Processing panofile: /tmp/tmp.H34KhY62WY/image00303.jpg
Processing input images (nona)
WARN: 12:09:41.806971 (/build/hugin-JCCjou/hugin-2016.2.0+dfsg/src/hugin_base/panodata/Panorama.cpp:2054) readData(): Failed to read from dataInput.
error while parsing panos tool script: gear360video2560.pto
Error while running nona
Error while running /home/toledones/360/gear360pano/gear360pano.sh
Keeping temporary directories...

As workaround, you can copy the desired pto file into the actual video directory. But i think that will better if the script use realpath or similar to get the correct path to these files.
Also, it will help to install the scripts and templates in /usr/share/ and symlink into /usr/bin for use as system wide.

thanks!

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

1 participant