You are not logged in.

#1 2017-11-16 21:30:22

turekpolski
Member
From: Poland
Registered: 2011-05-11
Posts: 28

Create empty video from audio?

Cheers Archers,
I'm in a need of preparing subtitles for an audio stream (don't ask) and gnome-subtitles won't load mp3 files. It works well with mp4 however and I thought that making a black video out of that mp3 might be a solution.
Is there an easy way to do it or do I need to actually assemble the video in cinarella or something?


Registered Linux User #511180

Offline

#2 2017-11-16 21:35:52

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Create empty video from audio?

Have you tried a google search for "linux convert mp3 to mp4" ? It appears ffmpeg can do this, but I have not tried it.

Offline

#3 2017-11-17 19:12:09

teckk
Member
Registered: 2013-02-21
Posts: 519

Re: Create empty video from audio?

I thought that making a black video out of that mp3 might be a solution

Example:

ffmpeg -f lavfi -i color=c=black:s=320x240 -i myfile.mp3 -c:v libx264 -b:v 300k -c:a copy outfile.mp4

Offline

Board footer

Powered by FluxBB