image-video editing with ffmpeg on Ubuntu
* trim videos
package: ffmpeg
OS: ubuntu 16.04
> ffmpeg -i movie.mp4 -ss 00:00:03 -t0 00:00:08 -strict -2 cut.mp4
- start at 3s, and ends at 8s
https://stackoverflow.com/questions/18444194/cutting-the-videos-based-on-start-and-end-time-using-ffmpeg
* image2video
package: avconv
syntax:
#+BEGIN_SRC Python
avconv [global options] [[infile options][‘-i’ infile]]... {[outfile options] outfile}
#+END_SRC
e.g.
#+BEGIN_SRC
avconv -r 10 -start_number 8 -i filename_%d.png -b:v 1000k test.mp4
avconv -i v_%d.png -b:v 1000k velocity.mp4
#+END_SRC
- i :: input file
- b :: bitrate
https://libav.org/avconv.html
https://stackoverflow.com/questions/16315192/avconv-make-a-video-from-a-subset-on-images