VideoHelp Forum


Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 15 of 15
Thread
  1. Clip attached downloaded from YouTube. It's uses the AV1 video codec. Is there an indexer which supports that input format?
    I tried previewing the video with FFVideoSource in AvsPmod but it says it can't open the video.
    Quote Quote  
  2. Recent versions of lsmash and ffms2 support AV1 . Likely you are using an older version
    Quote Quote  
  3. lsmash's LWlibavVideoSource() definitely works. I've used it often for AV1.
    Quote Quote  
  4. LWlibavVideoSource works fine here, ffms2 2.4 doesn't and reports "No video track found" (on both Avisynth and Vapoursynth)
    https://forum.doom9.org/showthread.php?p=1925683#post1925683 -> FFVideoSource/ffms2 with av1 support.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. I normally use this for indexing videos which DGDecodeNV doesn't support:

    Code:
    FFVideoSource("J:\Video.mkv.ffindex", fpsnum=25, fpsden=1, threads=1)
    Those are the suggested settings to keep things stable. Do I need to do a similar thing when using LWlibavVideoSource? If so, can you give an example please of how to use it.

    Also, somebody outside of this forum told me that FFMS is not reliable, it can't handle 1080i files for example. Is that true? How is it unreliable? I've been using it for years without issues.
    Quote Quote  
  6. From my experience the 'threads=1' is outdated nowadays for both FFVideoSource and LWlibavVideoSource and forcing cfr decoding (fpsnum=25, fpsden=1) should only be needed on vfr sources.

    With LWLibavVideoSource I usually use something like:
    Code:
    LWLibavVideoSource("C:\Users\Selur\Desktop\test.mkv",cache=false,format="YUV420P8", prefer_hw=3,repeat=true)
    cache=false: create index only in memory
    prefer_hw=3
    Hardware decoding mode:
    Whether to prefer hardware accelerated decoder to software decoder.
    Have no effect if 'decoder' is specified.
    - 0 : Use default software decoder.
    - 1 : Use NVIDIA CUVID acceleration for supported codec, otherwise use default software decoder.
    - 2 : Use Intel Quick Sync Video acceleration for supported codec, otherwise use default software decoder.
    - 3 : Try hardware decoder in the order of CUVID->QSV. If none is available then use default software decoder.
    when input if vfr, but cfr is needed I would use:
    Code:
    LWLibavVideoSource("C:\Users\Selur\Desktop\test.mkv",cache=false,format="YUV420P8", prefer_hw=3,fpnum=25,fpsden=1)
    I usually set the format just to be sure that the format I get is the format I expected, but that normally isn't needed.
    see: http://avisynth.nl/index.php/LSMASHSource/LWLibavVideoSource

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. Thanks. Why do you use fpnum=25, fpsden=1 on a 29.97 fps video?

    On the clip I uploaded in my original post I tried both of your scripts but I get an Avisynth access violation. Could you please give me the correct script so I can encode the video.
    Last edited by VideoFanatic; 2nd Nov 2020 at 10:59.
    Quote Quote  
  8. Why do you use fpnum=25, fpsden=1 on a 29.97 fps video?
    No clue why you would think that, I don't.
    I took the fpsnum an fpsdenum values from your example:
    FFVideoSource("J:\Video.mkv.ffindex", fpsnum=25, fpsden=1, threads=1)


    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  9. Could you please give me the correct line to index the video. I'm getting an Avisynth access violation. I don't know what to do and I'm in a rush to get this video encoded.
    Quote Quote  
  10. with "cache=false," LWLibavVideoSource creates the index in the RAM, with "cache=true" you can specify the index file with cachefile="PATH TO FILE", see: http://avisynth.nl/index.php/LSMASHSource/LWLibavVideoSource

    No clue why you would get an access violation,...
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  11. Here's part of my
    Code:
     MeGUI log:
    
    ---[NoImage] LWLibavVideoSource("L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.2 FPS 30.mkv.lwi")
    --[Information] [02/11/2020 15:35:46] resolution: 1280x720
    --[Information] [02/11/2020 15:35:46] frame rate: 15913/1062
    --[Information] [02/11/2020 15:35:46] frames: 862
    --[Information] [02/11/2020 15:35:46] length: 00:00:57.528
    --[Information] [02/11/2020 15:35:46] aspect ratio (avs): 16:9 (1.778)
    --[Information] [02/11/2020 15:35:46] color space: I420
    --[Information] [02/11/2020 15:35:46] custom command line: --keyint 60 --vbv-bufsize 15000 --vbv-maxrate 15000 --sar 1:1
    --[Information] [02/11/2020 15:35:46] Job command line: "cmd.exe" /c ""Z:\MeGUI 2913\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.2 FPS 30.mkv.avs" -strict -1 -f yuv4mpegpipe - | "Z:\MeGUI 2913\tools\x264\x264.exe" --preset slow --crf 15 --keyint 36 --min-keyint 14 --vbv-bufsize 15000 --vbv-maxrate 15000 --sar 1:1 --tcfile-in "L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.2 FPS 30.mkv.timestamps.txt.x264" --frames 862 --output "L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.264" --stdin y4m -"
    --[Information] [02/11/2020 15:35:46] Process started
    --[Information] [02/11/2020 15:35:46] Standard output stream
    --[Error] [02/11/2020 15:35:46] Standard error stream
    ---[Information] [02/11/2020 15:35:46] [error] av_interleaved_write_frame(): Broken pipe
    ---[Information] [02/11/2020 15:35:46] [error] Error writing trailer of pipe:: Broken pipe
    ---[Information] [02/11/2020 15:35:46] y4m [info]: 1280x720p 1:1 @ 15913/1062 fps (cfr)
    ---[Error] [02/11/2020 15:35:46] timecode [error]: invalid input tcfile for frame 1
    ---[Error] [02/11/2020 15:35:46] x264 [error]: timecode input failed
    --[Error] [02/11/2020 15:35:46] Process exits with error: 0xFFFFFFFF (-1)
    --[Information] [02/11/2020 15:35:46] Job completed
    I don't know what I'm doing wrong.
    Last edited by VideoFanatic; 2nd Nov 2020 at 11:38.
    Quote Quote  
  12. Code:
    LWLibavVideoSource("L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.2 FPS 30.mkv.lwi")
    looks wrong to me.
    I would have expected something like:
    Code:
    LWLibavVideoSource("L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.2 FPS 30.mkv",cache=true,cachefile="L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.2 FPS 30.mkv.lwi",format="YUV420P8", prefer_hw=3,fpnum=15913,fpsden=1062)
    side note: whoever came up with the naming of the files and orders should not be surprised it tools have problems with it.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  13. I simplified the folder names but I'm still getting the Avisnyth access violation with this script:
    LWLibavVideoSource("J:\0Working\AV1 Source.mkv",cache=true,cachefile="J:\0Working\AV1 Source.mkv.lwi",format="YUV420P8", prefer_hw=3,fpsnum=15913,fpsden=1062)

    Even AVC codec is giving me that access violation.

    My "LSMASHSource.dll" is in C:\Program Files (x86)\AviSynth 2.5\plugins
    I downloaded the 20200728 version from here: https://github.com/HolyWu/L-SMASH-Works/releases/


    Any idea what I'm doing wrong?

    Could you please explain where you got the fpsnum and fpsden numbers from?
    Quote Quote  
  14. "AviSynth 2.5" for
    32bit Avisynth you should use 32bit Avisynth+ 3.6.1
    64bit Avisynth you should use 64bit Avisynth+ 3.6.1
    https://github.com/AviSynth/AviSynthPlus/releases

    Also iirc MeGui did have some Preview or Script View, where you can look at the output of the Avisynthscript used.
    Does that preview work properly?
    Alternatively look at the script with or example AvsPmod.
    Haven't used MeGui or ages,...

    Could you please explain where you got the fpsnum and fpsden numbers from?
    From your log:
    Code:
    ---[NoImage] LWLibavVideoSource("L:\0 = To Encode\Biden\Small Files Upscale to 4K\1xpogsny.md2\20120426  CBS    Biden assures voters Obama 'has a big stick'    86689 Views rrmbsKW0d7c USA YouTube 720p @@vp9 @@mp4a.40.2 FPS 30.mkv.lwi")
    --[Information] [02/11/2020 15:35:46] resolution: 1280x720
    --[Information] [02/11/2020 15:35:46] frame rate: 15913/1062
    --[Information] [02/11/2020 15:35:46] frames: 862
    --[Information] [02/11/2020 15:35:46] length: 00:00:57.528
    --[Information] [02/11/2020 15:35:46] aspect ratio (avs): 16:9 (1.778)
    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  15. I can do either of these in AvsPmod and the video displays fine for my VP9 codec clip:

    LWLibavVideoSource("L:\VP9 Clip.mkv",cache=true,cachefile="L:\VP9 Clip.mkv.lwi",format="YUV420P8",prefer_hw=3,fpsnum =15913,fpsden=1062)

    LWLibavVideoSource("L:\VP9 Clip.mkv")

    However when I try to encode the video with either of the above scripts then the video fails to encode.
    Code:
    Here's my log:
    
    -[Error] Log for job1 (video, VP9 Clip.mkv.avs -> VP9 Clip_Video.264)
    --[Information] [02/11/2020 22:13:54] Started handling job
    --[Information] [02/11/2020 22:13:54] Preprocessing
    --[Information] [02/11/2020 22:13:54] AviSynth input script
    ---[NoImage] global MeGUI_darx = 16
    ---[NoImage] global MeGUI_dary = 9
    ---[NoImage] LoadPlugin("Z:\MeGUI 2913 Outgunner Install\tools\lsmash\LSMASHSource.dll")
    ---[NoImage] LWLibavVideoSource("L:\t42q54ig.e1p\VP9 Clip.mkv.lwi")
    --[Information] [02/11/2020 22:13:56] resolution: 1280x720
    --[Information] [02/11/2020 22:13:56] frame rate: 15913/1062
    --[Information] [02/11/2020 22:13:56] frames: 905
    --[Information] [02/11/2020 22:13:56] length: 00:01:00.398
    --[Information] [02/11/2020 22:13:56] aspect ratio (avs): 16:9 (1.778)
    --[Information] [02/11/2020 22:13:56] color space: I420
    --[Information] [02/11/2020 22:13:56] custom command line: --keyint 60 --vbv-bufsize 15000 --vbv-maxrate 15000 --sar 1:1
    --[Information] [02/11/2020 22:13:56] Job command line: "cmd.exe" /c ""Z:\MeGUI 2913 Outgunner Install\tools\ffmpeg\ffmpeg.exe" -loglevel level+error -i "L:\t42q54ig.e1p\VP9 Clip.mkv.avs" -strict -1 -f yuv4mpegpipe - | "Z:\MeGUI 2913 Outgunner Install\tools\x264\x264.exe" --preset slow --crf 15 --keyint 36 --min-keyint 14 --vbv-bufsize 15000 --vbv-maxrate 15000 --sar 1:1 --tcfile-in "L:\t42q54ig.e1p\VP9 Clip.mkv.timestamps.txt.x264" --frames 905 --output "L:\t42q54ig.e1p\VP9 Clip_Video.264" --stdin y4m -"
    --[Information] [02/11/2020 22:13:56] Process started
    --[Information] [02/11/2020 22:13:56] Standard output stream
    --[Error] [02/11/2020 22:13:56] Standard error stream
    ---[Information] [02/11/2020 22:13:57] [error] av_interleaved_write_frame(): Broken pipe
    ---[Information] [02/11/2020 22:13:57] [error] Error writing trailer of pipe:: Broken pipe
    ---[Information] [02/11/2020 22:13:57] y4m [info]: 1280x720p 1:1 @ 15913/1062 fps (cfr)
    ---[Error] [02/11/2020 22:13:57] timecode [error]: invalid input tcfile for frame 1
    ---[Error] [02/11/2020 22:13:57] x264 [error]: timecode input failed
    --[Error] [02/11/2020 22:13:57] Process exits with error: 0xFFFFFFFF (-1)
    --[Information] [02/11/2020 22:13:57] Job completed
    Any idea how to get this working please? It also fails if I leave out this part of the script: format="YUV420P8"
    Quote Quote  



Similar Threads