我是gstreamer API的新手。我设法缓慢地使用gst库,但现在对于我的项目,我需要打印出H.264视频的帧级时间戳。我正在使用的gstreamer pipeline命令附带了这个问题。我尝试了-verbose -identity=false,silent-identity模式,但是我得到了太多的信息。我只想启用帧级时间戳,然后转储到一个文件中。任何建议都将是伟大的,非常感谢。
这是我对gstreamer使用的命令
gst-launch-1.0filesrc location=$fname!qtdemux name=mdemux!t name=t t.!
队列max-size-bytes=4294967295 max-size-buffer=4294967295 max-size-time=18446744073709551615!
h264parse!video/x-h264,stream-format=byte-stream!排队!
rtph264pay配置-间隔=1!udpsink host=$host port=$port \
发布于 2020-12-22 16:45:17
我找到了一个解决方案,这正是我需要的。我把命令行改成了脚本
gst-launch-1.0filesrc location=$fname!qtdemux name=mdemux!t name=t t.!队列max-size-bytes=4294967295 max-size-buffer=4294967295 max-size-time=18446744073709551615!h264parse!video/x-h264,stream-format=byte-stream!排队!rtph264pay配置-间隔=1!udpsink host=$host port=$port \
我将上面的命令管道放入./test1.sh | grep -op "(?<=dts:)(\d+:){2}\d+.\d+“
然后我通过管道连接到一个日志文件中,在那里我保存了逐帧的时间戳。我花了3天才弄明白。但是到目前为止,Stack Overflow已经很不错了。
https://stackoverflow.com/questions/65334617
复制相似问题