rigaya / QSVEnc

QSVによる高速エンコードの性能実験
http://rigaya34589.blog135.fc2.com/blog-category-10.html
Other
313 stars 28 forks source link

Is it possible to pipe NVEnc's output into QSVEnc? #152

Closed my-password-is-password closed 1 year ago

my-password-is-password commented 1 year ago

I can pipe NVEnc into ffmpeg and get valid output but when I try to do the same with QSVEnc the output is messed up. Am I doing something wrong or is it not possible. The NVEnc command is the same for both below. For the QSVEnc one I set both input-res and fps like it said https://github.com/rigaya/QSVEnc/blob/master/QSVEncC_Options.en.md#--raw .

NVEnc -> ffmpeg

NVEncC64.exe --avhw --input "INPUT.mp4" --output-res 720x576 --output-format raw --output - | ffmpeg.exe -i pipe: -c:v mpeg2video "OUTPUT.m2v"

OUTPUT.m2v:

mpv_0iD7n86lYK


NVEnc -> QSVEnc

NVEncC64.exe --avhw --input "INPUT.mp4" --output-res 720x576 --output-format raw --output - | QSVEncC64.exe --raw --input-res 720x576 --fps 25/1 --input - --codec mpeg2 --output-format mpeg2video --output "OUTPUT.m2v"

OUTPUT.m2v:

mpv_6x8tJvU9R8

Thank you for both NVEnc and QSVEnc.

rigaya commented 1 year ago

--raw for QSVEnc is for raw (non compressed) video, and not suitable for this case. I think just removing --raw shall work.

my-password-is-password commented 1 year ago

You're right. It works when I remove the --raw from the QSVEnc. Thanks again. 👍