简体   繁体   English

如何在ffmpeg的h264解码器中获取pps和sps

[英]How to get pps and sps in ffmpeg 's h264 decoder

I encode the image for use video capturer and encode it in h264 by ffmpeg and sent to my client pc . 我对供视频捕获器使用的图像进行编码,并通过ffmpeg在h264中对其进行编码,然后将其发送到客户端PC。

my client pc decode it and display it . 我的客户PC解码并显示它。 It can be decoded and display well. 它可以被解码并显示良好。

But I save these compressed image in a file . 但是我将这些压缩图像保存在文件中。 and it can be decoded by vlc or quicktime. 可以通过vlc或quicktime对其进行解码。 But It can be decoded by ffplay 但是可以用ffplay解码

I think because i did n't save the pps and sps info . 我认为是因为我没有保存pps和sps信息。

there is someone know how to get the pps sps in ffmpeg ? 有人知道如何在ffmpeg中获取pps sps吗?

If you didn't save the sps and pps, it wouldn't be decodable at all, by anyone. 如果您不保存sps和pps,则任何人都无法解码。 Something else could be wrong. 可能有其他问题。 What command lines are you using to save the file and to play it? 您使用什么命令行来保存和播放文件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM