使用来自编码AVPacket的av_sdp_create [英] use of av_sdp_create from an encode AVPacket

查看:81
本文介绍了使用来自编码AVPacket的av_sdp_create的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我能够将原始图像编码为h264,现在我希望能够使用live555将其传输到RTSP。我想创建一个sdp所以我可以把它放到live555中,所以经过一堆搜索我发现有一个函数av_sdp_create,但我不知道如何使用它...第一个参数是AVFormatContext而我只有一个AVPacket使用压缩数据。如何设置此功能以便它可以为我生成一个sdp。



Hi
I was able to encode a raw image to h264, and now I want to be able to transmit it to RTSP using live555. I want to create a sdp so I can put it into live555, so after a bunch of searching I found there is a function av_sdp_create, but I dont know how to use it... The first argument is AVFormatContext and I only have a AVPacket with the compressed data. How do I set this function up so that it can generate a sdp for me.

size = avcodec_encode_video2(codecContext, &pkt, frame, &output);





pkt是一个AVPacket,有没有办法将av_sdp_create与AVCodecContext和AVPacket一起使用?



提前致谢。



pkt is an AVPacket, is there a way to use av_sdp_create with the AVCodecContext and AVPacket?

Thanks in advance.

推荐答案

这篇关于使用来自编码AVPacket的av_sdp_create的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆