VideoHelp Forum




+ Reply to Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast
Results 31 to 60 of 67
  1. Originally Posted by davexnet View Post
    If the script is not in the same folder as FFmpeg, you have to use a fully qualified file name in the call so the system can find it:
    Code:
    ffmpeg.exe -i "c:\your_folder\script.avs"
    ffmpeg is in the same folder as the script, that's why I didn't add that path. I will try that to see if makes a difference, doubt it will. If it does I'll let you know.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    In that case drag the script to vdub (or vdub2) or AVSpmod to make sure the script is good
    Quote Quote  
  3. Originally Posted by davexnet View Post
    In that case drag the script to vdub (or vdub2) or AVSpmod to make sure the script is good
    Yep same error adding path.

    Yes the script opens up and displays the video OK. It's the pack Lollo set up for me (see his above post ad the link)
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Better wait for lollo, I don't see anything obviously wrong with it -
    your command line worked as-is except for the different source file:
    Code:
    I:\bin32>ffmpeg.exe -i "C:\Users\davex\Desktop\college-a.avs" -c:v libx264 -crf 17 -preset slow -aspect 4:3 -c:a aac -b:a 128k outputff.mp4
    ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
      built with gcc 8.2.1 (GCC) 20190212
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
      libavutil      56. 22.100 / 56. 22.100
      libavcodec     58. 35.100 / 58. 35.100
      libavformat    58. 20.100 / 58. 20.100
      libavdevice    58.  5.100 / 58.  5.100
      libavfilter     7. 40.101 /  7. 40.101
      libswscale      5.  3.100 /  5.  3.100
      libswresample   3.  3.100 /  3.  3.100
      libpostproc    55.  3.100 / 55.  3.100
    Input #0, avisynth, from 'C:\Users\davex\Desktop\college-a.avs':
      Duration: 00:02:20.37, start: 0.000000, bitrate: 0 kb/s
        Stream #0:0: Video: rawvideo (Y42B / 0x42323459), yuv422p, 720x480, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Quote Quote  
  5. Make sure the bit-ness of ffmpeg and AviSynth match. Ie, 32 bit ffmpeg requires 32 bit AviSynth(+), 64 bit ffmpeg requires 64 bit AviSynth(+).
    Quote Quote  
  6. Originally Posted by davexnet View Post
    Better wait for lollo, I don't see anything obviously wrong with it -
    your command line worked as-is except for the different source file:
    Code:
    I:\bin32>ffmpeg.exe -i "C:\Users\davex\Desktop\college-a.avs" -c:v libx264 -crf 17 -preset slow -aspect 4:3 -c:a aac -b:a 128k outputff.mp4
    ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
      built with gcc 8.2.1 (GCC) 20190212
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
      libavutil      56. 22.100 / 56. 22.100
      libavcodec     58. 35.100 / 58. 35.100
      libavformat    58. 20.100 / 58. 20.100
      libavdevice    58.  5.100 / 58.  5.100
      libavfilter     7. 40.101 /  7. 40.101
      libswscale      5.  3.100 /  5.  3.100
      libswresample   3.  3.100 /  3.  3.100
      libpostproc    55.  3.100 / 55.  3.100
    Input #0, avisynth, from 'C:\Users\davex\Desktop\college-a.avs':
      Duration: 00:02:20.37, start: 0.000000, bitrate: 0 kb/s
        Stream #0:0: Video: rawvideo (Y42B / 0x42323459), yuv422p, 720x480, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    He had the script setup for source I uploaded S1E2 (PAL) 25i.mpg though not sure what all that NTSC stuff is about? Guess could try my NTSC source as well.

    Originally Posted by jagabo View Post
    Make sure the bit-ness of ffmpeg and AviSynth match. Ie, 32 bit ffmpeg requires 32 bit AviSynth(+), 64 bit ffmpeg requires 64 bit AviSynth(+).
    Hmm I downloaded the latest ffmpeg from here didn't see any 64 or 32 option. That could be it, pretty sure Lollo said this was 32bit. Thanks I'll check that too.
    Quote Quote  
  7. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Check 32-bit vs 64-bit mismatch, as jagabo said

    In the avisynth script eventually use full path for avisynth plugin directory:

    Code:
    plugins_dir="C:\lollo files\QTGMC\AviSynth_plugin_dir\"
    Quote Quote  
  8. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Very good point. Earlier, I had tried to load a script containing mpeg2source with 64 bit ffmpeg.
    But I got a specific message about being unable to load a 32 bit dll
    Assuming Avisynth Plus is installed, both32 and 64 bit versions should be available and the bitness of ffmpeg
    (As jagabo mentioned) will determine which is used
    Quote Quote  
  9. OK I installed AviSynthPlus_3.7.3_20230715_vcredist.exe as all I had installed was AviSynth_260.exe. Now I am getting the bit match error.

    Code:
    [avisynth @ 00000254e80b8980] Cannot load a 32 bit DLL in 64 bit Avisynth: 'C:/lollo files/QTGMC/AviSynth_plugin_dir/masktools2_v2.2.30/x86/masktools2.dll'.
    
    (script.avs, line 10)
    [in#0 @ 00000254e8080f40] Error opening input: Unknown error occurred
    Error opening input file script.avs.
    Error opening input files: Unknown error occurred
    I can't find a 32 ffmpeg, everywhere I look it's 64bit version.
    Quote Quote  
  10. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Did lollo set up his scripts/plugins with 32-bit usage in mind? Best wait for his input
    Quote Quote  
  11. Originally Posted by davexnet View Post
    Did lollo set up his scripts/plugins with 32-bit usage in mind? Best wait for his input
    No idea, yea see what he says.
    Quote Quote  
  12. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    The package was for AviSynth 2.60 32-bit.
    Better re-read original post and restart from scratch
    Quote Quote  
  13. Originally Posted by TubeBar View Post
    OK I installed AviSynthPlus_3.7.3_20230715_vcredist.exe as all I had installed was AviSynth_260.exe. Now I am getting the bit match error.

    Code:
    [avisynth @ 00000254e80b8980] Cannot load a 32 bit DLL in 64 bit Avisynth: 'C:/lollo files/QTGMC/AviSynth_plugin_dir/masktools2_v2.2.30/x86/masktools2.dll'.
    
    (script.avs, line 10)
    [in#0 @ 00000254e8080f40] Error opening input: Unknown error occurred
    Error opening input file script.avs.
    Error opening input files: Unknown error occurred
    I can't find a 32 ffmpeg, everywhere I look it's 64bit version.
    You dont need a 32 bit ffmpeg, but the correct 64 bit plugins in the plugins64+ folder of avisynth+

    Unzip and copy all into your plugins64+ folder.
    Image Attached Files
    Last edited by ProWo; 2nd Aug 2023 at 07:16.
    Quote Quote  
  14. Originally Posted by lollo View Post
    The package was for AviSynth 2.60 32-bit.
    Better re-read original post and restart from scratch
    I did and all the same result. However, I managed a work around (though not ideal).

    Your script works fine but I hit that snag w/ ffmpeg:

    Code:
    ffmpeg.exe -i script.avs -c:v libx264 -crf 17 -preset slow -aspect 4:3 -c:a aac -b:a 128k output.mp4
    However once I load your script into Virtual Dub I can save the RAW AVI. Later I will need to remux that. It works just not ffmpeg part which I given up on.

    I can crop and process, remux the video later it's not terrible.
    Quote Quote  
  15. ffmpeg should have no problems with AviSynth scripts. But like with VirtualDub you will need a 32 bit version of ffmpeg to use 32 bit AviSynth, a 64 bit version of ffmpeg to use 64 bit AviSynth. I don't think they make 32 bit versions of ffmpeg anymore.
    Quote Quote  
  16. Originally Posted by jagabo View Post
    ffmpeg should have no problems with AviSynth scripts. But like with VirtualDub you will need a 32 bit version of ffmpeg to use 32 bit AviSynth, a 64 bit version of ffmpeg to use 64 bit AviSynth. I don't think they make 32 bit versions of ffmpeg anymore.
    Right. They don't seem to. Lollo's script is setup for 32bit. I haven't tried to see if it works w/ 64 guess I can do that later. Regardless this looks like it will take a lot of time either way I do it. RAW takes up a huge amount of space
    Quote Quote  
  17. Originally Posted by TubeBar View Post
    Lollo's script is setup for 32bit. I haven't tried to see if it works w/ 64
    It will work but you'll have to track down 64 bit versions of all the required filters.
    Quote Quote  
  18. Originally Posted by jagabo View Post
    Originally Posted by TubeBar View Post
    Lollo's script is setup for 32bit. I haven't tried to see if it works w/ 64
    It will work but you'll have to track down 64 bit versions of all the required filters.
    ah...ok I'll see what I can do thanks.
    Quote Quote  
  19. Originally Posted by jagabo View Post
    Originally Posted by TubeBar View Post
    Lollo's script is setup for 32bit. I haven't tried to see if it works w/ 64
    It will work but you'll have to track down 64 bit versions of all the required filters.
    How do I try an NTSC file using Lollo's script? What you suggested TFM().TDecimate()?

    His script is:
    Code:
    # plugins directory
    plugins_dir="AviSynth_plugin_dir\"
    
    	# QTGMC
    Import(plugins_dir + "QTGMC.avsi")
    	# Zs_RF_Shared
    Import(plugins_dir + "Zs_RF_Shared.avsi")
    
    	# MaskTools2
    loadPlugin(plugins_dir + "masktools2_v2.2.30\x86\masktools2.dll")
    	# RgTools
    loadPlugin(plugins_dir + "RgTools-v1.2\x86\RgTools.dll")
    	# MVTools
    loadPlugin(plugins_dir + "mvtools-2.7.45-with-depans20210608\x86\mvtools2.dll")
    	# Nnedi3
    loadPlugin(plugins_dir + "NNEDI3_v0_9_4_62\x86\Release_W7\nnedi3.dll")
    	# FFTW
    loadPlugin(plugins_dir + "LoadDLL10\LoadDLL\LoadDLL32.dll")
    loadDll(plugins_dir + "fftw-3.3.5-dll32\libfftw3f-3.dll")
    
    	# Srestore
    Import(plugins_dir + "Srestore\Srestore.avsi")
    loadPlugin(plugins_dir + "GRunT-v1.02\x86\grunt.dll")
    
    	# FFmpegSource
    loadPlugin(plugins_dir + "ffms2-2.40-msvc\x86\ffms2.dll")
    
    video_org=FFmpegSource2("S1E2 (PAL) 25i.mpg")
    
    video_restored=video_org.AssumeTFF().QTGMC().Srestore()
    
    return(video_restored)
    Quote Quote  
  20. If you have the TIVTC filters autoloading your script can be as simple as:
    Code:
    FFmpegSource2("filename.ext")
    TFM()
    TDecimate()
    Quote Quote  
  21. Originally Posted by jagabo View Post
    If you have the TIVTC filters autoloading your script can be as simple as:
    Code:
    FFmpegSource2("filename.ext")
    TFM()
    TDecimate()
    Not sure as I didn't change anything. How do I enable the filters to autoload? Not even sure I have them as all I downloaded was QTGMC.zip and nothing in there for that. Do I need to download the script?
    Quote Quote  
  22. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    You need to download the TIVTC package, containing TFM and TDecimate https://avisynth.nl/index.php/TIVTC
    Quote Quote  
  23. Originally Posted by lollo View Post
    You need to download the TIVTC package, containing TFM and TDecimate https://avisynth.nl/index.php/TIVTC
    Link is broken, I get a 404 I did google it but couldn;t find the files.
    Quote Quote  
  24. Originally Posted by TubeBar View Post
    How do I enable the filters to autoload?
    Put the DLL or AVSI files in AviSynth's plugins folder. For 64 bit AviSynth that's the plugins64+ folder within the AviSynth+ folder. Use TIVTC.dll from the x64 folder of the archive:

    C:\Program Files (x86)\AviSynth+\plugins64+\TIVTC.dll

    64 bit AviSynth+ will automatically load all plugins and AVSI files located in that folder.
    Quote Quote  
  25. Originally Posted by jagabo View Post
    Originally Posted by TubeBar View Post
    How do I enable the filters to autoload?
    Put the DLL or AVSI files in AviSynth's plugins folder. For 64 bit AviSynth that's the plugins64+ folder within the AviSynth+ folder. Use TIVTC.dll from the x64 folder of the archive:

    C:\Program Files (x86)\AviSynth+\plugins64+\TIVTC.dll

    64 bit AviSynth+ will automatically load all plugins and AVSI files located in that folder.
    OK did that but when I run the scrip:

    FFmpegSource2("filename.ext")
    TFM()
    TDecimate()

    Some error in line 1 there is no function named FFmpegSource2. I don;t care about ffmpeg, RAW works fine in Virtualdub. So how do I load it in VD and go that route? It's easier.
    Quote Quote  
  26. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    For FFMpegsource , ffms2,dll, ffms2.lib, ffmsindex.exe and ffms2.avsi should be copied to the plugins folder of Avisynth
    Be aware of the bitness, 32 bit files into the 32 bit plugins folder.
    Try this version
    Image Attached Files
    Quote Quote  
  27. Nevermind, davexnet already posted.
    Quote Quote  
  28. Originally Posted by davexnet View Post
    For FFMpegsource , ffms2,dll, ffms2.lib, ffmsindex.exe and ffms2.avsi should be copied to the plugins folder of Avisynth
    Be aware of the bitness, 32 bit files into the 32 bit plugins folder.
    Try this version
    BIG thanks davexnet, that worked like a charm
    Quote Quote  



Similar Threads

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