Log in

View Full Version : What's the fastest way of making an mp3 a video?


Foofaraw
14th January 2011, 22:57
Say I have an mp3, I would like to turn it into a video - pictures doesn't really matter(though i suppose a slideshow could be handy).

What's the quickest way of doing that?

A quick way would be to use mkvmerge, drop the mp3 in it, drop some video - disable its audio if it had one, and then click 'start muxing' - that is fast, but since the length of the mp3 is unknown its unlikely to find a video of the right size on the spot.

7ekno
15th January 2011, 01:16
Avisynth:

a=Nicaudio("your.mp3")
b=blankclip(random parameters)
avdub(a,b)

NOTE: parameter & function names not accurate, purely a demonstration of concept ...

7ek

Sharktooth
15th January 2011, 02:03
you should read the avisynth docs.

Blue_MiSfit
17th January 2011, 02:57
The easiest way would be to use an NLE (video editing app). iMovie on Mac OS, or Windows Movie Maker on Windows are well suited to this task.

Failing that, I'd do something like this (example with just a few photos, with 10 second duration each)


a=imagesource("a.jpg", fps=23.976).trim(0,239)
b=imagesource("b.jpg", fps=23.976).trim(0,239)
c=imagesource("c.jpg", fps=23.976).trim(0,239)

audio=ffaudiosource("audio.mp3")

a+b+c

audiodub(last, audio)


Or, you could make the slideshow as long as the audio, and simply mux in your mp3 after encoding the video, instead of doing a decode / encode via this method.

Derek

Foofaraw
17th January 2011, 03:36
The easiest way would be to use an NLE (video editing app). iMovie on Mac OS, or Windows Movie Maker on Windows are well suited to this task.


Wouldn't movie maker reencode the sound?

GodofaGap
17th January 2011, 09:39
If you have an image sequence ready, you can do this with VirtualDub no problem.

ramicio
19th January 2011, 19:32
Great, more songs on youtube with slideshows...

mikeathome
3rd February 2011, 17:13
Is there actual a way to obtain the # of audio samples in a given .mp3 via an AviSynth Script.

The info() function does not reveal any information if the audio is not in an .avi (AviSource() )

mike

Zarxrax
4th February 2011, 00:45
Wouldn't movie maker reencode the sound?

If you dont want sound reencoded, make an avisynth script just like has been suggested already (this will ensure its the correct length for the song).
Then load the script into virtualdub, and load the audio from the mp3 file. Using virtualdubs directstreamcopy, audio wont be reencoded.

Gavino
4th February 2011, 18:45
Is there actual a way to obtain the # of audio samples in a given .mp3 via an AviSynth Script.

The info() function does not reveal any information if the audio is not in an .avi (AviSource() )
It should do - what is your script?
:script:

You can also get the # of samples using AudioLength or AudioLengthF().
http://avisynth.org/mediawiki/Clip_properties

list
7th February 2011, 19:19
Say I have an mp3, I would like to turn it into a video - pictures doesn't really matter(though i suppose a slideshow could be handy).

What's the quickest way of doing that?

you can do it with a few clicks using dj 264 gui ^^
selct the image, select the audio , and encode. The result will be a music video with the static image