View Full Version : Make a Video from 1 JPG and 1 MP3
robertbrownell
9th October 2010, 06:44
Does anyone know a script I can use
that takes one JPG and one MP3
and makes a video from them. The video showing only the JPG the entire time that the MP3 is playing.
I want to upload some MP3s to Youtube, but I only have MP3s.
manono
9th October 2010, 09:02
ImageSource("C:\Path\To\Picture.JPG",FPS=xx.xxx,End=yyyy)
Where FPS is your framerate and End is the number of frames (equal to the length of the MP3 audio). You might also want to set the pixel type:
http://avisynth.org/mediawiki/ImageSource
Mux the MP3 audio when making the video with VDub or whatever you use.
And welcome to the forum.
Gavino
9th October 2010, 12:35
Mux the MP3 audio when making the video with VDub or whatever you use.
Alternatively, you can mux the audio inside Avisynth. This also allows the script to calculate the required number of frames instead of working it out by hand, useful if you have a lot of them to do.
fps = xx.xxx
a = NicMPG123Source("C:\Path\To\Audio.mp3")
af = ceil(fps*AudioLengthF(a)/AudioRate(a))
ImageSource("C:\Path\To\Picture.JPG",FPS=fps,Start=1,End=af)
AudioDub(a)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.