gpt4 book ai didi

video - ffmpeg - transcoding.c - 为什么最后一个数据包被丢弃

转载 作者:行者123 更新时间:2023-12-04 23:01:20 26 4
gpt4 key购买 nike

使用 ffmpeg 示例 transcoding.c。 (https://github.com/FFmpeg/FFmpeg/blob/release/4.1/doc/examples/transcoding.c)
这是由 ffprobe.exe (ffprobe.exe -i test.mp4 -show_packets) 读取的

[PACKET]
codec_type=video
stream_index=0
pts=162000
pts_time=1.800000
dts=162000
dts_time=1.800000
duration=18000
duration_time=0.200000
size=238317
pos=2285176
flags=__
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=180000
pts_time=2.000000
dts=180000
dts_time=2.000000
duration=18000
duration_time=0.200000
size=24111
pos=2523493
flags=_D
最后一个数据包标志有 AV_PKT_FLAG_DISCARD。

最佳答案

MP4 文件可能有一个编辑列表,而样本恰好有一个编辑列表之外的合成时间。
所以这取决于你的视频文件。

关于video - ffmpeg - transcoding.c - 为什么最后一个数据包被丢弃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70514018/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com