dataviz/README.md

24 lines
578 B
Markdown
Raw Normal View History

2017-03-26 10:26:57 -04:00
# Random Data Visualisation stuff
This is just some random stuff I wanted to put somewhere since I spent time figuring it out.
2024-03-11 18:13:28 -04:00
## Convert `mov` to `mp4` trivially.
```shell
ffmpeg -i input.mov -c:v copy -c:a copy output.mp4
```
## convert movie clip to animated gif
From [blog post](https://dev.to/nabbisen/ffmpeg-convert-video-to-gif-7h8). [Original documentation](https://ffmpeg.org/ffmpeg-all.html#Video-Options)
```shell
START="01:13:22"
2024-06-21 18:05:14 -04:00
SECONDS="8"
FPS=10
2024-06-21 18:05:14 -04:00
INFILE="input.mp4"
OUTFILE="output.gif"
ffmpeg -ss $START -t $SECONDS -i "${INFILE}" -r $FPS "${OUTFILE}"
2024-03-11 18:13:28 -04:00
```