Selur's Little Message Board
NVEnc Preview - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Talk, Talk, Talk (https://forum.selur.net/forum-5.html)
+--- Forum: Small Talk (https://forum.selur.net/forum-7.html)
+--- Thread: NVEnc Preview (/thread-3419.html)

Pages: 1 2 3 4


RE: NVEnc Preview - Selur - 01.10.2023

Why, did you do that?!?
NVEncC is not meant to create raw YUV output, it's meant to output compressed stuff.
The issue isn't NVEnc, it's somewhere in the piping and opening the piped content with ffmpeg and Python in Vapoursynth.
Better ask _AI_ whether he has an idea why this Vapoursynth(file->nvenc->ffmpeg) does not work.

Cu Selur


RE: NVEnc Preview - Dan64 - 05.10.2023

I understand your view, but in windows is already a miracle if a pipe is working as expected, and the use of an additional pipe will introduce an additional point of failure. The possibility to get the uncompressed filtered video from NVEnc is the most robust way to build a preview. Fortunately Rigaya understood the issue and provided a positive answer to my request. Let's see...


RE: NVEnc Preview - Selur - 05.10.2023

Ideally you would need an option which gives you the output for frame X, but that gets tricky when deinterlacing or other stuff that changes the frame count is involved.
=> fingers crossed that Rigaya can come up with something that can be integrated into guis. Smile

Cu Selur


RE: NVEnc Preview - Dan64 - 07.10.2023

I posted also a message to __AI__ asking clarification on the script published because I was unable to get it working properly.
This the link of the post: https://forum.doom9.org/showthread.php?p=1992366#post1992366
 I hope that __AI__ will answer.


RE: NVEnc Preview - Dan64 - 07.10.2023

I was able to test the changes in 7.32, see: https://github.com/rigaya/NVEnc/issues/521#issuecomment-1751796033

Unfortunately by removing the intermediate file and using the pipe to provide the input to "ffplay" is not working the output is bad.

Till now I was unable to get a Vapoursynth script able to work using the pipe (and no answer from _AI_) Sad


RE: NVEnc Preview - Selur - 08.10.2023

I just tried, it with:
F:\Hybrid\64bit\NVEncC.exe --avhw --input "C:\Users\Selur\Desktop\TestSubs-1.mp4" -c raw --output-csp yuv420 --output-depth 8 --output-format y4m --output - | F:\Hybrid\64bit\ffplay.exe -f yuv4mpegpipe -i -
and it worked without any issues.
Same with:
F:\Hybrid\64bit\NVEncC.exe --avhw --input "C:\Users\Selur\Desktop\TestSubs-1.mp4" -c raw --output-csp yuv420 --output-depth 8 --output-format raw --output - | F:\Hybrid\64bit\ffplay.exe -f rawvideo -pixel_format yuv420p -video_size 720x300 -i -
and
F:\Hybrid\64bit\NVEncC.exe --avhw --input "C:\Users\Selur\Desktop\TestSubs-1.mp4" -c raw --output-res 720x304 --output-csp yuv420 --output-depth 8 --output-format raw --output - | F:\Hybrid\64bit\ffplay.exe -f rawvideo -pixel_format yuv420p -video_size 720x304 -i -


Cu Selur

Ps.: can't get Vapoursynth working with your stream, works fine with mine that already is mod16.


RE: NVEnc Preview - Dan64 - 08.10.2023

Answer from __AI__: Quick tested it with another 1920x1080 mp4, 4:2:0 video I have here and it worked, so ffmpeg's rawvideo loaded it ok, but your mp4 file did not work. I suspect that height mod might be a problem, it is 4 for 300, maybe mod 8 is needed for ffmpeg. Would resizing it to 304 help for example? Source video, not in vapoursynth.

I tried:

E:\VideoTest\TestSubs\NVEncC.exe --avhw --input "E:\VideoTest\TestSubs\TestSubs-1.mp4" -c raw --vpp-resize spline36 --output-res 720x304 --output-csp yuv420 --output-depth 8 --output-format raw --output - | E:\VideoTest\TestSubs\ffplay.exe -f rawvideo -pixel_format yuv420p -video_size 720x304 -i -

but the output image "is green"  maybe the problem is in ffplay version used.
I'm using:

ffplay version 6.0-essentials_build-www.gyan.dev Copyright © 2003-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband

could you provide your version ?

Thanks


RE: NVEnc Preview - Selur - 08.10.2023

Uploaded the ffplay version I used to my GoogleDrive.

Cu Selur


RE: NVEnc Preview - Dan64 - 08.10.2023

I found the problem regarding the "ffplay". It was due to the fact that i was running the scripts in Powershell, by running them in the command dos (cmd.exe) all the version of ffpay are woking. Even without resize mod 8.


RE: NVEnc Preview - Selur - 08.10.2023

Yeah, but that doesn't fix it for Vapoursynth.