I hope this is an okay spot to put this:
I’ve looked through the Blender source code and I’ve done some research into video playback. And it looks to me that it wouldn’t be too hard to add video playback, except for the fact that I don’t know C++. I’m able to read through some of it, but I can’t really code in it.
Anyways, I was thinking that ffmpeg could be used (it already is elsewhere in Blender so extra libraries wouldn’t be needed) to add video functionality possibly to the Rasterizer module.
Here would be a PyDoc example:
def playVideo(file, plays): """ Plays back a video (file) with ffmpeg. And is played plays times. A negative value for plays is interpreted as 0. @type file: string @type plays: integer """
A video could be played back like so:
import Rasterizer Rasterizer.playVideo("videos/vid.mpg") #Plays videos/vid.mpg 1 time Rasterizer.playVideo("videos/vid2.mpg", 2) #Plays videos/vid2.mpg 2 times
This method could be used for cutscenes/fmvs, opening credits, etc.
Here is some information about using libavformat and libavcodec:
So, would this be possible if we could find someone nice enough to code it? Or am I just being hopeful/stupid?
If this should be posted elsewhere, please let me know. I would really like to see this happen.