Update 'ffmpeg.md'

This commit is contained in:
incandenza 2023-03-11 17:43:59 +01:00
parent e799c3f35f
commit 727d713ecb

View file

@ -2,9 +2,23 @@
...to extrac, manipulate and reassmbly frames
### Frame extraction
### Frames extraction
In running the command take note about original video fps
```
ffmpeg -i video.mp4 %05d.png
```
### Video creation from frames
In running the command take note about original video fps
```
ffmpeg -framerate 30 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p paint.mp4
```
### Video warping from images
Using CUDA:
```
ffmpeg -y -fflags +genpts -r 30 -hwaccel cuda -hwaccel_output_format cuda -pattern_type glob -i '*.png' -vf "setpts=100*PTS,minterpolate=fps=24:scd=none" -pix_fmt yuv420p -c:v h264_nvenc "test01.mp4"
```