ultramango / gear360pano

Simple script to create equirectangular panorama by stitching images from Samsung Gear 360
MIT License
226 stars 55 forks source link

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

Open ftoledo opened 5 years ago

ftoledo commented 5 years ago

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!