Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ffmpeg] how to make a video out of a picture + audio file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Sat Jan 12, 2019 7:21 am    Post subject: [ffmpeg] how to make a video out of a picture + audio file Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sat Jan 12, 2019 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Sat Jan 12, 2019 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Jan 13, 2019 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Sun Jan 13, 2019 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Jan 13, 2019 8:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 513
Location: Inner Space

PostPosted: Sun Jan 13, 2019 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum