您的位置:首页 > 编程语言 > PHP开发

ffmpeg对H.264进行rtp打包

2016-02-17 11:49 1381 查看
ffmpeg对h.264进行RTP打包

ffmpeg -i test22.264 -f rtp rtp://10.102.5.226:15000

会报如下错误:Output file #0 does not contain any stream

后来查原因发现是因为没有加上x264

新修改命令如下:

ffmpeg -i test22.264 -f rtp -vcodec libx264 rtp://10.102.5.226:15000

参考:http://superuser.com/questions/351222/stream-video-with-ffmpeg-output-file-does-not-contain-any-stream

附上用于vlc播放的sdp文件:

m=video 15000 RTP/AVP 96

a=rtpmap:96 H264

a=framerate:25

c=IN IP4 10.102.7.194
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ffmpeg