Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ffmpeg 将libavcodec数据包表示时间设置为0的原因是什么?_Ffmpeg_Libavcodec - Fatal编程技术网

Ffmpeg 将libavcodec数据包表示时间设置为0的原因是什么?

Ffmpeg 将libavcodec数据包表示时间设置为0的原因是什么?,ffmpeg,libavcodec,Ffmpeg,Libavcodec,最近我正在使用FFmpeg库和VS2017对一些视频数据进行解码和编码。我使用了FFmpeg lib包中给出的示例代码,transcoding.c 在对视频进行编码后,我试图提取已编码和多路复用视频的帧。mp4。但是,当我使用av\u read\u frame(AVFormatContext*s,AVPacket*pkt)读取帧时,在最后接收的帧中,pts和dts的时间都是0 这可能是什么原因?我的视频播放流畅,我使用了H265编解码器

最近我正在使用FFmpeg库和VS2017对一些视频数据进行解码和编码。我使用了FFmpeg lib包中给出的示例代码,
transcoding.c

在对视频进行编码后,我试图提取已编码和多路复用视频的帧。mp4。但是,当我使用
av\u read\u frame(AVFormatContext*s,AVPacket*pkt)
读取帧时,在最后接收的帧中,
pts
dts
的时间都是0

这可能是什么原因?我的视频播放流畅,我使用了
H265
编解码器