Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th October 2010, 06:44   #1  |  Link
robertbrownell
RobertBrownell
 
Join Date: Oct 2010
Posts: 1
Make a Video from 1 JPG and 1 MP3

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.
robertbrownell is offline   Reply With Quote
Old 9th October 2010, 09:02   #2  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
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.
manono is offline   Reply With Quote
Old 9th October 2010, 12:35   #3  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by manono View Post
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)
Gavino is offline   Reply With Quote
Reply

Tags
script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.