Page 1 of 1

Hardware (QSV) encoding not working (Framerate and picture dimensions must be non-zero)

Posted: 02 Jun 2017 10:07
by 131
Hi !
I'm having hard time using venc=qsv
I'm ending up with [02a088f4] qsv encoder error: Framerate and picture dimensions must be non-zero
I try the same line in 2.1.2 and i do not get any error (yet the file seems corrupted and is unplayable)

Source code state : https://github.com/videolan/vlc/commit/ ... 90e602a7da
So i guess enc->fmt_in.video.i_visible_height is poorly/wrongly defined (as it's the only check changing between 2.1.2 and latest)

i do not understand how to set this parameter though CLI args
Is there a dev that could help me ?

Code: Select all

vlc.exe --no-screen-follow-mouse --ignore-config --no-plugins-cache --verbose=10 --no-media-library --config=NUL --intf=dummy --screen-fps=20 --screen-top=0 --screen-left=0 --screen-width=160 --screen-height=160 --run-time=10 --width=160 --height=160 --no-crashdump --sout=#transcode{vcodec=x264,fps=30,acodec=none,scale=0,width=160,height=160,venc=qsv{vcodec=h264,scale=1}}:duplicate{dst=std{access=file,mux=mp4,dst="test.mp4"}} screen:// vlc://quit
vlc-2.1.2-log.txt : https://gist.github.com/131/d036a75f815 ... cce30c1571
vlc-2.2.6-log.txt : https://gist.github.com/131/9ea6ae117ff ... 8913e91ccf

(qsv is properly installed and working in OSC)

Thank you all for your help !

Re: Hardware (QSV) encoding not working (Framerate and picture dimensions must be non-zero)

Posted: 11 Oct 2017 00:32
by korsanovix
I have also the same question: https://forum.videolan.org/viewtopic.ph ... 15#p461715
I don't know what to do.