Re: [FFmpeg-devel] Encoding with QSV at an API level.
That was it! Thanks very much! On Wed, Oct 21, 2015 at 4:38 PM, Hendrik Leppkeswrote: > On Wed, Oct 21, 2015 at 9:42 PM, Paul Knopf > wrote: > > I just realized that I was also getting an error on the stdout. > > > > [h264_qsv @ 00c7e6d8e680] Specified pixel format yuv420p is > > invalid or not supported > > > > Which probably means you also get an error return from one of the > initialization functions which you didn't check. > In any case, QSV encoding wants NV12 video, not YUV420P. > > - Hendrik > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > -- Thanks! ~Paul ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] Encoding with QSV at an API level.
I just realized that I was also getting an error on the stdout. [h264_qsv @ 00c7e6d8e680] Specified pixel format yuv420p is invalid or not supported On Wed, Oct 21, 2015 at 3:13 PM, Paul Knopfwrote: > Hey guys, > > Is there an example somewhere, using the "h264_qsv" encoder at an API > level? > > Let's say I have an application that encodes and muxes a file to mp4, > using libx264. Is it possible to just switch encoders? Will other things > have to change, like pixel formats? > > I switched the encoders just like this. > > // old (libx264) > //AVCodec* codec = avcodec_find_encoder(AV_CODEC_ID_H264); > // new (Intel Quick Sync) > AVCodec* codec = avcodec_find_encoder_by_name("h264_qsv"); > > > However, when calling avcodec_encode_video2,I get an access violation. > > Am I doing this wrong? > > I posted by question on StackOverflow as well for better visibility. > > http://stackoverflow.com/questions/33267213/ffmpeg-encoding-with-intel-quick-sync-throwing-access-violation-reading-locati > > -- > Thanks! > > ~Paul > -- Thanks! ~Paul ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] Encoding with QSV at an API level.
On Wed, Oct 21, 2015 at 9:42 PM, Paul Knopfwrote: > I just realized that I was also getting an error on the stdout. > > [h264_qsv @ 00c7e6d8e680] Specified pixel format yuv420p is > invalid or not supported > Which probably means you also get an error return from one of the initialization functions which you didn't check. In any case, QSV encoding wants NV12 video, not YUV420P. - Hendrik ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel