Pipe UDP input to FFMPEG

浪子不回头ぞ 提交于 2019-12-09 01:29:45

问题


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

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

How to do that ?


回答1:


This should work:

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

Or try:

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

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



来源:https://stackoverflow.com/questions/12003014/pipe-udp-input-to-ffmpeg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!