VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 32
  1. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  2. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    It only seems to happen when I try to open something with avisynth but it's still the same scripts that were working just fine before
    Quote Quote  
  3. 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 ?
    Quote Quote  
  4. 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
    Quote Quote  
  5. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  6. Originally Posted by DaneClark View Post
    Virtualdub always runs slow when it opens files through these scripts.
    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.
    Quote Quote  
  7. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  8. 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?
    Quote Quote  
  9. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  10. 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)
    It dissolves from A to B to A to B, so the total duration should be 2*A+2*B, minus 3*30 frames fade time.

    But that has nothing to do with your original question.

    You still have not posted the log.
    Quote Quote  
  11. Originally Posted by raffriff42 View Post
    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)
    It dissolves from A to B to A to B, so the total duration should be 2*A+2*B, minus 3*30 frames fade time.
    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).
    Quote Quote  
  12. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    -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
    Quote Quote  
  13. Unless you want uncompressed RGB output from VDub, you have to choose and configure a codec.

    And what's your complete script for that operation resulting in the livelock.?
    Quote Quote  
  14. (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.
    Quote Quote  
  15. There is at least 1 bug that can result in livelock, try to disable output panes before running.
    Quote Quote  
  16. 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]
    But the most common answer was, "I have no clue."
    Quote Quote  
  17. 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()...
    Quote Quote  
  18. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Is there a way to ad a dissolve in virtualdub without using avisynth?
    Quote Quote  
  19. 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.
    Quote Quote  
  20. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    How do I download the filtermod pack? There's no download link on that site
    Quote Quote  
  21. 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/
    Quote Quote  
  22. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  23. >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.
    Quote Quote  
  24. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  25. 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).
    Quote Quote  
  26. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Ok then, what folder should I put cch_input.vdf and cch_input.ini in?
    Quote Quote  
  27. 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.
    Quote Quote  
  28. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Ok, I've got the fflayer filter. But I don't know how to get the second video to appear in the video stream.
    Quote Quote  
  29. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Using FFLAYER isn't going to work because I need both video files to have their original audio in sync
    Quote Quote  
  30. Yes video filter cannot crossfade audio. Maybe mix audio elsewhere and then use it as "audio from other file".
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!