DuetLapse available for Alpha testing
-
I was referring to having the script tell you that, instead of half a page of stack trace and a "numpy not found". I'll check and see if I did that or not...
Sorry for taking so long, duty called.
So what I'm getting now is this on all 3 of arhi's commands.
I cd to DuetLapse and tried again but got the same error.E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
-
I think I fixed it by putting sudo in front of all 3 commands, testing now.
-
I ran a small 30 layer print, played the file with vlc player and its just a blank screen. Of the three files only "sudo apt-get install libatlas-base-dev" was not present on the pi but I still get a blank screen. Are any of the 4 usb ports ok to use or just a specific one?
-
Any port. If you haven't run DuetLapse again, and have not rebooted, all the stills are in the /tmp directory. You can look at them individually, and/or re-assemble them into a video.
-
All of the stills are in the temp directory and look good on my standalone pi. How does one reassemble the stills into a video?
Also on my Duet pi I'm still getting this,
Python Library Module 'numpy' is required. Obtain via 'sudo python3 -m pip install numpy' Obtain pip via 'sudo apt install python-pip'
When I run #2 I get,
/usr/bin/python3: No module named pip
When I run #3 I get
python-pip is already the newest version (18.1-5+rpt1).
Seems like I'm very close to it working but not there yet.
-
@luckyflyer said in DuetLapse available for Alpha testing:
. How does one reassemble the stills into a video
use ffmpeg
ffmpeg -r 12 -i /tmp/DuetLapse/IMG%08d.jpeg -vcodec libx264 -y -v 8 finalvideo.mp4
-
Thanks, just enter as you posted on the command line?
-
I c&p "ffmpeg -r 12 -i /tmp/DuetLapse/IMG%08d.jpeg -vcodec libx264 -y -v 8 finalvideo.mp4"
into terminal, Now I have finalvideo.mp4 in /home/pi. But it's still the same, when I play it on the pi with vlc the video is blank.
Is it possible to export the video to windows and try it there? -
@luckyflyer did you look at the images in /tmp/DuetLapse ? you can copy those to windows and check if the images are ok
-
I looked at them on the pi and they look good.
-
I started over from scratch with the latest Duet image, burnt it to a sd card, did all of the updates, reinstalled all of my .g files and macros. I then reinstalled Duet lapse only this time I installed all of the corequisite items first and then all of the other files. It had an error at first, rebooted and now it seems to be working as it should. The jpg's are in temp, when the print is finished I'll try vlc for a movie. Wheew!
-
Downloaded vlc to Duet pi but when I playback the video is blank, the vlc hazard cone stays on the screen. Is there a setting in ffmpeg that needs to be changed?
Is there a better/simpler way to transfer files from pi to pc than samba? -
samba is simplest way IMHO
winscp works great too, especially if you want to access temp directory directly
those ffmpeg parameters normally work, did you check if the images are ok? If the images are not ok then ffmpeg can't create the video. Copy the images to the PC and check them out if they are ok.
-
@Danal I added graphicsmagick to the pi and now I'm generating video that looks like this
now to find good place for the two cameras
-
@arhi said in DuetLapse available for Alpha testing:
samba is simplest way IMHO
winscp works great too, especially if you want to access temp directory directly
those ffmpeg parameters normally work, did you check if the images are ok? If the images are not ok then ffmpeg can't create the video. Copy the images to the PC and check them out if they are ok.
All of the images look good. How do I copy them to the pc, copy and paste doesn't work. I haven't installed Samba yet, is that the only way?
-
@luckyflyer
you can install samba, it's rather simple, for e.g.
https://pimylifeup.com/raspberry-pi-samba/but even faster, get yourself winscp
https://winscp.net/eng/download.phplogin with same credentials as you would ssh to the pi and copy the files
this requires ssh to be enabled on the pi (it is not by default), to enable ssh if it's not enabled: https://www.raspberrypi.org/documentation/remote-access/ssh/
-
Sort of.
You can
- sudo apt-get install samba
- sudo smbpasswd -a pi
- sudo nano /etc/samba/smb.conf # and change 'read only = yes' to no. It is fairly far down in the file.
Then, on your windows machine,use a UNC like '\192.168.7.101\pi' in windows explorer, or an editor, or whatever. This is not a pure SAMBA "net share" in that there is no drive mapping. In my opinion, it actually works better...
-
Either suggested technique will work fine.
-
Ok, success finally, installed winscp, xfered the jpg's and videos to the pc, pictures look good and video's play to. There will be dancing in the streets I tell ya, thanks you guys.
-
There was a post somewhere in this thread where someone made a macro to control Duetlapse, How would that be done, the start script is the macro?
Edit, wasn't a macro was a desktop entry.