Radams5000
Posts: 8
Joined: Sat Feb 21, 2015 1:20 am

Time shift mbuffer issues

Tue Dec 08, 2015 7:47 pm

Last spring, I used my pi to time shift video from the camera module 30 sec for diving. It worked great!!!!

This is the code I used...

Code: Select all

raspivid -t 120000 -w 1280 -h 720 -n -b 5000000 -o - | mbuffer  -m 20M -P 40 | /opt/vc/src/hello_pi/hello_video/hello_video.bin /dev/stdin
I misplaced the sd card and got a newer pi, so I'm starting over. When I run the code, I get mbuffer doesn't exist (or something similar). Did I miss installing something?


Thanks,
Ryan

User avatar
joan
Posts: 14960
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Time shift mbuffer issues

Tue Dec 08, 2015 9:15 pm

Have you downloaded the package? I doubt it's included by default.

sudo apt-get install mbuffer

Radams5000
Posts: 8
Joined: Sat Feb 21, 2015 1:20 am

Re: Time shift mbuffer issues

Thu Dec 10, 2015 5:43 pm

Thanks, I should have known to do that.

I don't remember having to install mbuffer last time.

gabedowney
Posts: 11
Joined: Thu Dec 31, 2015 4:04 pm

Re: Time shift mbuffer issues

Tue Apr 25, 2017 2:51 pm

I am using this code as well, I wrote a very small python script to run the line as a call([xxx], shell=True) script. However, for usability I'd like to be able to embed it within a window that I could terminate on a mouse click (or similar) rather than Ctrl+C.

I've played with Tkinter a bit but this script doesn't instantiate inside the Tkinter window (in my limited efforts). Is Tkinter likely the simplest solution or is there another method that may work or would be recommended? Ultimately I just want to make it a little more user-friendly and ideally without keyboard input needed to start and stop. Thanks!

Return to “Troubleshooting”