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. |
![]() |
#1 | Link |
Registered User
Join Date: Oct 2006
Posts: 12
|
Static image as a video source
Recently I had an urge to upload a video to youtube which would have a static image throughout the whole video with music playing. There's a ton of such videos on youtube and I'm not a complete encoding newbie, meaning I've quite some before but I've never had a chance to learn or to come across using image as a video.
To cut the long story short - what is the most appropriate way and with what software this should be done? Maybe there is an avisynth script specifically for this where you call an image as a source? Last edited by Smirky; 4th September 2009 at 22:12. |
![]() |
![]() |
![]() |
#3 | Link |
Multimedia Grunt
Join Date: Apr 2008
Location: People's Republic of Kaulifonnia
Posts: 30
|
Use AVISynth, something like this:
# Read a single image, repeat 300 times ImageSource("D:\static.png", fps=29.97, end=300) SA
__________________
Grunt: 4b- one who does routine unglamorous work |
![]() |
![]() |
![]() |
#10 | Link |
Registered User
Join Date: Jul 2009
Location: England , South Yorkshire
Posts: 99
|
What about doing it the other way round, embed an image in an MP3, I know you can do this, esp if its just one image.
__________________
"Ford your turning into a penguin, stop it" - Douglas Adams |
![]() |
![]() |
![]() |
#11 | Link |
Registered User
Join Date: Oct 2006
Posts: 12
|
At first I used
video = ImageSource("C:\Users\*****\Downloads\ecliptica.jpg") audio = DirectShowSource("C:\01. Blank File.mp3") return AudioDub(video, audio) It wasn't any good. Then I tried tweaking the video alone and used ImageSource("C:\Users\*****\Downloads\ecliptica.jpg", fps=29.97, end=300) which asked me to add convert to YV12 that I tried doing and tried not to and still the same error. |
![]() |
![]() |
![]() |
#13 | Link | |
Registered User
Join Date: Oct 2006
Posts: 12
|
Quote:
P.S. So much bad luck: Windows Movie Maker can do that but it has like no features at all and can only render as WMV with no oprions whatsoever. Sony Vegas can do that easily too but gives a shitload of errors about mscvr90.dll and other stuff. Fixed that one and then another pops out. Hilarious. Will try Adobe Premiere soon... Last edited by Smirky; 5th September 2009 at 12:34. |
|
![]() |
![]() |
![]() |
#14 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,437
|
Just a thought - when adding ConvertToYV12(), did you do it like this:
return AudioDub(video, audio).ConvertToYV12() If you add the ConvertToYV12() as a separate line, it will be ignored because of the 'return'. |
![]() |
![]() |
![]() |
#15 | Link |
Registered User
Join Date: Oct 2006
Posts: 12
|
You are right, video now can be made, but there is no audio and the video is only 41sec long (tried that with Xvid/x264 and mp3), x264 and aac give "pins cannot connect due to not supporting the same transport" error. This is becoming frustrating...
Last edited by Smirky; 5th September 2009 at 13:16. |
![]() |
![]() |
![]() |
#16 | Link | ||
Guest
Join Date: Jan 2002
Posts: 21,901
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#17 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,437
|
You need to set the video length (in frames) by setting the 'end' parameter to ImageSource. The actual length will be end+1.
The default is 1000, giving 1001 frames, just over 40 secs at 25fps. You should get audio, does your "C:\01. Blank File.mp3" contain any sound? Post your script as it now is. |
![]() |
![]() |
![]() |
#18 | Link |
Registered User
Join Date: Oct 2006
Posts: 12
|
video = ImageSource("C:\Users\Smirk\Downloads\ecliptica.jpg")
audio = DirectShowSource("C:\01. Blank File.mp3") return AudioDub(video, audio).ConvertToYV12() I need the video to end exactly when audio ends. I've encoded my .flac file to both mp3 and aac. Checked them both and they both play and have sound alright. Audio length is 4:05, meaning I should set 6125 frames or 6124? Last edited by Smirky; 5th September 2009 at 13:32. |
![]() |
![]() |
![]() |
#19 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,437
|
Quote:
ImageSource gives 24fps by default, so 4:05 would be 245x24 = 5880 frames. So you would use end=5779. For a different frame rate, specify fps in ImageSource and recalculate accordingly. |
|
![]() |
![]() |
![]() |
Tags |
image, source, static, video, youtube |
Thread Tools | Search this Thread |
Display Modes | |
|
|