View previous topic :: View next topic |
Author |
Message |
e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
Posted: Sat Jan 12, 2019 7:21 am Post subject: [ffmpeg] how to make a video out of a picture + audio file |
|
|
this might be useful for your 'in your ear' operations:
Code: |
ffmpeg -loop 1 -framerate 1 -i massive.jpg -c:v libxvid -t 287 massive_loop.mkv
ffmpeg -i massive_loop.mkv -i massive.flac -c:v copy -c:a copy massive_attack_final.mkv
|
_________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Sat Jan 12, 2019 2:21 pm Post subject: |
|
|
nice
what if I want multiple pictures instead of just one? _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
Posted: Sat Jan 12, 2019 2:26 pm Post subject: |
|
|
albright wrote: | nice
what if I want multiple pictures instead of just one? | then you need to consult this manual: https://trac.ffmpeg.org/wiki/Slideshow
--- i guess you need this but i did not try. give it a shot ---
Quote: | In this example the input images are sequentially named img001.png, img002.png, img003.png, etc. |
Code: | ffmpeg -framerate 24 -i img%03d.png output.mp4 |
_________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Sun Jan 13, 2019 3:22 pm Post subject: |
|
|
thanks for the pointer; works great
but poking around I found this script by Remko Tronçon
https://el-tramo.be/blog/ken-burns-ffmpeg/
which takes a bunch of photos and effortlessly turns them
into a "ken burns effect" type slideshow (with optional
audio).
It's quite something ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
Posted: Sun Jan 13, 2019 7:35 pm Post subject: |
|
|
albright wrote: | Remko Tronçon | the output did look incredible but the code messy and chaotic. anyway i do not need that. i go only for audio and people have only one static pic. my personal preference is to turn off video completely when listening to music. _________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Sun Jan 13, 2019 8:14 pm Post subject: |
|
|
I get that; but sometimes when "forcing" people to watch my
vacation photos, a little music and Burns effect might help ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
e3k Guru
Joined: 01 Oct 2007 Posts: 513 Location: Inner Space
|
Posted: Sun Jan 13, 2019 8:29 pm Post subject: |
|
|
albright wrote: | I get that; but sometimes when "forcing" people to watch my
vacation photos, a little music and Burns effect might help ... | nobody should be ever forced to watch any vacation photos. my personal limit is 10 to 20. _________________
Flux & Contemplation - Portrait of an Artist in Isolation
|
|
Back to top |
|
|
|