View Full Version : cannot open video
v1rtu0s1ty
16th January 2011, 07:25
Help please. I am following the avisynth tutorial. I tried many .avi files but all of them when played in Windows Media Player, it says
"AviSource: Could not open video stream in any supported format."
However, when I used DirectShowSource on an mp4 file, I was able to see the video. Is there something missing to be able to display .avi files?
Thanks.
Gavino
16th January 2011, 10:55
You need to have an appropriate VfW codec installed for the video format used by the .avi. Use GSpot or MediaInfo to determine the codec required. ffdshow will decode most formats.
Alternatively, try using DirectShowSource - normally this will open any file capable of being opened in Windows Media Player.
v1rtu0s1ty
16th January 2011, 19:38
Yeah, DirectShowSource was able to play the avi file. Thank you so much!
I have three mp4 video files without audio and a single file just containing audio. I would like to join all 3 videos and the single audio for all of them.
Will this script work?
a = DirectShowSource("z:\TimeLapse\blackscreen.mp4")
b = DirectShowSource("z:\TimeLapse\title.mp4")
c = DirectShowSource("z:\TimeLapse\mainmovie.mp4")
sound_track = WAVSource("d:\audio.mp4")
AudioDub(a+b+c, sound_track)
Also, I noticed during my initial testing that we use Windows Media Player to watch it. However, how do we generate the new video assuming we are happy with our avs script? I want to save it as an MP4 format.
Thanks.
Gavino
16th January 2011, 20:13
Your script should work, as long as all three videos have the same properties (dimensions, frame rate, etc). If not, you will have to add code to your script to convert one or more videos to the required properties before they can be joined.
To create a new video, feed your script to a suitable encoder (eg Handbrake).
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.