Deez Watts
IntroductionWorkloadsAppsImplementationsResourcesData Exhaust
  • A Rivian Data Adventure
  • INTRODUCTION
    • Architecture
    • Data Access
    • Rivian Databricks
    • The Whip
  • Workloads
    • Rivian Falcon LogScale
    • Rivian NATS Comms
  • Apps
    • Rivian Prometheus Exporter
    • Rivian Configurator Rotator
  • Implementations
    • Rivian Geo via IRIS Document Database
    • Rivian on FHIR®
  • Data Exhaust
    • Fun with ffmpeg, Gear Guard at Iceman 2024
  • Resources
    • Repos
    • Miscellaneous
Powered by GitBook
On this page
  1. Data Exhaust

Fun with ffmpeg, Gear Guard at Iceman 2024

The Matt's let me Crash Camp During Bell's Iceman Cometh Challenge 2024, and left Gear Guard Running as everybody finished, I had several clips so I strung them together and time-lapse of the event.

PreviousRivian on FHIR®NextRepos

Last updated 7 months ago

Export to Gear Guard Events to USB-C

So if you have been on the struggle bus with securing the right USB-C drive for your whip, I found the following useful and ended up buying The Rivian was situated in just the right spot to capture riders as they returned back to camp. To get started snag the events and export them to USB-C

Mount the Drive

Now, lets take a look at the "Events" folder to see what we are up against in the capture.

The "sideRight" camera got most of the action, and there was about 82 events captured at about ~37MB or so, lets string these together and create one monolithic movie.

Download ffmpeg

The star of our show here is ffmpeg , we we need to run out and get it.

sween @ fhirwatch-pop-os ~/Desktop/DEEZWATTS/Event
└─ $ ▶ sudo snap install ffmpeg 
ffmpeg 4.3.1 from Snapcrafters✪ installed

Create Single Video with Events

This was hanging out there in multiple posts on Stackoverflow, but this is what worked for me while parked in the root folder of the Events that were exported. For starters, we wanted only to string together the sideRight Gear Guard events, so to do this, we built a list which generated the files in order with a mask of the sideRight.

sween @ fhirwatch-pop-os ~/Desktop/DEEZWATTS/Event
└─ $ ▶ for f in ./*sideRight.mp4; do echo "file '$f'" >> rivian_iceman_events.txt; done

Once thats complete, check the ordering in the output file to see how we are doing.... LGTM.

sween @ fhirwatch-pop-os ~/Desktop/DEEZWATTS/Event
└─ $ ▶ head rivian_iceman_events.txt 
file './11_02_24_121400_video_sideRight.mp4'
file './11_02_24_122647_video_sideRight.mp4'
file './11_02_24_123329_video_sideRight.mp4'
file './11_02_24_123612_video_sideRight.mp4'
file './11_02_24_124521_video_sideRight.mp4'
file './11_02_24_125359_video_sideRight.mp4'
file './11_02_24_125901_video_sideRight.mp4'
file './11_02_24_130034_video_sideRight.mp4'
file './11_02_24_130237_video_sideRight.mp4'
file './11_02_24_130414_video_sideRight.mp4'

Now we are ready for ffmpeg to do its magic and create a single movie with the list from above.

sween @ fhirwatch-pop-os ~/Desktop/DEEZWATTS/Event
└─ $ ▶ ffmpeg -f concat -safe 0 -i rivian_iceman_events.txt -b:a 128k rivian_iceman.mp4

Processing can take some time, and light up your CPU fans in the process...

Here is the resulting video...

Useful if your whip managed to capture something important over a time series and you want it all in one video.

compatibility list
this one.
https://www.youtube.com/watch?v=CT-zzkfvVJ0www.youtube.com
Page cover image