[英]How to see reference list of a slice/frame of a video using FFprobe
Suppose I have a avi/mkv/mp4 video, the video has some GOP structure( IPPP/IBBP etc) which can be seen from FFprobe. 假设我有一个avi / mkv / mp4视频,视频有一些GOP结构(IPPP / IBBP等),可以从FFprobe看到。 But can I see reference picture list(L0 and L1), that is frames from which B is using bi-directional prediction using FFprobe?
但我可以看到参考图片列表(L0和L1),即B使用FFprobe进行双向预测的帧吗?
Since this information is idiosyncratic to each bitstream syntax (codec), it's in the purview of the decoder. 由于该信息对于每个比特流语法(编解码器)是特殊的,因此它在解码器的范围内。 So I don't believe ffprobe can access it.
所以我不相信ffprobe可以访问它。
-- Untested approach follows -- - 未经测试的方法如下 -
Looking at the source code, it seems you have to define TRACE (let's say, in libavutil/log.h
), compile and run 看一下源代码,看来你必须定义TRACE(比方说,在
libavutil/log.h
),编译并运行
ffmpeg -loglevel trace -i in.mp4 -f null - 2> log.txt
Then the log should contain lines of the format 然后日志应包含格式的行
List0: %s fn:%d 0x%p
List1: %s fn:%d 0x%p
where the %d
field will have the picture ID. 其中
%d
字段将具有图片ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.