PDA

View Full Version : Trouble displaying an image


szabi
28th December 2009, 11:30
Hi

I used "AVISource" to import my video (840x524@25) and used "Trim" to cut it.
When the video is finished I would like to display an image until 5 seconds. The image has same resolution as video.
How could I do this, because errror message is always got when I try to do it?
I tried this but not worked.
vid=AVISource("C:\video.avi",audio=false)
pic=ImageSource("C:\image.jpg",end=125,fps=25)
vid++pic

bye
szabi

Guest
28th December 2009, 16:17
What is the error message you received?

Didée
28th December 2009, 17:16
"Video formats don't match", most probably.

vid=AVISource("C:\video.avi",audio=false)
pic=ImageSource("C:\image.jpg",end=125,fps=framerate(vid) )
pic= isYV12(vid) ? pic.ConvertToYV12() : pic.ConvertToYUY2()
vid++pic

szabi
28th December 2009, 17:44
Firstly I got no audio in one of them.
Ok, I disabled the audio.
After I got "Splice: video formats do not match"

Now I create avs file for image and save it to uncompressed avi.
I try to use that avi but also got same error message.

Finally I encoded this avi to x264-mkv, and appended it to the main encoded video.
But this solution is strange I believed it is possible to import different sources just have to be processed to same format, before final encoding.

EDIT: Ohh I see new post after I typing my own. (I am slow little bit. :) )
I will try that recommendation.
Thnx.

By
szabi