element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Photography
  • Challenges & Projects
  • Project14
  • Photography
  • More
  • Cancel
Photography
Blog Raspberry Pi 4 HQ Stop Motion Video "A Day in the Life of Murphy"
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Photography to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: robogary
  • Date Created: 10 Jul 2021 10:24 PM Date Created
  • Views 2663 views
  • Likes 14 likes
  • Comments 5 comments
  • photographych
  • raspberry pi
Related
Recommended

Raspberry Pi 4 HQ Stop Motion Video "A Day in the Life of Murphy"

robogary
robogary
10 Jul 2021
image

Photography                                               Submit an EntrySubmit an Entry

 

Monthly Themes   | Monthly Poll   |  Back to homepage image

 

This project uses the Raspberry Pi 4B , 12 Mp HQ camera, and telephoto lens provided by Element 14 to create a Stop Motion Video.

 

Here is the link to present published version Stop Motion video on You Tube, " A Day in the Life of Murphy" which I hope you find entertaining.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

https://youtu.be/QMbdviNFOes

 

comments and feedbacks appreciated. 

 

The HQ raspberry pi camera is awesome. I'm in love. The telephoto lens is really great too, I still have some learning curve on getting it focused for closeups and long shots. In the end, a couple different lenses would be useful.

 

This was a really good guide to get started in using the Raspberry Pi for Stop Motion photography

https://projects.raspberrypi.org/en/projects/push-button-stop-motion

My code isnt exactly the same, but close.

 

I used an industrial pushbutton mounted in medium density fiberboard (MDF) which made it durable and solid, and wired into the GPIO to trigger the photo taking.

 

 

The raspberry Pi can create mp4 from the frames automatically using the ffmpeg -r 10 -i animation/frame%03d.jpg -qscale 2 animation.mp4, however this command could not handle the HQ photos, and the resulting mp4 was not useable.

 

I used Movie Maker to stitch the frames together and create the video, however, some scenes had well over 300 frames, my PC could not handle all those graphics and would get seriously bogged down.

To process the project, each scene was compiled to mp4, and then the final video imported the individual scenes of mp4 into Movie Maker.

This solution is practical in that scenes can be moved in the video or reshot without messing up the whole project.

 

Before shooting, I came up with a storyboard, and then had to setup the stage for each scene.

As the scenes were videoed, new ideas came up, some challenges required scene changes, and of course some concurrent engineering :-)

Photo sessions and editing were very time consuming. I used the RPi as the photo taker and real time video monitor.

At the end of each photography session, I'd WinSCP into the RPi from my W10 PC , fetch the frames taken, backup and create a quick mp4 for checking for bad frames, inconsistent frames, and video flow.  After the video was all stitched together, then soundtracks added.

 

The burrito scene setup:

imageimageimage

 

The set for the Star Trek scene.                

image

The set for the fiery butt launch scene

image

 

 

The python code:

from picamera import PiCamera

from time import sleep

import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BOARD) # use pin numbers

GPIO.setup(11, GPIO.IN,pull_up_down=GPIO.PUD_DOWN)

camera = PiCamera()

 

frame=1

 

while True:

    try:

        if GPIO.input(11) == GPIO.HIGH:

            camera.start_preview()

            sleep(5)

            # camera.stop_preview()

            camera.capture('/home/pi/MurphyIndigestion/frame%03d.jpg' % frame)

            frame += 1

            print (frame)

            #

    except KeyboardInterrupt:

        camera.stop_preview()

        break

  • Sign in to reply

Top Comments

  • robogary
    robogary over 4 years ago +3
    This stop motion video certainly makes the short list for the 2022 Golden Razzie Awards.
  • Sean_Miller
    Sean_Miller over 4 years ago +3
    Funny video! I think I have that same Gremlin at the end. I got it for Christmas the year the movie came out. -Sean
  • fmilburn
    fmilburn over 4 years ago +2
    Great! And really fun
Parents
  • 14rhb
    14rhb over 4 years ago

    Hi robogary  - I missed this when you first published it but so glad I've managed to watch it now. It was very good indeed, well done image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • 14rhb
    14rhb over 4 years ago

    Hi robogary  - I missed this when you first published it but so glad I've managed to watch it now. It was very good indeed, well done image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube