管道UDP输入到FFMPEG [英] Pipe UDP input to FFMPEG

查看:250
本文介绍了管道UDP输入到FFMPEG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

视频摄像机通过本地端口的UDP将RTP视频数据作为RTP发送。

A video camera is sending me video data as RTPs via UDP on a local port.

ffmpeg是否支持将输入(H.264有效载荷)自动转换为MP4

Does ffmpeg support automatically conversion of input (H.264 payload) to MP4 ?

如何做?

推荐答案

ffmpeg -i udp://localhost:1234 -vcodec copy output.mp4

或尝试:

ffmpeg -i rtp://localhost:1234 -vcodec copy output.mp4

将1234替换为您的端口。我假设输入已经在H.264中,如果没有,请删除-vcodec副本。

Replace 1234 with your port. I assume that the input is already in H.264, if not, remove the -vcodec copy.

这篇关于管道UDP输入到FFMPEG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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