[h264_qsv @ 0x55a7005acb40] Error during encoding: undefined behavior (-16)

当编码器配置的宽高与填入编码器的宽高不相同时,就会报此错误;

cpp 复制代码
encodec_ctx->height = decodec_ctx->height;//1920;
encodec_ctx->width = decodec_ctx->width;//1088;
cpp 复制代码
enc_frame->width = 1088;//encodec_ctx->width;
enc_frame->height = 1920;//encodec_ctx->height;
cpp 复制代码
avcodec_send_frame(encodec_ctx, enc_frame);//265阻塞在这里

avcodec_receive_packet(encodec_ctx, &send_pkt);

此时就会报以下错误:

[h264_qsv @ 0x55a7005acb40] Error during encoding: undefined behavior (-16)

相关推荐
superconvert15 小时前
主流流媒体的综合性能大 PK ( smart_rtmpd, srs, zlm, nginx rtmp )
websocket·ffmpeg·webrtc·hevc·rtmp·h264·hls·dash·rtsp·srt·flv
cuijiecheng201821 小时前
音视频入门基础:AAC专题(8)——FFmpeg源码中计算AAC裸流AVStream的time_base的实现
ffmpeg·音视频·aac
0点51 胜21 小时前
[ffmpeg] 视频格式转换
ffmpeg
Jerry 二河小鱼1 天前
在Linux中安装FFmpeg
linux·运维·服务器·ffmpeg
0点51 胜2 天前
[ffmpeg] 音视频编码
ffmpeg·音视频
0点51 胜2 天前
[ffmpeg]音频格式转换
开发语言·c++·ffmpeg
PlumCarefree3 天前
基于鸿蒙API10的RTSP播放器(五:拖动底部视频滑轨实现跳转)
华为·ffmpeg·音视频
LuckyInn3 天前
从安装ffmpeg开始,把一个视频按照每秒30帧fps剪切为图片
ffmpeg·音视频
cuijiecheng20183 天前
FFmpeg源码:skip_bits、skip_bits1、show_bits函数分析
ffmpeg
__Destiny__3 天前
视频格式转为mp4(使用ffmpeg)
ffmpeg·视频编解码