View Full Version : Does AviSynth have a minimum video length?
Cyber Akuma
29th July 2018, 20:18
I was trying to join two videos with a transition in between, the first video is obly 15 seconds. And I seem to be utterly unable to load this in Avisynth. The video just shows a still image, the audio plays, but not the video. This only applies to the 15 second video, not any of the other videos I load in the Avisynth file.
Even the most BASIC of scripts, that just simply loads that single 15 second clip doesn't work. They play all of my longer videos just find though.
Is there some kind of minimum limit to Avisynth where it can't load video files under a certain length correctly?
StainlessS
29th July 2018, 20:44
You can even create a zero framecount clip using BlankClip(length=0), although to be able to play would need to be at least 1 frame.
Post your script.
(might also be good to post problem clip on some filehost, MediaFire is the preferred filehost by many on-site [Need create free account])
Cyber Akuma
29th July 2018, 21:12
Even just the test-script that is nothing more than:
Mov1=DirectShowSource("[filepath]")
FullMov = Mov1
return FullMov
Causes the issue.
Here is the file:
http://www.mediafire.com/file/wq73kcl9llb9mc2/Epic_Rap_Battles_5_%2528cut%2529.MP4/file
StainlessS
29th July 2018, 21:43
works fine for me with Avisynth+ r2728 (latest) [WXP32 bit]
vFn="ERB5 (cut).MP4"
Return DirectShowSource(vFn) # Works OK but DirectShowSource aint frame accurate.
vFn="ERB5 (cut).MP4"
LoadPlugin(".\LSMASHSource.dll")
c=LSMASHVideoSource(vFN)
Audio=LSMASHAudioSource(vFN)
Return AudioDub(c,Audio) # Works just fine
qyot27
29th July 2018, 21:48
OS? You're using DirectShowSource, so what playback filters is it trying to use? AviSynth version? Betting dollars to donuts that it's just a problem with DirectShow or DirectShowSource more generally.
It works here with the latest AviSynth+ and FFMS2 on Windows 10.
Cyber Akuma
29th July 2018, 22:00
I was unable to get them to load with FFDShowSource
EDIT: Seems I was able to get FFmpegSource2 to work, but not 1.
By the way, is there a way I can use FFmpegSource2 to load the audio from a different file?
qyot27
29th July 2018, 22:16
v1=FFVideoSource("video_source")
a1=FFAudioSource("audio_source")
AudioDub(v1,a1)
Cyber Akuma
29th July 2018, 22:21
Hmm, I am starting to think I might not need to.
I had several videos recorded off of different devices at different framerates and audio sample rates that I figured I would need to re-encode the audio for to get AviSynth to load them. Especially since if I attempt to load the file with atrack=1 with FFmpegSource2 it claims there is no audio track... oddly though, it DOES seem to load it with atrack=0.... despite that not being documented and the FAQs I read claiming that the tracks start at 1, not 0. Am I doing it wrong by using atrack=1 instead of atrack=0?
Also, it advised me to use "SSRC() /Resample Audio()" so I am going to look that up now, but in the meantime, do I need to do anything about the framerates too? I am pretty some of these are even a variable framerate, would FFmpegSource2 compensate for that, or so I need to do some kind of conversion for the framerates too?
Asmodian
29th July 2018, 23:15
Framerates will need to match or use VFR encoding (http://avisynth.nl/index.php/VFR) (which can be tricky). Converting frame rates is not as transparent to the viewer as resampling audio is. :(
Cyber Akuma
29th July 2018, 23:23
I have no idea what to do then, I have three sets of videos with different framerates that I just simply want to clip together with a transition between each, some are a constant frame rate and others are variable frame rate.
ChaosKing
30th July 2018, 00:15
https://github.com/FFMS/ffms2/blob/master/doc/ffms2-avisynth.md#int-fpsnum---1-int-fpsden--1
Asmodian
31st July 2018, 19:20
Linked mkv's (ordered chapters) could also be an option if you do not like the look after frame rate conversions.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.