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
|
2024-03-18 09:10:45 -04:00
|
|
|
START="01:13:22"
|
2024-06-21 18:05:14 -04:00
|
|
|
SECONDS="8"
|
2024-03-18 09:10:45 -04:00
|
|
|
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
|
|
|
```
|
|
|
|
|