Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtmp 转 rtp #185

Open
ZhouMin216 opened this issue Jan 4, 2022 · 7 comments
Open

rtmp 转 rtp #185

ZhouMin216 opened this issue Jan 4, 2022 · 7 comments

Comments

@ZhouMin216
Copy link

@ireader 你好,请问有没有rtmp转rtp输出的例子?我看了一下rtp的test,好像没有相关测试程序。

@ireader
Copy link
Owner

ireader commented Jan 4, 2022

没有直接的例子。

  1. rtmp数据先转换成音、视频帧:rtmp->flv demux -> video/audio
  2. 音视频帧格式与mp4文件数据格式相同,参考rtsp server中播放mp4文件例子

@ZhouMin216
Copy link
Author

非常感谢!我先看一下。

@ZhouMin216
Copy link
Author

没有直接的例子。

  1. rtmp数据先转换成音、视频帧:rtmp->flv demux -> video/audio
  2. 音视频帧格式与mp4文件数据格式相同,参考rtsp server中播放mp4文件例子

大佬你好,我看了一下,还是没找到是在哪将音视频帧封装成rtp数据然后通过udp/tcp进行传输的地方,能说明一下吗?

@ireader
Copy link
Owner

ireader commented Jan 5, 2022

可以参考librtsp\test\media\mp4-file-source.cpp

@ZhouMin216
Copy link
Author

可以参考librtsp\test\media\mp4-file-source.cpp

好的 ,谢谢!

@ZhouMin216
Copy link
Author

我现在是使用srs接收的rtmp流,可以拿到原始的音视频数据,但是没有看明白你说的例子里是怎么将音视频数据转成rtp,然后通过udp/tcp对外传输的,能指导一下吗?谢谢!

@ireader
Copy link
Owner

ireader commented Jan 7, 2022

可以搜rtsp_muxer_create的用法。

rtsp_muxer将音视频数据封装成rtp包,然后通过udp发送。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants