« Can't get Yatse remote control to work after updating KodiMoving a window above the top bar in Gnome 3 classic shell »

Ffmpeg commands to make a dashcam timelapse

01/12/18

  05:07:00 am by wdawe, Categories: General

Created with one ls command, one vi command and the following two ffmpeg commands:

Save the names of the dashcam files to another file
ls *.avi > files

MOVI8642.avi
MOVI8644.avi
MOVI8645.avi
MOVI8646.avi
MOVI8647.avi
MOVI8648.avi
MOVI8649.avi

add the word file in front of each of the filenames so ffmeg can parse the input file
vi files
:1,$s/^/file /
ZZ (saves the file and exits)

file MOVI8642.avi
file MOVI8643.avi
file MOVI8644.avi
file MOVI8645.avi
file MOVI8646.avi
file MOVI8647.avi
file MOVI8648.avi
file MOVI8649.avi
file MOVI8650.avi
file MOVI8651.avi

Put the files together and speed them up
ffmpeg -f concat -i files -filter:v "setpts=0.0166*PTS" -an TtoOfast.mp4

Add music
ffmpeg -i TtoOfast.mp4 -i ~/Downloads/Curse\ of\ the\ Scarab.mp3 -codec copy -shortest TtoOfast_m.mp4

No feedback yet


Form is loading...

Cool web tools, EEPC tips and Linux info. Browse around, I'm sure you will find something to interest you.

Search

  XML Feeds

Open-source blog