Why has this been happening all day? I'm doing everything the exact same way I've always done it, but when I save as an avi it never goes past the first frame, it just stays stuck at 1/XXX
+ Reply to Thread
Results 1 to 30 of 32
-
-
Does the preview work ? (can you go past the 1st frame) ? Does the avs preview ok in a media player like MPCHC ?
Are there any other error messages ?
What format are you saving to ? Have you tried something other compression, does it work ? Do other videos load directly in vdub (without avisynth) and save ok ?
With the avs loaded, what does file=>file information say ? -
Are you running any plugins for decoding? If I remember correctly sometimes files are opened by a plugin by default when generally it'd be better if they didn't. I'm pretty sure the ffmpeg input driver likes to open scripts and that might cause problems re-encoding.
Try forcing VirtualDub to open the script itself by selecting the AVIFile input driver from the"file type" list before opening a script. If you're not running additional plugins you can ignore this post. I'm just offering a guess.
Or.... maybe try VirtualDubMod to see what happens -
Virtualdub always runs slow when it opens files through these scripts. I'm able to get it to work by having it open .avis that have no audio stream, but right now I'm trying to use avisynth to crossfade together two .avis that need to have audio
-
It depends on the script but, generally, no. Virtual Dub isn't designed to be a video player anyway. What happens when you open your script in a player that accepts AviSynth input, one such as MPC-HC (as pdr has already asked)?
What's the complete script? You should always post it when asking about AviSynth problems. What's your source, audio and video? Post an MediaInfo text file if you're not sure.
You should answer the questions when asked. -
From clicking on "file information" in virtualdub:
Format: Avisynth Script
Duration: 0h: 24 min : 12.39 sec
Start Time: 0.00
Bitrate: 0kb\sec
Streams: 2 (seekmode Simple)
Video Stream
Codec: rawvideo: raw video
Pixel format: (colorspace) yuv420p (?)
WXH aspect: 640 x 480 1:1
Frame rate: 29.970 fps
Frame count: 43528
Bitrate:N/A
Audio Stream
Codec: pcm_s16le: PCM signed 16-bit little-endian
Channels: 2
Sample format: s16
Sampling rate: 44100 Hz
Layout: 2 Channels
Bitrate: 1411 kb/sec
The File info for the first file I'm trying to crossfade:
Video Stream:
Frame size, fps (us per frame) 640x480, 29.970 fps (33367 us)
Length: 14464 frames (8:02.61)
Decompression: Xvid MPEG-4 Codec (Xvid)
Number of key frames: 175
Min/avg/max total frame size: 8959/82009/127729 (14016k )
Min/avg/max total delta size: 7/41284/198132 (576092k)
Data rate: 10017 kbps (0.06% overhead)
Audio stream
Sampling rate: 44100Hz
Channels: 2 (stereo)
Sample precision: N/A
Compression: Fraunhofer IIS MPEG Layer-3... (0×0055)
Layout: 18475 chunks (0.3s preloaded)
Length: 18475 samples (8.02.61)
Min/avg/max total frame size: 417/417/418 (7541k)
Data rate: 128 kbps (5.43% overhead)
Second file I'm trying to crossfade:
Video Stream:
Frame size, fps (us per frame) 640x480, 29.970 fps (33367 us)
Length: 6345 frames (4:05:07)
Decompression: Xvid MPEG-4 Codec (Xvid)
Number of key frames: 69
Min/avg/max total frame size: 48564/87248/134782 (5880k)
Min/avg/max total delta size: 7/41777/171500 (296848k)
Data rate: 10119 kbps (0.06% overhead)
Audio stream
Sampling rate: 44100Hz
Channels: 2 (stereo)
Sample precision: N/A
Compression: Fraunhofer IIS MPEG Layer-3... (0×0055)
Layout: 9382 chunks (0.3s preloaded)
Length: 9382 samples (4:05:08)
Min/avg/max total frame size: 417/417/418 (3830k)
Data rate: 128 kbps (5.43% overhead)
Also, I'm trying to use this script to crossfade the two files in virtualdub http://avisynth.nl/index.php/Dissolve but when I click on "file information" it tells me the resulting video is twice as long as it should be -
View, Log, right-click, Copy. Paste in your reply.
I'm guessing output color format is not acceptable to the codec.
And yes, what's the complete script -- the shortest script that reproduces the problem? -
How do I change the output color format, and what should I change it to?
The complete script is in the link I posted above -
You mean this?
Code:#load sources a = AVISource("clipA.avi") b = AVISource("clipB.avi") #30 frame Dissolve between clipA & clipB; last & clipA; last & clipB #Resulting output: clipA (Dissolve) clipB (Dissolve) clipA (Dissolve) clipB. Dissolve(a, b, 30) Dissolve(last, a, 30) Dissolve(last, b, 30)
But that has nothing to do with your original question.
You still have not posted the log. -
Yes, that script first appends B to A with a 30 frame dissolve overlap (A+B). It then appends A to the previous result (last) with another 30 frame overlap (A+B+A). Finally it appends B to the previous result (last) with a 30 frame overlap (A+B+A+B). If you simply want to dissolve from A to B you only need the first Dissolve(a,b,30).
-
-Beggining dub operation
-Dub: Input (decompression) format is YUV420P
-Dub: Output (compression) format is RGB888
-Dub: I/O thread has not cycled for thirty seconds - possible livelock (Thread action: reading video data from disk) (Current a dress: 7778B153)
-Dub: Processing thread had not cycled for thirty seconds - possible livelock (Thread action: Waiting for video frame dependencies) (current address 77CEC27C -
(EDIT if this is a color space error,)
If using x264vfw, try different options in the drop-down list just under "Profile." The *best* way (but a PITA as you now know) is "Keep/accept only YUV 4:2:0"; the easiest-to-use (but sometimes gives wrong colors as it assumes Rec.601) is "Convert to YUV 4:2:0"
If using some other codec, there may be equivalent options.
Avoiding automatic color conversions requires converting manually: check the codec's accepted format(s) under Video, Compression; note the information box. Use the Convert Format filter to make your video work with that codec. If unsure, most likely you want "4:2:0 planar YCbCr (YV12) (Rec.709)."
You might have accidentally caused the problem in the first place by changing the default video color depth setting. I'm not sure how to advise in this area. Experiment.Last edited by raffriff42; 20th Oct 2016 at 06:24.
-
There is at least 1 bug that can result in livelock, try to disable output panes before running.
-
OK not a color error, sorry.
Googling "virtualdub livelock" returns a lot of unsolved threads.
Some suggestions that sometimes worked were:- don't use the Creative Labs mp3 codec, [aside: vbr MP3 is known to cause warnings]
- use normal processing, not Fast recompress, and
- don't have another CPU-intensive process running at the same time.
[a heavyweight AVS script might do this since it can spawn many threads]
-
In my experience a livelock in VirtualDub reflects problems reading the source file, and usually near the end of the file. You need to go through your script and find what is causing the problem. Reduce the script to opening one file. Scrub back and forth through the video. If there's no problem open the other file instead and scrub again. Still no problem? Open both files and append them. Still no problem? Add in the Dissolve()...
-
Is there a way to ad a dissolve in virtualdub without using avisynth?
-
If you want just one or few dissolves you can combine a video overlay filter and blend curve.
Check if it works for you:
get FilterMod pack https://sourceforge.net/projects/vdfiltermod
Open both videos to check if they are decoded without issues.
Open first video.
Add filter "fflayer" and open second video in it. Enable "follow timeline".
Now you can add blend curve to make the dissolve. -
How do I download the filtermod pack? There's no download link on that site
-
there should be green download button, also "browse all files" below it and "files" tab
or browse files here https://sourceforge.net/projects/vdfiltermod/files/VirtualDub%20pack/ -
Ok, I downloaded that zip, but I need to know what to do with all the stuff it contains, and I don't see a .vdf called fflayer in there
-
>possible livelock (Thread action: reading video data from disk)
maybe... dissolving between two sections of a long-GOP video is causing disk access issues.
If that's what is happening, the solution is to make a copy of the video and place it on a separate physical drive.
So clip "A" is read from one physical drive and clip "b" is read from another.
EDIT even if dissolving between two different files, it helps to put them on separate disks.
Also, any scenario where the disk is working too hard, or where the disk is malfunctioning, might cause this type of livelock.Last edited by raffriff42; 22nd Oct 2016 at 12:31.
-
I've already decided not to use avisynth for things that have problems that I can't figure out - I'm just going to use fflayer for this, but I can't find the .vdf for it and I don't know what to with the stuff I found in this .zip file:https://sourceforge.net/projects/vdfiltermod/files/VirtualDub%20pack/version%2013/Virt...2.zip/download
-
You could find the word "fflayer" on first page of project wiki https://sourceforge.net/p/vdfiltermod/wiki/Home/
The structure of zip is nothing new, you run virtualdub.exe, open files add filters.
If you want to move the filter to older VD installation, the plugin files are cch_input.vdf and cch_input.ini (it is multi-purpose plugin). -
Ok then, what folder should I put cch_input.vdf and cch_input.ini in?
-
as all plugins, plugins32 for 32bit version
But I recommend to first test it with the pack as is (unzipped), if it does not do what you want you will save time. -
Ok, I've got the fflayer filter. But I don't know how to get the second video to appear in the video stream.
-
Using FFLAYER isn't going to work because I need both video files to have their original audio in sync
-
Yes video filter cannot crossfade audio. Maybe mix audio elsewhere and then use it as "audio from other file".
Similar Threads
-
VirtualDub - Drop Frame
By harky in forum Capturing and VCRReplies: 22Last Post: 12th Jun 2016, 11:25 -
Virtualdub Capture: Inserted frame every 41st frame when capturing
By sventamyra in forum Capturing and VCRReplies: 14Last Post: 20th Apr 2016, 08:21 -
VirtualDub with variable frame rates
By Vidude in forum Video ConversionReplies: 9Last Post: 16th Nov 2014, 19:38 -
VirtualDub stuck on first frame
By Track in forum Video ConversionReplies: 9Last Post: 12th Sep 2013, 07:09 -
title missing ~30 secs, won't rip past it
By DynVec in forum DVD RippingReplies: 12Last Post: 9th Mar 2013, 15:56