Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Mixing Images And Video Clips, Improve loading of image sequences
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
andy
  Posted: Jun 11 2013, 06:21 AM


Advanced Member


Group: Members
Posts: 35
Member No.: 35896
Joined: 26-December 12



I've been trying to put still frames in with my videos, but it's not working out very well. The best I've been able to manage is exporting my video (sans stills) to image sequence, then using Tcl to rename files to insert gaps in the numbering and to repeatedly copy my stills into place. Then I can load the image sequence. I get no audio with this method, though I imagine I could use Audacity (or Snack in Tcl) to insert silence in previously exported audio.

I even tried converting my stills to AVI, but I could never get the frame rate exactly right. The closest I got was 30.00003 fps, whereas I needed 30.00003 fps. (Somehow those numbers are different...? Must be rounding.)

What I'd like is the ability to append images (and image sequences) the same as AVI segments. My suggested implementation has two parts:

1. Rename "File > Append AVI segment..." to "File > Append video segment..." and give it the ability to read image sequences (including sequences with only one image) as well as true AVI.

2. Improve the image sequence loader (used by both "File > Open video file..." and "File > Append video segment...") to ask the user for the frame rate (or total duration) of the sequence, and to resample the image sequence to fit the current frame rate.

For the case of stills (which maybe is all you really need to implement), this would amount to the user picking the image file and saying how long it lasts. Resampling would consist of duplicating the one frame however many times necessary to fill the time.

Specifying audio to go along with the image sequence remains an open issue. I'm not sure how to handle this. Maybe the new image sequence loader dialog (wherever you'd ask for the frame rate) can let you pick audio too. I dunno.

It's clear some more thought is required, but I'm just making some suggestions here to get the ball rolling.
 
     Top
malky
Posted: Jun 11 2013, 12:23 PM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



Can you not do it using AviSynth and a script instead.


CODE
source=avisource("C:\Users\Superuser\Desktop\clip.avi")

ImageSource("C:\Users\Superuser\Desktop\su.bmp",end=125,fps=25).ConvertToYV12()
audiodub(last, blankclip(source))
last++source


# the image has to be the same resolution as the video
# the framerate, 25fps, is set the same as the video, for 125 frames = 5 seconds
# blankclip uses the audio characteristics of the source video clip.avi, except that it's silent.
# the image appears before the video source
 
    Top
andy
Posted: Jun 12 2013, 04:40 PM


Advanced Member


Group: Members
Posts: 35
Member No.: 35896
Joined: 26-December 12



QUOTE (malky @ Jun 11 2013, 12:23 PM)
Can you not do it using AviSynth and a script instead.

Thanks for the example, and I don't see why not. But the point of my post is to suggest a feature addition to VirtualDub so as to reduce the number of tools required for getting the job done. It seems to me this isn't a significant deviation from VirtualDub's current feature set since it already has the ability to load image sequences.
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
2 replies since Jun 11 2013, 06:21 AM Track this topic | Email this topic | Print this topic

<< Back to General Discussion